]>
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 | |
c32bde28 | 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 *); | |
c32bde28 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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] | |
ae8162c8 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 | ||
c32bde28 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 | |
c32bde28 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 |
c32bde28 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 | |
c32bde28 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) |
c32bde28 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 | ||
c32bde28 RD |
374 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
375 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
376 | /*@@*/ | |
377 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
378 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
379 | /*@@*/ | |
380 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
381 | #define SWIG_From_short PyInt_FromLong | |
382 | /*@@*/ | |
383 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
384 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
385 | /*@@*/ | |
386 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
387 | #define SWIG_From_int PyInt_FromLong | |
388 | /*@@*/ | |
389 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
390 | #define SWIG_From_long PyInt_FromLong | |
391 | /*@@*/ | |
392 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
393 | #define SWIG_From_float PyFloat_FromDouble | |
394 | /*@@*/ | |
395 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\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); | |
ae8162c8 | 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, | |
c32bde28 | 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 | ||
c32bde28 RD |
633 | SWIGSTATICINLINE(int) |
634 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
635 | const char *errmsg) | |
d55e5bfc | 636 | { |
c32bde28 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 | } |
c32bde28 | 650 | return 0; |
d55e5bfc | 651 | } |
c32bde28 | 652 | return 1; |
d55e5bfc RD |
653 | } |
654 | ||
655 | ||
c32bde28 RD |
656 | // See my_fragments.i |
657 | SWIGSTATICINLINE(int) | |
658 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 659 | { |
c32bde28 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 | } |
c32bde28 | 670 | return 0; |
d55e5bfc RD |
671 | } |
672 | ||
673 | ||
674 | #if INT_MAX != LONG_MAX | |
675 | SWIGSTATICINLINE(int) | |
c32bde28 | 676 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 677 | { |
c32bde28 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 | |
c32bde28 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) | |
c32bde28 | 705 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 706 | { |
c32bde28 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 | } |
c32bde28 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 | ||
c32bde28 RD |
735 | // See my_fragments.i |
736 | SWIGSTATICINLINE(int) | |
737 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 738 | { |
c32bde28 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 | } |
c32bde28 | 749 | return 0; |
d55e5bfc RD |
750 | } |
751 | ||
752 | ||
c32bde28 RD |
753 | SWIGSTATICINLINE(double) |
754 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 755 | { |
c32bde28 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 | } |
c32bde28 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 | ||
c32bde28 RD |
788 | SWIGSTATICINLINE(long) |
789 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 790 | { |
c32bde28 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 | } |
c32bde28 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); | |
ae8162c8 | 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 | ||
c32bde28 | 860 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
861 | PyObject* o2; |
862 | PyObject* o3; | |
c32bde28 | 863 | |
d55e5bfc RD |
864 | if (!target) { |
865 | target = o; | |
866 | } else if (target == Py_None) { | |
867 | Py_DECREF(Py_None); | |
868 | target = o; | |
7e63a440 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; | |
7e63a440 | 884 | } |
d55e5bfc | 885 | |
c32bde28 | 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*) | |
c32bde28 | 911 | SWIG_From_char(char c) |
d55e5bfc RD |
912 | { |
913 | return PyString_FromStringAndSize(&c,1); | |
914 | } | |
915 | ||
916 | ||
917 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 918 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
919 | { |
920 | return (value > LONG_MAX) ? | |
921 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 922 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
923 | } |
924 | ||
925 | ||
c32bde28 | 926 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
d55e5bfc | 927 | SWIGSTATIC(int) |
c32bde28 | 928 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
d55e5bfc RD |
929 | { |
930 | static swig_type_info* pchar_info = 0; | |
c32bde28 | 931 | char* vptr = 0; |
d55e5bfc | 932 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); |
c32bde28 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 { |
c32bde28 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 | } |
c32bde28 RD |
948 | if (cptr) { |
949 | PyErr_SetString(PyExc_TypeError, "a string is expected"); | |
950 | } | |
951 | return 0; | |
d55e5bfc RD |
952 | } |
953 | ||
954 | ||
c32bde28 RD |
955 | SWIGSTATIC(int) |
956 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) | |
d55e5bfc RD |
957 | { |
958 | char* cptr; size_t csize; | |
c32bde28 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; |
c32bde28 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 | } | |
c32bde28 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 | ||
c32bde28 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) |
c32bde28 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 | } |
c32bde28 | 1015 | return v; |
d55e5bfc RD |
1016 | } |
1017 | ||
c32bde28 | 1018 | |
d55e5bfc | 1019 | SWIGSTATICINLINE(int) |
c32bde28 | 1020 | SWIG_Check_char(PyObject* obj) |
d55e5bfc | 1021 | { |
c32bde28 | 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 | ||
c32bde28 RD |
1080 | SWIGSTATICINLINE(int) |
1081 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
d55e5bfc | 1082 | { |
c32bde28 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 | ||
c32bde28 RD |
1104 | SWIGSTATICINLINE(bool) |
1105 | SWIG_As_bool(PyObject* obj) | |
d55e5bfc | 1106 | { |
c32bde28 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 | } |
c32bde28 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 | ||
ae8162c8 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) { | |
ae8162c8 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 | ||
c32bde28 RD |
1163 | // See my_fragments.i |
1164 | SWIGSTATICINLINE(int) | |
1165 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 1166 | { |
c32bde28 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 | } |
c32bde28 RD |
1172 | else if (val) |
1173 | *val = (unsigned long)v; | |
1174 | return 1; | |
d55e5bfc RD |
1175 | } |
1176 | ||
1177 | ||
c32bde28 RD |
1178 | SWIGSTATICINLINE(int) |
1179 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1180 | unsigned long max_value, | |
1181 | const char *errmsg) | |
d55e5bfc | 1182 | { |
c32bde28 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 | } |
c32bde28 | 1189 | return 0; |
d55e5bfc | 1190 | } |
c32bde28 RD |
1191 | return 1; |
1192 | } | |
d55e5bfc RD |
1193 | |
1194 | ||
c32bde28 RD |
1195 | SWIGSTATICINLINE(int) |
1196 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
d55e5bfc | 1197 | { |
c32bde28 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 | ||
c32bde28 RD |
1217 | SWIGSTATICINLINE(unsigned char) |
1218 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
d55e5bfc | 1219 | { |
c32bde28 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 | } |
c32bde28 | 1229 | return v; |
d55e5bfc RD |
1230 | } |
1231 | ||
c32bde28 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 | ||
c24da6d6 | 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); | |
ae8162c8 | 1257 | return new wxImage(width, height, copy, false); |
d55e5bfc RD |
1258 | } |
1259 | wxSize wxImage_GetSize(wxImage *self){ | |
1260 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1261 | return size; | |
1262 | } | |
1263 | PyObject *wxImage_GetData(wxImage *self){ | |
1264 | unsigned char* data = self->GetData(); | |
1265 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1266 | PyObject* rv; | |
1267 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1268 | return rv; | |
1269 | } | |
1270 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1271 | unsigned char* dataPtr; | |
1272 | ||
1273 | if (! PyString_Check(data)) { | |
ae8162c8 RD |
1274 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
1275 | "Expected string object")); | |
d55e5bfc RD |
1276 | return /* NULL */ ; |
1277 | } | |
1278 | ||
1279 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1280 | dataPtr = (unsigned char*) malloc(len); | |
1281 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1282 | self->SetData(dataPtr); | |
1283 | // wxImage takes ownership of dataPtr... | |
1284 | } | |
1285 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1286 | unsigned char* data = self->GetData(); | |
1287 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1288 | PyObject* rv; | |
1289 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1290 | return rv; | |
1291 | } | |
1292 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1293 | unsigned char* buffer; | |
1294 | int size; | |
1295 | ||
1296 | bool blocked = wxPyBeginBlockThreads(); | |
1297 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1298 | goto done; | |
1299 | ||
1300 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1301 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1302 | goto done; | |
1303 | } | |
1304 | self->SetData(buffer); | |
1305 | done: | |
1306 | wxPyEndBlockThreads(blocked); | |
1307 | } | |
1308 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1309 | unsigned char* data = self->GetAlpha(); | |
1310 | if (! data) { | |
1311 | RETURN_NONE(); | |
1312 | } else { | |
1313 | int len = self->GetWidth() * self->GetHeight(); | |
1314 | PyObject* rv; | |
1315 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1316 | return rv; | |
1317 | } | |
1318 | } | |
1319 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1320 | unsigned char* dataPtr; | |
1321 | ||
1322 | if (! PyString_Check(data)) { | |
1323 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1324 | return /* NULL */ ; | |
1325 | } | |
1326 | ||
1327 | size_t len = self->GetWidth() * self->GetHeight(); | |
1328 | dataPtr = (unsigned char*) malloc(len); | |
1329 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1330 | self->SetAlpha(dataPtr); | |
1331 | // wxImage takes ownership of dataPtr... | |
1332 | } | |
1333 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1334 | unsigned char* data = self->GetAlpha(); | |
1335 | int len = self->GetWidth() * self->GetHeight(); | |
1336 | PyObject* rv; | |
1337 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1338 | return rv; | |
1339 | } | |
1340 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1341 | unsigned char* buffer; | |
1342 | int size; | |
1343 | ||
1344 | bool blocked = wxPyBeginBlockThreads(); | |
1345 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1346 | goto done; | |
1347 | ||
1348 | if (size != self->GetWidth() * self->GetHeight()) { | |
1349 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1350 | goto done; | |
1351 | } | |
1352 | self->SetAlpha(buffer); | |
1353 | done: | |
1354 | wxPyEndBlockThreads(blocked); | |
1355 | } | |
1356 | ||
c32bde28 RD |
1357 | SWIGSTATICINLINE(unsigned long) |
1358 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 1359 | { |
c32bde28 RD |
1360 | unsigned long v; |
1361 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1362 | /* | |
1363 | this is needed to make valgrind/purify happier. the other | |
1364 | solution is throw an exception, but since this code should work | |
1365 | with plain C .... | |
1366 | */ | |
1367 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1368 | } |
c32bde28 RD |
1369 | return v; |
1370 | } | |
1371 | ||
1372 | ||
1373 | SWIGSTATICINLINE(int) | |
1374 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1375 | { | |
1376 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1377 | } |
1378 | ||
1fbf26be RD |
1379 | wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){ |
1380 | wxBitmap bitmap(*self, depth); | |
d55e5bfc RD |
1381 | return bitmap; |
1382 | } | |
1383 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1384 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1385 | wxBitmap bitmap( mono, 1 ); | |
1386 | return bitmap; | |
1387 | } | |
1388 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1389 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1390 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1391 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1392 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1393 | |
1394 | #include <wx/quantize.h> | |
1395 | ||
1396 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1397 | return wxQuantize::Quantize(src, dest, | |
1398 | //NULL, // palette | |
1399 | desiredNoColours, | |
1400 | NULL, // eightBitData | |
1401 | flags); | |
1402 | } | |
d55e5bfc RD |
1403 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1404 | if (PyCallable_Check(func)) { | |
1405 | self->Connect(id, lastId, eventType, | |
1406 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1407 | new wxPyCallback(func)); | |
1408 | } | |
1409 | else if (func == Py_None) { | |
1410 | self->Disconnect(id, lastId, eventType, | |
1411 | (wxObjectEventFunction) | |
1412 | &wxPyCallback::EventThunker); | |
1413 | } | |
1414 | else { | |
1415 | wxPyBLOCK_THREADS( | |
1416 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1417 | } | |
1418 | } | |
1419 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1420 | return self->Disconnect(id, lastId, eventType, | |
1421 | (wxObjectEventFunction) | |
1422 | &wxPyCallback::EventThunker); | |
1423 | } | |
1424 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1425 | if (_self && _self != Py_None) { | |
1426 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1427 | } | |
1428 | else { | |
1429 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1430 | if (data) { | |
1431 | self->SetClientObject(NULL); // This will delete it too | |
1432 | } | |
1433 | } | |
1434 | } | |
c32bde28 | 1435 | |
19272049 | 1436 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 1437 | #if wxUSE_UNICODE |
19272049 | 1438 | return self->GetUnicodeKey(); |
d55e5bfc RD |
1439 | #else |
1440 | return 0; | |
1441 | #endif | |
1442 | } | |
1443 | ||
1444 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
1445 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1446 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1447 | /*@@*/ | |
d55e5bfc | 1448 | #else |
c32bde28 RD |
1449 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1450 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1451 | /*@@*/ | |
d55e5bfc RD |
1452 | #endif |
1453 | ||
1454 | ||
1455 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
1456 | SWIGSTATICINLINE(int) |
1457 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 1458 | { |
c32bde28 RD |
1459 | const char* errmsg = val ? "unsigned int" : 0; |
1460 | unsigned long v; | |
1461 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1462 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1463 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
1464 | return 1; | |
1465 | } | |
1466 | } else { | |
1467 | PyErr_Clear(); | |
1468 | } | |
1469 | if (val) { | |
1470 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
1471 | } | |
1472 | return 0; | |
d55e5bfc RD |
1473 | } |
1474 | #else | |
c32bde28 RD |
1475 | SWIGSTATICINLINE(unsigned int) |
1476 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1477 | { | |
1478 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
1479 | } | |
d55e5bfc RD |
1480 | #endif |
1481 | ||
1482 | ||
c32bde28 RD |
1483 | SWIGSTATICINLINE(unsigned int) |
1484 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 1485 | { |
c32bde28 RD |
1486 | unsigned int v; |
1487 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
1488 | /* | |
1489 | this is needed to make valgrind/purify happier. the other | |
1490 | solution is throw an exception, but since this code should work | |
1491 | with plain C .... | |
1492 | */ | |
1493 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 1494 | } |
c32bde28 RD |
1495 | return v; |
1496 | } | |
1497 | ||
1498 | ||
1499 | SWIGSTATICINLINE(int) | |
1500 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
1501 | { | |
1502 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
1503 | } |
1504 | ||
1505 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1506 | self->m_size = size; | |
1507 | } | |
1508 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1509 | self->m_pos = pos; | |
1510 | } | |
1511 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1512 | int count = self->GetNumberOfFiles(); | |
1513 | wxString* files = self->GetFiles(); | |
1514 | PyObject* list = PyList_New(count); | |
1515 | ||
1516 | if (!list) { | |
1517 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1518 | return NULL; | |
1519 | } | |
1520 | ||
1521 | for (int i=0; i<count; i++) { | |
1522 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1523 | } | |
1524 | return list; | |
1525 | } | |
1526 | ||
1527 | ||
1528 | wxPyApp *new_wxPyApp(){ | |
1529 | wxPythonApp = new wxPyApp(); | |
1530 | return wxPythonApp; | |
1531 | } | |
1532 | ||
1533 | void wxApp_CleanUp() { | |
1534 | __wxPyCleanup(); | |
1535 | } | |
1536 | ||
1537 | ||
caef1a4d | 1538 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1539 | |
1540 | ||
ae8162c8 RD |
1541 | #ifdef __WXMAC__ |
1542 | ||
1543 | // A dummy class that raises an exception if used... | |
1544 | class wxEventLoop | |
1545 | { | |
1546 | public: | |
1547 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
1548 | int Run() { return 0; } | |
1549 | void Exit(int rc = 0) {} | |
1550 | bool Pending() const { return false; } | |
1551 | bool Dispatch() { return false; } | |
1552 | bool IsRunning() const { return false; } | |
1553 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
1554 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
1555 | }; | |
1556 | ||
1557 | #else | |
1558 | ||
1559 | #include <wx/evtloop.h> | |
1560 | ||
1561 | #endif | |
1562 | ||
1563 | ||
d55e5bfc RD |
1564 | |
1565 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1566 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1567 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1568 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1569 | wxWindowList& list = self->GetChildren(); | |
1570 | return wxPy_ConvertList(&list); | |
1571 | } | |
1572 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1573 | #if wxUSE_HOTKEY | |
1574 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1575 | #else | |
ae8162c8 | 1576 | return false; |
d55e5bfc RD |
1577 | #endif |
1578 | } | |
1579 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1580 | ||
1581 | ||
1582 | ||
ae8162c8 | 1583 | return false; |
d55e5bfc RD |
1584 | |
1585 | } | |
1586 | long wxWindow_GetHandle(wxWindow *self){ | |
1587 | return wxPyGetWinHandle(self); | |
1588 | } | |
7e63a440 RD |
1589 | void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
1590 | self->AssociateHandle((WXWidget)handle); | |
1591 | } | |
d55e5bfc RD |
1592 | |
1593 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1594 | return wxWindow::FindWindowById(id, parent); | |
1595 | } | |
1596 | ||
1597 | wxWindow* wxFindWindowByName( const wxString& name, | |
1598 | const wxWindow *parent = NULL ) { | |
1599 | return wxWindow::FindWindowByName(name, parent); | |
1600 | } | |
1601 | ||
1602 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1603 | const wxWindow *parent = NULL ) { | |
1604 | return wxWindow::FindWindowByLabel(label, parent); | |
1605 | } | |
1606 | ||
1607 | ||
1608 | #ifdef __WXMSW__ | |
1609 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1610 | #endif | |
1611 | ||
1612 | ||
1613 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1614 | #ifdef __WXMSW__ | |
1615 | WXHWND hWnd = (WXHWND)_hWnd; | |
1616 | long id = wxGetWindowId(hWnd); | |
1617 | wxWindow* win = new wxWindow; | |
1618 | parent->AddChild(win); | |
1619 | win->SetEventHandler(win); | |
1620 | win->SetHWND(hWnd); | |
1621 | win->SetId(id); | |
1622 | win->SubclassWin(hWnd); | |
1623 | win->AdoptAttributesFromHWND(); | |
1624 | win->SetupColours(); | |
1625 | return win; | |
1626 | #else | |
1627 | wxPyRaiseNotImplemented(); | |
1628 | return NULL; | |
1629 | #endif | |
1630 | } | |
1631 | ||
1632 | ||
1633 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1634 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1635 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1636 | ||
1637 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1638 | ||
1639 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1640 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1641 | wxMenuItemList& list = self->GetMenuItems(); | |
1642 | return wxPy_ConvertList(&list); | |
1643 | } | |
1644 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1645 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1646 | if (clientData) { | |
1647 | wxPyClientData* data = new wxPyClientData(clientData); | |
1648 | return self->Append(item, data); | |
1649 | } else | |
1650 | return self->Append(item); | |
1651 | } | |
1652 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1653 | if (clientData) { | |
1654 | wxPyClientData* data = new wxPyClientData(clientData); | |
1655 | return self->Insert(item, pos, data); | |
1656 | } else | |
1657 | return self->Insert(item, pos); | |
1658 | } | |
1659 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1660 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1661 | if (data) { | |
1662 | Py_INCREF(data->m_obj); | |
1663 | return data->m_obj; | |
1664 | } else { | |
1665 | Py_INCREF(Py_None); | |
1666 | return Py_None; | |
1667 | } | |
1668 | } | |
1669 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1670 | wxPyClientData* data = new wxPyClientData(clientData); | |
1671 | self->SetClientObject(n, data); | |
1672 | } | |
1673 | ||
1674 | ||
248ed943 RD |
1675 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1676 | wxPyUserData* data = NULL; | |
1677 | if ( userData ) { | |
1678 | bool blocked = wxPyBeginBlockThreads(); | |
1679 | data = new wxPyUserData(userData); | |
1680 | wxPyEndBlockThreads(blocked); | |
1681 | } | |
1682 | return new wxSizerItem(window, proportion, flag, border, data); | |
1683 | } | |
1684 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1685 | wxPyUserData* data = NULL; | |
1686 | if ( userData ) { | |
1687 | bool blocked = wxPyBeginBlockThreads(); | |
1688 | data = new wxPyUserData(userData); | |
1689 | wxPyEndBlockThreads(blocked); | |
1690 | } | |
1691 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1692 | } | |
1693 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1694 | wxPyUserData* data = NULL; | |
1695 | if ( userData ) { | |
1696 | bool blocked = wxPyBeginBlockThreads(); | |
1697 | data = new wxPyUserData(userData); | |
1698 | wxPyEndBlockThreads(blocked); | |
1699 | } | |
1700 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1701 | } | |
d55e5bfc RD |
1702 | |
1703 | #include <float.h> | |
c32bde28 RD |
1704 | SWIGSTATICINLINE(int) |
1705 | SWIG_CheckDoubleInRange(double value, double min_value, | |
1706 | double max_value, const char* errmsg) | |
1707 | { | |
1708 | if (value < min_value) { | |
1709 | if (errmsg) { | |
1710 | PyErr_Format(PyExc_OverflowError, | |
1711 | "value %g is less than %s minimum %g", | |
1712 | value, errmsg, min_value); | |
1713 | } | |
1714 | return 0; | |
1715 | } else if (value > max_value) { | |
1716 | if (errmsg) { | |
1717 | PyErr_Format(PyExc_OverflowError, | |
1718 | "value %g is greater than %s maximum %g", | |
1719 | value, errmsg, max_value); | |
1720 | } | |
1721 | return 0; | |
1722 | } | |
1723 | return 1; | |
1724 | } | |
1725 | ||
d55e5bfc | 1726 | |
c32bde28 RD |
1727 | SWIGSTATICINLINE(int) |
1728 | SWIG_AsVal_float(PyObject *obj, float *val) | |
d55e5bfc | 1729 | { |
c32bde28 RD |
1730 | const char* errmsg = val ? "float" : 0; |
1731 | double v; | |
1732 | if (SWIG_AsVal_double(obj, &v)) { | |
1733 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
1734 | if (val) *val = v; | |
1735 | return 1; | |
d55e5bfc | 1736 | } else { |
c32bde28 | 1737 | return 0; |
d55e5bfc | 1738 | } |
c32bde28 RD |
1739 | } else { |
1740 | PyErr_Clear(); | |
d55e5bfc | 1741 | } |
c32bde28 RD |
1742 | if (val) { |
1743 | PyErr_SetString(PyExc_TypeError, "a float is expected"); | |
1744 | } | |
1745 | return 0; | |
d55e5bfc RD |
1746 | } |
1747 | ||
1748 | ||
1749 | SWIGSTATICINLINE(float) | |
c32bde28 | 1750 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 1751 | { |
c32bde28 RD |
1752 | float v; |
1753 | if (!SWIG_AsVal_float(obj, &v)) { | |
1754 | /* | |
1755 | this is needed to make valgrind/purify happier. the other | |
1756 | solution is throw an exception, but since this code should work | |
1757 | with plain C .... | |
1758 | */ | |
1759 | memset((void*)&v, 0, sizeof(float)); | |
1760 | } | |
1761 | return v; | |
d55e5bfc RD |
1762 | } |
1763 | ||
c32bde28 | 1764 | |
d55e5bfc | 1765 | SWIGSTATICINLINE(int) |
c32bde28 | 1766 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 1767 | { |
c32bde28 | 1768 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
1769 | } |
1770 | ||
1771 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1772 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1773 | if (data) { | |
1774 | Py_INCREF(data->m_obj); | |
1775 | return data->m_obj; | |
1776 | } else { | |
1777 | Py_INCREF(Py_None); | |
1778 | return Py_None; | |
1779 | } | |
1780 | } | |
1781 | ||
1782 | // Figure out the type of the sizer item | |
1783 | ||
1784 | struct wxPySizerItemInfo { | |
1785 | wxPySizerItemInfo() | |
ae8162c8 RD |
1786 | : window(NULL), sizer(NULL), gotSize(false), |
1787 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc RD |
1788 | {} |
1789 | ||
1790 | wxWindow* window; | |
1791 | wxSizer* sizer; | |
1792 | bool gotSize; | |
1793 | wxSize size; | |
1794 | bool gotPos; | |
1795 | int pos; | |
1796 | }; | |
1797 | ||
1798 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1799 | ||
1800 | wxPySizerItemInfo info; | |
1801 | wxSize size; | |
1802 | wxSize* sizePtr = &size; | |
1803 | ||
1804 | // Find out what the type of the item is | |
1805 | // try wxWindow | |
1806 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1807 | PyErr_Clear(); | |
1808 | info.window = NULL; | |
1809 | ||
1810 | // try wxSizer | |
1811 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1812 | PyErr_Clear(); | |
1813 | info.sizer = NULL; | |
1814 | ||
1815 | // try wxSize or (w,h) | |
1816 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1817 | info.size = *sizePtr; | |
ae8162c8 | 1818 | info.gotSize = true; |
d55e5bfc RD |
1819 | } |
1820 | ||
1821 | // or a single int | |
1822 | if (checkIdx && PyInt_Check(item)) { | |
1823 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 1824 | info.gotPos = true; |
d55e5bfc RD |
1825 | } |
1826 | } | |
1827 | } | |
1828 | ||
1829 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1830 | // no expected type, figure out what kind of error message to generate | |
1831 | if ( !checkSize && !checkIdx ) | |
1832 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1833 | else if ( checkSize && !checkIdx ) | |
1834 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1835 | else if ( !checkSize && checkIdx) | |
1836 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1837 | else | |
1838 | // can this one happen? | |
1839 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1840 | } | |
1841 | ||
1842 | return info; | |
1843 | } | |
1844 | ||
1845 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1846 | if (!self->GetClientObject()) |
1847 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc RD |
1848 | } |
1849 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1850 | ||
1851 | wxPyUserData* data = NULL; | |
1852 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1853 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1854 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1855 | data = new wxPyUserData(userData); | |
1856 | wxPyEndBlockThreads(blocked); | |
1857 | ||
1858 | // Now call the real Add method if a valid item type was found | |
1859 | if ( info.window ) | |
1860 | self->Add(info.window, proportion, flag, border, data); | |
1861 | else if ( info.sizer ) | |
1862 | self->Add(info.sizer, proportion, flag, border, data); | |
1863 | else if (info.gotSize) | |
1864 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1865 | proportion, flag, border, data); | |
1866 | } | |
1867 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1868 | ||
1869 | wxPyUserData* data = NULL; | |
1870 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1871 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1872 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1873 | data = new wxPyUserData(userData); | |
1874 | wxPyEndBlockThreads(blocked); | |
1875 | ||
1876 | // Now call the real Insert method if a valid item type was found | |
1877 | if ( info.window ) | |
1878 | self->Insert(before, info.window, proportion, flag, border, data); | |
1879 | else if ( info.sizer ) | |
1880 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1881 | else if (info.gotSize) | |
1882 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1883 | proportion, flag, border, data); | |
1884 | } | |
1885 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1886 | ||
1887 | wxPyUserData* data = NULL; | |
1888 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1889 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1890 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1891 | data = new wxPyUserData(userData); | |
1892 | wxPyEndBlockThreads(blocked); | |
1893 | ||
1894 | // Now call the real Prepend method if a valid item type was found | |
1895 | if ( info.window ) | |
1896 | self->Prepend(info.window, proportion, flag, border, data); | |
1897 | else if ( info.sizer ) | |
1898 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1899 | else if (info.gotSize) | |
1900 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1901 | proportion, flag, border, data); | |
1902 | } | |
1903 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1904 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1905 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1906 | wxPyEndBlockThreads(blocked); |
1907 | if ( info.window ) | |
1908 | return self->Remove(info.window); | |
1909 | else if ( info.sizer ) | |
1910 | return self->Remove(info.sizer); | |
1911 | else if ( info.gotPos ) | |
1912 | return self->Remove(info.pos); | |
1913 | else | |
ae8162c8 | 1914 | return false; |
d55e5bfc | 1915 | } |
1a6bba1e RD |
1916 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1917 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1918 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
1919 | wxPyEndBlockThreads(blocked); |
1920 | if ( info.window ) | |
1921 | return self->Detach(info.window); | |
1922 | else if ( info.sizer ) | |
1923 | return self->Detach(info.sizer); | |
1924 | else if ( info.gotPos ) | |
1925 | return self->Detach(info.pos); | |
1926 | else | |
ae8162c8 | 1927 | return false; |
1a6bba1e | 1928 | } |
d55e5bfc RD |
1929 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1930 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1931 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1932 | wxPyEndBlockThreads(blocked); |
1933 | if ( info.window ) | |
1934 | self->SetItemMinSize(info.window, size); | |
1935 | else if ( info.sizer ) | |
1936 | self->SetItemMinSize(info.sizer, size); | |
1937 | else if ( info.gotPos ) | |
1938 | self->SetItemMinSize(info.pos, size); | |
1939 | } | |
1940 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1941 | wxSizerItemList& list = self->GetChildren(); | |
1942 | return wxPy_ConvertList(&list); | |
1943 | } | |
7e63a440 | 1944 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
c24da6d6 | 1945 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1946 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
c24da6d6 | 1947 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 1948 | if ( info.window ) |
7e63a440 | 1949 | return self->Show(info.window, show, recursive); |
d55e5bfc | 1950 | else if ( info.sizer ) |
7e63a440 | 1951 | return self->Show(info.sizer, show, recursive); |
248ed943 | 1952 | else if ( info.gotPos ) |
7e63a440 | 1953 | return self->Show(info.pos, show); |
ae8162c8 RD |
1954 | else |
1955 | return false; | |
d55e5bfc RD |
1956 | } |
1957 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1958 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1959 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
c24da6d6 | 1960 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1961 | if ( info.window ) |
1962 | return self->IsShown(info.window); | |
1963 | else if ( info.sizer ) | |
1964 | return self->IsShown(info.sizer); | |
248ed943 RD |
1965 | else if ( info.gotPos ) |
1966 | return self->IsShown(info.pos); | |
d55e5bfc | 1967 | else |
ae8162c8 | 1968 | return false; |
d55e5bfc RD |
1969 | } |
1970 | ||
1971 | // See pyclasses.h | |
1972 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1973 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1974 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1975 | ||
1976 | ||
1977 | ||
1978 | ||
1979 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1980 | { | |
1981 | if (source == Py_None) { | |
1982 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 1983 | return true; |
d55e5bfc RD |
1984 | } |
1985 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1986 | } | |
1987 | ||
1988 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1989 | { | |
1990 | if (source == Py_None) { | |
1991 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 1992 | return true; |
d55e5bfc RD |
1993 | } |
1994 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1995 | } | |
1996 | ||
1997 | ||
1998 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
1999 | self->SetRow(row); | |
2000 | self->SetCol(col); | |
2001 | } | |
2002 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
2003 | bool blocked = wxPyBeginBlockThreads(); | |
2004 | PyObject* tup = PyTuple_New(2); | |
2005 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2006 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
2007 | wxPyEndBlockThreads(blocked); | |
2008 | return tup; | |
2009 | } | |
2010 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
2011 | self->SetRowspan(rowspan); | |
2012 | self->SetColspan(colspan); | |
2013 | } | |
2014 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
2015 | bool blocked = wxPyBeginBlockThreads(); | |
2016 | PyObject* tup = PyTuple_New(2); | |
2017 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2018 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
2019 | wxPyEndBlockThreads(blocked); | |
2020 | return tup; | |
2021 | } | |
248ed943 RD |
2022 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2023 | wxPyUserData* data = NULL; | |
2024 | if ( userData ) { | |
2025 | bool blocked = wxPyBeginBlockThreads(); | |
2026 | data = new wxPyUserData(userData); | |
2027 | wxPyEndBlockThreads(blocked); | |
2028 | } | |
2029 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2030 | } | |
2031 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2032 | wxPyUserData* data = NULL; | |
2033 | if ( userData ) { | |
2034 | bool blocked = wxPyBeginBlockThreads(); | |
2035 | data = new wxPyUserData(userData); | |
2036 | wxPyEndBlockThreads(blocked); | |
2037 | } | |
2038 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2039 | } | |
2040 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2041 | wxPyUserData* data = NULL; | |
2042 | if ( userData ) { | |
2043 | bool blocked = wxPyBeginBlockThreads(); | |
2044 | data = new wxPyUserData(userData); | |
2045 | wxPyEndBlockThreads(blocked); | |
2046 | } | |
2047 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2048 | } | |
2049 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2050 | int row, col; | |
2051 | self->GetEndPos(row, col); | |
2052 | return wxGBPosition(row, col); | |
2053 | } | |
d55e5bfc RD |
2054 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2055 | ||
2056 | wxPyUserData* data = NULL; | |
2057 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2058 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2059 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2060 | data = new wxPyUserData(userData); | |
2061 | wxPyEndBlockThreads(blocked); | |
2062 | ||
2063 | // Now call the real Add method if a valid item type was found | |
2064 | if ( info.window ) | |
2065 | return self->Add(info.window, pos, span, flag, border, data); | |
2066 | else if ( info.sizer ) | |
2067 | return self->Add(info.sizer, pos, span, flag, border, data); | |
2068 | else if (info.gotSize) | |
2069 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
2070 | pos, span, flag, border, data); | |
ae8162c8 | 2071 | return false; |
d55e5bfc RD |
2072 | } |
2073 | ||
2074 | ||
2075 | #ifdef __cplusplus | |
2076 | extern "C" { | |
2077 | #endif | |
c32bde28 | 2078 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
2079 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2080 | return 1; | |
2081 | } | |
2082 | ||
2083 | ||
2084 | static PyObject *_wrap_EmptyString_get() { | |
2085 | PyObject *pyobj; | |
2086 | ||
2087 | { | |
2088 | #if wxUSE_UNICODE | |
2089 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2090 | #else | |
2091 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2092 | #endif | |
2093 | } | |
2094 | return pyobj; | |
2095 | } | |
2096 | ||
2097 | ||
c32bde28 | 2098 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2099 | PyObject *resultobj; |
2100 | wxObject *arg1 = (wxObject *) 0 ; | |
2101 | wxString result; | |
2102 | PyObject * obj0 = 0 ; | |
2103 | char *kwnames[] = { | |
2104 | (char *) "self", NULL | |
2105 | }; | |
2106 | ||
2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2110 | { | |
2111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2112 | result = wxObject_GetClassName(arg1); | |
2113 | ||
2114 | wxPyEndAllowThreads(__tstate); | |
2115 | if (PyErr_Occurred()) SWIG_fail; | |
2116 | } | |
2117 | { | |
2118 | #if wxUSE_UNICODE | |
2119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2120 | #else | |
2121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2122 | #endif | |
2123 | } | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
c32bde28 | 2130 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2131 | PyObject *resultobj; |
2132 | wxObject *arg1 = (wxObject *) 0 ; | |
2133 | PyObject * obj0 = 0 ; | |
2134 | char *kwnames[] = { | |
2135 | (char *) "self", NULL | |
2136 | }; | |
2137 | ||
2138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2141 | { | |
2142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2143 | wxObject_Destroy(arg1); | |
2144 | ||
2145 | wxPyEndAllowThreads(__tstate); | |
2146 | if (PyErr_Occurred()) SWIG_fail; | |
2147 | } | |
2148 | Py_INCREF(Py_None); resultobj = Py_None; | |
2149 | return resultobj; | |
2150 | fail: | |
2151 | return NULL; | |
2152 | } | |
2153 | ||
2154 | ||
c32bde28 | 2155 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2156 | PyObject *obj; |
2157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2158 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2159 | Py_INCREF(obj); | |
2160 | return Py_BuildValue((char *)""); | |
2161 | } | |
c32bde28 | 2162 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2163 | PyObject *resultobj; |
2164 | wxSize *arg1 = (wxSize *) 0 ; | |
2165 | int arg2 ; | |
2166 | PyObject * obj0 = 0 ; | |
2167 | PyObject * obj1 = 0 ; | |
2168 | char *kwnames[] = { | |
2169 | (char *) "self",(char *) "x", NULL | |
2170 | }; | |
2171 | ||
2172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
2173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2175 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2176 | if (PyErr_Occurred()) SWIG_fail; |
2177 | if (arg1) (arg1)->x = arg2; | |
2178 | ||
2179 | Py_INCREF(Py_None); resultobj = Py_None; | |
2180 | return resultobj; | |
2181 | fail: | |
2182 | return NULL; | |
2183 | } | |
2184 | ||
2185 | ||
c32bde28 | 2186 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2187 | PyObject *resultobj; |
2188 | wxSize *arg1 = (wxSize *) 0 ; | |
2189 | int result; | |
2190 | PyObject * obj0 = 0 ; | |
2191 | char *kwnames[] = { | |
2192 | (char *) "self", NULL | |
2193 | }; | |
2194 | ||
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2198 | result = (int) ((arg1)->x); | |
2199 | ||
c32bde28 | 2200 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2201 | return resultobj; |
2202 | fail: | |
2203 | return NULL; | |
2204 | } | |
2205 | ||
2206 | ||
c32bde28 | 2207 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2208 | PyObject *resultobj; |
2209 | wxSize *arg1 = (wxSize *) 0 ; | |
2210 | int arg2 ; | |
2211 | PyObject * obj0 = 0 ; | |
2212 | PyObject * obj1 = 0 ; | |
2213 | char *kwnames[] = { | |
2214 | (char *) "self",(char *) "y", NULL | |
2215 | }; | |
2216 | ||
2217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
2218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2220 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2221 | if (PyErr_Occurred()) SWIG_fail; |
2222 | if (arg1) (arg1)->y = arg2; | |
2223 | ||
2224 | Py_INCREF(Py_None); resultobj = Py_None; | |
2225 | return resultobj; | |
2226 | fail: | |
2227 | return NULL; | |
2228 | } | |
2229 | ||
2230 | ||
c32bde28 | 2231 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2232 | PyObject *resultobj; |
2233 | wxSize *arg1 = (wxSize *) 0 ; | |
2234 | int result; | |
2235 | PyObject * obj0 = 0 ; | |
2236 | char *kwnames[] = { | |
2237 | (char *) "self", NULL | |
2238 | }; | |
2239 | ||
2240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2243 | result = (int) ((arg1)->y); | |
2244 | ||
c32bde28 | 2245 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2246 | return resultobj; |
2247 | fail: | |
2248 | return NULL; | |
2249 | } | |
2250 | ||
2251 | ||
c32bde28 | 2252 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2253 | PyObject *resultobj; |
2254 | int arg1 = (int) 0 ; | |
2255 | int arg2 = (int) 0 ; | |
2256 | wxSize *result; | |
2257 | PyObject * obj0 = 0 ; | |
2258 | PyObject * obj1 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "w",(char *) "h", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2264 | if (obj0) { | |
c32bde28 | 2265 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2266 | if (PyErr_Occurred()) SWIG_fail; |
2267 | } | |
2268 | if (obj1) { | |
c32bde28 | 2269 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2270 | if (PyErr_Occurred()) SWIG_fail; |
2271 | } | |
2272 | { | |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | result = (wxSize *)new wxSize(arg1,arg2); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
2279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2280 | return resultobj; | |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
c32bde28 | 2286 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2287 | PyObject *resultobj; |
2288 | wxSize *arg1 = (wxSize *) 0 ; | |
2289 | PyObject * obj0 = 0 ; | |
2290 | char *kwnames[] = { | |
2291 | (char *) "self", NULL | |
2292 | }; | |
2293 | ||
2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | delete arg1; | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | Py_INCREF(Py_None); resultobj = Py_None; | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
c32bde28 | 2311 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2312 | PyObject *resultobj; |
2313 | wxSize *arg1 = (wxSize *) 0 ; | |
2314 | wxSize *arg2 = 0 ; | |
2315 | bool result; | |
2316 | wxSize temp2 ; | |
2317 | PyObject * obj0 = 0 ; | |
2318 | PyObject * obj1 = 0 ; | |
2319 | char *kwnames[] = { | |
2320 | (char *) "self",(char *) "sz", NULL | |
2321 | }; | |
2322 | ||
2323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2326 | { | |
2327 | arg2 = &temp2; | |
2328 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2329 | } | |
2330 | { | |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2332 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2333 | ||
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | } | |
2337 | { | |
2338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2339 | } | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
c32bde28 | 2346 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2347 | PyObject *resultobj; |
2348 | wxSize *arg1 = (wxSize *) 0 ; | |
2349 | wxSize *arg2 = 0 ; | |
2350 | bool result; | |
2351 | wxSize temp2 ; | |
2352 | PyObject * obj0 = 0 ; | |
2353 | PyObject * obj1 = 0 ; | |
2354 | char *kwnames[] = { | |
2355 | (char *) "self",(char *) "sz", NULL | |
2356 | }; | |
2357 | ||
2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2361 | { | |
2362 | arg2 = &temp2; | |
2363 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2364 | } | |
2365 | { | |
2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2367 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2368 | ||
2369 | wxPyEndAllowThreads(__tstate); | |
2370 | if (PyErr_Occurred()) SWIG_fail; | |
2371 | } | |
2372 | { | |
2373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2374 | } | |
2375 | return resultobj; | |
2376 | fail: | |
2377 | return NULL; | |
2378 | } | |
2379 | ||
2380 | ||
c32bde28 | 2381 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2382 | PyObject *resultobj; |
2383 | wxSize *arg1 = (wxSize *) 0 ; | |
2384 | wxSize *arg2 = 0 ; | |
2385 | wxSize result; | |
2386 | wxSize temp2 ; | |
2387 | PyObject * obj0 = 0 ; | |
2388 | PyObject * obj1 = 0 ; | |
2389 | char *kwnames[] = { | |
2390 | (char *) "self",(char *) "sz", NULL | |
2391 | }; | |
2392 | ||
2393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2396 | { | |
2397 | arg2 = &temp2; | |
2398 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2399 | } | |
2400 | { | |
2401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2402 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2403 | ||
2404 | wxPyEndAllowThreads(__tstate); | |
2405 | if (PyErr_Occurred()) SWIG_fail; | |
2406 | } | |
2407 | { | |
2408 | wxSize * resultptr; | |
2409 | resultptr = new wxSize((wxSize &) result); | |
2410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2411 | } | |
2412 | return resultobj; | |
2413 | fail: | |
2414 | return NULL; | |
2415 | } | |
2416 | ||
2417 | ||
c32bde28 | 2418 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2419 | PyObject *resultobj; |
2420 | wxSize *arg1 = (wxSize *) 0 ; | |
2421 | wxSize *arg2 = 0 ; | |
2422 | wxSize result; | |
2423 | wxSize temp2 ; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | PyObject * obj1 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "self",(char *) "sz", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2433 | { | |
2434 | arg2 = &temp2; | |
2435 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2436 | } | |
2437 | { | |
2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2439 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2440 | ||
2441 | wxPyEndAllowThreads(__tstate); | |
2442 | if (PyErr_Occurred()) SWIG_fail; | |
2443 | } | |
2444 | { | |
2445 | wxSize * resultptr; | |
2446 | resultptr = new wxSize((wxSize &) result); | |
2447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2448 | } | |
2449 | return resultobj; | |
2450 | fail: | |
2451 | return NULL; | |
2452 | } | |
2453 | ||
2454 | ||
c32bde28 | 2455 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2456 | PyObject *resultobj; |
2457 | wxSize *arg1 = (wxSize *) 0 ; | |
2458 | wxSize *arg2 = 0 ; | |
2459 | wxSize temp2 ; | |
2460 | PyObject * obj0 = 0 ; | |
2461 | PyObject * obj1 = 0 ; | |
2462 | char *kwnames[] = { | |
2463 | (char *) "self",(char *) "sz", NULL | |
2464 | }; | |
2465 | ||
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2469 | { | |
2470 | arg2 = &temp2; | |
2471 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2472 | } | |
2473 | { | |
2474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2475 | (arg1)->IncTo((wxSize const &)*arg2); | |
2476 | ||
2477 | wxPyEndAllowThreads(__tstate); | |
2478 | if (PyErr_Occurred()) SWIG_fail; | |
2479 | } | |
2480 | Py_INCREF(Py_None); resultobj = Py_None; | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | return NULL; | |
2484 | } | |
2485 | ||
2486 | ||
c32bde28 | 2487 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2488 | PyObject *resultobj; |
2489 | wxSize *arg1 = (wxSize *) 0 ; | |
2490 | wxSize *arg2 = 0 ; | |
2491 | wxSize temp2 ; | |
2492 | PyObject * obj0 = 0 ; | |
2493 | PyObject * obj1 = 0 ; | |
2494 | char *kwnames[] = { | |
2495 | (char *) "self",(char *) "sz", NULL | |
2496 | }; | |
2497 | ||
2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2501 | { | |
2502 | arg2 = &temp2; | |
2503 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2504 | } | |
2505 | { | |
2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2507 | (arg1)->DecTo((wxSize const &)*arg2); | |
2508 | ||
2509 | wxPyEndAllowThreads(__tstate); | |
2510 | if (PyErr_Occurred()) SWIG_fail; | |
2511 | } | |
2512 | Py_INCREF(Py_None); resultobj = Py_None; | |
2513 | return resultobj; | |
2514 | fail: | |
2515 | return NULL; | |
2516 | } | |
2517 | ||
2518 | ||
c32bde28 | 2519 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2520 | PyObject *resultobj; |
2521 | wxSize *arg1 = (wxSize *) 0 ; | |
2522 | int arg2 ; | |
2523 | int arg3 ; | |
2524 | PyObject * obj0 = 0 ; | |
2525 | PyObject * obj1 = 0 ; | |
2526 | PyObject * obj2 = 0 ; | |
2527 | char *kwnames[] = { | |
2528 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2529 | }; | |
2530 | ||
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2534 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2535 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2536 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2537 | if (PyErr_Occurred()) SWIG_fail; |
2538 | { | |
2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2540 | (arg1)->Set(arg2,arg3); | |
2541 | ||
2542 | wxPyEndAllowThreads(__tstate); | |
2543 | if (PyErr_Occurred()) SWIG_fail; | |
2544 | } | |
2545 | Py_INCREF(Py_None); resultobj = Py_None; | |
2546 | return resultobj; | |
2547 | fail: | |
2548 | return NULL; | |
2549 | } | |
2550 | ||
2551 | ||
c32bde28 | 2552 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2553 | PyObject *resultobj; |
2554 | wxSize *arg1 = (wxSize *) 0 ; | |
2555 | int arg2 ; | |
2556 | PyObject * obj0 = 0 ; | |
2557 | PyObject * obj1 = 0 ; | |
2558 | char *kwnames[] = { | |
2559 | (char *) "self",(char *) "w", NULL | |
2560 | }; | |
2561 | ||
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2565 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2566 | if (PyErr_Occurred()) SWIG_fail; |
2567 | { | |
2568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2569 | (arg1)->SetWidth(arg2); | |
2570 | ||
2571 | wxPyEndAllowThreads(__tstate); | |
2572 | if (PyErr_Occurred()) SWIG_fail; | |
2573 | } | |
2574 | Py_INCREF(Py_None); resultobj = Py_None; | |
2575 | return resultobj; | |
2576 | fail: | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
c32bde28 | 2581 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2582 | PyObject *resultobj; |
2583 | wxSize *arg1 = (wxSize *) 0 ; | |
2584 | int arg2 ; | |
2585 | PyObject * obj0 = 0 ; | |
2586 | PyObject * obj1 = 0 ; | |
2587 | char *kwnames[] = { | |
2588 | (char *) "self",(char *) "h", NULL | |
2589 | }; | |
2590 | ||
2591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2594 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2595 | if (PyErr_Occurred()) SWIG_fail; |
2596 | { | |
2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2598 | (arg1)->SetHeight(arg2); | |
2599 | ||
2600 | wxPyEndAllowThreads(__tstate); | |
2601 | if (PyErr_Occurred()) SWIG_fail; | |
2602 | } | |
2603 | Py_INCREF(Py_None); resultobj = Py_None; | |
2604 | return resultobj; | |
2605 | fail: | |
2606 | return NULL; | |
2607 | } | |
2608 | ||
2609 | ||
c32bde28 | 2610 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2611 | PyObject *resultobj; |
2612 | wxSize *arg1 = (wxSize *) 0 ; | |
2613 | int result; | |
2614 | PyObject * obj0 = 0 ; | |
2615 | char *kwnames[] = { | |
2616 | (char *) "self", NULL | |
2617 | }; | |
2618 | ||
2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2622 | { | |
2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2624 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2625 | ||
2626 | wxPyEndAllowThreads(__tstate); | |
2627 | if (PyErr_Occurred()) SWIG_fail; | |
2628 | } | |
c32bde28 | 2629 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2630 | return resultobj; |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
c32bde28 | 2636 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2637 | PyObject *resultobj; |
2638 | wxSize *arg1 = (wxSize *) 0 ; | |
2639 | int result; | |
2640 | PyObject * obj0 = 0 ; | |
2641 | char *kwnames[] = { | |
2642 | (char *) "self", NULL | |
2643 | }; | |
2644 | ||
2645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2648 | { | |
2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2650 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2651 | ||
2652 | wxPyEndAllowThreads(__tstate); | |
2653 | if (PyErr_Occurred()) SWIG_fail; | |
2654 | } | |
c32bde28 | 2655 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2656 | return resultobj; |
2657 | fail: | |
2658 | return NULL; | |
2659 | } | |
2660 | ||
2661 | ||
c32bde28 | 2662 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2663 | PyObject *resultobj; |
2664 | wxSize *arg1 = (wxSize *) 0 ; | |
2665 | bool result; | |
2666 | PyObject * obj0 = 0 ; | |
2667 | char *kwnames[] = { | |
2668 | (char *) "self", NULL | |
2669 | }; | |
2670 | ||
2671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2674 | { | |
2675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2676 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2677 | ||
2678 | wxPyEndAllowThreads(__tstate); | |
2679 | if (PyErr_Occurred()) SWIG_fail; | |
2680 | } | |
2681 | { | |
2682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2683 | } | |
2684 | return resultobj; | |
2685 | fail: | |
2686 | return NULL; | |
2687 | } | |
2688 | ||
2689 | ||
c32bde28 | 2690 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2691 | PyObject *resultobj; |
2692 | wxSize *arg1 = (wxSize *) 0 ; | |
2693 | wxSize *arg2 = 0 ; | |
2694 | wxSize temp2 ; | |
2695 | PyObject * obj0 = 0 ; | |
2696 | PyObject * obj1 = 0 ; | |
2697 | char *kwnames[] = { | |
2698 | (char *) "self",(char *) "size", NULL | |
2699 | }; | |
2700 | ||
2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2704 | { | |
2705 | arg2 = &temp2; | |
2706 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2707 | } | |
2708 | { | |
2709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2710 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2711 | ||
2712 | wxPyEndAllowThreads(__tstate); | |
2713 | if (PyErr_Occurred()) SWIG_fail; | |
2714 | } | |
2715 | Py_INCREF(Py_None); resultobj = Py_None; | |
2716 | return resultobj; | |
2717 | fail: | |
2718 | return NULL; | |
2719 | } | |
2720 | ||
2721 | ||
c32bde28 | 2722 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2723 | PyObject *resultobj; |
2724 | wxSize *arg1 = (wxSize *) 0 ; | |
2725 | PyObject *result; | |
2726 | PyObject * obj0 = 0 ; | |
2727 | char *kwnames[] = { | |
2728 | (char *) "self", NULL | |
2729 | }; | |
2730 | ||
2731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2734 | { | |
2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2736 | result = (PyObject *)wxSize_Get(arg1); | |
2737 | ||
2738 | wxPyEndAllowThreads(__tstate); | |
2739 | if (PyErr_Occurred()) SWIG_fail; | |
2740 | } | |
2741 | resultobj = result; | |
2742 | return resultobj; | |
2743 | fail: | |
2744 | return NULL; | |
2745 | } | |
2746 | ||
2747 | ||
c32bde28 | 2748 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2749 | PyObject *obj; |
2750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2751 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2752 | Py_INCREF(obj); | |
2753 | return Py_BuildValue((char *)""); | |
2754 | } | |
c32bde28 | 2755 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2756 | PyObject *resultobj; |
2757 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2758 | double arg2 ; | |
2759 | PyObject * obj0 = 0 ; | |
2760 | PyObject * obj1 = 0 ; | |
2761 | char *kwnames[] = { | |
2762 | (char *) "self",(char *) "x", NULL | |
2763 | }; | |
2764 | ||
2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2768 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2769 | if (PyErr_Occurred()) SWIG_fail; |
2770 | if (arg1) (arg1)->x = arg2; | |
2771 | ||
2772 | Py_INCREF(Py_None); resultobj = Py_None; | |
2773 | return resultobj; | |
2774 | fail: | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
c32bde28 | 2779 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2780 | PyObject *resultobj; |
2781 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2782 | double result; | |
2783 | PyObject * obj0 = 0 ; | |
2784 | char *kwnames[] = { | |
2785 | (char *) "self", NULL | |
2786 | }; | |
2787 | ||
2788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2791 | result = (double) ((arg1)->x); | |
2792 | ||
c32bde28 | 2793 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2794 | return resultobj; |
2795 | fail: | |
2796 | return NULL; | |
2797 | } | |
2798 | ||
2799 | ||
c32bde28 | 2800 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2801 | PyObject *resultobj; |
2802 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2803 | double arg2 ; | |
2804 | PyObject * obj0 = 0 ; | |
2805 | PyObject * obj1 = 0 ; | |
2806 | char *kwnames[] = { | |
2807 | (char *) "self",(char *) "y", NULL | |
2808 | }; | |
2809 | ||
2810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2813 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2814 | if (PyErr_Occurred()) SWIG_fail; |
2815 | if (arg1) (arg1)->y = arg2; | |
2816 | ||
2817 | Py_INCREF(Py_None); resultobj = Py_None; | |
2818 | return resultobj; | |
2819 | fail: | |
2820 | return NULL; | |
2821 | } | |
2822 | ||
2823 | ||
c32bde28 | 2824 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2825 | PyObject *resultobj; |
2826 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2827 | double result; | |
2828 | PyObject * obj0 = 0 ; | |
2829 | char *kwnames[] = { | |
2830 | (char *) "self", NULL | |
2831 | }; | |
2832 | ||
2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2836 | result = (double) ((arg1)->y); | |
2837 | ||
c32bde28 | 2838 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2839 | return resultobj; |
2840 | fail: | |
2841 | return NULL; | |
2842 | } | |
2843 | ||
2844 | ||
c32bde28 | 2845 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2846 | PyObject *resultobj; |
2847 | double arg1 = (double) 0.0 ; | |
2848 | double arg2 = (double) 0.0 ; | |
2849 | wxRealPoint *result; | |
2850 | PyObject * obj0 = 0 ; | |
2851 | PyObject * obj1 = 0 ; | |
2852 | char *kwnames[] = { | |
2853 | (char *) "x",(char *) "y", NULL | |
2854 | }; | |
2855 | ||
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2857 | if (obj0) { | |
c32bde28 | 2858 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
2859 | if (PyErr_Occurred()) SWIG_fail; |
2860 | } | |
2861 | if (obj1) { | |
c32bde28 | 2862 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2863 | if (PyErr_Occurred()) SWIG_fail; |
2864 | } | |
2865 | { | |
2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2867 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2868 | ||
2869 | wxPyEndAllowThreads(__tstate); | |
2870 | if (PyErr_Occurred()) SWIG_fail; | |
2871 | } | |
2872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2873 | return resultobj; | |
2874 | fail: | |
2875 | return NULL; | |
2876 | } | |
2877 | ||
2878 | ||
c32bde28 | 2879 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2880 | PyObject *resultobj; |
2881 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2882 | PyObject * obj0 = 0 ; | |
2883 | char *kwnames[] = { | |
2884 | (char *) "self", NULL | |
2885 | }; | |
2886 | ||
2887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2890 | { | |
2891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2892 | delete arg1; | |
2893 | ||
2894 | wxPyEndAllowThreads(__tstate); | |
2895 | if (PyErr_Occurred()) SWIG_fail; | |
2896 | } | |
2897 | Py_INCREF(Py_None); resultobj = Py_None; | |
2898 | return resultobj; | |
2899 | fail: | |
2900 | return NULL; | |
2901 | } | |
2902 | ||
2903 | ||
c32bde28 | 2904 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2905 | PyObject *resultobj; |
2906 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2907 | wxRealPoint *arg2 = 0 ; | |
2908 | bool result; | |
2909 | wxRealPoint temp2 ; | |
2910 | PyObject * obj0 = 0 ; | |
2911 | PyObject * obj1 = 0 ; | |
2912 | char *kwnames[] = { | |
2913 | (char *) "self",(char *) "pt", NULL | |
2914 | }; | |
2915 | ||
2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2919 | { | |
2920 | arg2 = &temp2; | |
2921 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2922 | } | |
2923 | { | |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2925 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2926 | ||
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
2930 | { | |
2931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2932 | } | |
2933 | return resultobj; | |
2934 | fail: | |
2935 | return NULL; | |
2936 | } | |
2937 | ||
2938 | ||
c32bde28 | 2939 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2940 | PyObject *resultobj; |
2941 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2942 | wxRealPoint *arg2 = 0 ; | |
2943 | bool result; | |
2944 | wxRealPoint temp2 ; | |
2945 | PyObject * obj0 = 0 ; | |
2946 | PyObject * obj1 = 0 ; | |
2947 | char *kwnames[] = { | |
2948 | (char *) "self",(char *) "pt", NULL | |
2949 | }; | |
2950 | ||
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2954 | { | |
2955 | arg2 = &temp2; | |
2956 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2957 | } | |
2958 | { | |
2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2960 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2961 | ||
2962 | wxPyEndAllowThreads(__tstate); | |
2963 | if (PyErr_Occurred()) SWIG_fail; | |
2964 | } | |
2965 | { | |
2966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2967 | } | |
2968 | return resultobj; | |
2969 | fail: | |
2970 | return NULL; | |
2971 | } | |
2972 | ||
2973 | ||
c32bde28 | 2974 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2975 | PyObject *resultobj; |
2976 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2977 | wxRealPoint *arg2 = 0 ; | |
2978 | wxRealPoint result; | |
2979 | wxRealPoint temp2 ; | |
2980 | PyObject * obj0 = 0 ; | |
2981 | PyObject * obj1 = 0 ; | |
2982 | char *kwnames[] = { | |
2983 | (char *) "self",(char *) "pt", NULL | |
2984 | }; | |
2985 | ||
2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2989 | { | |
2990 | arg2 = &temp2; | |
2991 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2992 | } | |
2993 | { | |
2994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2995 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
2996 | ||
2997 | wxPyEndAllowThreads(__tstate); | |
2998 | if (PyErr_Occurred()) SWIG_fail; | |
2999 | } | |
3000 | { | |
3001 | wxRealPoint * resultptr; | |
3002 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3004 | } | |
3005 | return resultobj; | |
3006 | fail: | |
3007 | return NULL; | |
3008 | } | |
3009 | ||
3010 | ||
c32bde28 | 3011 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3012 | PyObject *resultobj; |
3013 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3014 | wxRealPoint *arg2 = 0 ; | |
3015 | wxRealPoint result; | |
3016 | wxRealPoint temp2 ; | |
3017 | PyObject * obj0 = 0 ; | |
3018 | PyObject * obj1 = 0 ; | |
3019 | char *kwnames[] = { | |
3020 | (char *) "self",(char *) "pt", NULL | |
3021 | }; | |
3022 | ||
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3026 | { | |
3027 | arg2 = &temp2; | |
3028 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3029 | } | |
3030 | { | |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3032 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
3035 | if (PyErr_Occurred()) SWIG_fail; | |
3036 | } | |
3037 | { | |
3038 | wxRealPoint * resultptr; | |
3039 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3041 | } | |
3042 | return resultobj; | |
3043 | fail: | |
3044 | return NULL; | |
3045 | } | |
3046 | ||
3047 | ||
c32bde28 | 3048 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3049 | PyObject *resultobj; |
3050 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3051 | double arg2 ; | |
3052 | double arg3 ; | |
3053 | PyObject * obj0 = 0 ; | |
3054 | PyObject * obj1 = 0 ; | |
3055 | PyObject * obj2 = 0 ; | |
3056 | char *kwnames[] = { | |
3057 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3058 | }; | |
3059 | ||
3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3063 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 3064 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3065 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
3066 | if (PyErr_Occurred()) SWIG_fail; |
3067 | { | |
3068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3069 | wxRealPoint_Set(arg1,arg2,arg3); | |
3070 | ||
3071 | wxPyEndAllowThreads(__tstate); | |
3072 | if (PyErr_Occurred()) SWIG_fail; | |
3073 | } | |
3074 | Py_INCREF(Py_None); resultobj = Py_None; | |
3075 | return resultobj; | |
3076 | fail: | |
3077 | return NULL; | |
3078 | } | |
3079 | ||
3080 | ||
c32bde28 | 3081 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3082 | PyObject *resultobj; |
3083 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3084 | PyObject *result; | |
3085 | PyObject * obj0 = 0 ; | |
3086 | char *kwnames[] = { | |
3087 | (char *) "self", NULL | |
3088 | }; | |
3089 | ||
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
3091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3093 | { | |
3094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3095 | result = (PyObject *)wxRealPoint_Get(arg1); | |
3096 | ||
3097 | wxPyEndAllowThreads(__tstate); | |
3098 | if (PyErr_Occurred()) SWIG_fail; | |
3099 | } | |
3100 | resultobj = result; | |
3101 | return resultobj; | |
3102 | fail: | |
3103 | return NULL; | |
3104 | } | |
3105 | ||
3106 | ||
c32bde28 | 3107 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3108 | PyObject *obj; |
3109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3110 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3111 | Py_INCREF(obj); | |
3112 | return Py_BuildValue((char *)""); | |
3113 | } | |
c32bde28 | 3114 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3115 | PyObject *resultobj; |
3116 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3117 | int arg2 ; | |
3118 | PyObject * obj0 = 0 ; | |
3119 | PyObject * obj1 = 0 ; | |
3120 | char *kwnames[] = { | |
3121 | (char *) "self",(char *) "x", NULL | |
3122 | }; | |
3123 | ||
3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
3125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3127 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3128 | if (PyErr_Occurred()) SWIG_fail; |
3129 | if (arg1) (arg1)->x = arg2; | |
3130 | ||
3131 | Py_INCREF(Py_None); resultobj = Py_None; | |
3132 | return resultobj; | |
3133 | fail: | |
3134 | return NULL; | |
3135 | } | |
3136 | ||
3137 | ||
c32bde28 | 3138 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3139 | PyObject *resultobj; |
3140 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3141 | int result; | |
3142 | PyObject * obj0 = 0 ; | |
3143 | char *kwnames[] = { | |
3144 | (char *) "self", NULL | |
3145 | }; | |
3146 | ||
3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
3148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3150 | result = (int) ((arg1)->x); | |
3151 | ||
c32bde28 | 3152 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3153 | return resultobj; |
3154 | fail: | |
3155 | return NULL; | |
3156 | } | |
3157 | ||
3158 | ||
c32bde28 | 3159 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3160 | PyObject *resultobj; |
3161 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3162 | int arg2 ; | |
3163 | PyObject * obj0 = 0 ; | |
3164 | PyObject * obj1 = 0 ; | |
3165 | char *kwnames[] = { | |
3166 | (char *) "self",(char *) "y", NULL | |
3167 | }; | |
3168 | ||
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
3170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3172 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3173 | if (PyErr_Occurred()) SWIG_fail; |
3174 | if (arg1) (arg1)->y = arg2; | |
3175 | ||
3176 | Py_INCREF(Py_None); resultobj = Py_None; | |
3177 | return resultobj; | |
3178 | fail: | |
3179 | return NULL; | |
3180 | } | |
3181 | ||
3182 | ||
c32bde28 | 3183 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3184 | PyObject *resultobj; |
3185 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3186 | int result; | |
3187 | PyObject * obj0 = 0 ; | |
3188 | char *kwnames[] = { | |
3189 | (char *) "self", NULL | |
3190 | }; | |
3191 | ||
3192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
3193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3195 | result = (int) ((arg1)->y); | |
3196 | ||
c32bde28 | 3197 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3198 | return resultobj; |
3199 | fail: | |
3200 | return NULL; | |
3201 | } | |
3202 | ||
3203 | ||
c32bde28 | 3204 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3205 | PyObject *resultobj; |
3206 | int arg1 = (int) 0 ; | |
3207 | int arg2 = (int) 0 ; | |
3208 | wxPoint *result; | |
3209 | PyObject * obj0 = 0 ; | |
3210 | PyObject * obj1 = 0 ; | |
3211 | char *kwnames[] = { | |
3212 | (char *) "x",(char *) "y", NULL | |
3213 | }; | |
3214 | ||
3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
3216 | if (obj0) { | |
c32bde28 | 3217 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3218 | if (PyErr_Occurred()) SWIG_fail; |
3219 | } | |
3220 | if (obj1) { | |
c32bde28 | 3221 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3222 | if (PyErr_Occurred()) SWIG_fail; |
3223 | } | |
3224 | { | |
3225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3226 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3227 | ||
3228 | wxPyEndAllowThreads(__tstate); | |
3229 | if (PyErr_Occurred()) SWIG_fail; | |
3230 | } | |
3231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3232 | return resultobj; | |
3233 | fail: | |
3234 | return NULL; | |
3235 | } | |
3236 | ||
3237 | ||
c32bde28 | 3238 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3239 | PyObject *resultobj; |
3240 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3241 | PyObject * obj0 = 0 ; | |
3242 | char *kwnames[] = { | |
3243 | (char *) "self", NULL | |
3244 | }; | |
3245 | ||
3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3249 | { | |
3250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3251 | delete arg1; | |
3252 | ||
3253 | wxPyEndAllowThreads(__tstate); | |
3254 | if (PyErr_Occurred()) SWIG_fail; | |
3255 | } | |
3256 | Py_INCREF(Py_None); resultobj = Py_None; | |
3257 | return resultobj; | |
3258 | fail: | |
3259 | return NULL; | |
3260 | } | |
3261 | ||
3262 | ||
c32bde28 | 3263 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3264 | PyObject *resultobj; |
3265 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3266 | wxPoint *arg2 = 0 ; | |
3267 | bool result; | |
3268 | wxPoint temp2 ; | |
3269 | PyObject * obj0 = 0 ; | |
3270 | PyObject * obj1 = 0 ; | |
3271 | char *kwnames[] = { | |
3272 | (char *) "self",(char *) "pt", NULL | |
3273 | }; | |
3274 | ||
3275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3278 | { | |
3279 | arg2 = &temp2; | |
3280 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3281 | } | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | { | |
3290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3291 | } | |
3292 | return resultobj; | |
3293 | fail: | |
3294 | return NULL; | |
3295 | } | |
3296 | ||
3297 | ||
c32bde28 | 3298 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3299 | PyObject *resultobj; |
3300 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3301 | wxPoint *arg2 = 0 ; | |
3302 | bool result; | |
3303 | wxPoint temp2 ; | |
3304 | PyObject * obj0 = 0 ; | |
3305 | PyObject * obj1 = 0 ; | |
3306 | char *kwnames[] = { | |
3307 | (char *) "self",(char *) "pt", NULL | |
3308 | }; | |
3309 | ||
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3313 | { | |
3314 | arg2 = &temp2; | |
3315 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3316 | } | |
3317 | { | |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | { | |
3325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3326 | } | |
3327 | return resultobj; | |
3328 | fail: | |
3329 | return NULL; | |
3330 | } | |
3331 | ||
3332 | ||
c32bde28 | 3333 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3334 | PyObject *resultobj; |
3335 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3336 | wxPoint *arg2 = 0 ; | |
3337 | wxPoint result; | |
3338 | wxPoint temp2 ; | |
3339 | PyObject * obj0 = 0 ; | |
3340 | PyObject * obj1 = 0 ; | |
3341 | char *kwnames[] = { | |
3342 | (char *) "self",(char *) "pt", NULL | |
3343 | }; | |
3344 | ||
3345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3348 | { | |
3349 | arg2 = &temp2; | |
3350 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3351 | } | |
3352 | { | |
3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3354 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3355 | ||
3356 | wxPyEndAllowThreads(__tstate); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
3359 | { | |
3360 | wxPoint * resultptr; | |
3361 | resultptr = new wxPoint((wxPoint &) result); | |
3362 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3363 | } | |
3364 | return resultobj; | |
3365 | fail: | |
3366 | return NULL; | |
3367 | } | |
3368 | ||
3369 | ||
c32bde28 | 3370 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3371 | PyObject *resultobj; |
3372 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3373 | wxPoint *arg2 = 0 ; | |
3374 | wxPoint result; | |
3375 | wxPoint temp2 ; | |
3376 | PyObject * obj0 = 0 ; | |
3377 | PyObject * obj1 = 0 ; | |
3378 | char *kwnames[] = { | |
3379 | (char *) "self",(char *) "pt", NULL | |
3380 | }; | |
3381 | ||
3382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3385 | { | |
3386 | arg2 = &temp2; | |
3387 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3388 | } | |
3389 | { | |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
3396 | { | |
3397 | wxPoint * resultptr; | |
3398 | resultptr = new wxPoint((wxPoint &) result); | |
3399 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3400 | } | |
3401 | return resultobj; | |
3402 | fail: | |
3403 | return NULL; | |
3404 | } | |
3405 | ||
3406 | ||
c32bde28 | 3407 | static PyObject *_wrap_Point___iadd__(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___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3421 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3422 | { |
3423 | arg2 = &temp2; | |
3424 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3425 | } | |
3426 | { | |
3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3428 | { | |
3429 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3430 | result = (wxPoint *) &_result_ref; | |
3431 | } | |
3432 | ||
3433 | wxPyEndAllowThreads(__tstate); | |
3434 | if (PyErr_Occurred()) SWIG_fail; | |
3435 | } | |
c32bde28 | 3436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3437 | return resultobj; |
3438 | fail: | |
3439 | return NULL; | |
3440 | } | |
3441 | ||
3442 | ||
c32bde28 | 3443 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3444 | PyObject *resultobj; |
3445 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3446 | wxPoint *arg2 = 0 ; | |
3447 | wxPoint *result; | |
3448 | wxPoint temp2 ; | |
3449 | PyObject * obj0 = 0 ; | |
3450 | PyObject * obj1 = 0 ; | |
3451 | char *kwnames[] = { | |
3452 | (char *) "self",(char *) "pt", NULL | |
3453 | }; | |
3454 | ||
3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3457 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3458 | { |
3459 | arg2 = &temp2; | |
3460 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3461 | } | |
3462 | { | |
3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3464 | { | |
3465 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3466 | result = (wxPoint *) &_result_ref; | |
3467 | } | |
3468 | ||
3469 | wxPyEndAllowThreads(__tstate); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
c32bde28 | 3472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3473 | return resultobj; |
3474 | fail: | |
3475 | return NULL; | |
3476 | } | |
3477 | ||
3478 | ||
c32bde28 | 3479 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3480 | PyObject *resultobj; |
3481 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3482 | long arg2 ; | |
3483 | long arg3 ; | |
3484 | PyObject * obj0 = 0 ; | |
3485 | PyObject * obj1 = 0 ; | |
3486 | PyObject * obj2 = 0 ; | |
3487 | char *kwnames[] = { | |
3488 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3489 | }; | |
3490 | ||
3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3494 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3495 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3496 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3497 | if (PyErr_Occurred()) SWIG_fail; |
3498 | { | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | wxPoint_Set(arg1,arg2,arg3); | |
3501 | ||
3502 | wxPyEndAllowThreads(__tstate); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
3504 | } | |
3505 | Py_INCREF(Py_None); resultobj = Py_None; | |
3506 | return resultobj; | |
3507 | fail: | |
3508 | return NULL; | |
3509 | } | |
3510 | ||
3511 | ||
c32bde28 | 3512 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3513 | PyObject *resultobj; |
3514 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3515 | PyObject *result; | |
3516 | PyObject * obj0 = 0 ; | |
3517 | char *kwnames[] = { | |
3518 | (char *) "self", NULL | |
3519 | }; | |
3520 | ||
3521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | result = (PyObject *)wxPoint_Get(arg1); | |
3527 | ||
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
3531 | resultobj = result; | |
3532 | return resultobj; | |
3533 | fail: | |
3534 | return NULL; | |
3535 | } | |
3536 | ||
3537 | ||
c32bde28 | 3538 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3539 | PyObject *obj; |
3540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3541 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3542 | Py_INCREF(obj); | |
3543 | return Py_BuildValue((char *)""); | |
3544 | } | |
c32bde28 | 3545 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3546 | PyObject *resultobj; |
3547 | int arg1 = (int) 0 ; | |
3548 | int arg2 = (int) 0 ; | |
3549 | int arg3 = (int) 0 ; | |
3550 | int arg4 = (int) 0 ; | |
3551 | wxRect *result; | |
3552 | PyObject * obj0 = 0 ; | |
3553 | PyObject * obj1 = 0 ; | |
3554 | PyObject * obj2 = 0 ; | |
3555 | PyObject * obj3 = 0 ; | |
3556 | char *kwnames[] = { | |
3557 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3558 | }; | |
3559 | ||
3560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3561 | if (obj0) { | |
c32bde28 | 3562 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3563 | if (PyErr_Occurred()) SWIG_fail; |
3564 | } | |
3565 | if (obj1) { | |
c32bde28 | 3566 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3567 | if (PyErr_Occurred()) SWIG_fail; |
3568 | } | |
3569 | if (obj2) { | |
c32bde28 | 3570 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3571 | if (PyErr_Occurred()) SWIG_fail; |
3572 | } | |
3573 | if (obj3) { | |
c32bde28 | 3574 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3575 | if (PyErr_Occurred()) SWIG_fail; |
3576 | } | |
3577 | { | |
3578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3579 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3580 | ||
3581 | wxPyEndAllowThreads(__tstate); | |
3582 | if (PyErr_Occurred()) SWIG_fail; | |
3583 | } | |
3584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3585 | return resultobj; | |
3586 | fail: | |
3587 | return NULL; | |
3588 | } | |
3589 | ||
3590 | ||
c32bde28 | 3591 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3592 | PyObject *resultobj; |
3593 | wxPoint *arg1 = 0 ; | |
3594 | wxPoint *arg2 = 0 ; | |
3595 | wxRect *result; | |
3596 | wxPoint temp1 ; | |
3597 | wxPoint temp2 ; | |
3598 | PyObject * obj0 = 0 ; | |
3599 | PyObject * obj1 = 0 ; | |
3600 | char *kwnames[] = { | |
3601 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3602 | }; | |
3603 | ||
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3605 | { | |
3606 | arg1 = &temp1; | |
3607 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3608 | } | |
3609 | { | |
3610 | arg2 = &temp2; | |
3611 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3612 | } | |
3613 | { | |
3614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3615 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3616 | ||
3617 | wxPyEndAllowThreads(__tstate); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
3620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3621 | return resultobj; | |
3622 | fail: | |
3623 | return NULL; | |
3624 | } | |
3625 | ||
3626 | ||
c32bde28 | 3627 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3628 | PyObject *resultobj; |
3629 | wxPoint *arg1 = 0 ; | |
3630 | wxSize *arg2 = 0 ; | |
3631 | wxRect *result; | |
3632 | wxPoint temp1 ; | |
3633 | wxSize temp2 ; | |
3634 | PyObject * obj0 = 0 ; | |
3635 | PyObject * obj1 = 0 ; | |
3636 | char *kwnames[] = { | |
3637 | (char *) "pos",(char *) "size", NULL | |
3638 | }; | |
3639 | ||
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3641 | { | |
3642 | arg1 = &temp1; | |
3643 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3644 | } | |
3645 | { | |
3646 | arg2 = &temp2; | |
3647 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3648 | } | |
3649 | { | |
3650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3651 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3652 | ||
3653 | wxPyEndAllowThreads(__tstate); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
3655 | } | |
3656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3657 | return resultobj; | |
3658 | fail: | |
3659 | return NULL; | |
3660 | } | |
3661 | ||
3662 | ||
c32bde28 | 3663 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3664 | PyObject *resultobj; |
3665 | wxRect *arg1 = (wxRect *) 0 ; | |
3666 | PyObject * obj0 = 0 ; | |
3667 | char *kwnames[] = { | |
3668 | (char *) "self", NULL | |
3669 | }; | |
3670 | ||
3671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | delete arg1; | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
3681 | Py_INCREF(Py_None); resultobj = Py_None; | |
3682 | return resultobj; | |
3683 | fail: | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
c32bde28 | 3688 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3689 | PyObject *resultobj; |
3690 | wxRect *arg1 = (wxRect *) 0 ; | |
3691 | int result; | |
3692 | PyObject * obj0 = 0 ; | |
3693 | char *kwnames[] = { | |
3694 | (char *) "self", NULL | |
3695 | }; | |
3696 | ||
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3700 | { | |
3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3702 | result = (int)((wxRect const *)arg1)->GetX(); | |
3703 | ||
3704 | wxPyEndAllowThreads(__tstate); | |
3705 | if (PyErr_Occurred()) SWIG_fail; | |
3706 | } | |
c32bde28 | 3707 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3708 | return resultobj; |
3709 | fail: | |
3710 | return NULL; | |
3711 | } | |
3712 | ||
3713 | ||
c32bde28 | 3714 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3715 | PyObject *resultobj; |
3716 | wxRect *arg1 = (wxRect *) 0 ; | |
3717 | int arg2 ; | |
3718 | PyObject * obj0 = 0 ; | |
3719 | PyObject * obj1 = 0 ; | |
3720 | char *kwnames[] = { | |
3721 | (char *) "self",(char *) "x", NULL | |
3722 | }; | |
3723 | ||
3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3727 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3728 | if (PyErr_Occurred()) SWIG_fail; |
3729 | { | |
3730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3731 | (arg1)->SetX(arg2); | |
3732 | ||
3733 | wxPyEndAllowThreads(__tstate); | |
3734 | if (PyErr_Occurred()) SWIG_fail; | |
3735 | } | |
3736 | Py_INCREF(Py_None); resultobj = Py_None; | |
3737 | return resultobj; | |
3738 | fail: | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
c32bde28 | 3743 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3744 | PyObject *resultobj; |
3745 | wxRect *arg1 = (wxRect *) 0 ; | |
3746 | int result; | |
3747 | PyObject * obj0 = 0 ; | |
3748 | char *kwnames[] = { | |
3749 | (char *) "self", NULL | |
3750 | }; | |
3751 | ||
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3755 | { | |
3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3757 | result = (int)(arg1)->GetY(); | |
3758 | ||
3759 | wxPyEndAllowThreads(__tstate); | |
3760 | if (PyErr_Occurred()) SWIG_fail; | |
3761 | } | |
c32bde28 | 3762 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3763 | return resultobj; |
3764 | fail: | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
c32bde28 | 3769 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3770 | PyObject *resultobj; |
3771 | wxRect *arg1 = (wxRect *) 0 ; | |
3772 | int arg2 ; | |
3773 | PyObject * obj0 = 0 ; | |
3774 | PyObject * obj1 = 0 ; | |
3775 | char *kwnames[] = { | |
3776 | (char *) "self",(char *) "y", NULL | |
3777 | }; | |
3778 | ||
3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3782 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3783 | if (PyErr_Occurred()) SWIG_fail; |
3784 | { | |
3785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3786 | (arg1)->SetY(arg2); | |
3787 | ||
3788 | wxPyEndAllowThreads(__tstate); | |
3789 | if (PyErr_Occurred()) SWIG_fail; | |
3790 | } | |
3791 | Py_INCREF(Py_None); resultobj = Py_None; | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
c32bde28 | 3798 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3799 | PyObject *resultobj; |
3800 | wxRect *arg1 = (wxRect *) 0 ; | |
3801 | int result; | |
3802 | PyObject * obj0 = 0 ; | |
3803 | char *kwnames[] = { | |
3804 | (char *) "self", NULL | |
3805 | }; | |
3806 | ||
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3810 | { | |
3811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3812 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3813 | ||
3814 | wxPyEndAllowThreads(__tstate); | |
3815 | if (PyErr_Occurred()) SWIG_fail; | |
3816 | } | |
c32bde28 | 3817 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3818 | return resultobj; |
3819 | fail: | |
3820 | return NULL; | |
3821 | } | |
3822 | ||
3823 | ||
c32bde28 | 3824 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3825 | PyObject *resultobj; |
3826 | wxRect *arg1 = (wxRect *) 0 ; | |
3827 | int arg2 ; | |
3828 | PyObject * obj0 = 0 ; | |
3829 | PyObject * obj1 = 0 ; | |
3830 | char *kwnames[] = { | |
3831 | (char *) "self",(char *) "w", NULL | |
3832 | }; | |
3833 | ||
3834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3837 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3838 | if (PyErr_Occurred()) SWIG_fail; |
3839 | { | |
3840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3841 | (arg1)->SetWidth(arg2); | |
3842 | ||
3843 | wxPyEndAllowThreads(__tstate); | |
3844 | if (PyErr_Occurred()) SWIG_fail; | |
3845 | } | |
3846 | Py_INCREF(Py_None); resultobj = Py_None; | |
3847 | return resultobj; | |
3848 | fail: | |
3849 | return NULL; | |
3850 | } | |
3851 | ||
3852 | ||
c32bde28 | 3853 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3854 | PyObject *resultobj; |
3855 | wxRect *arg1 = (wxRect *) 0 ; | |
3856 | int result; | |
3857 | PyObject * obj0 = 0 ; | |
3858 | char *kwnames[] = { | |
3859 | (char *) "self", NULL | |
3860 | }; | |
3861 | ||
3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3865 | { | |
3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3867 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3868 | ||
3869 | wxPyEndAllowThreads(__tstate); | |
3870 | if (PyErr_Occurred()) SWIG_fail; | |
3871 | } | |
c32bde28 | 3872 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3873 | return resultobj; |
3874 | fail: | |
3875 | return NULL; | |
3876 | } | |
3877 | ||
3878 | ||
c32bde28 | 3879 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3880 | PyObject *resultobj; |
3881 | wxRect *arg1 = (wxRect *) 0 ; | |
3882 | int arg2 ; | |
3883 | PyObject * obj0 = 0 ; | |
3884 | PyObject * obj1 = 0 ; | |
3885 | char *kwnames[] = { | |
3886 | (char *) "self",(char *) "h", NULL | |
3887 | }; | |
3888 | ||
3889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3892 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3893 | if (PyErr_Occurred()) SWIG_fail; |
3894 | { | |
3895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3896 | (arg1)->SetHeight(arg2); | |
3897 | ||
3898 | wxPyEndAllowThreads(__tstate); | |
3899 | if (PyErr_Occurred()) SWIG_fail; | |
3900 | } | |
3901 | Py_INCREF(Py_None); resultobj = Py_None; | |
3902 | return resultobj; | |
3903 | fail: | |
3904 | return NULL; | |
3905 | } | |
3906 | ||
3907 | ||
c32bde28 | 3908 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3909 | PyObject *resultobj; |
3910 | wxRect *arg1 = (wxRect *) 0 ; | |
3911 | wxPoint result; | |
3912 | PyObject * obj0 = 0 ; | |
3913 | char *kwnames[] = { | |
3914 | (char *) "self", NULL | |
3915 | }; | |
3916 | ||
3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3920 | { | |
3921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3922 | result = ((wxRect const *)arg1)->GetPosition(); | |
3923 | ||
3924 | wxPyEndAllowThreads(__tstate); | |
3925 | if (PyErr_Occurred()) SWIG_fail; | |
3926 | } | |
3927 | { | |
3928 | wxPoint * resultptr; | |
3929 | resultptr = new wxPoint((wxPoint &) result); | |
3930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3931 | } | |
3932 | return resultobj; | |
3933 | fail: | |
3934 | return NULL; | |
3935 | } | |
3936 | ||
3937 | ||
c32bde28 | 3938 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3939 | PyObject *resultobj; |
3940 | wxRect *arg1 = (wxRect *) 0 ; | |
3941 | wxPoint *arg2 = 0 ; | |
3942 | wxPoint temp2 ; | |
3943 | PyObject * obj0 = 0 ; | |
3944 | PyObject * obj1 = 0 ; | |
3945 | char *kwnames[] = { | |
3946 | (char *) "self",(char *) "p", NULL | |
3947 | }; | |
3948 | ||
3949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3952 | { | |
3953 | arg2 = &temp2; | |
3954 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3955 | } | |
3956 | { | |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3958 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
3961 | if (PyErr_Occurred()) SWIG_fail; | |
3962 | } | |
3963 | Py_INCREF(Py_None); resultobj = Py_None; | |
3964 | return resultobj; | |
3965 | fail: | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
c32bde28 | 3970 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3971 | PyObject *resultobj; |
3972 | wxRect *arg1 = (wxRect *) 0 ; | |
3973 | wxSize result; | |
3974 | PyObject * obj0 = 0 ; | |
3975 | char *kwnames[] = { | |
3976 | (char *) "self", NULL | |
3977 | }; | |
3978 | ||
3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3982 | { | |
3983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3984 | result = ((wxRect const *)arg1)->GetSize(); | |
3985 | ||
3986 | wxPyEndAllowThreads(__tstate); | |
3987 | if (PyErr_Occurred()) SWIG_fail; | |
3988 | } | |
3989 | { | |
3990 | wxSize * resultptr; | |
3991 | resultptr = new wxSize((wxSize &) result); | |
3992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3993 | } | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | return NULL; | |
3997 | } | |
3998 | ||
3999 | ||
c32bde28 | 4000 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4001 | PyObject *resultobj; |
4002 | wxRect *arg1 = (wxRect *) 0 ; | |
4003 | wxSize *arg2 = 0 ; | |
4004 | wxSize temp2 ; | |
4005 | PyObject * obj0 = 0 ; | |
4006 | PyObject * obj1 = 0 ; | |
4007 | char *kwnames[] = { | |
4008 | (char *) "self",(char *) "s", NULL | |
4009 | }; | |
4010 | ||
4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4014 | { | |
4015 | arg2 = &temp2; | |
4016 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4017 | } | |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | (arg1)->SetSize((wxSize const &)*arg2); | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4025 | Py_INCREF(Py_None); resultobj = Py_None; | |
4026 | return resultobj; | |
4027 | fail: | |
4028 | return NULL; | |
4029 | } | |
4030 | ||
4031 | ||
c32bde28 | 4032 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4033 | PyObject *resultobj; |
4034 | wxRect *arg1 = (wxRect *) 0 ; | |
4035 | wxPoint result; | |
4036 | PyObject * obj0 = 0 ; | |
4037 | char *kwnames[] = { | |
4038 | (char *) "self", NULL | |
4039 | }; | |
4040 | ||
4041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
4042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4044 | { | |
4045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4046 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4047 | ||
4048 | wxPyEndAllowThreads(__tstate); | |
4049 | if (PyErr_Occurred()) SWIG_fail; | |
4050 | } | |
4051 | { | |
4052 | wxPoint * resultptr; | |
4053 | resultptr = new wxPoint((wxPoint &) result); | |
4054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4055 | } | |
4056 | return resultobj; | |
4057 | fail: | |
4058 | return NULL; | |
4059 | } | |
4060 | ||
4061 | ||
c32bde28 | 4062 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4063 | PyObject *resultobj; |
4064 | wxRect *arg1 = (wxRect *) 0 ; | |
4065 | wxPoint *arg2 = 0 ; | |
4066 | wxPoint temp2 ; | |
4067 | PyObject * obj0 = 0 ; | |
4068 | PyObject * obj1 = 0 ; | |
4069 | char *kwnames[] = { | |
4070 | (char *) "self",(char *) "p", NULL | |
4071 | }; | |
4072 | ||
4073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
4074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4076 | { | |
4077 | arg2 = &temp2; | |
4078 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4079 | } | |
4080 | { | |
4081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4082 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | Py_INCREF(Py_None); resultobj = Py_None; | |
4088 | return resultobj; | |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
c32bde28 | 4094 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4095 | PyObject *resultobj; |
4096 | wxRect *arg1 = (wxRect *) 0 ; | |
4097 | wxPoint result; | |
4098 | PyObject * obj0 = 0 ; | |
4099 | char *kwnames[] = { | |
4100 | (char *) "self", NULL | |
4101 | }; | |
4102 | ||
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
4104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4106 | { | |
4107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4108 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4109 | ||
4110 | wxPyEndAllowThreads(__tstate); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | } | |
4113 | { | |
4114 | wxPoint * resultptr; | |
4115 | resultptr = new wxPoint((wxPoint &) result); | |
4116 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4117 | } | |
4118 | return resultobj; | |
4119 | fail: | |
4120 | return NULL; | |
4121 | } | |
4122 | ||
4123 | ||
c32bde28 | 4124 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4125 | PyObject *resultobj; |
4126 | wxRect *arg1 = (wxRect *) 0 ; | |
4127 | wxPoint *arg2 = 0 ; | |
4128 | wxPoint temp2 ; | |
4129 | PyObject * obj0 = 0 ; | |
4130 | PyObject * obj1 = 0 ; | |
4131 | char *kwnames[] = { | |
4132 | (char *) "self",(char *) "p", NULL | |
4133 | }; | |
4134 | ||
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
4136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4138 | { | |
4139 | arg2 = &temp2; | |
4140 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4141 | } | |
4142 | { | |
4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4144 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4145 | ||
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
4149 | Py_INCREF(Py_None); resultobj = Py_None; | |
4150 | return resultobj; | |
4151 | fail: | |
4152 | return NULL; | |
4153 | } | |
4154 | ||
4155 | ||
c32bde28 | 4156 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4157 | PyObject *resultobj; |
4158 | wxRect *arg1 = (wxRect *) 0 ; | |
4159 | int result; | |
4160 | PyObject * obj0 = 0 ; | |
4161 | char *kwnames[] = { | |
4162 | (char *) "self", NULL | |
4163 | }; | |
4164 | ||
4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
4166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4168 | { | |
4169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4170 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4171 | ||
4172 | wxPyEndAllowThreads(__tstate); | |
4173 | if (PyErr_Occurred()) SWIG_fail; | |
4174 | } | |
c32bde28 | 4175 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4176 | return resultobj; |
4177 | fail: | |
4178 | return NULL; | |
4179 | } | |
4180 | ||
4181 | ||
c32bde28 | 4182 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4183 | PyObject *resultobj; |
4184 | wxRect *arg1 = (wxRect *) 0 ; | |
4185 | int result; | |
4186 | PyObject * obj0 = 0 ; | |
4187 | char *kwnames[] = { | |
4188 | (char *) "self", NULL | |
4189 | }; | |
4190 | ||
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
4192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4194 | { | |
4195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4196 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4197 | ||
4198 | wxPyEndAllowThreads(__tstate); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
4200 | } | |
c32bde28 | 4201 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4202 | return resultobj; |
4203 | fail: | |
4204 | return NULL; | |
4205 | } | |
4206 | ||
4207 | ||
c32bde28 | 4208 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4209 | PyObject *resultobj; |
4210 | wxRect *arg1 = (wxRect *) 0 ; | |
4211 | int result; | |
4212 | PyObject * obj0 = 0 ; | |
4213 | char *kwnames[] = { | |
4214 | (char *) "self", NULL | |
4215 | }; | |
4216 | ||
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
4218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4220 | { | |
4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4222 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
4226 | } | |
c32bde28 | 4227 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4228 | return resultobj; |
4229 | fail: | |
4230 | return NULL; | |
4231 | } | |
4232 | ||
4233 | ||
c32bde28 | 4234 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4235 | PyObject *resultobj; |
4236 | wxRect *arg1 = (wxRect *) 0 ; | |
4237 | int result; | |
4238 | PyObject * obj0 = 0 ; | |
4239 | char *kwnames[] = { | |
4240 | (char *) "self", NULL | |
4241 | }; | |
4242 | ||
4243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4246 | { | |
4247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4248 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4249 | ||
4250 | wxPyEndAllowThreads(__tstate); | |
4251 | if (PyErr_Occurred()) SWIG_fail; | |
4252 | } | |
c32bde28 | 4253 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4254 | return resultobj; |
4255 | fail: | |
4256 | return NULL; | |
4257 | } | |
4258 | ||
4259 | ||
c32bde28 | 4260 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4261 | PyObject *resultobj; |
4262 | wxRect *arg1 = (wxRect *) 0 ; | |
4263 | int arg2 ; | |
4264 | PyObject * obj0 = 0 ; | |
4265 | PyObject * obj1 = 0 ; | |
4266 | char *kwnames[] = { | |
4267 | (char *) "self",(char *) "left", NULL | |
4268 | }; | |
4269 | ||
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4273 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4274 | if (PyErr_Occurred()) SWIG_fail; |
4275 | { | |
4276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4277 | (arg1)->SetLeft(arg2); | |
4278 | ||
4279 | wxPyEndAllowThreads(__tstate); | |
4280 | if (PyErr_Occurred()) SWIG_fail; | |
4281 | } | |
4282 | Py_INCREF(Py_None); resultobj = Py_None; | |
4283 | return resultobj; | |
4284 | fail: | |
4285 | return NULL; | |
4286 | } | |
4287 | ||
4288 | ||
c32bde28 | 4289 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4290 | PyObject *resultobj; |
4291 | wxRect *arg1 = (wxRect *) 0 ; | |
4292 | int arg2 ; | |
4293 | PyObject * obj0 = 0 ; | |
4294 | PyObject * obj1 = 0 ; | |
4295 | char *kwnames[] = { | |
4296 | (char *) "self",(char *) "right", NULL | |
4297 | }; | |
4298 | ||
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4302 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4303 | if (PyErr_Occurred()) SWIG_fail; |
4304 | { | |
4305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4306 | (arg1)->SetRight(arg2); | |
4307 | ||
4308 | wxPyEndAllowThreads(__tstate); | |
4309 | if (PyErr_Occurred()) SWIG_fail; | |
4310 | } | |
4311 | Py_INCREF(Py_None); resultobj = Py_None; | |
4312 | return resultobj; | |
4313 | fail: | |
4314 | return NULL; | |
4315 | } | |
4316 | ||
4317 | ||
c32bde28 | 4318 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4319 | PyObject *resultobj; |
4320 | wxRect *arg1 = (wxRect *) 0 ; | |
4321 | int arg2 ; | |
4322 | PyObject * obj0 = 0 ; | |
4323 | PyObject * obj1 = 0 ; | |
4324 | char *kwnames[] = { | |
4325 | (char *) "self",(char *) "top", NULL | |
4326 | }; | |
4327 | ||
4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4331 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4332 | if (PyErr_Occurred()) SWIG_fail; |
4333 | { | |
4334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4335 | (arg1)->SetTop(arg2); | |
4336 | ||
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
4339 | } | |
4340 | Py_INCREF(Py_None); resultobj = Py_None; | |
4341 | return resultobj; | |
4342 | fail: | |
4343 | return NULL; | |
4344 | } | |
4345 | ||
4346 | ||
c32bde28 | 4347 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4348 | PyObject *resultobj; |
4349 | wxRect *arg1 = (wxRect *) 0 ; | |
4350 | int arg2 ; | |
4351 | PyObject * obj0 = 0 ; | |
4352 | PyObject * obj1 = 0 ; | |
4353 | char *kwnames[] = { | |
4354 | (char *) "self",(char *) "bottom", NULL | |
4355 | }; | |
4356 | ||
4357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4360 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4361 | if (PyErr_Occurred()) SWIG_fail; |
4362 | { | |
4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4364 | (arg1)->SetBottom(arg2); | |
4365 | ||
4366 | wxPyEndAllowThreads(__tstate); | |
4367 | if (PyErr_Occurred()) SWIG_fail; | |
4368 | } | |
4369 | Py_INCREF(Py_None); resultobj = Py_None; | |
4370 | return resultobj; | |
4371 | fail: | |
4372 | return NULL; | |
4373 | } | |
4374 | ||
4375 | ||
c32bde28 | 4376 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4377 | PyObject *resultobj; |
4378 | wxRect *arg1 = (wxRect *) 0 ; | |
4379 | int arg2 ; | |
4380 | int arg3 ; | |
4381 | wxRect *result; | |
4382 | PyObject * obj0 = 0 ; | |
4383 | PyObject * obj1 = 0 ; | |
4384 | PyObject * obj2 = 0 ; | |
4385 | char *kwnames[] = { | |
4386 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4387 | }; | |
4388 | ||
4389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4392 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4393 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4394 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4395 | if (PyErr_Occurred()) SWIG_fail; |
4396 | { | |
4397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4398 | { | |
4399 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4400 | result = (wxRect *) &_result_ref; | |
4401 | } | |
4402 | ||
4403 | wxPyEndAllowThreads(__tstate); | |
4404 | if (PyErr_Occurred()) SWIG_fail; | |
4405 | } | |
4406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4407 | return resultobj; | |
4408 | fail: | |
4409 | return NULL; | |
4410 | } | |
4411 | ||
4412 | ||
c32bde28 | 4413 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4414 | PyObject *resultobj; |
4415 | wxRect *arg1 = (wxRect *) 0 ; | |
4416 | int arg2 ; | |
4417 | int arg3 ; | |
4418 | wxRect *result; | |
4419 | PyObject * obj0 = 0 ; | |
4420 | PyObject * obj1 = 0 ; | |
4421 | PyObject * obj2 = 0 ; | |
4422 | char *kwnames[] = { | |
4423 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4424 | }; | |
4425 | ||
4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4429 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4430 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4431 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4432 | if (PyErr_Occurred()) SWIG_fail; |
4433 | { | |
4434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4435 | { | |
4436 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4437 | result = (wxRect *) &_result_ref; | |
4438 | } | |
4439 | ||
4440 | wxPyEndAllowThreads(__tstate); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4444 | return resultobj; | |
4445 | fail: | |
4446 | return NULL; | |
4447 | } | |
4448 | ||
4449 | ||
c32bde28 | 4450 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4451 | PyObject *resultobj; |
4452 | wxRect *arg1 = (wxRect *) 0 ; | |
4453 | int arg2 ; | |
4454 | int arg3 ; | |
4455 | PyObject * obj0 = 0 ; | |
4456 | PyObject * obj1 = 0 ; | |
4457 | PyObject * obj2 = 0 ; | |
4458 | char *kwnames[] = { | |
4459 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4460 | }; | |
4461 | ||
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4465 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4466 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4467 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4468 | if (PyErr_Occurred()) SWIG_fail; |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | (arg1)->Offset(arg2,arg3); | |
4472 | ||
4473 | wxPyEndAllowThreads(__tstate); | |
4474 | if (PyErr_Occurred()) SWIG_fail; | |
4475 | } | |
4476 | Py_INCREF(Py_None); resultobj = Py_None; | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
c32bde28 | 4483 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4484 | PyObject *resultobj; |
4485 | wxRect *arg1 = (wxRect *) 0 ; | |
4486 | wxPoint *arg2 = 0 ; | |
4487 | wxPoint temp2 ; | |
4488 | PyObject * obj0 = 0 ; | |
4489 | PyObject * obj1 = 0 ; | |
4490 | char *kwnames[] = { | |
4491 | (char *) "self",(char *) "pt", NULL | |
4492 | }; | |
4493 | ||
4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4497 | { | |
4498 | arg2 = &temp2; | |
4499 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4500 | } | |
4501 | { | |
4502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4503 | (arg1)->Offset((wxPoint const &)*arg2); | |
4504 | ||
4505 | wxPyEndAllowThreads(__tstate); | |
4506 | if (PyErr_Occurred()) SWIG_fail; | |
4507 | } | |
4508 | Py_INCREF(Py_None); resultobj = Py_None; | |
4509 | return resultobj; | |
4510 | fail: | |
4511 | return NULL; | |
4512 | } | |
4513 | ||
4514 | ||
c32bde28 | 4515 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4516 | PyObject *resultobj; |
4517 | wxRect *arg1 = (wxRect *) 0 ; | |
4518 | wxRect *arg2 = 0 ; | |
4519 | wxRect *result; | |
4520 | wxRect temp2 ; | |
4521 | PyObject * obj0 = 0 ; | |
4522 | PyObject * obj1 = 0 ; | |
4523 | char *kwnames[] = { | |
4524 | (char *) "self",(char *) "rect", NULL | |
4525 | }; | |
4526 | ||
4527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4530 | { | |
4531 | arg2 = &temp2; | |
4532 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4533 | } | |
4534 | { | |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4536 | { | |
4537 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4538 | result = (wxRect *) &_result_ref; | |
4539 | } | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
4542 | if (PyErr_Occurred()) SWIG_fail; | |
4543 | } | |
4544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4545 | return resultobj; | |
4546 | fail: | |
4547 | return NULL; | |
4548 | } | |
4549 | ||
4550 | ||
c32bde28 | 4551 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4552 | PyObject *resultobj; |
4553 | wxRect *arg1 = (wxRect *) 0 ; | |
4554 | wxRect *arg2 = 0 ; | |
4555 | wxRect result; | |
4556 | wxRect temp2 ; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | PyObject * obj1 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self",(char *) "rect", NULL | |
4561 | }; | |
4562 | ||
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4566 | { | |
4567 | arg2 = &temp2; | |
4568 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4569 | } | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
4576 | } | |
4577 | { | |
4578 | wxRect * resultptr; | |
4579 | resultptr = new wxRect((wxRect &) result); | |
4580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4581 | } | |
4582 | return resultobj; | |
4583 | fail: | |
4584 | return NULL; | |
4585 | } | |
4586 | ||
4587 | ||
c32bde28 | 4588 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4589 | PyObject *resultobj; |
4590 | wxRect *arg1 = (wxRect *) 0 ; | |
4591 | wxRect *arg2 = 0 ; | |
4592 | wxRect *result; | |
4593 | wxRect temp2 ; | |
4594 | PyObject * obj0 = 0 ; | |
4595 | PyObject * obj1 = 0 ; | |
4596 | char *kwnames[] = { | |
4597 | (char *) "self",(char *) "rect", NULL | |
4598 | }; | |
4599 | ||
4600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
c32bde28 | 4602 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
4603 | { |
4604 | arg2 = &temp2; | |
4605 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4606 | } | |
4607 | { | |
4608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4609 | { | |
4610 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4611 | result = (wxRect *) &_result_ref; | |
4612 | } | |
4613 | ||
4614 | wxPyEndAllowThreads(__tstate); | |
4615 | if (PyErr_Occurred()) SWIG_fail; | |
4616 | } | |
c32bde28 | 4617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
4618 | return resultobj; |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
c32bde28 | 4624 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4625 | PyObject *resultobj; |
4626 | wxRect *arg1 = (wxRect *) 0 ; | |
4627 | wxRect *arg2 = 0 ; | |
4628 | bool result; | |
4629 | wxRect temp2 ; | |
4630 | PyObject * obj0 = 0 ; | |
4631 | PyObject * obj1 = 0 ; | |
4632 | char *kwnames[] = { | |
4633 | (char *) "self",(char *) "rect", NULL | |
4634 | }; | |
4635 | ||
4636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4639 | { | |
4640 | arg2 = &temp2; | |
4641 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4642 | } | |
4643 | { | |
4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4645 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4646 | ||
4647 | wxPyEndAllowThreads(__tstate); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | { | |
4651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4652 | } | |
4653 | return resultobj; | |
4654 | fail: | |
4655 | return NULL; | |
4656 | } | |
4657 | ||
4658 | ||
c32bde28 | 4659 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4660 | PyObject *resultobj; |
4661 | wxRect *arg1 = (wxRect *) 0 ; | |
4662 | wxRect *arg2 = 0 ; | |
4663 | bool result; | |
4664 | wxRect temp2 ; | |
4665 | PyObject * obj0 = 0 ; | |
4666 | PyObject * obj1 = 0 ; | |
4667 | char *kwnames[] = { | |
4668 | (char *) "self",(char *) "rect", NULL | |
4669 | }; | |
4670 | ||
4671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4674 | { | |
4675 | arg2 = &temp2; | |
4676 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4677 | } | |
4678 | { | |
4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4680 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4681 | ||
4682 | wxPyEndAllowThreads(__tstate); | |
4683 | if (PyErr_Occurred()) SWIG_fail; | |
4684 | } | |
4685 | { | |
4686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4687 | } | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
c32bde28 | 4694 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4695 | PyObject *resultobj; |
4696 | wxRect *arg1 = (wxRect *) 0 ; | |
4697 | int arg2 ; | |
4698 | int arg3 ; | |
4699 | bool result; | |
4700 | PyObject * obj0 = 0 ; | |
4701 | PyObject * obj1 = 0 ; | |
4702 | PyObject * obj2 = 0 ; | |
4703 | char *kwnames[] = { | |
4704 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4705 | }; | |
4706 | ||
4707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4710 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4711 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4712 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4713 | if (PyErr_Occurred()) SWIG_fail; |
4714 | { | |
4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4716 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4717 | ||
4718 | wxPyEndAllowThreads(__tstate); | |
4719 | if (PyErr_Occurred()) SWIG_fail; | |
4720 | } | |
4721 | { | |
4722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4723 | } | |
4724 | return resultobj; | |
4725 | fail: | |
4726 | return NULL; | |
4727 | } | |
4728 | ||
4729 | ||
c32bde28 | 4730 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4731 | PyObject *resultobj; |
4732 | wxRect *arg1 = (wxRect *) 0 ; | |
4733 | wxPoint *arg2 = 0 ; | |
4734 | bool result; | |
4735 | wxPoint temp2 ; | |
4736 | PyObject * obj0 = 0 ; | |
4737 | PyObject * obj1 = 0 ; | |
4738 | char *kwnames[] = { | |
4739 | (char *) "self",(char *) "pt", NULL | |
4740 | }; | |
4741 | ||
4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4745 | { | |
4746 | arg2 = &temp2; | |
4747 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4748 | } | |
4749 | { | |
4750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4751 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4752 | ||
4753 | wxPyEndAllowThreads(__tstate); | |
4754 | if (PyErr_Occurred()) SWIG_fail; | |
4755 | } | |
4756 | { | |
4757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4758 | } | |
4759 | return resultobj; | |
4760 | fail: | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
c32bde28 | 4765 | static PyObject *_wrap_Rect_Intersects(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_Intersects",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)->Intersects((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 | ||
c32bde28 | 4800 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4801 | PyObject *resultobj; |
4802 | wxRect *arg1 = (wxRect *) 0 ; | |
4803 | int arg2 ; | |
4804 | PyObject * obj0 = 0 ; | |
4805 | PyObject * obj1 = 0 ; | |
4806 | char *kwnames[] = { | |
4807 | (char *) "self",(char *) "x", NULL | |
4808 | }; | |
4809 | ||
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4813 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4814 | if (PyErr_Occurred()) SWIG_fail; |
4815 | if (arg1) (arg1)->x = arg2; | |
4816 | ||
4817 | Py_INCREF(Py_None); resultobj = Py_None; | |
4818 | return resultobj; | |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
c32bde28 | 4824 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4825 | PyObject *resultobj; |
4826 | wxRect *arg1 = (wxRect *) 0 ; | |
4827 | int result; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | char *kwnames[] = { | |
4830 | (char *) "self", NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4836 | result = (int) ((arg1)->x); | |
4837 | ||
c32bde28 | 4838 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4839 | return resultobj; |
4840 | fail: | |
4841 | return NULL; | |
4842 | } | |
4843 | ||
4844 | ||
c32bde28 | 4845 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4846 | PyObject *resultobj; |
4847 | wxRect *arg1 = (wxRect *) 0 ; | |
4848 | int arg2 ; | |
4849 | PyObject * obj0 = 0 ; | |
4850 | PyObject * obj1 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self",(char *) "y", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4858 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4859 | if (PyErr_Occurred()) SWIG_fail; |
4860 | if (arg1) (arg1)->y = arg2; | |
4861 | ||
4862 | Py_INCREF(Py_None); resultobj = Py_None; | |
4863 | return resultobj; | |
4864 | fail: | |
4865 | return NULL; | |
4866 | } | |
4867 | ||
4868 | ||
c32bde28 | 4869 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4870 | PyObject *resultobj; |
4871 | wxRect *arg1 = (wxRect *) 0 ; | |
4872 | int result; | |
4873 | PyObject * obj0 = 0 ; | |
4874 | char *kwnames[] = { | |
4875 | (char *) "self", NULL | |
4876 | }; | |
4877 | ||
4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4881 | result = (int) ((arg1)->y); | |
4882 | ||
c32bde28 | 4883 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4884 | return resultobj; |
4885 | fail: | |
4886 | return NULL; | |
4887 | } | |
4888 | ||
4889 | ||
c32bde28 | 4890 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4891 | PyObject *resultobj; |
4892 | wxRect *arg1 = (wxRect *) 0 ; | |
4893 | int arg2 ; | |
4894 | PyObject * obj0 = 0 ; | |
4895 | PyObject * obj1 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self",(char *) "width", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4903 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4904 | if (PyErr_Occurred()) SWIG_fail; |
4905 | if (arg1) (arg1)->width = arg2; | |
4906 | ||
4907 | Py_INCREF(Py_None); resultobj = Py_None; | |
4908 | return resultobj; | |
4909 | fail: | |
4910 | return NULL; | |
4911 | } | |
4912 | ||
4913 | ||
c32bde28 | 4914 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4915 | PyObject *resultobj; |
4916 | wxRect *arg1 = (wxRect *) 0 ; | |
4917 | int result; | |
4918 | PyObject * obj0 = 0 ; | |
4919 | char *kwnames[] = { | |
4920 | (char *) "self", NULL | |
4921 | }; | |
4922 | ||
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4926 | result = (int) ((arg1)->width); | |
4927 | ||
c32bde28 | 4928 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4929 | return resultobj; |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
c32bde28 | 4935 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4936 | PyObject *resultobj; |
4937 | wxRect *arg1 = (wxRect *) 0 ; | |
4938 | int arg2 ; | |
4939 | PyObject * obj0 = 0 ; | |
4940 | PyObject * obj1 = 0 ; | |
4941 | char *kwnames[] = { | |
4942 | (char *) "self",(char *) "height", NULL | |
4943 | }; | |
4944 | ||
4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4948 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4949 | if (PyErr_Occurred()) SWIG_fail; |
4950 | if (arg1) (arg1)->height = arg2; | |
4951 | ||
4952 | Py_INCREF(Py_None); resultobj = Py_None; | |
4953 | return resultobj; | |
4954 | fail: | |
4955 | return NULL; | |
4956 | } | |
4957 | ||
4958 | ||
c32bde28 | 4959 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4960 | PyObject *resultobj; |
4961 | wxRect *arg1 = (wxRect *) 0 ; | |
4962 | int result; | |
4963 | PyObject * obj0 = 0 ; | |
4964 | char *kwnames[] = { | |
4965 | (char *) "self", NULL | |
4966 | }; | |
4967 | ||
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4971 | result = (int) ((arg1)->height); | |
4972 | ||
c32bde28 | 4973 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4974 | return resultobj; |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
c32bde28 | 4980 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4981 | PyObject *resultobj; |
4982 | wxRect *arg1 = (wxRect *) 0 ; | |
4983 | int arg2 = (int) 0 ; | |
4984 | int arg3 = (int) 0 ; | |
4985 | int arg4 = (int) 0 ; | |
4986 | int arg5 = (int) 0 ; | |
4987 | PyObject * obj0 = 0 ; | |
4988 | PyObject * obj1 = 0 ; | |
4989 | PyObject * obj2 = 0 ; | |
4990 | PyObject * obj3 = 0 ; | |
4991 | PyObject * obj4 = 0 ; | |
4992 | char *kwnames[] = { | |
4993 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4994 | }; | |
4995 | ||
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4999 | if (obj1) { | |
c32bde28 | 5000 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5001 | if (PyErr_Occurred()) SWIG_fail; |
5002 | } | |
5003 | if (obj2) { | |
c32bde28 | 5004 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5005 | if (PyErr_Occurred()) SWIG_fail; |
5006 | } | |
5007 | if (obj3) { | |
c32bde28 | 5008 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5009 | if (PyErr_Occurred()) SWIG_fail; |
5010 | } | |
5011 | if (obj4) { | |
c32bde28 | 5012 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5013 | if (PyErr_Occurred()) SWIG_fail; |
5014 | } | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5018 | ||
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | Py_INCREF(Py_None); resultobj = Py_None; | |
5023 | return resultobj; | |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
c32bde28 | 5029 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5030 | PyObject *resultobj; |
5031 | wxRect *arg1 = (wxRect *) 0 ; | |
5032 | PyObject *result; | |
5033 | PyObject * obj0 = 0 ; | |
5034 | char *kwnames[] = { | |
5035 | (char *) "self", NULL | |
5036 | }; | |
5037 | ||
5038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
5039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5041 | { | |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | result = (PyObject *)wxRect_Get(arg1); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
5048 | resultobj = result; | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
c32bde28 | 5055 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5056 | PyObject *obj; |
5057 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5058 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5059 | Py_INCREF(obj); | |
5060 | return Py_BuildValue((char *)""); | |
5061 | } | |
c32bde28 | 5062 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5063 | PyObject *resultobj; |
5064 | wxRect *arg1 = (wxRect *) 0 ; | |
5065 | wxRect *arg2 = (wxRect *) 0 ; | |
5066 | PyObject *result; | |
5067 | PyObject * obj0 = 0 ; | |
5068 | PyObject * obj1 = 0 ; | |
5069 | char *kwnames[] = { | |
5070 | (char *) "r1",(char *) "r2", NULL | |
5071 | }; | |
5072 | ||
5073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5076 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5078 | { | |
0439c23b | 5079 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5081 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5082 | ||
5083 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5084 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5085 | } |
5086 | resultobj = result; | |
5087 | return resultobj; | |
5088 | fail: | |
5089 | return NULL; | |
5090 | } | |
5091 | ||
5092 | ||
c32bde28 | 5093 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5094 | PyObject *resultobj; |
5095 | double arg1 = (double) 0.0 ; | |
5096 | double arg2 = (double) 0.0 ; | |
5097 | wxPoint2D *result; | |
5098 | PyObject * obj0 = 0 ; | |
5099 | PyObject * obj1 = 0 ; | |
5100 | char *kwnames[] = { | |
5101 | (char *) "x",(char *) "y", NULL | |
5102 | }; | |
5103 | ||
5104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
5105 | if (obj0) { | |
c32bde28 | 5106 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
5107 | if (PyErr_Occurred()) SWIG_fail; |
5108 | } | |
5109 | if (obj1) { | |
c32bde28 | 5110 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5111 | if (PyErr_Occurred()) SWIG_fail; |
5112 | } | |
5113 | { | |
5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5115 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5116 | ||
5117 | wxPyEndAllowThreads(__tstate); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
5119 | } | |
5120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5121 | return resultobj; | |
5122 | fail: | |
5123 | return NULL; | |
5124 | } | |
5125 | ||
5126 | ||
c32bde28 | 5127 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5128 | PyObject *resultobj; |
5129 | wxPoint2D *arg1 = 0 ; | |
5130 | wxPoint2D *result; | |
5131 | wxPoint2D temp1 ; | |
5132 | PyObject * obj0 = 0 ; | |
5133 | char *kwnames[] = { | |
5134 | (char *) "pt", NULL | |
5135 | }; | |
5136 | ||
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5138 | { | |
5139 | arg1 = &temp1; | |
5140 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5141 | } | |
5142 | { | |
5143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5144 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5145 | ||
5146 | wxPyEndAllowThreads(__tstate); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
c32bde28 | 5156 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5157 | PyObject *resultobj; |
5158 | wxPoint *arg1 = 0 ; | |
5159 | wxPoint2D *result; | |
5160 | wxPoint temp1 ; | |
5161 | PyObject * obj0 = 0 ; | |
5162 | char *kwnames[] = { | |
5163 | (char *) "pt", NULL | |
5164 | }; | |
5165 | ||
5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5167 | { | |
5168 | arg1 = &temp1; | |
5169 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5170 | } | |
5171 | { | |
5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5173 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5174 | ||
5175 | wxPyEndAllowThreads(__tstate); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | } | |
5178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5179 | return resultobj; | |
5180 | fail: | |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
c32bde28 | 5185 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5186 | PyObject *resultobj; |
5187 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5188 | int *arg2 = (int *) 0 ; | |
5189 | int *arg3 = (int *) 0 ; | |
5190 | int temp2 ; | |
c32bde28 | 5191 | int res2 = 0 ; |
d55e5bfc | 5192 | int temp3 ; |
c32bde28 | 5193 | int res3 = 0 ; |
d55e5bfc RD |
5194 | PyObject * obj0 = 0 ; |
5195 | char *kwnames[] = { | |
5196 | (char *) "self", NULL | |
5197 | }; | |
5198 | ||
c32bde28 RD |
5199 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5200 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
5202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5204 | { | |
5205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5206 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5207 | ||
5208 | wxPyEndAllowThreads(__tstate); | |
5209 | if (PyErr_Occurred()) SWIG_fail; | |
5210 | } | |
5211 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5212 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5213 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5214 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5215 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5216 | return resultobj; |
5217 | fail: | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
c32bde28 | 5222 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5223 | PyObject *resultobj; |
5224 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5225 | int *arg2 = (int *) 0 ; | |
5226 | int *arg3 = (int *) 0 ; | |
5227 | int temp2 ; | |
c32bde28 | 5228 | int res2 = 0 ; |
d55e5bfc | 5229 | int temp3 ; |
c32bde28 | 5230 | int res3 = 0 ; |
d55e5bfc RD |
5231 | PyObject * obj0 = 0 ; |
5232 | char *kwnames[] = { | |
5233 | (char *) "self", NULL | |
5234 | }; | |
5235 | ||
c32bde28 RD |
5236 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5237 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
5239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
5248 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5249 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5250 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5251 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5252 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5253 | return resultobj; |
5254 | fail: | |
5255 | return NULL; | |
5256 | } | |
5257 | ||
5258 | ||
c32bde28 | 5259 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5260 | PyObject *resultobj; |
5261 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5262 | double result; | |
5263 | PyObject * obj0 = 0 ; | |
5264 | char *kwnames[] = { | |
5265 | (char *) "self", NULL | |
5266 | }; | |
5267 | ||
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5274 | ||
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
5277 | } | |
c32bde28 | 5278 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5279 | return resultobj; |
5280 | fail: | |
5281 | return NULL; | |
5282 | } | |
5283 | ||
5284 | ||
c32bde28 | 5285 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5286 | PyObject *resultobj; |
5287 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5288 | double result; | |
5289 | PyObject * obj0 = 0 ; | |
5290 | char *kwnames[] = { | |
5291 | (char *) "self", NULL | |
5292 | }; | |
5293 | ||
5294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5297 | { | |
5298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5299 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5300 | ||
5301 | wxPyEndAllowThreads(__tstate); | |
5302 | if (PyErr_Occurred()) SWIG_fail; | |
5303 | } | |
c32bde28 | 5304 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5305 | return resultobj; |
5306 | fail: | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
c32bde28 | 5311 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5312 | PyObject *resultobj; |
5313 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5314 | double arg2 ; | |
5315 | PyObject * obj0 = 0 ; | |
5316 | PyObject * obj1 = 0 ; | |
5317 | char *kwnames[] = { | |
5318 | (char *) "self",(char *) "length", NULL | |
5319 | }; | |
5320 | ||
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5324 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5325 | if (PyErr_Occurred()) SWIG_fail; |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | (arg1)->SetVectorLength(arg2); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
5333 | Py_INCREF(Py_None); resultobj = Py_None; | |
5334 | return resultobj; | |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
c32bde28 | 5340 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5341 | PyObject *resultobj; |
5342 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5343 | double arg2 ; | |
5344 | PyObject * obj0 = 0 ; | |
5345 | PyObject * obj1 = 0 ; | |
5346 | char *kwnames[] = { | |
5347 | (char *) "self",(char *) "degrees", NULL | |
5348 | }; | |
5349 | ||
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5353 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5354 | if (PyErr_Occurred()) SWIG_fail; |
5355 | { | |
5356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5357 | (arg1)->SetVectorAngle(arg2); | |
5358 | ||
5359 | wxPyEndAllowThreads(__tstate); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
5362 | Py_INCREF(Py_None); resultobj = Py_None; | |
5363 | return resultobj; | |
5364 | fail: | |
5365 | return NULL; | |
5366 | } | |
5367 | ||
5368 | ||
c32bde28 | 5369 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5370 | PyObject *resultobj; |
5371 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5372 | wxPoint2D *arg2 = 0 ; | |
5373 | double result; | |
5374 | wxPoint2D temp2 ; | |
5375 | PyObject * obj0 = 0 ; | |
5376 | PyObject * obj1 = 0 ; | |
5377 | char *kwnames[] = { | |
5378 | (char *) "self",(char *) "pt", NULL | |
5379 | }; | |
5380 | ||
5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5384 | { | |
5385 | arg2 = &temp2; | |
5386 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5387 | } | |
5388 | { | |
5389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5390 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5391 | ||
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
c32bde28 | 5395 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5396 | return resultobj; |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
c32bde28 | 5402 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5403 | PyObject *resultobj; |
5404 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5405 | wxPoint2D *arg2 = 0 ; | |
5406 | double result; | |
5407 | wxPoint2D temp2 ; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | PyObject * obj1 = 0 ; | |
5410 | char *kwnames[] = { | |
5411 | (char *) "self",(char *) "pt", NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5417 | { | |
5418 | arg2 = &temp2; | |
5419 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5420 | } | |
5421 | { | |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
c32bde28 | 5428 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5429 | return resultobj; |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
c32bde28 | 5435 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5436 | PyObject *resultobj; |
5437 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5438 | wxPoint2D *arg2 = 0 ; | |
5439 | double result; | |
5440 | wxPoint2D temp2 ; | |
5441 | PyObject * obj0 = 0 ; | |
5442 | PyObject * obj1 = 0 ; | |
5443 | char *kwnames[] = { | |
5444 | (char *) "self",(char *) "vec", NULL | |
5445 | }; | |
5446 | ||
5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5450 | { | |
5451 | arg2 = &temp2; | |
5452 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5453 | } | |
5454 | { | |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
c32bde28 | 5461 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5462 | return resultobj; |
5463 | fail: | |
5464 | return NULL; | |
5465 | } | |
5466 | ||
5467 | ||
c32bde28 | 5468 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5469 | PyObject *resultobj; |
5470 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5471 | wxPoint2D *arg2 = 0 ; | |
5472 | double result; | |
5473 | wxPoint2D temp2 ; | |
5474 | PyObject * obj0 = 0 ; | |
5475 | PyObject * obj1 = 0 ; | |
5476 | char *kwnames[] = { | |
5477 | (char *) "self",(char *) "vec", NULL | |
5478 | }; | |
5479 | ||
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5483 | { | |
5484 | arg2 = &temp2; | |
5485 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5486 | } | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5490 | ||
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) SWIG_fail; | |
5493 | } | |
c32bde28 | 5494 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5495 | return resultobj; |
5496 | fail: | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
c32bde28 | 5501 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5502 | PyObject *resultobj; |
5503 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5504 | wxPoint2D result; | |
5505 | PyObject * obj0 = 0 ; | |
5506 | char *kwnames[] = { | |
5507 | (char *) "self", NULL | |
5508 | }; | |
5509 | ||
5510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5513 | { | |
5514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5515 | result = (arg1)->operator -(); | |
5516 | ||
5517 | wxPyEndAllowThreads(__tstate); | |
5518 | if (PyErr_Occurred()) SWIG_fail; | |
5519 | } | |
5520 | { | |
5521 | wxPoint2D * resultptr; | |
5522 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5523 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5524 | } | |
5525 | return resultobj; | |
5526 | fail: | |
5527 | return NULL; | |
5528 | } | |
5529 | ||
5530 | ||
c32bde28 | 5531 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5532 | PyObject *resultobj; |
5533 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5534 | wxPoint2D *arg2 = 0 ; | |
5535 | wxPoint2D *result; | |
5536 | wxPoint2D temp2 ; | |
5537 | PyObject * obj0 = 0 ; | |
5538 | PyObject * obj1 = 0 ; | |
5539 | char *kwnames[] = { | |
5540 | (char *) "self",(char *) "pt", NULL | |
5541 | }; | |
5542 | ||
5543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5545 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5546 | { |
5547 | arg2 = &temp2; | |
5548 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5549 | } | |
5550 | { | |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | { | |
5553 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5554 | result = (wxPoint2D *) &_result_ref; | |
5555 | } | |
5556 | ||
5557 | wxPyEndAllowThreads(__tstate); | |
5558 | if (PyErr_Occurred()) SWIG_fail; | |
5559 | } | |
c32bde28 | 5560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5561 | return resultobj; |
5562 | fail: | |
5563 | return NULL; | |
5564 | } | |
5565 | ||
5566 | ||
c32bde28 | 5567 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5568 | PyObject *resultobj; |
5569 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5570 | wxPoint2D *arg2 = 0 ; | |
5571 | wxPoint2D *result; | |
5572 | wxPoint2D temp2 ; | |
5573 | PyObject * obj0 = 0 ; | |
5574 | PyObject * obj1 = 0 ; | |
5575 | char *kwnames[] = { | |
5576 | (char *) "self",(char *) "pt", NULL | |
5577 | }; | |
5578 | ||
5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5581 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5582 | { |
5583 | arg2 = &temp2; | |
5584 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5585 | } | |
5586 | { | |
5587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5588 | { | |
5589 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5590 | result = (wxPoint2D *) &_result_ref; | |
5591 | } | |
5592 | ||
5593 | wxPyEndAllowThreads(__tstate); | |
5594 | if (PyErr_Occurred()) SWIG_fail; | |
5595 | } | |
c32bde28 | 5596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5597 | return resultobj; |
5598 | fail: | |
5599 | return NULL; | |
5600 | } | |
5601 | ||
5602 | ||
c32bde28 | 5603 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5604 | PyObject *resultobj; |
5605 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5606 | wxPoint2D *arg2 = 0 ; | |
5607 | wxPoint2D *result; | |
5608 | wxPoint2D temp2 ; | |
5609 | PyObject * obj0 = 0 ; | |
5610 | PyObject * obj1 = 0 ; | |
5611 | char *kwnames[] = { | |
5612 | (char *) "self",(char *) "pt", NULL | |
5613 | }; | |
5614 | ||
5615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5617 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5618 | { |
5619 | arg2 = &temp2; | |
5620 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5621 | } | |
5622 | { | |
5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5624 | { | |
5625 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5626 | result = (wxPoint2D *) &_result_ref; | |
5627 | } | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
c32bde28 | 5632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5633 | return resultobj; |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
c32bde28 | 5639 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5640 | PyObject *resultobj; |
5641 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5642 | wxPoint2D *arg2 = 0 ; | |
5643 | wxPoint2D *result; | |
5644 | wxPoint2D temp2 ; | |
5645 | PyObject * obj0 = 0 ; | |
5646 | PyObject * obj1 = 0 ; | |
5647 | char *kwnames[] = { | |
5648 | (char *) "self",(char *) "pt", NULL | |
5649 | }; | |
5650 | ||
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5653 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5654 | { |
5655 | arg2 = &temp2; | |
5656 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5657 | } | |
5658 | { | |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5660 | { | |
5661 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5662 | result = (wxPoint2D *) &_result_ref; | |
5663 | } | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
c32bde28 | 5668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5669 | return resultobj; |
5670 | fail: | |
5671 | return NULL; | |
5672 | } | |
5673 | ||
5674 | ||
c32bde28 | 5675 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5676 | PyObject *resultobj; |
5677 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5678 | wxPoint2D *arg2 = 0 ; | |
5679 | bool result; | |
5680 | wxPoint2D temp2 ; | |
5681 | PyObject * obj0 = 0 ; | |
5682 | PyObject * obj1 = 0 ; | |
5683 | char *kwnames[] = { | |
5684 | (char *) "self",(char *) "pt", NULL | |
5685 | }; | |
5686 | ||
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5690 | { | |
5691 | arg2 = &temp2; | |
5692 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5693 | } | |
5694 | { | |
5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5696 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5697 | ||
5698 | wxPyEndAllowThreads(__tstate); | |
5699 | if (PyErr_Occurred()) SWIG_fail; | |
5700 | } | |
5701 | { | |
5702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5703 | } | |
5704 | return resultobj; | |
5705 | fail: | |
5706 | return NULL; | |
5707 | } | |
5708 | ||
5709 | ||
c32bde28 | 5710 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5711 | PyObject *resultobj; |
5712 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5713 | wxPoint2D *arg2 = 0 ; | |
5714 | bool result; | |
5715 | wxPoint2D temp2 ; | |
5716 | PyObject * obj0 = 0 ; | |
5717 | PyObject * obj1 = 0 ; | |
5718 | char *kwnames[] = { | |
5719 | (char *) "self",(char *) "pt", NULL | |
5720 | }; | |
5721 | ||
5722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5725 | { | |
5726 | arg2 = &temp2; | |
5727 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5728 | } | |
5729 | { | |
5730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5731 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5732 | ||
5733 | wxPyEndAllowThreads(__tstate); | |
5734 | if (PyErr_Occurred()) SWIG_fail; | |
5735 | } | |
5736 | { | |
5737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5738 | } | |
5739 | return resultobj; | |
5740 | fail: | |
5741 | return NULL; | |
5742 | } | |
5743 | ||
5744 | ||
c32bde28 | 5745 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5746 | PyObject *resultobj; |
5747 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5748 | double arg2 ; | |
5749 | PyObject * obj0 = 0 ; | |
5750 | PyObject * obj1 = 0 ; | |
5751 | char *kwnames[] = { | |
5752 | (char *) "self",(char *) "m_x", NULL | |
5753 | }; | |
5754 | ||
5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5758 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5759 | if (PyErr_Occurred()) SWIG_fail; |
5760 | if (arg1) (arg1)->m_x = arg2; | |
5761 | ||
5762 | Py_INCREF(Py_None); resultobj = Py_None; | |
5763 | return resultobj; | |
5764 | fail: | |
5765 | return NULL; | |
5766 | } | |
5767 | ||
5768 | ||
c32bde28 | 5769 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5770 | PyObject *resultobj; |
5771 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5772 | double result; | |
5773 | PyObject * obj0 = 0 ; | |
5774 | char *kwnames[] = { | |
5775 | (char *) "self", NULL | |
5776 | }; | |
5777 | ||
5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5781 | result = (double) ((arg1)->m_x); | |
5782 | ||
c32bde28 | 5783 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5784 | return resultobj; |
5785 | fail: | |
5786 | return NULL; | |
5787 | } | |
5788 | ||
5789 | ||
c32bde28 | 5790 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5791 | PyObject *resultobj; |
5792 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5793 | double arg2 ; | |
5794 | PyObject * obj0 = 0 ; | |
5795 | PyObject * obj1 = 0 ; | |
5796 | char *kwnames[] = { | |
5797 | (char *) "self",(char *) "m_y", NULL | |
5798 | }; | |
5799 | ||
5800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5803 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5804 | if (PyErr_Occurred()) SWIG_fail; |
5805 | if (arg1) (arg1)->m_y = arg2; | |
5806 | ||
5807 | Py_INCREF(Py_None); resultobj = Py_None; | |
5808 | return resultobj; | |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
c32bde28 | 5814 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5815 | PyObject *resultobj; |
5816 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5817 | double result; | |
5818 | PyObject * obj0 = 0 ; | |
5819 | char *kwnames[] = { | |
5820 | (char *) "self", NULL | |
5821 | }; | |
5822 | ||
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5826 | result = (double) ((arg1)->m_y); | |
5827 | ||
c32bde28 | 5828 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5829 | return resultobj; |
5830 | fail: | |
5831 | return NULL; | |
5832 | } | |
5833 | ||
5834 | ||
c32bde28 | 5835 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5836 | PyObject *resultobj; |
5837 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5838 | double arg2 = (double) 0 ; | |
5839 | double arg3 = (double) 0 ; | |
5840 | PyObject * obj0 = 0 ; | |
5841 | PyObject * obj1 = 0 ; | |
5842 | PyObject * obj2 = 0 ; | |
5843 | char *kwnames[] = { | |
5844 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5845 | }; | |
5846 | ||
5847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5850 | if (obj1) { | |
c32bde28 | 5851 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5852 | if (PyErr_Occurred()) SWIG_fail; |
5853 | } | |
5854 | if (obj2) { | |
c32bde28 | 5855 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
5856 | if (PyErr_Occurred()) SWIG_fail; |
5857 | } | |
5858 | { | |
5859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5860 | wxPoint2D_Set(arg1,arg2,arg3); | |
5861 | ||
5862 | wxPyEndAllowThreads(__tstate); | |
5863 | if (PyErr_Occurred()) SWIG_fail; | |
5864 | } | |
5865 | Py_INCREF(Py_None); resultobj = Py_None; | |
5866 | return resultobj; | |
5867 | fail: | |
5868 | return NULL; | |
5869 | } | |
5870 | ||
5871 | ||
c32bde28 | 5872 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5873 | PyObject *resultobj; |
5874 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5875 | PyObject *result; | |
5876 | PyObject * obj0 = 0 ; | |
5877 | char *kwnames[] = { | |
5878 | (char *) "self", NULL | |
5879 | }; | |
5880 | ||
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5884 | { | |
5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5886 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5887 | ||
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
5891 | resultobj = result; | |
5892 | return resultobj; | |
5893 | fail: | |
5894 | return NULL; | |
5895 | } | |
5896 | ||
5897 | ||
c32bde28 | 5898 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5899 | PyObject *obj; |
5900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5901 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5902 | Py_INCREF(obj); | |
5903 | return Py_BuildValue((char *)""); | |
5904 | } | |
c32bde28 | 5905 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
5906 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5907 | return 1; | |
5908 | } | |
5909 | ||
5910 | ||
5911 | static PyObject *_wrap_DefaultPosition_get() { | |
5912 | PyObject *pyobj; | |
5913 | ||
5914 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5915 | return pyobj; | |
5916 | } | |
5917 | ||
5918 | ||
c32bde28 | 5919 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
5920 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5921 | return 1; | |
5922 | } | |
5923 | ||
5924 | ||
5925 | static PyObject *_wrap_DefaultSize_get() { | |
5926 | PyObject *pyobj; | |
5927 | ||
5928 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5929 | return pyobj; | |
5930 | } | |
5931 | ||
5932 | ||
c32bde28 | 5933 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5934 | PyObject *resultobj; |
5935 | PyObject *arg1 = (PyObject *) 0 ; | |
5936 | wxPyInputStream *result; | |
5937 | PyObject * obj0 = 0 ; | |
5938 | char *kwnames[] = { | |
5939 | (char *) "p", NULL | |
5940 | }; | |
5941 | ||
5942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5943 | arg1 = obj0; | |
5944 | { | |
5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5946 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5947 | ||
5948 | wxPyEndAllowThreads(__tstate); | |
5949 | if (PyErr_Occurred()) SWIG_fail; | |
5950 | } | |
5951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
5952 | return resultobj; | |
5953 | fail: | |
5954 | return NULL; | |
5955 | } | |
5956 | ||
5957 | ||
c32bde28 | 5958 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5959 | PyObject *resultobj; |
5960 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5961 | PyObject * obj0 = 0 ; | |
5962 | char *kwnames[] = { | |
5963 | (char *) "self", NULL | |
5964 | }; | |
5965 | ||
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5969 | { | |
5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5971 | (arg1)->close(); | |
5972 | ||
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | Py_INCREF(Py_None); resultobj = Py_None; | |
5977 | return resultobj; | |
5978 | fail: | |
5979 | return NULL; | |
5980 | } | |
5981 | ||
5982 | ||
c32bde28 | 5983 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5984 | PyObject *resultobj; |
5985 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5986 | PyObject * obj0 = 0 ; | |
5987 | char *kwnames[] = { | |
5988 | (char *) "self", NULL | |
5989 | }; | |
5990 | ||
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5994 | { | |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | (arg1)->flush(); | |
5997 | ||
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
6001 | Py_INCREF(Py_None); resultobj = Py_None; | |
6002 | return resultobj; | |
6003 | fail: | |
6004 | return NULL; | |
6005 | } | |
6006 | ||
6007 | ||
c32bde28 | 6008 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6009 | PyObject *resultobj; |
6010 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6011 | bool result; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | char *kwnames[] = { | |
6014 | (char *) "self", NULL | |
6015 | }; | |
6016 | ||
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
6018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6020 | { | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (bool)(arg1)->eof(); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | { | |
6028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6029 | } | |
6030 | return resultobj; | |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
c32bde28 | 6036 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6037 | PyObject *resultobj; |
6038 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6039 | int arg2 = (int) -1 ; | |
6040 | PyObject *result; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | PyObject * obj1 = 0 ; | |
6043 | char *kwnames[] = { | |
6044 | (char *) "self",(char *) "size", NULL | |
6045 | }; | |
6046 | ||
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
6048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6050 | if (obj1) { | |
c32bde28 | 6051 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6052 | if (PyErr_Occurred()) SWIG_fail; |
6053 | } | |
6054 | { | |
6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6056 | result = (PyObject *)(arg1)->read(arg2); | |
6057 | ||
6058 | wxPyEndAllowThreads(__tstate); | |
6059 | if (PyErr_Occurred()) SWIG_fail; | |
6060 | } | |
6061 | resultobj = result; | |
6062 | return resultobj; | |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
c32bde28 | 6068 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6069 | PyObject *resultobj; |
6070 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6071 | int arg2 = (int) -1 ; | |
6072 | PyObject *result; | |
6073 | PyObject * obj0 = 0 ; | |
6074 | PyObject * obj1 = 0 ; | |
6075 | char *kwnames[] = { | |
6076 | (char *) "self",(char *) "size", NULL | |
6077 | }; | |
6078 | ||
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
6080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6082 | if (obj1) { | |
c32bde28 | 6083 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6084 | if (PyErr_Occurred()) SWIG_fail; |
6085 | } | |
6086 | { | |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | result = (PyObject *)(arg1)->readline(arg2); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
6093 | resultobj = result; | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
c32bde28 | 6100 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6101 | PyObject *resultobj; |
6102 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6103 | int arg2 = (int) -1 ; | |
6104 | PyObject *result; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | PyObject * obj1 = 0 ; | |
6107 | char *kwnames[] = { | |
6108 | (char *) "self",(char *) "sizehint", NULL | |
6109 | }; | |
6110 | ||
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
6112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6114 | if (obj1) { | |
c32bde28 | 6115 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6116 | if (PyErr_Occurred()) SWIG_fail; |
6117 | } | |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6120 | result = (PyObject *)(arg1)->readlines(arg2); | |
6121 | ||
6122 | wxPyEndAllowThreads(__tstate); | |
6123 | if (PyErr_Occurred()) SWIG_fail; | |
6124 | } | |
6125 | resultobj = result; | |
6126 | return resultobj; | |
6127 | fail: | |
6128 | return NULL; | |
6129 | } | |
6130 | ||
6131 | ||
c32bde28 | 6132 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6133 | PyObject *resultobj; |
6134 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6135 | int arg2 ; | |
6136 | int arg3 = (int) 0 ; | |
6137 | PyObject * obj0 = 0 ; | |
6138 | PyObject * obj1 = 0 ; | |
6139 | PyObject * obj2 = 0 ; | |
6140 | char *kwnames[] = { | |
6141 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6142 | }; | |
6143 | ||
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6147 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6148 | if (PyErr_Occurred()) SWIG_fail; |
6149 | if (obj2) { | |
c32bde28 | 6150 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6151 | if (PyErr_Occurred()) SWIG_fail; |
6152 | } | |
6153 | { | |
6154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6155 | (arg1)->seek(arg2,arg3); | |
6156 | ||
6157 | wxPyEndAllowThreads(__tstate); | |
6158 | if (PyErr_Occurred()) SWIG_fail; | |
6159 | } | |
6160 | Py_INCREF(Py_None); resultobj = Py_None; | |
6161 | return resultobj; | |
6162 | fail: | |
6163 | return NULL; | |
6164 | } | |
6165 | ||
6166 | ||
c32bde28 | 6167 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6168 | PyObject *resultobj; |
6169 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6170 | int result; | |
6171 | PyObject * obj0 = 0 ; | |
6172 | char *kwnames[] = { | |
6173 | (char *) "self", NULL | |
6174 | }; | |
6175 | ||
6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
6177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6179 | { | |
6180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6181 | result = (int)(arg1)->tell(); | |
6182 | ||
6183 | wxPyEndAllowThreads(__tstate); | |
6184 | if (PyErr_Occurred()) SWIG_fail; | |
6185 | } | |
c32bde28 | 6186 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6187 | return resultobj; |
6188 | fail: | |
6189 | return NULL; | |
6190 | } | |
6191 | ||
6192 | ||
c32bde28 | 6193 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6194 | PyObject *resultobj; |
6195 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6196 | char result; | |
6197 | PyObject * obj0 = 0 ; | |
6198 | char *kwnames[] = { | |
6199 | (char *) "self", NULL | |
6200 | }; | |
6201 | ||
6202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
6203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6205 | { | |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | result = (char)(arg1)->Peek(); | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
c32bde28 | 6212 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6213 | return resultobj; |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
c32bde28 | 6219 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6220 | PyObject *resultobj; |
6221 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6222 | char result; | |
6223 | PyObject * obj0 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "self", NULL | |
6226 | }; | |
6227 | ||
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6231 | { | |
6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6233 | result = (char)(arg1)->GetC(); | |
6234 | ||
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
c32bde28 | 6238 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6239 | return resultobj; |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
c32bde28 | 6245 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6246 | PyObject *resultobj; |
6247 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6248 | size_t result; | |
6249 | PyObject * obj0 = 0 ; | |
6250 | char *kwnames[] = { | |
6251 | (char *) "self", NULL | |
6252 | }; | |
6253 | ||
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6257 | { | |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | result = (size_t)(arg1)->LastRead(); | |
6260 | ||
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
c32bde28 | 6264 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6265 | return resultobj; |
6266 | fail: | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
c32bde28 | 6271 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6272 | PyObject *resultobj; |
6273 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6274 | bool result; | |
6275 | PyObject * obj0 = 0 ; | |
6276 | char *kwnames[] = { | |
6277 | (char *) "self", NULL | |
6278 | }; | |
6279 | ||
6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6283 | { | |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (bool)(arg1)->CanRead(); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | { | |
6291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6292 | } | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
c32bde28 | 6299 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6300 | PyObject *resultobj; |
6301 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6302 | bool result; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | char *kwnames[] = { | |
6305 | (char *) "self", NULL | |
6306 | }; | |
6307 | ||
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6311 | { | |
6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6313 | result = (bool)(arg1)->Eof(); | |
6314 | ||
6315 | wxPyEndAllowThreads(__tstate); | |
6316 | if (PyErr_Occurred()) SWIG_fail; | |
6317 | } | |
6318 | { | |
6319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6320 | } | |
6321 | return resultobj; | |
6322 | fail: | |
6323 | return NULL; | |
6324 | } | |
6325 | ||
6326 | ||
c32bde28 | 6327 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6328 | PyObject *resultobj; |
6329 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6330 | char arg2 ; | |
6331 | bool result; | |
6332 | PyObject * obj0 = 0 ; | |
6333 | PyObject * obj1 = 0 ; | |
6334 | char *kwnames[] = { | |
6335 | (char *) "self",(char *) "c", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6341 | arg2 = (char)SWIG_As_char(obj1); |
d55e5bfc RD |
6342 | if (PyErr_Occurred()) SWIG_fail; |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (bool)(arg1)->Ungetch(arg2); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | { | |
6351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6352 | } | |
6353 | return resultobj; | |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
c32bde28 | 6359 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6360 | PyObject *resultobj; |
6361 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6362 | long arg2 ; | |
6363 | int arg3 = (int) wxFromStart ; | |
6364 | long result; | |
6365 | PyObject * obj0 = 0 ; | |
6366 | PyObject * obj1 = 0 ; | |
6367 | PyObject * obj2 = 0 ; | |
6368 | char *kwnames[] = { | |
6369 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6370 | }; | |
6371 | ||
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6375 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
6376 | if (PyErr_Occurred()) SWIG_fail; |
6377 | if (obj2) { | |
c32bde28 | 6378 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6379 | if (PyErr_Occurred()) SWIG_fail; |
6380 | } | |
6381 | { | |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6384 | ||
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
c32bde28 | 6388 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6389 | return resultobj; |
6390 | fail: | |
6391 | return NULL; | |
6392 | } | |
6393 | ||
6394 | ||
c32bde28 | 6395 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6396 | PyObject *resultobj; |
6397 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6398 | long result; | |
6399 | PyObject * obj0 = 0 ; | |
6400 | char *kwnames[] = { | |
6401 | (char *) "self", NULL | |
6402 | }; | |
6403 | ||
6404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6407 | { | |
6408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6409 | result = (long)(arg1)->TellI(); | |
6410 | ||
6411 | wxPyEndAllowThreads(__tstate); | |
6412 | if (PyErr_Occurred()) SWIG_fail; | |
6413 | } | |
c32bde28 | 6414 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6415 | return resultobj; |
6416 | fail: | |
6417 | return NULL; | |
6418 | } | |
6419 | ||
6420 | ||
c32bde28 | 6421 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6422 | PyObject *obj; |
6423 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6424 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6425 | Py_INCREF(obj); | |
6426 | return Py_BuildValue((char *)""); | |
6427 | } | |
c32bde28 | 6428 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6429 | PyObject *resultobj; |
6430 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6431 | PyObject *arg2 = (PyObject *) 0 ; | |
6432 | PyObject * obj0 = 0 ; | |
6433 | PyObject * obj1 = 0 ; | |
6434 | char *kwnames[] = { | |
6435 | (char *) "self",(char *) "obj", NULL | |
6436 | }; | |
6437 | ||
6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6441 | arg2 = obj1; | |
6442 | { | |
6443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6444 | wxOutputStream_write(arg1,arg2); | |
6445 | ||
6446 | wxPyEndAllowThreads(__tstate); | |
6447 | if (PyErr_Occurred()) SWIG_fail; | |
6448 | } | |
6449 | Py_INCREF(Py_None); resultobj = Py_None; | |
6450 | return resultobj; | |
6451 | fail: | |
6452 | return NULL; | |
6453 | } | |
6454 | ||
6455 | ||
c32bde28 | 6456 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6457 | PyObject *obj; |
6458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6459 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6460 | Py_INCREF(obj); | |
6461 | return Py_BuildValue((char *)""); | |
6462 | } | |
c32bde28 | 6463 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6464 | PyObject *resultobj; |
6465 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6466 | wxString *arg2 = 0 ; | |
6467 | wxString *arg3 = 0 ; | |
6468 | wxString *arg4 = 0 ; | |
6469 | wxDateTime arg5 ; | |
6470 | wxFSFile *result; | |
6471 | wxPyInputStream *temp1 ; | |
6472 | bool created1 ; | |
ae8162c8 RD |
6473 | bool temp2 = false ; |
6474 | bool temp3 = false ; | |
6475 | bool temp4 = false ; | |
d55e5bfc RD |
6476 | wxDateTime *argp5 ; |
6477 | PyObject * obj0 = 0 ; | |
6478 | PyObject * obj1 = 0 ; | |
6479 | PyObject * obj2 = 0 ; | |
6480 | PyObject * obj3 = 0 ; | |
6481 | PyObject * obj4 = 0 ; | |
6482 | char *kwnames[] = { | |
6483 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6484 | }; | |
6485 | ||
6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6487 | { | |
6488 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6489 | arg1 = temp1->m_wxis; | |
ae8162c8 | 6490 | created1 = false; |
d55e5bfc RD |
6491 | } else { |
6492 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 6493 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
6494 | if (arg1 == NULL) { |
6495 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6496 | SWIG_fail; | |
6497 | } | |
ae8162c8 | 6498 | created1 = true; |
d55e5bfc RD |
6499 | } |
6500 | } | |
6501 | { | |
6502 | arg2 = wxString_in_helper(obj1); | |
6503 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6504 | temp2 = true; |
d55e5bfc RD |
6505 | } |
6506 | { | |
6507 | arg3 = wxString_in_helper(obj2); | |
6508 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6509 | temp3 = true; |
d55e5bfc RD |
6510 | } |
6511 | { | |
6512 | arg4 = wxString_in_helper(obj3); | |
6513 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6514 | temp4 = true; |
d55e5bfc RD |
6515 | } |
6516 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6517 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6518 | arg5 = *argp5; | |
6519 | { | |
6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6521 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6522 | ||
6523 | wxPyEndAllowThreads(__tstate); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | } | |
6526 | { | |
412d302d | 6527 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6528 | } |
6529 | { | |
6530 | if (created1) | |
6531 | delete arg1; | |
6532 | } | |
6533 | { | |
6534 | if (temp2) | |
6535 | delete arg2; | |
6536 | } | |
6537 | { | |
6538 | if (temp3) | |
6539 | delete arg3; | |
6540 | } | |
6541 | { | |
6542 | if (temp4) | |
6543 | delete arg4; | |
6544 | } | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | { | |
6548 | if (created1) | |
6549 | delete arg1; | |
6550 | } | |
6551 | { | |
6552 | if (temp2) | |
6553 | delete arg2; | |
6554 | } | |
6555 | { | |
6556 | if (temp3) | |
6557 | delete arg3; | |
6558 | } | |
6559 | { | |
6560 | if (temp4) | |
6561 | delete arg4; | |
6562 | } | |
6563 | return NULL; | |
6564 | } | |
6565 | ||
6566 | ||
c32bde28 | 6567 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6568 | PyObject *resultobj; |
6569 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6570 | PyObject * obj0 = 0 ; | |
6571 | char *kwnames[] = { | |
6572 | (char *) "self", NULL | |
6573 | }; | |
6574 | ||
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6578 | { | |
6579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6580 | delete arg1; | |
6581 | ||
6582 | wxPyEndAllowThreads(__tstate); | |
6583 | if (PyErr_Occurred()) SWIG_fail; | |
6584 | } | |
6585 | Py_INCREF(Py_None); resultobj = Py_None; | |
6586 | return resultobj; | |
6587 | fail: | |
6588 | return NULL; | |
6589 | } | |
6590 | ||
6591 | ||
c32bde28 | 6592 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6593 | PyObject *resultobj; |
6594 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6595 | wxInputStream *result; | |
6596 | PyObject * obj0 = 0 ; | |
6597 | char *kwnames[] = { | |
6598 | (char *) "self", NULL | |
6599 | }; | |
6600 | ||
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6604 | { | |
6605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6606 | result = (wxInputStream *)(arg1)->GetStream(); | |
6607 | ||
6608 | wxPyEndAllowThreads(__tstate); | |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
6610 | } | |
6611 | { | |
6612 | wxPyInputStream * _ptr = NULL; | |
6613 | ||
6614 | if (result) { | |
6615 | _ptr = new wxPyInputStream(result); | |
6616 | } | |
ae8162c8 | 6617 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
6618 | } |
6619 | return resultobj; | |
6620 | fail: | |
6621 | return NULL; | |
6622 | } | |
6623 | ||
6624 | ||
c32bde28 | 6625 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6626 | PyObject *resultobj; |
6627 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6628 | wxString *result; | |
6629 | PyObject * obj0 = 0 ; | |
6630 | char *kwnames[] = { | |
6631 | (char *) "self", NULL | |
6632 | }; | |
6633 | ||
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6637 | { | |
6638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6639 | { | |
6640 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6641 | result = (wxString *) &_result_ref; | |
6642 | } | |
6643 | ||
6644 | wxPyEndAllowThreads(__tstate); | |
6645 | if (PyErr_Occurred()) SWIG_fail; | |
6646 | } | |
6647 | { | |
6648 | #if wxUSE_UNICODE | |
6649 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6650 | #else | |
6651 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6652 | #endif | |
6653 | } | |
6654 | return resultobj; | |
6655 | fail: | |
6656 | return NULL; | |
6657 | } | |
6658 | ||
6659 | ||
c32bde28 | 6660 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6661 | PyObject *resultobj; |
6662 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6663 | wxString *result; | |
6664 | PyObject * obj0 = 0 ; | |
6665 | char *kwnames[] = { | |
6666 | (char *) "self", NULL | |
6667 | }; | |
6668 | ||
6669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6672 | { | |
6673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6674 | { | |
6675 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6676 | result = (wxString *) &_result_ref; | |
6677 | } | |
6678 | ||
6679 | wxPyEndAllowThreads(__tstate); | |
6680 | if (PyErr_Occurred()) SWIG_fail; | |
6681 | } | |
6682 | { | |
6683 | #if wxUSE_UNICODE | |
6684 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6685 | #else | |
6686 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6687 | #endif | |
6688 | } | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
c32bde28 | 6695 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6696 | PyObject *resultobj; |
6697 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6698 | wxString *result; | |
6699 | PyObject * obj0 = 0 ; | |
6700 | char *kwnames[] = { | |
6701 | (char *) "self", NULL | |
6702 | }; | |
6703 | ||
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6707 | { | |
6708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6709 | { | |
6710 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6711 | result = (wxString *) &_result_ref; | |
6712 | } | |
6713 | ||
6714 | wxPyEndAllowThreads(__tstate); | |
6715 | if (PyErr_Occurred()) SWIG_fail; | |
6716 | } | |
6717 | { | |
6718 | #if wxUSE_UNICODE | |
6719 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6720 | #else | |
6721 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6722 | #endif | |
6723 | } | |
6724 | return resultobj; | |
6725 | fail: | |
6726 | return NULL; | |
6727 | } | |
6728 | ||
6729 | ||
c32bde28 | 6730 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6731 | PyObject *resultobj; |
6732 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6733 | wxDateTime result; | |
6734 | PyObject * obj0 = 0 ; | |
6735 | char *kwnames[] = { | |
6736 | (char *) "self", NULL | |
6737 | }; | |
6738 | ||
6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6742 | { | |
6743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6744 | result = (arg1)->GetModificationTime(); | |
6745 | ||
6746 | wxPyEndAllowThreads(__tstate); | |
6747 | if (PyErr_Occurred()) SWIG_fail; | |
6748 | } | |
6749 | { | |
6750 | wxDateTime * resultptr; | |
6751 | resultptr = new wxDateTime((wxDateTime &) result); | |
6752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6753 | } | |
6754 | return resultobj; | |
6755 | fail: | |
6756 | return NULL; | |
6757 | } | |
6758 | ||
6759 | ||
c32bde28 | 6760 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6761 | PyObject *obj; |
6762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6763 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6764 | Py_INCREF(obj); | |
6765 | return Py_BuildValue((char *)""); | |
6766 | } | |
c32bde28 | 6767 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6768 | PyObject *obj; |
6769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6770 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6771 | Py_INCREF(obj); | |
6772 | return Py_BuildValue((char *)""); | |
6773 | } | |
c32bde28 | 6774 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6775 | PyObject *resultobj; |
6776 | wxPyFileSystemHandler *result; | |
6777 | char *kwnames[] = { | |
6778 | NULL | |
6779 | }; | |
6780 | ||
6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6782 | { | |
6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6784 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6785 | ||
6786 | wxPyEndAllowThreads(__tstate); | |
6787 | if (PyErr_Occurred()) SWIG_fail; | |
6788 | } | |
6789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6790 | return resultobj; | |
6791 | fail: | |
6792 | return NULL; | |
6793 | } | |
6794 | ||
6795 | ||
c32bde28 | 6796 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6797 | PyObject *resultobj; |
6798 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6799 | PyObject *arg2 = (PyObject *) 0 ; | |
6800 | PyObject *arg3 = (PyObject *) 0 ; | |
6801 | PyObject * obj0 = 0 ; | |
6802 | PyObject * obj1 = 0 ; | |
6803 | PyObject * obj2 = 0 ; | |
6804 | char *kwnames[] = { | |
6805 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6806 | }; | |
6807 | ||
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6811 | arg2 = obj1; | |
6812 | arg3 = obj2; | |
6813 | { | |
6814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6815 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6816 | ||
6817 | wxPyEndAllowThreads(__tstate); | |
6818 | if (PyErr_Occurred()) SWIG_fail; | |
6819 | } | |
6820 | Py_INCREF(Py_None); resultobj = Py_None; | |
6821 | return resultobj; | |
6822 | fail: | |
6823 | return NULL; | |
6824 | } | |
6825 | ||
6826 | ||
c32bde28 | 6827 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6828 | PyObject *resultobj; |
6829 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6830 | wxString *arg2 = 0 ; | |
6831 | bool result; | |
ae8162c8 | 6832 | bool temp2 = false ; |
d55e5bfc RD |
6833 | PyObject * obj0 = 0 ; |
6834 | PyObject * obj1 = 0 ; | |
6835 | char *kwnames[] = { | |
6836 | (char *) "self",(char *) "location", NULL | |
6837 | }; | |
6838 | ||
6839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6842 | { | |
6843 | arg2 = wxString_in_helper(obj1); | |
6844 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6845 | temp2 = true; |
d55e5bfc RD |
6846 | } |
6847 | { | |
6848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6849 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6850 | ||
6851 | wxPyEndAllowThreads(__tstate); | |
6852 | if (PyErr_Occurred()) SWIG_fail; | |
6853 | } | |
6854 | { | |
6855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6856 | } | |
6857 | { | |
6858 | if (temp2) | |
6859 | delete arg2; | |
6860 | } | |
6861 | return resultobj; | |
6862 | fail: | |
6863 | { | |
6864 | if (temp2) | |
6865 | delete arg2; | |
6866 | } | |
6867 | return NULL; | |
6868 | } | |
6869 | ||
6870 | ||
c32bde28 | 6871 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6872 | PyObject *resultobj; |
6873 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6874 | wxFileSystem *arg2 = 0 ; | |
6875 | wxString *arg3 = 0 ; | |
6876 | wxFSFile *result; | |
ae8162c8 | 6877 | bool temp3 = false ; |
d55e5bfc RD |
6878 | PyObject * obj0 = 0 ; |
6879 | PyObject * obj1 = 0 ; | |
6880 | PyObject * obj2 = 0 ; | |
6881 | char *kwnames[] = { | |
6882 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6890 | SWIG_fail; | |
6891 | if (arg2 == NULL) { | |
6892 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6893 | SWIG_fail; | |
6894 | } | |
6895 | { | |
6896 | arg3 = wxString_in_helper(obj2); | |
6897 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6898 | temp3 = true; |
d55e5bfc RD |
6899 | } |
6900 | { | |
6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6902 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6903 | ||
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) SWIG_fail; | |
6906 | } | |
6907 | { | |
4cf4100f | 6908 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6909 | } |
6910 | { | |
6911 | if (temp3) | |
6912 | delete arg3; | |
6913 | } | |
6914 | return resultobj; | |
6915 | fail: | |
6916 | { | |
6917 | if (temp3) | |
6918 | delete arg3; | |
6919 | } | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
c32bde28 | 6924 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6925 | PyObject *resultobj; |
6926 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6927 | wxString *arg2 = 0 ; | |
6928 | int arg3 = (int) 0 ; | |
6929 | wxString result; | |
ae8162c8 | 6930 | bool temp2 = false ; |
d55e5bfc RD |
6931 | PyObject * obj0 = 0 ; |
6932 | PyObject * obj1 = 0 ; | |
6933 | PyObject * obj2 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6941 | { | |
6942 | arg2 = wxString_in_helper(obj1); | |
6943 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6944 | temp2 = true; |
d55e5bfc RD |
6945 | } |
6946 | if (obj2) { | |
c32bde28 | 6947 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6948 | if (PyErr_Occurred()) SWIG_fail; |
6949 | } | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | { | |
6958 | #if wxUSE_UNICODE | |
6959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6960 | #else | |
6961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6962 | #endif | |
6963 | } | |
6964 | { | |
6965 | if (temp2) | |
6966 | delete arg2; | |
6967 | } | |
6968 | return resultobj; | |
6969 | fail: | |
6970 | { | |
6971 | if (temp2) | |
6972 | delete arg2; | |
6973 | } | |
6974 | return NULL; | |
6975 | } | |
6976 | ||
6977 | ||
c32bde28 | 6978 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6979 | PyObject *resultobj; |
6980 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6981 | wxString result; | |
6982 | PyObject * obj0 = 0 ; | |
6983 | char *kwnames[] = { | |
6984 | (char *) "self", NULL | |
6985 | }; | |
6986 | ||
6987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6990 | { | |
6991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6992 | result = (arg1)->FindNext(); | |
6993 | ||
6994 | wxPyEndAllowThreads(__tstate); | |
6995 | if (PyErr_Occurred()) SWIG_fail; | |
6996 | } | |
6997 | { | |
6998 | #if wxUSE_UNICODE | |
6999 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7000 | #else | |
7001 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7002 | #endif | |
7003 | } | |
7004 | return resultobj; | |
7005 | fail: | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
c32bde28 | 7010 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7011 | PyObject *resultobj; |
7012 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7013 | wxString *arg2 = 0 ; | |
7014 | wxString result; | |
ae8162c8 | 7015 | bool temp2 = false ; |
d55e5bfc RD |
7016 | PyObject * obj0 = 0 ; |
7017 | PyObject * obj1 = 0 ; | |
7018 | char *kwnames[] = { | |
7019 | (char *) "self",(char *) "location", NULL | |
7020 | }; | |
7021 | ||
7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
7023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7025 | { | |
7026 | arg2 = wxString_in_helper(obj1); | |
7027 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7028 | temp2 = true; |
d55e5bfc RD |
7029 | } |
7030 | { | |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
7037 | { | |
7038 | #if wxUSE_UNICODE | |
7039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7040 | #else | |
7041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7042 | #endif | |
7043 | } | |
7044 | { | |
7045 | if (temp2) | |
7046 | delete arg2; | |
7047 | } | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | { | |
7051 | if (temp2) | |
7052 | delete arg2; | |
7053 | } | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
c32bde28 | 7058 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7059 | PyObject *resultobj; |
7060 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7061 | wxString *arg2 = 0 ; | |
7062 | wxString result; | |
ae8162c8 | 7063 | bool temp2 = false ; |
d55e5bfc RD |
7064 | PyObject * obj0 = 0 ; |
7065 | PyObject * obj1 = 0 ; | |
7066 | char *kwnames[] = { | |
7067 | (char *) "self",(char *) "location", NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
7071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7073 | { | |
7074 | arg2 = wxString_in_helper(obj1); | |
7075 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7076 | temp2 = true; |
d55e5bfc RD |
7077 | } |
7078 | { | |
7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7080 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7081 | ||
7082 | wxPyEndAllowThreads(__tstate); | |
7083 | if (PyErr_Occurred()) SWIG_fail; | |
7084 | } | |
7085 | { | |
7086 | #if wxUSE_UNICODE | |
7087 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7088 | #else | |
7089 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7090 | #endif | |
7091 | } | |
7092 | { | |
7093 | if (temp2) | |
7094 | delete arg2; | |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | { | |
7099 | if (temp2) | |
7100 | delete arg2; | |
7101 | } | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
c32bde28 | 7106 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7107 | PyObject *resultobj; |
7108 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7109 | wxString *arg2 = 0 ; | |
7110 | wxString result; | |
ae8162c8 | 7111 | bool temp2 = false ; |
d55e5bfc RD |
7112 | PyObject * obj0 = 0 ; |
7113 | PyObject * obj1 = 0 ; | |
7114 | char *kwnames[] = { | |
7115 | (char *) "self",(char *) "location", NULL | |
7116 | }; | |
7117 | ||
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
7119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7121 | { | |
7122 | arg2 = wxString_in_helper(obj1); | |
7123 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7124 | temp2 = true; |
d55e5bfc RD |
7125 | } |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | { | |
7134 | #if wxUSE_UNICODE | |
7135 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7136 | #else | |
7137 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7138 | #endif | |
7139 | } | |
7140 | { | |
7141 | if (temp2) | |
7142 | delete arg2; | |
7143 | } | |
7144 | return resultobj; | |
7145 | fail: | |
7146 | { | |
7147 | if (temp2) | |
7148 | delete arg2; | |
7149 | } | |
7150 | return NULL; | |
7151 | } | |
7152 | ||
7153 | ||
c32bde28 | 7154 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7155 | PyObject *resultobj; |
7156 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7157 | wxString *arg2 = 0 ; | |
7158 | wxString result; | |
ae8162c8 | 7159 | bool temp2 = false ; |
d55e5bfc RD |
7160 | PyObject * obj0 = 0 ; |
7161 | PyObject * obj1 = 0 ; | |
7162 | char *kwnames[] = { | |
7163 | (char *) "self",(char *) "location", NULL | |
7164 | }; | |
7165 | ||
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
7167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7169 | { | |
7170 | arg2 = wxString_in_helper(obj1); | |
7171 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7172 | temp2 = true; |
d55e5bfc RD |
7173 | } |
7174 | { | |
7175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7176 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7177 | ||
7178 | wxPyEndAllowThreads(__tstate); | |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
7180 | } | |
7181 | { | |
7182 | #if wxUSE_UNICODE | |
7183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7184 | #else | |
7185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7186 | #endif | |
7187 | } | |
7188 | { | |
7189 | if (temp2) | |
7190 | delete arg2; | |
7191 | } | |
7192 | return resultobj; | |
7193 | fail: | |
7194 | { | |
7195 | if (temp2) | |
7196 | delete arg2; | |
7197 | } | |
7198 | return NULL; | |
7199 | } | |
7200 | ||
7201 | ||
c32bde28 | 7202 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7203 | PyObject *resultobj; |
7204 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7205 | wxString *arg2 = 0 ; | |
7206 | wxString result; | |
ae8162c8 | 7207 | bool temp2 = false ; |
d55e5bfc RD |
7208 | PyObject * obj0 = 0 ; |
7209 | PyObject * obj1 = 0 ; | |
7210 | char *kwnames[] = { | |
7211 | (char *) "self",(char *) "location", NULL | |
7212 | }; | |
7213 | ||
7214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
7215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7217 | { | |
7218 | arg2 = wxString_in_helper(obj1); | |
7219 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7220 | temp2 = true; |
d55e5bfc RD |
7221 | } |
7222 | { | |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7224 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7225 | ||
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
7229 | { | |
7230 | #if wxUSE_UNICODE | |
7231 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7232 | #else | |
7233 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7234 | #endif | |
7235 | } | |
7236 | { | |
7237 | if (temp2) | |
7238 | delete arg2; | |
7239 | } | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | { | |
7243 | if (temp2) | |
7244 | delete arg2; | |
7245 | } | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
c32bde28 | 7250 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7251 | PyObject *obj; |
7252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7253 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7254 | Py_INCREF(obj); | |
7255 | return Py_BuildValue((char *)""); | |
7256 | } | |
c32bde28 | 7257 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7258 | PyObject *resultobj; |
7259 | wxFileSystem *result; | |
7260 | char *kwnames[] = { | |
7261 | NULL | |
7262 | }; | |
7263 | ||
7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7265 | { | |
7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7267 | result = (wxFileSystem *)new wxFileSystem(); | |
7268 | ||
7269 | wxPyEndAllowThreads(__tstate); | |
7270 | if (PyErr_Occurred()) SWIG_fail; | |
7271 | } | |
7272 | { | |
412d302d | 7273 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7274 | } |
7275 | return resultobj; | |
7276 | fail: | |
7277 | return NULL; | |
7278 | } | |
7279 | ||
7280 | ||
c32bde28 | 7281 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7282 | PyObject *resultobj; |
7283 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7284 | PyObject * obj0 = 0 ; | |
7285 | char *kwnames[] = { | |
7286 | (char *) "self", NULL | |
7287 | }; | |
7288 | ||
7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
7290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7292 | { | |
7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7294 | delete arg1; | |
7295 | ||
7296 | wxPyEndAllowThreads(__tstate); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | Py_INCREF(Py_None); resultobj = Py_None; | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | return NULL; | |
7303 | } | |
7304 | ||
7305 | ||
c32bde28 | 7306 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7307 | PyObject *resultobj; |
7308 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7309 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
7310 | bool arg3 = (bool) false ; |
7311 | bool temp2 = false ; | |
d55e5bfc RD |
7312 | PyObject * obj0 = 0 ; |
7313 | PyObject * obj1 = 0 ; | |
7314 | PyObject * obj2 = 0 ; | |
7315 | char *kwnames[] = { | |
7316 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7317 | }; | |
7318 | ||
7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7322 | { | |
7323 | arg2 = wxString_in_helper(obj1); | |
7324 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7325 | temp2 = true; |
d55e5bfc RD |
7326 | } |
7327 | if (obj2) { | |
c32bde28 | 7328 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7329 | if (PyErr_Occurred()) SWIG_fail; |
7330 | } | |
7331 | { | |
7332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7333 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7334 | ||
7335 | wxPyEndAllowThreads(__tstate); | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | } | |
7338 | Py_INCREF(Py_None); resultobj = Py_None; | |
7339 | { | |
7340 | if (temp2) | |
7341 | delete arg2; | |
7342 | } | |
7343 | return resultobj; | |
7344 | fail: | |
7345 | { | |
7346 | if (temp2) | |
7347 | delete arg2; | |
7348 | } | |
7349 | return NULL; | |
7350 | } | |
7351 | ||
7352 | ||
c32bde28 | 7353 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7354 | PyObject *resultobj; |
7355 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7356 | wxString result; | |
7357 | PyObject * obj0 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "self", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7365 | { | |
7366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7367 | result = (arg1)->GetPath(); | |
7368 | ||
7369 | wxPyEndAllowThreads(__tstate); | |
7370 | if (PyErr_Occurred()) SWIG_fail; | |
7371 | } | |
7372 | { | |
7373 | #if wxUSE_UNICODE | |
7374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7375 | #else | |
7376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7377 | #endif | |
7378 | } | |
7379 | return resultobj; | |
7380 | fail: | |
7381 | return NULL; | |
7382 | } | |
7383 | ||
7384 | ||
c32bde28 | 7385 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7386 | PyObject *resultobj; |
7387 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7388 | wxString *arg2 = 0 ; | |
7389 | wxFSFile *result; | |
ae8162c8 | 7390 | bool temp2 = false ; |
d55e5bfc RD |
7391 | PyObject * obj0 = 0 ; |
7392 | PyObject * obj1 = 0 ; | |
7393 | char *kwnames[] = { | |
7394 | (char *) "self",(char *) "location", NULL | |
7395 | }; | |
7396 | ||
7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7400 | { | |
7401 | arg2 = wxString_in_helper(obj1); | |
7402 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7403 | temp2 = true; |
d55e5bfc RD |
7404 | } |
7405 | { | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7408 | ||
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
7412 | { | |
4cf4100f | 7413 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7414 | } |
7415 | { | |
7416 | if (temp2) | |
7417 | delete arg2; | |
7418 | } | |
7419 | return resultobj; | |
7420 | fail: | |
7421 | { | |
7422 | if (temp2) | |
7423 | delete arg2; | |
7424 | } | |
7425 | return NULL; | |
7426 | } | |
7427 | ||
7428 | ||
c32bde28 | 7429 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7430 | PyObject *resultobj; |
7431 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7432 | wxString *arg2 = 0 ; | |
7433 | int arg3 = (int) 0 ; | |
7434 | wxString result; | |
ae8162c8 | 7435 | bool temp2 = false ; |
d55e5bfc RD |
7436 | PyObject * obj0 = 0 ; |
7437 | PyObject * obj1 = 0 ; | |
7438 | PyObject * obj2 = 0 ; | |
7439 | char *kwnames[] = { | |
7440 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7446 | { | |
7447 | arg2 = wxString_in_helper(obj1); | |
7448 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7449 | temp2 = true; |
d55e5bfc RD |
7450 | } |
7451 | if (obj2) { | |
c32bde28 | 7452 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7453 | if (PyErr_Occurred()) SWIG_fail; |
7454 | } | |
7455 | { | |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7457 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7458 | ||
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | { | |
7463 | #if wxUSE_UNICODE | |
7464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7465 | #else | |
7466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7467 | #endif | |
7468 | } | |
7469 | { | |
7470 | if (temp2) | |
7471 | delete arg2; | |
7472 | } | |
7473 | return resultobj; | |
7474 | fail: | |
7475 | { | |
7476 | if (temp2) | |
7477 | delete arg2; | |
7478 | } | |
7479 | return NULL; | |
7480 | } | |
7481 | ||
7482 | ||
c32bde28 | 7483 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7484 | PyObject *resultobj; |
7485 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7486 | wxString result; | |
7487 | PyObject * obj0 = 0 ; | |
7488 | char *kwnames[] = { | |
7489 | (char *) "self", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | result = (arg1)->FindNext(); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | { | |
7503 | #if wxUSE_UNICODE | |
7504 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7505 | #else | |
7506 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7507 | #endif | |
7508 | } | |
7509 | return resultobj; | |
7510 | fail: | |
7511 | return NULL; | |
7512 | } | |
7513 | ||
7514 | ||
c32bde28 | 7515 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7516 | PyObject *resultobj; |
7517 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7518 | PyObject * obj0 = 0 ; | |
7519 | char *kwnames[] = { | |
7520 | (char *) "handler", NULL | |
7521 | }; | |
7522 | ||
7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7526 | { | |
7527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7528 | wxFileSystem::AddHandler(arg1); | |
7529 | ||
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | Py_INCREF(Py_None); resultobj = Py_None; | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
c32bde28 | 7540 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7541 | PyObject *resultobj; |
7542 | char *kwnames[] = { | |
7543 | NULL | |
7544 | }; | |
7545 | ||
7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7547 | { | |
7548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7549 | wxFileSystem::CleanUpHandlers(); | |
7550 | ||
7551 | wxPyEndAllowThreads(__tstate); | |
7552 | if (PyErr_Occurred()) SWIG_fail; | |
7553 | } | |
7554 | Py_INCREF(Py_None); resultobj = Py_None; | |
7555 | return resultobj; | |
7556 | fail: | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
c32bde28 | 7561 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7562 | PyObject *resultobj; |
7563 | wxString *arg1 = 0 ; | |
7564 | wxString result; | |
ae8162c8 | 7565 | bool temp1 = false ; |
d55e5bfc RD |
7566 | PyObject * obj0 = 0 ; |
7567 | char *kwnames[] = { | |
7568 | (char *) "filename", NULL | |
7569 | }; | |
7570 | ||
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7572 | { | |
7573 | arg1 = wxString_in_helper(obj0); | |
7574 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7575 | temp1 = true; |
d55e5bfc RD |
7576 | } |
7577 | { | |
7578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7579 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7580 | ||
7581 | wxPyEndAllowThreads(__tstate); | |
7582 | if (PyErr_Occurred()) SWIG_fail; | |
7583 | } | |
7584 | { | |
7585 | #if wxUSE_UNICODE | |
7586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7587 | #else | |
7588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7589 | #endif | |
7590 | } | |
7591 | { | |
7592 | if (temp1) | |
7593 | delete arg1; | |
7594 | } | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | { | |
7598 | if (temp1) | |
7599 | delete arg1; | |
7600 | } | |
7601 | return NULL; | |
7602 | } | |
7603 | ||
7604 | ||
c32bde28 | 7605 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7606 | PyObject *resultobj; |
7607 | wxString *arg1 = 0 ; | |
7608 | wxString result; | |
ae8162c8 | 7609 | bool temp1 = false ; |
d55e5bfc RD |
7610 | PyObject * obj0 = 0 ; |
7611 | char *kwnames[] = { | |
7612 | (char *) "url", NULL | |
7613 | }; | |
7614 | ||
7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7616 | { | |
7617 | arg1 = wxString_in_helper(obj0); | |
7618 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7619 | temp1 = true; |
d55e5bfc RD |
7620 | } |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 7623 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
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 (temp1) | |
7637 | delete arg1; | |
7638 | } | |
7639 | return resultobj; | |
7640 | fail: | |
7641 | { | |
7642 | if (temp1) | |
7643 | delete arg1; | |
7644 | } | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
ae8162c8 RD |
7649 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7650 | PyObject *obj; | |
7651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7652 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7653 | Py_INCREF(obj); | |
7654 | return Py_BuildValue((char *)""); | |
7655 | } | |
c32bde28 | 7656 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7657 | PyObject *resultobj; |
7658 | wxInternetFSHandler *result; | |
7659 | char *kwnames[] = { | |
7660 | NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7664 | { | |
7665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7666 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7667 | ||
7668 | wxPyEndAllowThreads(__tstate); | |
7669 | if (PyErr_Occurred()) SWIG_fail; | |
7670 | } | |
7671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7672 | return resultobj; | |
7673 | fail: | |
7674 | return NULL; | |
7675 | } | |
7676 | ||
7677 | ||
c32bde28 | 7678 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7679 | PyObject *resultobj; |
7680 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7681 | wxString *arg2 = 0 ; | |
7682 | bool result; | |
ae8162c8 | 7683 | bool temp2 = false ; |
d55e5bfc RD |
7684 | PyObject * obj0 = 0 ; |
7685 | PyObject * obj1 = 0 ; | |
7686 | char *kwnames[] = { | |
7687 | (char *) "self",(char *) "location", NULL | |
7688 | }; | |
7689 | ||
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7693 | { | |
7694 | arg2 = wxString_in_helper(obj1); | |
7695 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7696 | temp2 = true; |
d55e5bfc RD |
7697 | } |
7698 | { | |
7699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7700 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7701 | ||
7702 | wxPyEndAllowThreads(__tstate); | |
7703 | if (PyErr_Occurred()) SWIG_fail; | |
7704 | } | |
7705 | { | |
7706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7707 | } | |
7708 | { | |
7709 | if (temp2) | |
7710 | delete arg2; | |
7711 | } | |
7712 | return resultobj; | |
7713 | fail: | |
7714 | { | |
7715 | if (temp2) | |
7716 | delete arg2; | |
7717 | } | |
7718 | return NULL; | |
7719 | } | |
7720 | ||
7721 | ||
c32bde28 | 7722 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7723 | PyObject *resultobj; |
7724 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7725 | wxFileSystem *arg2 = 0 ; | |
7726 | wxString *arg3 = 0 ; | |
7727 | wxFSFile *result; | |
ae8162c8 | 7728 | bool temp3 = false ; |
d55e5bfc RD |
7729 | PyObject * obj0 = 0 ; |
7730 | PyObject * obj1 = 0 ; | |
7731 | PyObject * obj2 = 0 ; | |
7732 | char *kwnames[] = { | |
7733 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7734 | }; | |
7735 | ||
7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7740 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7741 | SWIG_fail; | |
7742 | if (arg2 == NULL) { | |
7743 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7744 | SWIG_fail; | |
7745 | } | |
7746 | { | |
7747 | arg3 = wxString_in_helper(obj2); | |
7748 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7749 | temp3 = true; |
d55e5bfc RD |
7750 | } |
7751 | { | |
7752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7753 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7754 | ||
7755 | wxPyEndAllowThreads(__tstate); | |
7756 | if (PyErr_Occurred()) SWIG_fail; | |
7757 | } | |
7758 | { | |
4cf4100f | 7759 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7760 | } |
7761 | { | |
7762 | if (temp3) | |
7763 | delete arg3; | |
7764 | } | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | { | |
7768 | if (temp3) | |
7769 | delete arg3; | |
7770 | } | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
c32bde28 | 7775 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7776 | PyObject *obj; |
7777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7778 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7779 | Py_INCREF(obj); | |
7780 | return Py_BuildValue((char *)""); | |
7781 | } | |
c32bde28 | 7782 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7783 | PyObject *resultobj; |
7784 | wxZipFSHandler *result; | |
7785 | char *kwnames[] = { | |
7786 | NULL | |
7787 | }; | |
7788 | ||
7789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7790 | { | |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7792 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7793 | ||
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
7797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7798 | return resultobj; | |
7799 | fail: | |
7800 | return NULL; | |
7801 | } | |
7802 | ||
7803 | ||
c32bde28 | 7804 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7805 | PyObject *resultobj; |
7806 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7807 | wxString *arg2 = 0 ; | |
7808 | bool result; | |
ae8162c8 | 7809 | bool temp2 = false ; |
d55e5bfc RD |
7810 | PyObject * obj0 = 0 ; |
7811 | PyObject * obj1 = 0 ; | |
7812 | char *kwnames[] = { | |
7813 | (char *) "self",(char *) "location", NULL | |
7814 | }; | |
7815 | ||
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7819 | { | |
7820 | arg2 = wxString_in_helper(obj1); | |
7821 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7822 | temp2 = true; |
d55e5bfc RD |
7823 | } |
7824 | { | |
7825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7826 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7827 | ||
7828 | wxPyEndAllowThreads(__tstate); | |
7829 | if (PyErr_Occurred()) SWIG_fail; | |
7830 | } | |
7831 | { | |
7832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7833 | } | |
7834 | { | |
7835 | if (temp2) | |
7836 | delete arg2; | |
7837 | } | |
7838 | return resultobj; | |
7839 | fail: | |
7840 | { | |
7841 | if (temp2) | |
7842 | delete arg2; | |
7843 | } | |
7844 | return NULL; | |
7845 | } | |
7846 | ||
7847 | ||
c32bde28 | 7848 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7849 | PyObject *resultobj; |
7850 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7851 | wxFileSystem *arg2 = 0 ; | |
7852 | wxString *arg3 = 0 ; | |
7853 | wxFSFile *result; | |
ae8162c8 | 7854 | bool temp3 = false ; |
d55e5bfc RD |
7855 | PyObject * obj0 = 0 ; |
7856 | PyObject * obj1 = 0 ; | |
7857 | PyObject * obj2 = 0 ; | |
7858 | char *kwnames[] = { | |
7859 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7867 | SWIG_fail; | |
7868 | if (arg2 == NULL) { | |
7869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7870 | SWIG_fail; | |
7871 | } | |
7872 | { | |
7873 | arg3 = wxString_in_helper(obj2); | |
7874 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7875 | temp3 = true; |
d55e5bfc RD |
7876 | } |
7877 | { | |
7878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7879 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7880 | ||
7881 | wxPyEndAllowThreads(__tstate); | |
7882 | if (PyErr_Occurred()) SWIG_fail; | |
7883 | } | |
7884 | { | |
4cf4100f | 7885 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7886 | } |
7887 | { | |
7888 | if (temp3) | |
7889 | delete arg3; | |
7890 | } | |
7891 | return resultobj; | |
7892 | fail: | |
7893 | { | |
7894 | if (temp3) | |
7895 | delete arg3; | |
7896 | } | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
c32bde28 | 7901 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7902 | PyObject *resultobj; |
7903 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7904 | wxString *arg2 = 0 ; | |
7905 | int arg3 = (int) 0 ; | |
7906 | wxString result; | |
ae8162c8 | 7907 | bool temp2 = false ; |
d55e5bfc RD |
7908 | PyObject * obj0 = 0 ; |
7909 | PyObject * obj1 = 0 ; | |
7910 | PyObject * obj2 = 0 ; | |
7911 | char *kwnames[] = { | |
7912 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7913 | }; | |
7914 | ||
7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7918 | { | |
7919 | arg2 = wxString_in_helper(obj1); | |
7920 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7921 | temp2 = true; |
d55e5bfc RD |
7922 | } |
7923 | if (obj2) { | |
c32bde28 | 7924 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7925 | if (PyErr_Occurred()) SWIG_fail; |
7926 | } | |
7927 | { | |
7928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7929 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7930 | ||
7931 | wxPyEndAllowThreads(__tstate); | |
7932 | if (PyErr_Occurred()) SWIG_fail; | |
7933 | } | |
7934 | { | |
7935 | #if wxUSE_UNICODE | |
7936 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7937 | #else | |
7938 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7939 | #endif | |
7940 | } | |
7941 | { | |
7942 | if (temp2) | |
7943 | delete arg2; | |
7944 | } | |
7945 | return resultobj; | |
7946 | fail: | |
7947 | { | |
7948 | if (temp2) | |
7949 | delete arg2; | |
7950 | } | |
7951 | return NULL; | |
7952 | } | |
7953 | ||
7954 | ||
c32bde28 | 7955 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7956 | PyObject *resultobj; |
7957 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7958 | wxString result; | |
7959 | PyObject * obj0 = 0 ; | |
7960 | char *kwnames[] = { | |
7961 | (char *) "self", NULL | |
7962 | }; | |
7963 | ||
7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (arg1)->FindNext(); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | { | |
7975 | #if wxUSE_UNICODE | |
7976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7977 | #else | |
7978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7979 | #endif | |
7980 | } | |
7981 | return resultobj; | |
7982 | fail: | |
7983 | return NULL; | |
7984 | } | |
7985 | ||
7986 | ||
c32bde28 | 7987 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7988 | PyObject *obj; |
7989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7990 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7991 | Py_INCREF(obj); | |
7992 | return Py_BuildValue((char *)""); | |
7993 | } | |
c32bde28 | 7994 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7995 | PyObject *resultobj; |
7996 | wxString *arg1 = 0 ; | |
7997 | wxImage *arg2 = 0 ; | |
7998 | long arg3 ; | |
ae8162c8 | 7999 | bool temp1 = false ; |
d55e5bfc RD |
8000 | PyObject * obj0 = 0 ; |
8001 | PyObject * obj1 = 0 ; | |
8002 | PyObject * obj2 = 0 ; | |
8003 | char *kwnames[] = { | |
8004 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8005 | }; | |
8006 | ||
8007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8008 | { | |
8009 | arg1 = wxString_in_helper(obj0); | |
8010 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8011 | temp1 = true; |
d55e5bfc RD |
8012 | } |
8013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
8014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8015 | SWIG_fail; | |
8016 | if (arg2 == NULL) { | |
8017 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8018 | SWIG_fail; | |
8019 | } | |
c32bde28 | 8020 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8021 | if (PyErr_Occurred()) SWIG_fail; |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) SWIG_fail; | |
8028 | } | |
8029 | Py_INCREF(Py_None); resultobj = Py_None; | |
8030 | { | |
8031 | if (temp1) | |
8032 | delete arg1; | |
8033 | } | |
8034 | return resultobj; | |
8035 | fail: | |
8036 | { | |
8037 | if (temp1) | |
8038 | delete arg1; | |
8039 | } | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
c32bde28 | 8044 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8045 | PyObject *resultobj; |
8046 | wxString *arg1 = 0 ; | |
8047 | wxBitmap *arg2 = 0 ; | |
8048 | long arg3 ; | |
ae8162c8 | 8049 | bool temp1 = false ; |
d55e5bfc RD |
8050 | PyObject * obj0 = 0 ; |
8051 | PyObject * obj1 = 0 ; | |
8052 | PyObject * obj2 = 0 ; | |
8053 | char *kwnames[] = { | |
8054 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8055 | }; | |
8056 | ||
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8058 | { | |
8059 | arg1 = wxString_in_helper(obj0); | |
8060 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8061 | temp1 = true; |
d55e5bfc RD |
8062 | } |
8063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
8064 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8065 | SWIG_fail; | |
8066 | if (arg2 == NULL) { | |
8067 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8068 | SWIG_fail; | |
8069 | } | |
c32bde28 | 8070 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8071 | if (PyErr_Occurred()) SWIG_fail; |
8072 | { | |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
8079 | Py_INCREF(Py_None); resultobj = Py_None; | |
8080 | { | |
8081 | if (temp1) | |
8082 | delete arg1; | |
8083 | } | |
8084 | return resultobj; | |
8085 | fail: | |
8086 | { | |
8087 | if (temp1) | |
8088 | delete arg1; | |
8089 | } | |
8090 | return NULL; | |
8091 | } | |
8092 | ||
8093 | ||
c32bde28 | 8094 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8095 | PyObject *resultobj; |
8096 | wxString *arg1 = 0 ; | |
8097 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 8098 | bool temp1 = false ; |
d55e5bfc RD |
8099 | PyObject * obj0 = 0 ; |
8100 | PyObject * obj1 = 0 ; | |
8101 | char *kwnames[] = { | |
8102 | (char *) "filename",(char *) "data", NULL | |
8103 | }; | |
8104 | ||
8105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8106 | { | |
8107 | arg1 = wxString_in_helper(obj0); | |
8108 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8109 | temp1 = true; |
d55e5bfc RD |
8110 | } |
8111 | arg2 = obj1; | |
8112 | { | |
8113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8114 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8115 | ||
8116 | wxPyEndAllowThreads(__tstate); | |
8117 | if (PyErr_Occurred()) SWIG_fail; | |
8118 | } | |
8119 | Py_INCREF(Py_None); resultobj = Py_None; | |
8120 | { | |
8121 | if (temp1) | |
8122 | delete arg1; | |
8123 | } | |
8124 | return resultobj; | |
8125 | fail: | |
8126 | { | |
8127 | if (temp1) | |
8128 | delete arg1; | |
8129 | } | |
8130 | return NULL; | |
8131 | } | |
8132 | ||
8133 | ||
c32bde28 | 8134 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8135 | PyObject *resultobj; |
8136 | wxMemoryFSHandler *result; | |
8137 | char *kwnames[] = { | |
8138 | NULL | |
8139 | }; | |
8140 | ||
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8142 | { | |
8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8144 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8145 | ||
8146 | wxPyEndAllowThreads(__tstate); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
c32bde28 | 8156 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8157 | PyObject *resultobj; |
8158 | wxString *arg1 = 0 ; | |
ae8162c8 | 8159 | bool temp1 = false ; |
d55e5bfc RD |
8160 | PyObject * obj0 = 0 ; |
8161 | char *kwnames[] = { | |
8162 | (char *) "filename", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8166 | { | |
8167 | arg1 = wxString_in_helper(obj0); | |
8168 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8169 | temp1 = true; |
d55e5bfc RD |
8170 | } |
8171 | { | |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8173 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8174 | ||
8175 | wxPyEndAllowThreads(__tstate); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
8178 | Py_INCREF(Py_None); resultobj = Py_None; | |
8179 | { | |
8180 | if (temp1) | |
8181 | delete arg1; | |
8182 | } | |
8183 | return resultobj; | |
8184 | fail: | |
8185 | { | |
8186 | if (temp1) | |
8187 | delete arg1; | |
8188 | } | |
8189 | return NULL; | |
8190 | } | |
8191 | ||
8192 | ||
c32bde28 | 8193 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8194 | PyObject *resultobj; |
8195 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8196 | wxString *arg2 = 0 ; | |
8197 | bool result; | |
ae8162c8 | 8198 | bool temp2 = false ; |
d55e5bfc RD |
8199 | PyObject * obj0 = 0 ; |
8200 | PyObject * obj1 = 0 ; | |
8201 | char *kwnames[] = { | |
8202 | (char *) "self",(char *) "location", NULL | |
8203 | }; | |
8204 | ||
8205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
8206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8208 | { | |
8209 | arg2 = wxString_in_helper(obj1); | |
8210 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8211 | temp2 = true; |
d55e5bfc RD |
8212 | } |
8213 | { | |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
8220 | { | |
8221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8222 | } | |
8223 | { | |
8224 | if (temp2) | |
8225 | delete arg2; | |
8226 | } | |
8227 | return resultobj; | |
8228 | fail: | |
8229 | { | |
8230 | if (temp2) | |
8231 | delete arg2; | |
8232 | } | |
8233 | return NULL; | |
8234 | } | |
8235 | ||
8236 | ||
c32bde28 | 8237 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8238 | PyObject *resultobj; |
8239 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8240 | wxFileSystem *arg2 = 0 ; | |
8241 | wxString *arg3 = 0 ; | |
8242 | wxFSFile *result; | |
ae8162c8 | 8243 | bool temp3 = false ; |
d55e5bfc RD |
8244 | PyObject * obj0 = 0 ; |
8245 | PyObject * obj1 = 0 ; | |
8246 | PyObject * obj2 = 0 ; | |
8247 | char *kwnames[] = { | |
8248 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8249 | }; | |
8250 | ||
8251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8256 | SWIG_fail; | |
8257 | if (arg2 == NULL) { | |
8258 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8259 | SWIG_fail; | |
8260 | } | |
8261 | { | |
8262 | arg3 = wxString_in_helper(obj2); | |
8263 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8264 | temp3 = true; |
d55e5bfc RD |
8265 | } |
8266 | { | |
8267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8268 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8269 | ||
8270 | wxPyEndAllowThreads(__tstate); | |
8271 | if (PyErr_Occurred()) SWIG_fail; | |
8272 | } | |
8273 | { | |
4cf4100f | 8274 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8275 | } |
8276 | { | |
8277 | if (temp3) | |
8278 | delete arg3; | |
8279 | } | |
8280 | return resultobj; | |
8281 | fail: | |
8282 | { | |
8283 | if (temp3) | |
8284 | delete arg3; | |
8285 | } | |
8286 | return NULL; | |
8287 | } | |
8288 | ||
8289 | ||
c32bde28 | 8290 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8291 | PyObject *resultobj; |
8292 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8293 | wxString *arg2 = 0 ; | |
8294 | int arg3 = (int) 0 ; | |
8295 | wxString result; | |
ae8162c8 | 8296 | bool temp2 = false ; |
d55e5bfc RD |
8297 | PyObject * obj0 = 0 ; |
8298 | PyObject * obj1 = 0 ; | |
8299 | PyObject * obj2 = 0 ; | |
8300 | char *kwnames[] = { | |
8301 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8302 | }; | |
8303 | ||
8304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8307 | { | |
8308 | arg2 = wxString_in_helper(obj1); | |
8309 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8310 | temp2 = true; |
d55e5bfc RD |
8311 | } |
8312 | if (obj2) { | |
c32bde28 | 8313 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8314 | if (PyErr_Occurred()) SWIG_fail; |
8315 | } | |
8316 | { | |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8319 | ||
8320 | wxPyEndAllowThreads(__tstate); | |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
8322 | } | |
8323 | { | |
8324 | #if wxUSE_UNICODE | |
8325 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8326 | #else | |
8327 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8328 | #endif | |
8329 | } | |
8330 | { | |
8331 | if (temp2) | |
8332 | delete arg2; | |
8333 | } | |
8334 | return resultobj; | |
8335 | fail: | |
8336 | { | |
8337 | if (temp2) | |
8338 | delete arg2; | |
8339 | } | |
8340 | return NULL; | |
8341 | } | |
8342 | ||
8343 | ||
c32bde28 | 8344 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8345 | PyObject *resultobj; |
8346 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8347 | wxString result; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | char *kwnames[] = { | |
8350 | (char *) "self", NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | result = (arg1)->FindNext(); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | { | |
8364 | #if wxUSE_UNICODE | |
8365 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8366 | #else | |
8367 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8368 | #endif | |
8369 | } | |
8370 | return resultobj; | |
8371 | fail: | |
8372 | return NULL; | |
8373 | } | |
8374 | ||
8375 | ||
c32bde28 | 8376 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8377 | PyObject *obj; |
8378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8379 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8380 | Py_INCREF(obj); | |
8381 | return Py_BuildValue((char *)""); | |
8382 | } | |
c32bde28 | 8383 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8384 | PyObject *resultobj; |
8385 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8386 | wxString result; | |
8387 | PyObject * obj0 = 0 ; | |
8388 | char *kwnames[] = { | |
8389 | (char *) "self", NULL | |
8390 | }; | |
8391 | ||
8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8395 | { | |
8396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8397 | result = (arg1)->GetName(); | |
8398 | ||
8399 | wxPyEndAllowThreads(__tstate); | |
8400 | if (PyErr_Occurred()) SWIG_fail; | |
8401 | } | |
8402 | { | |
8403 | #if wxUSE_UNICODE | |
8404 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8405 | #else | |
8406 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8407 | #endif | |
8408 | } | |
8409 | return resultobj; | |
8410 | fail: | |
8411 | return NULL; | |
8412 | } | |
8413 | ||
8414 | ||
c32bde28 | 8415 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8416 | PyObject *resultobj; |
8417 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8418 | wxString result; | |
8419 | PyObject * obj0 = 0 ; | |
8420 | char *kwnames[] = { | |
8421 | (char *) "self", NULL | |
8422 | }; | |
8423 | ||
8424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8427 | { | |
8428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8429 | result = (arg1)->GetExtension(); | |
8430 | ||
8431 | wxPyEndAllowThreads(__tstate); | |
8432 | if (PyErr_Occurred()) SWIG_fail; | |
8433 | } | |
8434 | { | |
8435 | #if wxUSE_UNICODE | |
8436 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8437 | #else | |
8438 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8439 | #endif | |
8440 | } | |
8441 | return resultobj; | |
8442 | fail: | |
8443 | return NULL; | |
8444 | } | |
8445 | ||
8446 | ||
c32bde28 | 8447 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8448 | PyObject *resultobj; |
8449 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8450 | long result; | |
8451 | PyObject * obj0 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8459 | { | |
8460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8461 | result = (long)(arg1)->GetType(); | |
8462 | ||
8463 | wxPyEndAllowThreads(__tstate); | |
8464 | if (PyErr_Occurred()) SWIG_fail; | |
8465 | } | |
c32bde28 | 8466 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8467 | return resultobj; |
8468 | fail: | |
8469 | return NULL; | |
8470 | } | |
8471 | ||
8472 | ||
c32bde28 | 8473 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8474 | PyObject *resultobj; |
8475 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8476 | wxString result; | |
8477 | PyObject * obj0 = 0 ; | |
8478 | char *kwnames[] = { | |
8479 | (char *) "self", NULL | |
8480 | }; | |
8481 | ||
8482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8485 | { | |
8486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8487 | result = (arg1)->GetMimeType(); | |
8488 | ||
8489 | wxPyEndAllowThreads(__tstate); | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
8492 | { | |
8493 | #if wxUSE_UNICODE | |
8494 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8495 | #else | |
8496 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8497 | #endif | |
8498 | } | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
c32bde28 | 8505 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8506 | PyObject *resultobj; |
8507 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8508 | wxString *arg2 = 0 ; | |
8509 | bool result; | |
ae8162c8 | 8510 | bool temp2 = false ; |
d55e5bfc RD |
8511 | PyObject * obj0 = 0 ; |
8512 | PyObject * obj1 = 0 ; | |
8513 | char *kwnames[] = { | |
8514 | (char *) "self",(char *) "name", NULL | |
8515 | }; | |
8516 | ||
8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8520 | { | |
8521 | arg2 = wxString_in_helper(obj1); | |
8522 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8523 | temp2 = true; |
d55e5bfc RD |
8524 | } |
8525 | { | |
8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8527 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8528 | ||
8529 | wxPyEndAllowThreads(__tstate); | |
8530 | if (PyErr_Occurred()) SWIG_fail; | |
8531 | } | |
8532 | { | |
8533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8534 | } | |
8535 | { | |
8536 | if (temp2) | |
8537 | delete arg2; | |
8538 | } | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | { | |
8542 | if (temp2) | |
8543 | delete arg2; | |
8544 | } | |
8545 | return NULL; | |
8546 | } | |
8547 | ||
8548 | ||
c32bde28 | 8549 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8550 | PyObject *resultobj; |
8551 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8552 | wxString *arg2 = 0 ; | |
ae8162c8 | 8553 | bool temp2 = false ; |
d55e5bfc RD |
8554 | PyObject * obj0 = 0 ; |
8555 | PyObject * obj1 = 0 ; | |
8556 | char *kwnames[] = { | |
8557 | (char *) "self",(char *) "name", NULL | |
8558 | }; | |
8559 | ||
8560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8563 | { | |
8564 | arg2 = wxString_in_helper(obj1); | |
8565 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8566 | temp2 = true; |
d55e5bfc RD |
8567 | } |
8568 | { | |
8569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8570 | (arg1)->SetName((wxString const &)*arg2); | |
8571 | ||
8572 | wxPyEndAllowThreads(__tstate); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | Py_INCREF(Py_None); resultobj = Py_None; | |
8576 | { | |
8577 | if (temp2) | |
8578 | delete arg2; | |
8579 | } | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | { | |
8583 | if (temp2) | |
8584 | delete arg2; | |
8585 | } | |
8586 | return NULL; | |
8587 | } | |
8588 | ||
8589 | ||
c32bde28 | 8590 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8591 | PyObject *resultobj; |
8592 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8593 | wxString *arg2 = 0 ; | |
ae8162c8 | 8594 | bool temp2 = false ; |
d55e5bfc RD |
8595 | PyObject * obj0 = 0 ; |
8596 | PyObject * obj1 = 0 ; | |
8597 | char *kwnames[] = { | |
8598 | (char *) "self",(char *) "extension", NULL | |
8599 | }; | |
8600 | ||
8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8604 | { | |
8605 | arg2 = wxString_in_helper(obj1); | |
8606 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8607 | temp2 = true; |
d55e5bfc RD |
8608 | } |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | (arg1)->SetExtension((wxString const &)*arg2); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | Py_INCREF(Py_None); resultobj = Py_None; | |
8617 | { | |
8618 | if (temp2) | |
8619 | delete arg2; | |
8620 | } | |
8621 | return resultobj; | |
8622 | fail: | |
8623 | { | |
8624 | if (temp2) | |
8625 | delete arg2; | |
8626 | } | |
8627 | return NULL; | |
8628 | } | |
8629 | ||
8630 | ||
c32bde28 | 8631 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8632 | PyObject *resultobj; |
8633 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8634 | long arg2 ; | |
8635 | PyObject * obj0 = 0 ; | |
8636 | PyObject * obj1 = 0 ; | |
8637 | char *kwnames[] = { | |
8638 | (char *) "self",(char *) "type", NULL | |
8639 | }; | |
8640 | ||
8641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8644 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8645 | if (PyErr_Occurred()) SWIG_fail; |
8646 | { | |
8647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8648 | (arg1)->SetType(arg2); | |
8649 | ||
8650 | wxPyEndAllowThreads(__tstate); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | Py_INCREF(Py_None); resultobj = Py_None; | |
8654 | return resultobj; | |
8655 | fail: | |
8656 | return NULL; | |
8657 | } | |
8658 | ||
8659 | ||
c32bde28 | 8660 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8661 | PyObject *resultobj; |
8662 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8663 | wxString *arg2 = 0 ; | |
ae8162c8 | 8664 | bool temp2 = false ; |
d55e5bfc RD |
8665 | PyObject * obj0 = 0 ; |
8666 | PyObject * obj1 = 0 ; | |
8667 | char *kwnames[] = { | |
8668 | (char *) "self",(char *) "mimetype", NULL | |
8669 | }; | |
8670 | ||
8671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8674 | { | |
8675 | arg2 = wxString_in_helper(obj1); | |
8676 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8677 | temp2 = true; |
d55e5bfc RD |
8678 | } |
8679 | { | |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | Py_INCREF(Py_None); resultobj = Py_None; | |
8687 | { | |
8688 | if (temp2) | |
8689 | delete arg2; | |
8690 | } | |
8691 | return resultobj; | |
8692 | fail: | |
8693 | { | |
8694 | if (temp2) | |
8695 | delete arg2; | |
8696 | } | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
c32bde28 | 8701 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8702 | PyObject *obj; |
8703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8704 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8705 | Py_INCREF(obj); | |
8706 | return Py_BuildValue((char *)""); | |
8707 | } | |
c32bde28 | 8708 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8709 | PyObject *resultobj; |
8710 | wxImageHistogram *result; | |
8711 | char *kwnames[] = { | |
8712 | NULL | |
8713 | }; | |
8714 | ||
8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8716 | { | |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8724 | return resultobj; | |
8725 | fail: | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
c32bde28 | 8730 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8731 | PyObject *resultobj; |
8732 | unsigned char arg1 ; | |
8733 | unsigned char arg2 ; | |
8734 | unsigned char arg3 ; | |
8735 | unsigned long result; | |
8736 | PyObject * obj0 = 0 ; | |
8737 | PyObject * obj1 = 0 ; | |
8738 | PyObject * obj2 = 0 ; | |
8739 | char *kwnames[] = { | |
8740 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8741 | }; | |
8742 | ||
8743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 8744 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc | 8745 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8746 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 8747 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8748 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8749 | if (PyErr_Occurred()) SWIG_fail; |
8750 | { | |
8751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8752 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8753 | ||
8754 | wxPyEndAllowThreads(__tstate); | |
8755 | if (PyErr_Occurred()) SWIG_fail; | |
8756 | } | |
c32bde28 | 8757 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8758 | return resultobj; |
8759 | fail: | |
8760 | return NULL; | |
8761 | } | |
8762 | ||
8763 | ||
c32bde28 | 8764 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8765 | PyObject *resultobj; |
8766 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8767 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8768 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8769 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8770 | unsigned char arg5 = (unsigned char) 1 ; | |
8771 | unsigned char arg6 = (unsigned char) 0 ; | |
8772 | unsigned char arg7 = (unsigned char) 0 ; | |
8773 | bool result; | |
8774 | unsigned char temp2 ; | |
c32bde28 | 8775 | int res2 = 0 ; |
d55e5bfc | 8776 | unsigned char temp3 ; |
c32bde28 | 8777 | int res3 = 0 ; |
d55e5bfc | 8778 | unsigned char temp4 ; |
c32bde28 | 8779 | int res4 = 0 ; |
d55e5bfc RD |
8780 | PyObject * obj0 = 0 ; |
8781 | PyObject * obj1 = 0 ; | |
8782 | PyObject * obj2 = 0 ; | |
8783 | PyObject * obj3 = 0 ; | |
8784 | char *kwnames[] = { | |
8785 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8786 | }; | |
8787 | ||
c32bde28 RD |
8788 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8789 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8790 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8794 | if (obj1) { | |
c32bde28 | 8795 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
8796 | if (PyErr_Occurred()) SWIG_fail; |
8797 | } | |
8798 | if (obj2) { | |
c32bde28 | 8799 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8800 | if (PyErr_Occurred()) SWIG_fail; |
8801 | } | |
8802 | if (obj3) { | |
c32bde28 | 8803 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
8804 | if (PyErr_Occurred()) SWIG_fail; |
8805 | } | |
8806 | { | |
8807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8808 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8809 | ||
8810 | wxPyEndAllowThreads(__tstate); | |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
8812 | } | |
8813 | { | |
8814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8815 | } | |
c32bde28 RD |
8816 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8817 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8818 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8819 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8820 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8821 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
8822 | return resultobj; |
8823 | fail: | |
8824 | return NULL; | |
8825 | } | |
8826 | ||
8827 | ||
c32bde28 | 8828 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8829 | PyObject *obj; |
8830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8831 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8832 | Py_INCREF(obj); | |
8833 | return Py_BuildValue((char *)""); | |
8834 | } | |
c32bde28 | 8835 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8836 | PyObject *resultobj; |
8837 | wxString *arg1 = 0 ; | |
8838 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8839 | int arg3 = (int) -1 ; | |
8840 | wxImage *result; | |
ae8162c8 | 8841 | bool temp1 = false ; |
d55e5bfc RD |
8842 | PyObject * obj0 = 0 ; |
8843 | PyObject * obj1 = 0 ; | |
8844 | PyObject * obj2 = 0 ; | |
8845 | char *kwnames[] = { | |
8846 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8847 | }; | |
8848 | ||
8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8850 | { | |
8851 | arg1 = wxString_in_helper(obj0); | |
8852 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8853 | temp1 = true; |
d55e5bfc RD |
8854 | } |
8855 | if (obj1) { | |
c32bde28 | 8856 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8857 | if (PyErr_Occurred()) SWIG_fail; |
8858 | } | |
8859 | if (obj2) { | |
c32bde28 | 8860 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8861 | if (PyErr_Occurred()) SWIG_fail; |
8862 | } | |
8863 | { | |
8864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8865 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8866 | ||
8867 | wxPyEndAllowThreads(__tstate); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | } | |
8870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8871 | { | |
8872 | if (temp1) | |
8873 | delete arg1; | |
8874 | } | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | { | |
8878 | if (temp1) | |
8879 | delete arg1; | |
8880 | } | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
c32bde28 | 8885 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8886 | PyObject *resultobj; |
8887 | wxImage *arg1 = (wxImage *) 0 ; | |
8888 | PyObject * obj0 = 0 ; | |
8889 | char *kwnames[] = { | |
8890 | (char *) "self", NULL | |
8891 | }; | |
8892 | ||
8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8896 | { | |
8897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8898 | delete arg1; | |
8899 | ||
8900 | wxPyEndAllowThreads(__tstate); | |
8901 | if (PyErr_Occurred()) SWIG_fail; | |
8902 | } | |
8903 | Py_INCREF(Py_None); resultobj = Py_None; | |
8904 | return resultobj; | |
8905 | fail: | |
8906 | return NULL; | |
8907 | } | |
8908 | ||
8909 | ||
c32bde28 | 8910 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8911 | PyObject *resultobj; |
8912 | wxString *arg1 = 0 ; | |
8913 | wxString *arg2 = 0 ; | |
8914 | int arg3 = (int) -1 ; | |
8915 | wxImage *result; | |
ae8162c8 RD |
8916 | bool temp1 = false ; |
8917 | bool temp2 = false ; | |
d55e5bfc RD |
8918 | PyObject * obj0 = 0 ; |
8919 | PyObject * obj1 = 0 ; | |
8920 | PyObject * obj2 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8926 | { | |
8927 | arg1 = wxString_in_helper(obj0); | |
8928 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8929 | temp1 = true; |
d55e5bfc RD |
8930 | } |
8931 | { | |
8932 | arg2 = wxString_in_helper(obj1); | |
8933 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8934 | temp2 = true; |
d55e5bfc RD |
8935 | } |
8936 | if (obj2) { | |
c32bde28 | 8937 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8938 | if (PyErr_Occurred()) SWIG_fail; |
8939 | } | |
8940 | { | |
8941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8942 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8943 | ||
8944 | wxPyEndAllowThreads(__tstate); | |
8945 | if (PyErr_Occurred()) SWIG_fail; | |
8946 | } | |
8947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8948 | { | |
8949 | if (temp1) | |
8950 | delete arg1; | |
8951 | } | |
8952 | { | |
8953 | if (temp2) | |
8954 | delete arg2; | |
8955 | } | |
8956 | return resultobj; | |
8957 | fail: | |
8958 | { | |
8959 | if (temp1) | |
8960 | delete arg1; | |
8961 | } | |
8962 | { | |
8963 | if (temp2) | |
8964 | delete arg2; | |
8965 | } | |
8966 | return NULL; | |
8967 | } | |
8968 | ||
8969 | ||
c32bde28 | 8970 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8971 | PyObject *resultobj; |
8972 | wxInputStream *arg1 = 0 ; | |
8973 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8974 | int arg3 = (int) -1 ; | |
8975 | wxImage *result; | |
8976 | wxPyInputStream *temp1 ; | |
8977 | bool created1 ; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | PyObject * obj1 = 0 ; | |
8980 | PyObject * obj2 = 0 ; | |
8981 | char *kwnames[] = { | |
8982 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8983 | }; | |
8984 | ||
8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8986 | { | |
8987 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8988 | arg1 = temp1->m_wxis; | |
ae8162c8 | 8989 | created1 = false; |
d55e5bfc RD |
8990 | } else { |
8991 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 8992 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
8993 | if (arg1 == NULL) { |
8994 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8995 | SWIG_fail; | |
8996 | } | |
ae8162c8 | 8997 | created1 = true; |
d55e5bfc RD |
8998 | } |
8999 | } | |
9000 | if (obj1) { | |
c32bde28 | 9001 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9002 | if (PyErr_Occurred()) SWIG_fail; |
9003 | } | |
9004 | if (obj2) { | |
c32bde28 | 9005 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9006 | if (PyErr_Occurred()) SWIG_fail; |
9007 | } | |
9008 | { | |
9009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9010 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9011 | ||
9012 | wxPyEndAllowThreads(__tstate); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
9015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9016 | { | |
9017 | if (created1) | |
9018 | delete arg1; | |
9019 | } | |
9020 | return resultobj; | |
9021 | fail: | |
9022 | { | |
9023 | if (created1) | |
9024 | delete arg1; | |
9025 | } | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
c32bde28 | 9030 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9031 | PyObject *resultobj; |
9032 | wxInputStream *arg1 = 0 ; | |
9033 | wxString *arg2 = 0 ; | |
9034 | int arg3 = (int) -1 ; | |
9035 | wxImage *result; | |
9036 | wxPyInputStream *temp1 ; | |
9037 | bool created1 ; | |
ae8162c8 | 9038 | bool temp2 = false ; |
d55e5bfc RD |
9039 | PyObject * obj0 = 0 ; |
9040 | PyObject * obj1 = 0 ; | |
9041 | PyObject * obj2 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9047 | { | |
9048 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9049 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9050 | created1 = false; |
d55e5bfc RD |
9051 | } else { |
9052 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9053 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9054 | if (arg1 == NULL) { |
9055 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9056 | SWIG_fail; | |
9057 | } | |
ae8162c8 | 9058 | created1 = true; |
d55e5bfc RD |
9059 | } |
9060 | } | |
9061 | { | |
9062 | arg2 = wxString_in_helper(obj1); | |
9063 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9064 | temp2 = true; |
d55e5bfc RD |
9065 | } |
9066 | if (obj2) { | |
c32bde28 | 9067 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9068 | if (PyErr_Occurred()) SWIG_fail; |
9069 | } | |
9070 | { | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9073 | ||
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
9077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9078 | { | |
9079 | if (created1) | |
9080 | delete arg1; | |
9081 | } | |
9082 | { | |
9083 | if (temp2) | |
9084 | delete arg2; | |
9085 | } | |
9086 | return resultobj; | |
9087 | fail: | |
9088 | { | |
9089 | if (created1) | |
9090 | delete arg1; | |
9091 | } | |
9092 | { | |
9093 | if (temp2) | |
9094 | delete arg2; | |
9095 | } | |
9096 | return NULL; | |
9097 | } | |
9098 | ||
9099 | ||
c32bde28 | 9100 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9101 | PyObject *resultobj; |
9102 | int arg1 = (int) 0 ; | |
9103 | int arg2 = (int) 0 ; | |
ae8162c8 | 9104 | bool arg3 = (bool) true ; |
d55e5bfc RD |
9105 | wxImage *result; |
9106 | PyObject * obj0 = 0 ; | |
9107 | PyObject * obj1 = 0 ; | |
9108 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
9109 | char *kwnames[] = { |
9110 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9111 | }; | |
d55e5bfc | 9112 | |
c24da6d6 | 9113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 9114 | if (obj0) { |
c32bde28 | 9115 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9116 | if (PyErr_Occurred()) SWIG_fail; |
9117 | } | |
9118 | if (obj1) { | |
c32bde28 | 9119 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9120 | if (PyErr_Occurred()) SWIG_fail; |
9121 | } | |
9122 | if (obj2) { | |
c32bde28 | 9123 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9124 | if (PyErr_Occurred()) SWIG_fail; |
9125 | } | |
9126 | { | |
9127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 9128 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
9129 | |
9130 | wxPyEndAllowThreads(__tstate); | |
9131 | if (PyErr_Occurred()) SWIG_fail; | |
9132 | } | |
9133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | return NULL; | |
9137 | } | |
9138 | ||
9139 | ||
c32bde28 | 9140 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9141 | PyObject *resultobj; |
9142 | wxBitmap *arg1 = 0 ; | |
9143 | wxImage *result; | |
9144 | PyObject * obj0 = 0 ; | |
9145 | char *kwnames[] = { | |
9146 | (char *) "bitmap", NULL | |
9147 | }; | |
9148 | ||
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
9150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
9151 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9152 | SWIG_fail; | |
9153 | if (arg1 == NULL) { | |
9154 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9155 | SWIG_fail; | |
9156 | } | |
9157 | { | |
0439c23b | 9158 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9160 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9161 | ||
9162 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9163 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9164 | } |
9165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9166 | return resultobj; | |
9167 | fail: | |
9168 | return NULL; | |
9169 | } | |
9170 | ||
9171 | ||
c32bde28 | 9172 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9173 | PyObject *resultobj; |
9174 | int arg1 ; | |
9175 | int arg2 ; | |
9176 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9177 | wxImage *result; | |
9178 | PyObject * obj0 = 0 ; | |
9179 | PyObject * obj1 = 0 ; | |
9180 | PyObject * obj2 = 0 ; | |
9181 | char *kwnames[] = { | |
9182 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9183 | }; | |
9184 | ||
9185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 9186 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 9187 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9188 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9189 | if (PyErr_Occurred()) SWIG_fail; |
9190 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9192 | { | |
9193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9194 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9195 | ||
9196 | wxPyEndAllowThreads(__tstate); | |
9197 | if (PyErr_Occurred()) SWIG_fail; | |
9198 | } | |
9199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9200 | return resultobj; | |
9201 | fail: | |
9202 | return NULL; | |
9203 | } | |
9204 | ||
9205 | ||
c32bde28 | 9206 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9207 | PyObject *resultobj; |
9208 | wxImage *arg1 = (wxImage *) 0 ; | |
9209 | int arg2 ; | |
9210 | int arg3 ; | |
9211 | PyObject * obj0 = 0 ; | |
9212 | PyObject * obj1 = 0 ; | |
9213 | PyObject * obj2 = 0 ; | |
9214 | char *kwnames[] = { | |
9215 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9216 | }; | |
9217 | ||
9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9221 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9222 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9223 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9224 | if (PyErr_Occurred()) SWIG_fail; |
9225 | { | |
9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9227 | (arg1)->Create(arg2,arg3); | |
9228 | ||
9229 | wxPyEndAllowThreads(__tstate); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | } | |
9232 | Py_INCREF(Py_None); resultobj = Py_None; | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
c32bde28 | 9239 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9240 | PyObject *resultobj; |
9241 | wxImage *arg1 = (wxImage *) 0 ; | |
9242 | PyObject * obj0 = 0 ; | |
9243 | char *kwnames[] = { | |
9244 | (char *) "self", NULL | |
9245 | }; | |
9246 | ||
9247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9250 | { | |
9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9252 | (arg1)->Destroy(); | |
9253 | ||
9254 | wxPyEndAllowThreads(__tstate); | |
9255 | if (PyErr_Occurred()) SWIG_fail; | |
9256 | } | |
9257 | Py_INCREF(Py_None); resultobj = Py_None; | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
c32bde28 | 9264 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9265 | PyObject *resultobj; |
9266 | wxImage *arg1 = (wxImage *) 0 ; | |
9267 | int arg2 ; | |
9268 | int arg3 ; | |
9269 | SwigValueWrapper< wxImage > result; | |
9270 | PyObject * obj0 = 0 ; | |
9271 | PyObject * obj1 = 0 ; | |
9272 | PyObject * obj2 = 0 ; | |
9273 | char *kwnames[] = { | |
9274 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9275 | }; | |
9276 | ||
9277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9280 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9281 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9282 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9283 | if (PyErr_Occurred()) SWIG_fail; |
9284 | { | |
9285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9286 | result = (arg1)->Scale(arg2,arg3); | |
9287 | ||
9288 | wxPyEndAllowThreads(__tstate); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
9291 | { | |
9292 | wxImage * resultptr; | |
9293 | resultptr = new wxImage((wxImage &) result); | |
9294 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9295 | } | |
9296 | return resultobj; | |
9297 | fail: | |
9298 | return NULL; | |
9299 | } | |
9300 | ||
9301 | ||
c32bde28 | 9302 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9303 | PyObject *resultobj; |
9304 | wxImage *arg1 = (wxImage *) 0 ; | |
9305 | int arg2 ; | |
9306 | int arg3 ; | |
9307 | SwigValueWrapper< wxImage > result; | |
9308 | PyObject * obj0 = 0 ; | |
9309 | PyObject * obj1 = 0 ; | |
9310 | PyObject * obj2 = 0 ; | |
9311 | char *kwnames[] = { | |
9312 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9313 | }; | |
9314 | ||
9315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9318 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9319 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9320 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9321 | if (PyErr_Occurred()) SWIG_fail; |
9322 | { | |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
9329 | { | |
9330 | wxImage * resultptr; | |
9331 | resultptr = new wxImage((wxImage &) result); | |
9332 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9333 | } | |
9334 | return resultobj; | |
9335 | fail: | |
9336 | return NULL; | |
9337 | } | |
9338 | ||
9339 | ||
c32bde28 | 9340 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9341 | PyObject *resultobj; |
9342 | wxImage *arg1 = (wxImage *) 0 ; | |
9343 | int arg2 ; | |
9344 | int arg3 ; | |
9345 | wxImage *result; | |
9346 | PyObject * obj0 = 0 ; | |
9347 | PyObject * obj1 = 0 ; | |
9348 | PyObject * obj2 = 0 ; | |
9349 | char *kwnames[] = { | |
9350 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9351 | }; | |
9352 | ||
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9356 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9357 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9358 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9359 | if (PyErr_Occurred()) SWIG_fail; |
9360 | { | |
9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9362 | { | |
9363 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9364 | result = (wxImage *) &_result_ref; | |
9365 | } | |
9366 | ||
9367 | wxPyEndAllowThreads(__tstate); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
9370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9371 | return resultobj; | |
9372 | fail: | |
9373 | return NULL; | |
9374 | } | |
9375 | ||
9376 | ||
c32bde28 | 9377 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9378 | PyObject *resultobj; |
9379 | wxImage *arg1 = (wxImage *) 0 ; | |
9380 | int arg2 ; | |
9381 | int arg3 ; | |
9382 | unsigned char arg4 ; | |
9383 | unsigned char arg5 ; | |
9384 | unsigned char arg6 ; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | PyObject * obj1 = 0 ; | |
9387 | PyObject * obj2 = 0 ; | |
9388 | PyObject * obj3 = 0 ; | |
9389 | PyObject * obj4 = 0 ; | |
9390 | PyObject * obj5 = 0 ; | |
9391 | char *kwnames[] = { | |
9392 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9393 | }; | |
9394 | ||
9395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9398 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9399 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9400 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9401 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9402 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9403 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9404 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 9405 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9406 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc RD |
9407 | if (PyErr_Occurred()) SWIG_fail; |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9410 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9411 | ||
9412 | wxPyEndAllowThreads(__tstate); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | } | |
9415 | Py_INCREF(Py_None); resultobj = Py_None; | |
9416 | return resultobj; | |
9417 | fail: | |
9418 | return NULL; | |
9419 | } | |
9420 | ||
9421 | ||
c32bde28 | 9422 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9423 | PyObject *resultobj; |
9424 | wxImage *arg1 = (wxImage *) 0 ; | |
9425 | int arg2 ; | |
9426 | int arg3 ; | |
9427 | unsigned char result; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | PyObject * obj1 = 0 ; | |
9430 | PyObject * obj2 = 0 ; | |
9431 | char *kwnames[] = { | |
9432 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9433 | }; | |
9434 | ||
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9438 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9439 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9440 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9441 | if (PyErr_Occurred()) SWIG_fail; |
9442 | { | |
9443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9444 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9445 | ||
9446 | wxPyEndAllowThreads(__tstate); | |
9447 | if (PyErr_Occurred()) SWIG_fail; | |
9448 | } | |
c32bde28 | 9449 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9450 | return resultobj; |
9451 | fail: | |
9452 | return NULL; | |
9453 | } | |
9454 | ||
9455 | ||
c32bde28 | 9456 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9457 | PyObject *resultobj; |
9458 | wxImage *arg1 = (wxImage *) 0 ; | |
9459 | int arg2 ; | |
9460 | int arg3 ; | |
9461 | unsigned char result; | |
9462 | PyObject * obj0 = 0 ; | |
9463 | PyObject * obj1 = 0 ; | |
9464 | PyObject * obj2 = 0 ; | |
9465 | char *kwnames[] = { | |
9466 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9467 | }; | |
9468 | ||
9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9472 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9473 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9474 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9475 | if (PyErr_Occurred()) SWIG_fail; |
9476 | { | |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9479 | ||
9480 | wxPyEndAllowThreads(__tstate); | |
9481 | if (PyErr_Occurred()) SWIG_fail; | |
9482 | } | |
c32bde28 | 9483 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9484 | return resultobj; |
9485 | fail: | |
9486 | return NULL; | |
9487 | } | |
9488 | ||
9489 | ||
c32bde28 | 9490 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9491 | PyObject *resultobj; |
9492 | wxImage *arg1 = (wxImage *) 0 ; | |
9493 | int arg2 ; | |
9494 | int arg3 ; | |
9495 | unsigned char result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | PyObject * obj1 = 0 ; | |
9498 | PyObject * obj2 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9506 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9507 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9508 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9509 | if (PyErr_Occurred()) SWIG_fail; |
9510 | { | |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
c32bde28 | 9517 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9518 | return resultobj; |
9519 | fail: | |
9520 | return NULL; | |
9521 | } | |
9522 | ||
9523 | ||
c32bde28 | 9524 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9525 | PyObject *resultobj; |
9526 | wxImage *arg1 = (wxImage *) 0 ; | |
9527 | int arg2 ; | |
9528 | int arg3 ; | |
9529 | unsigned char arg4 ; | |
9530 | PyObject * obj0 = 0 ; | |
9531 | PyObject * obj1 = 0 ; | |
9532 | PyObject * obj2 = 0 ; | |
9533 | PyObject * obj3 = 0 ; | |
9534 | char *kwnames[] = { | |
9535 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9536 | }; | |
9537 | ||
9538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9541 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9542 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9543 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9544 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9545 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9546 | if (PyErr_Occurred()) SWIG_fail; |
9547 | { | |
9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9549 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9550 | ||
9551 | wxPyEndAllowThreads(__tstate); | |
9552 | if (PyErr_Occurred()) SWIG_fail; | |
9553 | } | |
9554 | Py_INCREF(Py_None); resultobj = Py_None; | |
9555 | return resultobj; | |
9556 | fail: | |
9557 | return NULL; | |
9558 | } | |
9559 | ||
9560 | ||
c32bde28 | 9561 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9562 | PyObject *resultobj; |
9563 | wxImage *arg1 = (wxImage *) 0 ; | |
9564 | int arg2 ; | |
9565 | int arg3 ; | |
9566 | unsigned char result; | |
9567 | PyObject * obj0 = 0 ; | |
9568 | PyObject * obj1 = 0 ; | |
9569 | PyObject * obj2 = 0 ; | |
9570 | char *kwnames[] = { | |
9571 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9572 | }; | |
9573 | ||
9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9577 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9578 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9579 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9580 | if (PyErr_Occurred()) SWIG_fail; |
9581 | { | |
9582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9583 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9584 | ||
9585 | wxPyEndAllowThreads(__tstate); | |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
c32bde28 | 9588 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9589 | return resultobj; |
9590 | fail: | |
9591 | return NULL; | |
9592 | } | |
9593 | ||
9594 | ||
c32bde28 | 9595 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9596 | PyObject *resultobj; |
9597 | wxImage *arg1 = (wxImage *) 0 ; | |
9598 | bool result; | |
9599 | PyObject * obj0 = 0 ; | |
9600 | char *kwnames[] = { | |
9601 | (char *) "self", NULL | |
9602 | }; | |
9603 | ||
9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9607 | { | |
9608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9609 | result = (bool)(arg1)->HasAlpha(); | |
9610 | ||
9611 | wxPyEndAllowThreads(__tstate); | |
9612 | if (PyErr_Occurred()) SWIG_fail; | |
9613 | } | |
9614 | { | |
9615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9616 | } | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | return NULL; | |
9620 | } | |
9621 | ||
9622 | ||
c32bde28 | 9623 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9624 | PyObject *resultobj; |
9625 | wxImage *arg1 = (wxImage *) 0 ; | |
9626 | byte *arg2 = (byte *) 0 ; | |
9627 | byte *arg3 = (byte *) 0 ; | |
9628 | byte *arg4 = (byte *) 0 ; | |
9629 | byte arg5 = (byte) 0 ; | |
9630 | byte arg6 = (byte) 0 ; | |
9631 | byte arg7 = (byte) 0 ; | |
9632 | bool result; | |
9633 | byte temp2 ; | |
c32bde28 | 9634 | int res2 = 0 ; |
d55e5bfc | 9635 | byte temp3 ; |
c32bde28 | 9636 | int res3 = 0 ; |
d55e5bfc | 9637 | byte temp4 ; |
c32bde28 | 9638 | int res4 = 0 ; |
d55e5bfc RD |
9639 | PyObject * obj0 = 0 ; |
9640 | PyObject * obj1 = 0 ; | |
9641 | PyObject * obj2 = 0 ; | |
9642 | PyObject * obj3 = 0 ; | |
9643 | char *kwnames[] = { | |
9644 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9645 | }; | |
9646 | ||
c32bde28 RD |
9647 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9648 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9649 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9653 | if (obj1) { | |
c32bde28 | 9654 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
9655 | if (PyErr_Occurred()) SWIG_fail; |
9656 | } | |
9657 | if (obj2) { | |
c32bde28 | 9658 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
9659 | if (PyErr_Occurred()) SWIG_fail; |
9660 | } | |
9661 | if (obj3) { | |
c32bde28 | 9662 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9663 | if (PyErr_Occurred()) SWIG_fail; |
9664 | } | |
9665 | { | |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9667 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9668 | ||
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9674 | } | |
c32bde28 RD |
9675 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9676 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9677 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9678 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9679 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9680 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
9681 | return resultobj; |
9682 | fail: | |
9683 | return NULL; | |
9684 | } | |
9685 | ||
9686 | ||
c32bde28 | 9687 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9688 | PyObject *resultobj; |
9689 | wxImage *arg1 = (wxImage *) 0 ; | |
9690 | byte arg2 = (byte) 128 ; | |
9691 | bool result; | |
9692 | PyObject * obj0 = 0 ; | |
9693 | PyObject * obj1 = 0 ; | |
9694 | char *kwnames[] = { | |
9695 | (char *) "self",(char *) "threshold", NULL | |
9696 | }; | |
9697 | ||
9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9701 | if (obj1) { | |
c32bde28 | 9702 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9703 | if (PyErr_Occurred()) SWIG_fail; |
9704 | } | |
9705 | { | |
9706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9707 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9708 | ||
9709 | wxPyEndAllowThreads(__tstate); | |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
9711 | } | |
9712 | { | |
9713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9714 | } | |
9715 | return resultobj; | |
9716 | fail: | |
9717 | return NULL; | |
9718 | } | |
9719 | ||
9720 | ||
c32bde28 | 9721 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9722 | PyObject *resultobj; |
9723 | wxImage *arg1 = (wxImage *) 0 ; | |
9724 | wxImage *arg2 = 0 ; | |
9725 | byte arg3 ; | |
9726 | byte arg4 ; | |
9727 | byte arg5 ; | |
9728 | bool result; | |
9729 | PyObject * obj0 = 0 ; | |
9730 | PyObject * obj1 = 0 ; | |
9731 | PyObject * obj2 = 0 ; | |
9732 | PyObject * obj3 = 0 ; | |
9733 | PyObject * obj4 = 0 ; | |
9734 | char *kwnames[] = { | |
9735 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9736 | }; | |
9737 | ||
9738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9743 | SWIG_fail; | |
9744 | if (arg2 == NULL) { | |
9745 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9746 | SWIG_fail; | |
9747 | } | |
c32bde28 | 9748 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 9749 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9750 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9751 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9752 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc RD |
9753 | if (PyErr_Occurred()) SWIG_fail; |
9754 | { | |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
9761 | { | |
9762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9763 | } | |
9764 | return resultobj; | |
9765 | fail: | |
9766 | return NULL; | |
9767 | } | |
9768 | ||
9769 | ||
c32bde28 | 9770 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9771 | PyObject *resultobj; |
9772 | wxString *arg1 = 0 ; | |
9773 | bool result; | |
ae8162c8 | 9774 | bool temp1 = false ; |
d55e5bfc RD |
9775 | PyObject * obj0 = 0 ; |
9776 | char *kwnames[] = { | |
9777 | (char *) "name", NULL | |
9778 | }; | |
9779 | ||
9780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9781 | { | |
9782 | arg1 = wxString_in_helper(obj0); | |
9783 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9784 | temp1 = true; |
d55e5bfc RD |
9785 | } |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
9793 | { | |
9794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9795 | } | |
9796 | { | |
9797 | if (temp1) | |
9798 | delete arg1; | |
9799 | } | |
9800 | return resultobj; | |
9801 | fail: | |
9802 | { | |
9803 | if (temp1) | |
9804 | delete arg1; | |
9805 | } | |
9806 | return NULL; | |
9807 | } | |
9808 | ||
9809 | ||
c32bde28 | 9810 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9811 | PyObject *resultobj; |
9812 | wxString *arg1 = 0 ; | |
9813 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9814 | int result; | |
ae8162c8 | 9815 | bool temp1 = false ; |
d55e5bfc RD |
9816 | PyObject * obj0 = 0 ; |
9817 | PyObject * obj1 = 0 ; | |
9818 | char *kwnames[] = { | |
9819 | (char *) "name",(char *) "type", NULL | |
9820 | }; | |
9821 | ||
9822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9823 | { | |
9824 | arg1 = wxString_in_helper(obj0); | |
9825 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9826 | temp1 = true; |
d55e5bfc RD |
9827 | } |
9828 | if (obj1) { | |
c32bde28 | 9829 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9830 | if (PyErr_Occurred()) SWIG_fail; |
9831 | } | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
c32bde28 | 9839 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9840 | { |
9841 | if (temp1) | |
9842 | delete arg1; | |
9843 | } | |
9844 | return resultobj; | |
9845 | fail: | |
9846 | { | |
9847 | if (temp1) | |
9848 | delete arg1; | |
9849 | } | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
c32bde28 | 9854 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9855 | PyObject *resultobj; |
9856 | wxImage *arg1 = (wxImage *) 0 ; | |
9857 | wxString *arg2 = 0 ; | |
9858 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9859 | int arg4 = (int) -1 ; | |
9860 | bool result; | |
ae8162c8 | 9861 | bool temp2 = false ; |
d55e5bfc RD |
9862 | PyObject * obj0 = 0 ; |
9863 | PyObject * obj1 = 0 ; | |
9864 | PyObject * obj2 = 0 ; | |
9865 | PyObject * obj3 = 0 ; | |
9866 | char *kwnames[] = { | |
9867 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9868 | }; | |
9869 | ||
9870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9873 | { | |
9874 | arg2 = wxString_in_helper(obj1); | |
9875 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9876 | temp2 = true; |
d55e5bfc RD |
9877 | } |
9878 | if (obj2) { | |
c32bde28 | 9879 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9880 | if (PyErr_Occurred()) SWIG_fail; |
9881 | } | |
9882 | if (obj3) { | |
c32bde28 | 9883 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9884 | if (PyErr_Occurred()) SWIG_fail; |
9885 | } | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
9893 | { | |
9894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9895 | } | |
9896 | { | |
9897 | if (temp2) | |
9898 | delete arg2; | |
9899 | } | |
9900 | return resultobj; | |
9901 | fail: | |
9902 | { | |
9903 | if (temp2) | |
9904 | delete arg2; | |
9905 | } | |
9906 | return NULL; | |
9907 | } | |
9908 | ||
9909 | ||
c32bde28 | 9910 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9911 | PyObject *resultobj; |
9912 | wxImage *arg1 = (wxImage *) 0 ; | |
9913 | wxString *arg2 = 0 ; | |
9914 | wxString *arg3 = 0 ; | |
9915 | int arg4 = (int) -1 ; | |
9916 | bool result; | |
ae8162c8 RD |
9917 | bool temp2 = false ; |
9918 | bool temp3 = false ; | |
d55e5bfc RD |
9919 | PyObject * obj0 = 0 ; |
9920 | PyObject * obj1 = 0 ; | |
9921 | PyObject * obj2 = 0 ; | |
9922 | PyObject * obj3 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9930 | { | |
9931 | arg2 = wxString_in_helper(obj1); | |
9932 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9933 | temp2 = true; |
d55e5bfc RD |
9934 | } |
9935 | { | |
9936 | arg3 = wxString_in_helper(obj2); | |
9937 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9938 | temp3 = true; |
d55e5bfc RD |
9939 | } |
9940 | if (obj3) { | |
c32bde28 | 9941 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9942 | if (PyErr_Occurred()) SWIG_fail; |
9943 | } | |
9944 | { | |
9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9946 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9947 | ||
9948 | wxPyEndAllowThreads(__tstate); | |
9949 | if (PyErr_Occurred()) SWIG_fail; | |
9950 | } | |
9951 | { | |
9952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9953 | } | |
9954 | { | |
9955 | if (temp2) | |
9956 | delete arg2; | |
9957 | } | |
9958 | { | |
9959 | if (temp3) | |
9960 | delete arg3; | |
9961 | } | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | { | |
9965 | if (temp2) | |
9966 | delete arg2; | |
9967 | } | |
9968 | { | |
9969 | if (temp3) | |
9970 | delete arg3; | |
9971 | } | |
9972 | return NULL; | |
9973 | } | |
9974 | ||
9975 | ||
c32bde28 | 9976 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9977 | PyObject *resultobj; |
9978 | wxImage *arg1 = (wxImage *) 0 ; | |
9979 | wxString *arg2 = 0 ; | |
9980 | int arg3 ; | |
9981 | bool result; | |
ae8162c8 | 9982 | bool temp2 = false ; |
d55e5bfc RD |
9983 | PyObject * obj0 = 0 ; |
9984 | PyObject * obj1 = 0 ; | |
9985 | PyObject * obj2 = 0 ; | |
9986 | char *kwnames[] = { | |
9987 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9988 | }; | |
9989 | ||
9990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9993 | { | |
9994 | arg2 = wxString_in_helper(obj1); | |
9995 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9996 | temp2 = true; |
d55e5bfc | 9997 | } |
c32bde28 | 9998 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9999 | if (PyErr_Occurred()) SWIG_fail; |
10000 | { | |
10001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10002 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10003 | ||
10004 | wxPyEndAllowThreads(__tstate); | |
10005 | if (PyErr_Occurred()) SWIG_fail; | |
10006 | } | |
10007 | { | |
10008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10009 | } | |
10010 | { | |
10011 | if (temp2) | |
10012 | delete arg2; | |
10013 | } | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | { | |
10017 | if (temp2) | |
10018 | delete arg2; | |
10019 | } | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
c32bde28 | 10024 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10025 | PyObject *resultobj; |
10026 | wxImage *arg1 = (wxImage *) 0 ; | |
10027 | wxString *arg2 = 0 ; | |
10028 | wxString *arg3 = 0 ; | |
10029 | bool result; | |
ae8162c8 RD |
10030 | bool temp2 = false ; |
10031 | bool temp3 = false ; | |
d55e5bfc RD |
10032 | PyObject * obj0 = 0 ; |
10033 | PyObject * obj1 = 0 ; | |
10034 | PyObject * obj2 = 0 ; | |
10035 | char *kwnames[] = { | |
10036 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10037 | }; | |
10038 | ||
10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10042 | { | |
10043 | arg2 = wxString_in_helper(obj1); | |
10044 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10045 | temp2 = true; |
d55e5bfc RD |
10046 | } |
10047 | { | |
10048 | arg3 = wxString_in_helper(obj2); | |
10049 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10050 | temp3 = true; |
d55e5bfc RD |
10051 | } |
10052 | { | |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10054 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10055 | ||
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) SWIG_fail; | |
10058 | } | |
10059 | { | |
10060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10061 | } | |
10062 | { | |
10063 | if (temp2) | |
10064 | delete arg2; | |
10065 | } | |
10066 | { | |
10067 | if (temp3) | |
10068 | delete arg3; | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | { | |
10073 | if (temp2) | |
10074 | delete arg2; | |
10075 | } | |
10076 | { | |
10077 | if (temp3) | |
10078 | delete arg3; | |
10079 | } | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
c32bde28 | 10084 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10085 | PyObject *resultobj; |
10086 | wxInputStream *arg1 = 0 ; | |
10087 | bool result; | |
10088 | wxPyInputStream *temp1 ; | |
10089 | bool created1 ; | |
10090 | PyObject * obj0 = 0 ; | |
10091 | char *kwnames[] = { | |
10092 | (char *) "stream", NULL | |
10093 | }; | |
10094 | ||
10095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10096 | { | |
10097 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10098 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10099 | created1 = false; |
d55e5bfc RD |
10100 | } else { |
10101 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10102 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10103 | if (arg1 == NULL) { |
10104 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10105 | SWIG_fail; | |
10106 | } | |
ae8162c8 | 10107 | created1 = true; |
d55e5bfc RD |
10108 | } |
10109 | } | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = (bool)wxImage::CanRead(*arg1); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
10117 | { | |
10118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10119 | } | |
10120 | { | |
10121 | if (created1) | |
10122 | delete arg1; | |
10123 | } | |
10124 | return resultobj; | |
10125 | fail: | |
10126 | { | |
10127 | if (created1) | |
10128 | delete arg1; | |
10129 | } | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
c32bde28 | 10134 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10135 | PyObject *resultobj; |
10136 | wxImage *arg1 = (wxImage *) 0 ; | |
10137 | wxInputStream *arg2 = 0 ; | |
10138 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10139 | int arg4 = (int) -1 ; | |
10140 | bool result; | |
10141 | wxPyInputStream *temp2 ; | |
10142 | bool created2 ; | |
10143 | PyObject * obj0 = 0 ; | |
10144 | PyObject * obj1 = 0 ; | |
10145 | PyObject * obj2 = 0 ; | |
10146 | PyObject * obj3 = 0 ; | |
10147 | char *kwnames[] = { | |
10148 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10149 | }; | |
10150 | ||
10151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10154 | { | |
10155 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10156 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10157 | created2 = false; |
d55e5bfc RD |
10158 | } else { |
10159 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10160 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10161 | if (arg2 == NULL) { |
10162 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10163 | SWIG_fail; | |
10164 | } | |
ae8162c8 | 10165 | created2 = true; |
d55e5bfc RD |
10166 | } |
10167 | } | |
10168 | if (obj2) { | |
c32bde28 | 10169 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10170 | if (PyErr_Occurred()) SWIG_fail; |
10171 | } | |
10172 | if (obj3) { | |
c32bde28 | 10173 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10174 | if (PyErr_Occurred()) SWIG_fail; |
10175 | } | |
10176 | { | |
10177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10178 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10179 | ||
10180 | wxPyEndAllowThreads(__tstate); | |
10181 | if (PyErr_Occurred()) SWIG_fail; | |
10182 | } | |
10183 | { | |
10184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10185 | } | |
10186 | { | |
10187 | if (created2) | |
10188 | delete arg2; | |
10189 | } | |
10190 | return resultobj; | |
10191 | fail: | |
10192 | { | |
10193 | if (created2) | |
10194 | delete arg2; | |
10195 | } | |
10196 | return NULL; | |
10197 | } | |
10198 | ||
10199 | ||
c32bde28 | 10200 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10201 | PyObject *resultobj; |
10202 | wxImage *arg1 = (wxImage *) 0 ; | |
10203 | wxInputStream *arg2 = 0 ; | |
10204 | wxString *arg3 = 0 ; | |
10205 | int arg4 = (int) -1 ; | |
10206 | bool result; | |
10207 | wxPyInputStream *temp2 ; | |
10208 | bool created2 ; | |
ae8162c8 | 10209 | bool temp3 = false ; |
d55e5bfc RD |
10210 | PyObject * obj0 = 0 ; |
10211 | PyObject * obj1 = 0 ; | |
10212 | PyObject * obj2 = 0 ; | |
10213 | PyObject * obj3 = 0 ; | |
10214 | char *kwnames[] = { | |
10215 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10216 | }; | |
10217 | ||
10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10221 | { | |
10222 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10223 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10224 | created2 = false; |
d55e5bfc RD |
10225 | } else { |
10226 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10227 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10228 | if (arg2 == NULL) { |
10229 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10230 | SWIG_fail; | |
10231 | } | |
ae8162c8 | 10232 | created2 = true; |
d55e5bfc RD |
10233 | } |
10234 | } | |
10235 | { | |
10236 | arg3 = wxString_in_helper(obj2); | |
10237 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10238 | temp3 = true; |
d55e5bfc RD |
10239 | } |
10240 | if (obj3) { | |
c32bde28 | 10241 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10242 | if (PyErr_Occurred()) SWIG_fail; |
10243 | } | |
10244 | { | |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
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 (created2) | |
10256 | delete arg2; | |
10257 | } | |
10258 | { | |
10259 | if (temp3) | |
10260 | delete arg3; | |
10261 | } | |
10262 | return resultobj; | |
10263 | fail: | |
10264 | { | |
10265 | if (created2) | |
10266 | delete arg2; | |
10267 | } | |
10268 | { | |
10269 | if (temp3) | |
10270 | delete arg3; | |
10271 | } | |
10272 | return NULL; | |
10273 | } | |
10274 | ||
10275 | ||
c32bde28 | 10276 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10277 | PyObject *resultobj; |
10278 | wxImage *arg1 = (wxImage *) 0 ; | |
10279 | bool result; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10288 | { | |
10289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10290 | result = (bool)(arg1)->Ok(); | |
10291 | ||
10292 | wxPyEndAllowThreads(__tstate); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | { | |
10296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10297 | } | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
c32bde28 | 10304 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10305 | PyObject *resultobj; |
10306 | wxImage *arg1 = (wxImage *) 0 ; | |
10307 | int result; | |
10308 | PyObject * obj0 = 0 ; | |
10309 | char *kwnames[] = { | |
10310 | (char *) "self", NULL | |
10311 | }; | |
10312 | ||
10313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10316 | { | |
10317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10318 | result = (int)(arg1)->GetWidth(); | |
10319 | ||
10320 | wxPyEndAllowThreads(__tstate); | |
10321 | if (PyErr_Occurred()) SWIG_fail; | |
10322 | } | |
c32bde28 | 10323 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10324 | return resultobj; |
10325 | fail: | |
10326 | return NULL; | |
10327 | } | |
10328 | ||
10329 | ||
c32bde28 | 10330 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10331 | PyObject *resultobj; |
10332 | wxImage *arg1 = (wxImage *) 0 ; | |
10333 | int result; | |
10334 | PyObject * obj0 = 0 ; | |
10335 | char *kwnames[] = { | |
10336 | (char *) "self", NULL | |
10337 | }; | |
10338 | ||
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10342 | { | |
10343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10344 | result = (int)(arg1)->GetHeight(); | |
10345 | ||
10346 | wxPyEndAllowThreads(__tstate); | |
10347 | if (PyErr_Occurred()) SWIG_fail; | |
10348 | } | |
c32bde28 | 10349 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10350 | return resultobj; |
10351 | fail: | |
10352 | return NULL; | |
10353 | } | |
10354 | ||
10355 | ||
c32bde28 | 10356 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10357 | PyObject *resultobj; |
10358 | wxImage *arg1 = (wxImage *) 0 ; | |
10359 | wxSize result; | |
10360 | PyObject * obj0 = 0 ; | |
10361 | char *kwnames[] = { | |
10362 | (char *) "self", NULL | |
10363 | }; | |
10364 | ||
10365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10368 | { | |
10369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10370 | result = wxImage_GetSize(arg1); | |
10371 | ||
10372 | wxPyEndAllowThreads(__tstate); | |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
10374 | } | |
10375 | { | |
10376 | wxSize * resultptr; | |
10377 | resultptr = new wxSize((wxSize &) result); | |
10378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10379 | } | |
10380 | return resultobj; | |
10381 | fail: | |
10382 | return NULL; | |
10383 | } | |
10384 | ||
10385 | ||
c32bde28 | 10386 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10387 | PyObject *resultobj; |
10388 | wxImage *arg1 = (wxImage *) 0 ; | |
10389 | wxRect *arg2 = 0 ; | |
10390 | SwigValueWrapper< wxImage > result; | |
10391 | wxRect temp2 ; | |
10392 | PyObject * obj0 = 0 ; | |
10393 | PyObject * obj1 = 0 ; | |
10394 | char *kwnames[] = { | |
10395 | (char *) "self",(char *) "rect", NULL | |
10396 | }; | |
10397 | ||
10398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10401 | { | |
10402 | arg2 = &temp2; | |
10403 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10404 | } | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | { | |
10413 | wxImage * resultptr; | |
10414 | resultptr = new wxImage((wxImage &) result); | |
10415 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10416 | } | |
10417 | return resultobj; | |
10418 | fail: | |
10419 | return NULL; | |
10420 | } | |
10421 | ||
10422 | ||
c32bde28 | 10423 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10424 | PyObject *resultobj; |
10425 | wxImage *arg1 = (wxImage *) 0 ; | |
10426 | SwigValueWrapper< wxImage > result; | |
10427 | PyObject * obj0 = 0 ; | |
10428 | char *kwnames[] = { | |
10429 | (char *) "self", NULL | |
10430 | }; | |
10431 | ||
10432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | result = (arg1)->Copy(); | |
10438 | ||
10439 | wxPyEndAllowThreads(__tstate); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
10442 | { | |
10443 | wxImage * resultptr; | |
10444 | resultptr = new wxImage((wxImage &) result); | |
10445 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10446 | } | |
10447 | return resultobj; | |
10448 | fail: | |
10449 | return NULL; | |
10450 | } | |
10451 | ||
10452 | ||
c32bde28 | 10453 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10454 | PyObject *resultobj; |
10455 | wxImage *arg1 = (wxImage *) 0 ; | |
10456 | wxImage *arg2 = 0 ; | |
10457 | int arg3 ; | |
10458 | int arg4 ; | |
10459 | PyObject * obj0 = 0 ; | |
10460 | PyObject * obj1 = 0 ; | |
10461 | PyObject * obj2 = 0 ; | |
10462 | PyObject * obj3 = 0 ; | |
10463 | char *kwnames[] = { | |
10464 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10465 | }; | |
10466 | ||
10467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10472 | SWIG_fail; | |
10473 | if (arg2 == NULL) { | |
10474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10475 | SWIG_fail; | |
10476 | } | |
c32bde28 | 10477 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10478 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10479 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10480 | if (PyErr_Occurred()) SWIG_fail; |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | Py_INCREF(Py_None); resultobj = Py_None; | |
10489 | return resultobj; | |
10490 | fail: | |
10491 | return NULL; | |
10492 | } | |
10493 | ||
10494 | ||
c32bde28 | 10495 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10496 | PyObject *resultobj; |
10497 | wxImage *arg1 = (wxImage *) 0 ; | |
10498 | PyObject *result; | |
10499 | PyObject * obj0 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | result = (PyObject *)wxImage_GetData(arg1); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | resultobj = result; | |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
c32bde28 | 10521 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10522 | PyObject *resultobj; |
10523 | wxImage *arg1 = (wxImage *) 0 ; | |
10524 | PyObject *arg2 = (PyObject *) 0 ; | |
10525 | PyObject * obj0 = 0 ; | |
10526 | PyObject * obj1 = 0 ; | |
10527 | char *kwnames[] = { | |
10528 | (char *) "self",(char *) "data", NULL | |
10529 | }; | |
10530 | ||
10531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10534 | arg2 = obj1; | |
10535 | { | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | wxImage_SetData(arg1,arg2); | |
10538 | ||
10539 | wxPyEndAllowThreads(__tstate); | |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
10541 | } | |
10542 | Py_INCREF(Py_None); resultobj = Py_None; | |
10543 | return resultobj; | |
10544 | fail: | |
10545 | return NULL; | |
10546 | } | |
10547 | ||
10548 | ||
c32bde28 | 10549 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10550 | PyObject *resultobj; |
10551 | wxImage *arg1 = (wxImage *) 0 ; | |
10552 | PyObject *result; | |
10553 | PyObject * obj0 = 0 ; | |
10554 | char *kwnames[] = { | |
10555 | (char *) "self", NULL | |
10556 | }; | |
10557 | ||
10558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10561 | { | |
10562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10563 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10564 | ||
10565 | wxPyEndAllowThreads(__tstate); | |
10566 | if (PyErr_Occurred()) SWIG_fail; | |
10567 | } | |
10568 | resultobj = result; | |
10569 | return resultobj; | |
10570 | fail: | |
10571 | return NULL; | |
10572 | } | |
10573 | ||
10574 | ||
c32bde28 | 10575 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10576 | PyObject *resultobj; |
10577 | wxImage *arg1 = (wxImage *) 0 ; | |
10578 | PyObject *arg2 = (PyObject *) 0 ; | |
10579 | PyObject * obj0 = 0 ; | |
10580 | PyObject * obj1 = 0 ; | |
10581 | char *kwnames[] = { | |
10582 | (char *) "self",(char *) "data", NULL | |
10583 | }; | |
10584 | ||
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10588 | arg2 = obj1; | |
10589 | { | |
10590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10591 | wxImage_SetDataBuffer(arg1,arg2); | |
10592 | ||
10593 | wxPyEndAllowThreads(__tstate); | |
10594 | if (PyErr_Occurred()) SWIG_fail; | |
10595 | } | |
10596 | Py_INCREF(Py_None); resultobj = Py_None; | |
10597 | return resultobj; | |
10598 | fail: | |
10599 | return NULL; | |
10600 | } | |
10601 | ||
10602 | ||
c32bde28 | 10603 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10604 | PyObject *resultobj; |
10605 | wxImage *arg1 = (wxImage *) 0 ; | |
10606 | PyObject *result; | |
10607 | PyObject * obj0 = 0 ; | |
10608 | char *kwnames[] = { | |
10609 | (char *) "self", NULL | |
10610 | }; | |
10611 | ||
10612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10615 | { | |
10616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10617 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10618 | ||
10619 | wxPyEndAllowThreads(__tstate); | |
10620 | if (PyErr_Occurred()) SWIG_fail; | |
10621 | } | |
10622 | resultobj = result; | |
10623 | return resultobj; | |
10624 | fail: | |
10625 | return NULL; | |
10626 | } | |
10627 | ||
10628 | ||
c32bde28 | 10629 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10630 | PyObject *resultobj; |
10631 | wxImage *arg1 = (wxImage *) 0 ; | |
10632 | PyObject *arg2 = (PyObject *) 0 ; | |
10633 | PyObject * obj0 = 0 ; | |
10634 | PyObject * obj1 = 0 ; | |
10635 | char *kwnames[] = { | |
10636 | (char *) "self",(char *) "data", NULL | |
10637 | }; | |
10638 | ||
10639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10642 | arg2 = obj1; | |
10643 | { | |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | wxImage_SetAlphaData(arg1,arg2); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
10650 | Py_INCREF(Py_None); resultobj = Py_None; | |
10651 | return resultobj; | |
10652 | fail: | |
10653 | return NULL; | |
10654 | } | |
10655 | ||
10656 | ||
c32bde28 | 10657 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10658 | PyObject *resultobj; |
10659 | wxImage *arg1 = (wxImage *) 0 ; | |
10660 | PyObject *result; | |
10661 | PyObject * obj0 = 0 ; | |
10662 | char *kwnames[] = { | |
10663 | (char *) "self", NULL | |
10664 | }; | |
10665 | ||
10666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10669 | { | |
10670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10671 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10672 | ||
10673 | wxPyEndAllowThreads(__tstate); | |
10674 | if (PyErr_Occurred()) SWIG_fail; | |
10675 | } | |
10676 | resultobj = result; | |
10677 | return resultobj; | |
10678 | fail: | |
10679 | return NULL; | |
10680 | } | |
10681 | ||
10682 | ||
c32bde28 | 10683 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10684 | PyObject *resultobj; |
10685 | wxImage *arg1 = (wxImage *) 0 ; | |
10686 | PyObject *arg2 = (PyObject *) 0 ; | |
10687 | PyObject * obj0 = 0 ; | |
10688 | PyObject * obj1 = 0 ; | |
10689 | char *kwnames[] = { | |
10690 | (char *) "self",(char *) "data", NULL | |
10691 | }; | |
10692 | ||
10693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10696 | arg2 = obj1; | |
10697 | { | |
10698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10699 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10700 | ||
10701 | wxPyEndAllowThreads(__tstate); | |
10702 | if (PyErr_Occurred()) SWIG_fail; | |
10703 | } | |
10704 | Py_INCREF(Py_None); resultobj = Py_None; | |
10705 | return resultobj; | |
10706 | fail: | |
10707 | return NULL; | |
10708 | } | |
10709 | ||
10710 | ||
c32bde28 | 10711 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10712 | PyObject *resultobj; |
10713 | wxImage *arg1 = (wxImage *) 0 ; | |
10714 | unsigned char arg2 ; | |
10715 | unsigned char arg3 ; | |
10716 | unsigned char arg4 ; | |
10717 | PyObject * obj0 = 0 ; | |
10718 | PyObject * obj1 = 0 ; | |
10719 | PyObject * obj2 = 0 ; | |
10720 | PyObject * obj3 = 0 ; | |
10721 | char *kwnames[] = { | |
10722 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10723 | }; | |
10724 | ||
10725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10728 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 10729 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10730 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 10731 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10732 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
10733 | if (PyErr_Occurred()) SWIG_fail; |
10734 | { | |
10735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10736 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10737 | ||
10738 | wxPyEndAllowThreads(__tstate); | |
10739 | if (PyErr_Occurred()) SWIG_fail; | |
10740 | } | |
10741 | Py_INCREF(Py_None); resultobj = Py_None; | |
10742 | return resultobj; | |
10743 | fail: | |
10744 | return NULL; | |
10745 | } | |
10746 | ||
10747 | ||
c32bde28 | 10748 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10749 | PyObject *resultobj; |
10750 | wxImage *arg1 = (wxImage *) 0 ; | |
10751 | unsigned char result; | |
10752 | PyObject * obj0 = 0 ; | |
10753 | char *kwnames[] = { | |
10754 | (char *) "self", NULL | |
10755 | }; | |
10756 | ||
10757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10760 | { | |
10761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10762 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10763 | ||
10764 | wxPyEndAllowThreads(__tstate); | |
10765 | if (PyErr_Occurred()) SWIG_fail; | |
10766 | } | |
c32bde28 | 10767 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10768 | return resultobj; |
10769 | fail: | |
10770 | return NULL; | |
10771 | } | |
10772 | ||
10773 | ||
c32bde28 | 10774 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10775 | PyObject *resultobj; |
10776 | wxImage *arg1 = (wxImage *) 0 ; | |
10777 | unsigned char result; | |
10778 | PyObject * obj0 = 0 ; | |
10779 | char *kwnames[] = { | |
10780 | (char *) "self", NULL | |
10781 | }; | |
10782 | ||
10783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
c32bde28 | 10793 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10794 | return resultobj; |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
c32bde28 | 10800 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10801 | PyObject *resultobj; |
10802 | wxImage *arg1 = (wxImage *) 0 ; | |
10803 | unsigned char result; | |
10804 | PyObject * obj0 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10812 | { | |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
c32bde28 | 10819 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10820 | return resultobj; |
10821 | fail: | |
10822 | return NULL; | |
10823 | } | |
10824 | ||
10825 | ||
c32bde28 | 10826 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10827 | PyObject *resultobj; |
10828 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10829 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10830 | PyObject * obj0 = 0 ; |
10831 | PyObject * obj1 = 0 ; | |
10832 | char *kwnames[] = { | |
10833 | (char *) "self",(char *) "mask", NULL | |
10834 | }; | |
10835 | ||
10836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10839 | if (obj1) { | |
c32bde28 | 10840 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10841 | if (PyErr_Occurred()) SWIG_fail; |
10842 | } | |
10843 | { | |
10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10845 | (arg1)->SetMask(arg2); | |
10846 | ||
10847 | wxPyEndAllowThreads(__tstate); | |
10848 | if (PyErr_Occurred()) SWIG_fail; | |
10849 | } | |
10850 | Py_INCREF(Py_None); resultobj = Py_None; | |
10851 | return resultobj; | |
10852 | fail: | |
10853 | return NULL; | |
10854 | } | |
10855 | ||
10856 | ||
c32bde28 | 10857 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10858 | PyObject *resultobj; |
10859 | wxImage *arg1 = (wxImage *) 0 ; | |
10860 | bool result; | |
10861 | PyObject * obj0 = 0 ; | |
10862 | char *kwnames[] = { | |
10863 | (char *) "self", NULL | |
10864 | }; | |
10865 | ||
10866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10869 | { | |
10870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10871 | result = (bool)(arg1)->HasMask(); | |
10872 | ||
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
10876 | { | |
10877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10878 | } | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
c32bde28 | 10885 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10886 | PyObject *resultobj; |
10887 | wxImage *arg1 = (wxImage *) 0 ; | |
10888 | double arg2 ; | |
10889 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 10890 | bool arg4 = (bool) true ; |
d55e5bfc RD |
10891 | wxPoint *arg5 = (wxPoint *) NULL ; |
10892 | SwigValueWrapper< wxImage > result; | |
10893 | wxPoint temp3 ; | |
10894 | PyObject * obj0 = 0 ; | |
10895 | PyObject * obj1 = 0 ; | |
10896 | PyObject * obj2 = 0 ; | |
10897 | PyObject * obj3 = 0 ; | |
10898 | PyObject * obj4 = 0 ; | |
10899 | char *kwnames[] = { | |
10900 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10901 | }; | |
10902 | ||
10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10906 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
10907 | if (PyErr_Occurred()) SWIG_fail; |
10908 | { | |
10909 | arg3 = &temp3; | |
10910 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10911 | } | |
10912 | if (obj3) { | |
c32bde28 | 10913 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
10914 | if (PyErr_Occurred()) SWIG_fail; |
10915 | } | |
10916 | if (obj4) { | |
10917 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10919 | } | |
10920 | { | |
10921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10922 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10923 | ||
10924 | wxPyEndAllowThreads(__tstate); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
10926 | } | |
10927 | { | |
10928 | wxImage * resultptr; | |
10929 | resultptr = new wxImage((wxImage &) result); | |
10930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10931 | } | |
10932 | return resultobj; | |
10933 | fail: | |
10934 | return NULL; | |
10935 | } | |
10936 | ||
10937 | ||
c32bde28 | 10938 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10939 | PyObject *resultobj; |
10940 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10941 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10942 | SwigValueWrapper< wxImage > result; |
10943 | PyObject * obj0 = 0 ; | |
10944 | PyObject * obj1 = 0 ; | |
10945 | char *kwnames[] = { | |
10946 | (char *) "self",(char *) "clockwise", NULL | |
10947 | }; | |
10948 | ||
10949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10952 | if (obj1) { | |
c32bde28 | 10953 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10954 | if (PyErr_Occurred()) SWIG_fail; |
10955 | } | |
10956 | { | |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | result = (arg1)->Rotate90(arg2); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | { | |
10964 | wxImage * resultptr; | |
10965 | resultptr = new wxImage((wxImage &) result); | |
10966 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10967 | } | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
c32bde28 | 10974 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10975 | PyObject *resultobj; |
10976 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10977 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10978 | SwigValueWrapper< wxImage > result; |
10979 | PyObject * obj0 = 0 ; | |
10980 | PyObject * obj1 = 0 ; | |
10981 | char *kwnames[] = { | |
10982 | (char *) "self",(char *) "horizontally", NULL | |
10983 | }; | |
10984 | ||
10985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10988 | if (obj1) { | |
c32bde28 | 10989 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10990 | if (PyErr_Occurred()) SWIG_fail; |
10991 | } | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | result = (arg1)->Mirror(arg2); | |
10995 | ||
10996 | wxPyEndAllowThreads(__tstate); | |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
10998 | } | |
10999 | { | |
11000 | wxImage * resultptr; | |
11001 | resultptr = new wxImage((wxImage &) result); | |
11002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11003 | } | |
11004 | return resultobj; | |
11005 | fail: | |
11006 | return NULL; | |
11007 | } | |
11008 | ||
11009 | ||
c32bde28 | 11010 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11011 | PyObject *resultobj; |
11012 | wxImage *arg1 = (wxImage *) 0 ; | |
11013 | unsigned char arg2 ; | |
11014 | unsigned char arg3 ; | |
11015 | unsigned char arg4 ; | |
11016 | unsigned char arg5 ; | |
11017 | unsigned char arg6 ; | |
11018 | unsigned char arg7 ; | |
11019 | PyObject * obj0 = 0 ; | |
11020 | PyObject * obj1 = 0 ; | |
11021 | PyObject * obj2 = 0 ; | |
11022 | PyObject * obj3 = 0 ; | |
11023 | PyObject * obj4 = 0 ; | |
11024 | PyObject * obj5 = 0 ; | |
11025 | PyObject * obj6 = 0 ; | |
11026 | char *kwnames[] = { | |
11027 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11028 | }; | |
11029 | ||
11030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11033 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11034 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11035 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11036 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11037 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 11038 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11039 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 11040 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11041 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc | 11042 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11043 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
d55e5bfc RD |
11044 | if (PyErr_Occurred()) SWIG_fail; |
11045 | { | |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | Py_INCREF(Py_None); resultobj = Py_None; | |
11053 | return resultobj; | |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
c32bde28 | 11059 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11060 | PyObject *resultobj; |
11061 | wxImage *arg1 = (wxImage *) 0 ; | |
11062 | unsigned char arg2 ; | |
11063 | unsigned char arg3 ; | |
11064 | unsigned char arg4 ; | |
11065 | SwigValueWrapper< wxImage > result; | |
11066 | PyObject * obj0 = 0 ; | |
11067 | PyObject * obj1 = 0 ; | |
11068 | PyObject * obj2 = 0 ; | |
11069 | PyObject * obj3 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11072 | }; | |
11073 | ||
11074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11077 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11078 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11079 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11080 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11081 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11082 | if (PyErr_Occurred()) SWIG_fail; |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | { | |
11091 | wxImage * resultptr; | |
11092 | resultptr = new wxImage((wxImage &) result); | |
11093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11094 | } | |
11095 | return resultobj; | |
11096 | fail: | |
11097 | return NULL; | |
11098 | } | |
11099 | ||
11100 | ||
c32bde28 | 11101 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11102 | PyObject *resultobj; |
11103 | wxImage *arg1 = (wxImage *) 0 ; | |
11104 | wxString *arg2 = 0 ; | |
11105 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
11106 | bool temp2 = false ; |
11107 | bool temp3 = false ; | |
d55e5bfc RD |
11108 | PyObject * obj0 = 0 ; |
11109 | PyObject * obj1 = 0 ; | |
11110 | PyObject * obj2 = 0 ; | |
11111 | char *kwnames[] = { | |
11112 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11113 | }; | |
11114 | ||
11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11118 | { | |
11119 | arg2 = wxString_in_helper(obj1); | |
11120 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11121 | temp2 = true; |
d55e5bfc RD |
11122 | } |
11123 | { | |
11124 | arg3 = wxString_in_helper(obj2); | |
11125 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11126 | temp3 = true; |
d55e5bfc RD |
11127 | } |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | Py_INCREF(Py_None); resultobj = Py_None; | |
11136 | { | |
11137 | if (temp2) | |
11138 | delete arg2; | |
11139 | } | |
11140 | { | |
11141 | if (temp3) | |
11142 | delete arg3; | |
11143 | } | |
11144 | return resultobj; | |
11145 | fail: | |
11146 | { | |
11147 | if (temp2) | |
11148 | delete arg2; | |
11149 | } | |
11150 | { | |
11151 | if (temp3) | |
11152 | delete arg3; | |
11153 | } | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
c32bde28 | 11158 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11159 | PyObject *resultobj; |
11160 | wxImage *arg1 = (wxImage *) 0 ; | |
11161 | wxString *arg2 = 0 ; | |
11162 | int arg3 ; | |
ae8162c8 | 11163 | bool temp2 = false ; |
d55e5bfc RD |
11164 | PyObject * obj0 = 0 ; |
11165 | PyObject * obj1 = 0 ; | |
11166 | PyObject * obj2 = 0 ; | |
11167 | char *kwnames[] = { | |
11168 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11169 | }; | |
11170 | ||
11171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11174 | { | |
11175 | arg2 = wxString_in_helper(obj1); | |
11176 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11177 | temp2 = true; |
d55e5bfc | 11178 | } |
c32bde28 | 11179 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11180 | if (PyErr_Occurred()) SWIG_fail; |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11184 | ||
11185 | wxPyEndAllowThreads(__tstate); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
11188 | Py_INCREF(Py_None); resultobj = Py_None; | |
11189 | { | |
11190 | if (temp2) | |
11191 | delete arg2; | |
11192 | } | |
11193 | return resultobj; | |
11194 | fail: | |
11195 | { | |
11196 | if (temp2) | |
11197 | delete arg2; | |
11198 | } | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
c32bde28 | 11203 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11204 | PyObject *resultobj; |
11205 | wxImage *arg1 = (wxImage *) 0 ; | |
11206 | wxString *arg2 = 0 ; | |
11207 | wxString result; | |
ae8162c8 | 11208 | bool temp2 = false ; |
d55e5bfc RD |
11209 | PyObject * obj0 = 0 ; |
11210 | PyObject * obj1 = 0 ; | |
11211 | char *kwnames[] = { | |
11212 | (char *) "self",(char *) "name", NULL | |
11213 | }; | |
11214 | ||
11215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
11216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11218 | { | |
11219 | arg2 = wxString_in_helper(obj1); | |
11220 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11221 | temp2 = true; |
d55e5bfc RD |
11222 | } |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | { | |
11231 | #if wxUSE_UNICODE | |
11232 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11233 | #else | |
11234 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11235 | #endif | |
11236 | } | |
11237 | { | |
11238 | if (temp2) | |
11239 | delete arg2; | |
11240 | } | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | { | |
11244 | if (temp2) | |
11245 | delete arg2; | |
11246 | } | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
c32bde28 | 11251 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11252 | PyObject *resultobj; |
11253 | wxImage *arg1 = (wxImage *) 0 ; | |
11254 | wxString *arg2 = 0 ; | |
11255 | int result; | |
ae8162c8 | 11256 | bool temp2 = false ; |
d55e5bfc RD |
11257 | PyObject * obj0 = 0 ; |
11258 | PyObject * obj1 = 0 ; | |
11259 | char *kwnames[] = { | |
11260 | (char *) "self",(char *) "name", NULL | |
11261 | }; | |
11262 | ||
11263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11266 | { | |
11267 | arg2 = wxString_in_helper(obj1); | |
11268 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11269 | temp2 = true; |
d55e5bfc RD |
11270 | } |
11271 | { | |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11273 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
c32bde28 | 11278 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11279 | { |
11280 | if (temp2) | |
11281 | delete arg2; | |
11282 | } | |
11283 | return resultobj; | |
11284 | fail: | |
11285 | { | |
11286 | if (temp2) | |
11287 | delete arg2; | |
11288 | } | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
c32bde28 | 11293 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11294 | PyObject *resultobj; |
11295 | wxImage *arg1 = (wxImage *) 0 ; | |
11296 | wxString *arg2 = 0 ; | |
11297 | bool result; | |
ae8162c8 | 11298 | bool temp2 = false ; |
d55e5bfc RD |
11299 | PyObject * obj0 = 0 ; |
11300 | PyObject * obj1 = 0 ; | |
11301 | char *kwnames[] = { | |
11302 | (char *) "self",(char *) "name", NULL | |
11303 | }; | |
11304 | ||
11305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11308 | { | |
11309 | arg2 = wxString_in_helper(obj1); | |
11310 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11311 | temp2 = true; |
d55e5bfc RD |
11312 | } |
11313 | { | |
11314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11315 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11316 | ||
11317 | wxPyEndAllowThreads(__tstate); | |
11318 | if (PyErr_Occurred()) SWIG_fail; | |
11319 | } | |
11320 | { | |
11321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11322 | } | |
11323 | { | |
11324 | if (temp2) | |
11325 | delete arg2; | |
11326 | } | |
11327 | return resultobj; | |
11328 | fail: | |
11329 | { | |
11330 | if (temp2) | |
11331 | delete arg2; | |
11332 | } | |
11333 | return NULL; | |
11334 | } | |
11335 | ||
11336 | ||
c32bde28 | 11337 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11338 | PyObject *resultobj; |
11339 | wxImage *arg1 = (wxImage *) 0 ; | |
11340 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11341 | unsigned long result; | |
11342 | PyObject * obj0 = 0 ; | |
11343 | PyObject * obj1 = 0 ; | |
11344 | char *kwnames[] = { | |
11345 | (char *) "self",(char *) "stopafter", NULL | |
11346 | }; | |
11347 | ||
11348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11351 | if (obj1) { | |
c32bde28 | 11352 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
11353 | if (PyErr_Occurred()) SWIG_fail; |
11354 | } | |
11355 | { | |
11356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11357 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11358 | ||
11359 | wxPyEndAllowThreads(__tstate); | |
11360 | if (PyErr_Occurred()) SWIG_fail; | |
11361 | } | |
c32bde28 | 11362 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11363 | return resultobj; |
11364 | fail: | |
11365 | return NULL; | |
11366 | } | |
11367 | ||
11368 | ||
c32bde28 | 11369 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11370 | PyObject *resultobj; |
11371 | wxImage *arg1 = (wxImage *) 0 ; | |
11372 | wxImageHistogram *arg2 = 0 ; | |
11373 | unsigned long result; | |
11374 | PyObject * obj0 = 0 ; | |
11375 | PyObject * obj1 = 0 ; | |
11376 | char *kwnames[] = { | |
11377 | (char *) "self",(char *) "h", NULL | |
11378 | }; | |
11379 | ||
11380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11384 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11385 | SWIG_fail; | |
11386 | if (arg2 == NULL) { | |
11387 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11388 | SWIG_fail; | |
11389 | } | |
11390 | { | |
11391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11392 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11393 | ||
11394 | wxPyEndAllowThreads(__tstate); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
c32bde28 | 11397 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11398 | return resultobj; |
11399 | fail: | |
11400 | return NULL; | |
11401 | } | |
11402 | ||
11403 | ||
c32bde28 | 11404 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11405 | PyObject *resultobj; |
11406 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11407 | PyObject * obj0 = 0 ; | |
11408 | char *kwnames[] = { | |
11409 | (char *) "handler", NULL | |
11410 | }; | |
11411 | ||
11412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11415 | { | |
11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11417 | wxImage::AddHandler(arg1); | |
11418 | ||
11419 | wxPyEndAllowThreads(__tstate); | |
11420 | if (PyErr_Occurred()) SWIG_fail; | |
11421 | } | |
11422 | Py_INCREF(Py_None); resultobj = Py_None; | |
11423 | return resultobj; | |
11424 | fail: | |
11425 | return NULL; | |
11426 | } | |
11427 | ||
11428 | ||
c32bde28 | 11429 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11430 | PyObject *resultobj; |
11431 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11432 | PyObject * obj0 = 0 ; | |
11433 | char *kwnames[] = { | |
11434 | (char *) "handler", NULL | |
11435 | }; | |
11436 | ||
11437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11440 | { | |
11441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11442 | wxImage::InsertHandler(arg1); | |
11443 | ||
11444 | wxPyEndAllowThreads(__tstate); | |
11445 | if (PyErr_Occurred()) SWIG_fail; | |
11446 | } | |
11447 | Py_INCREF(Py_None); resultobj = Py_None; | |
11448 | return resultobj; | |
11449 | fail: | |
11450 | return NULL; | |
11451 | } | |
11452 | ||
11453 | ||
c32bde28 | 11454 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11455 | PyObject *resultobj; |
11456 | wxString *arg1 = 0 ; | |
11457 | bool result; | |
ae8162c8 | 11458 | bool temp1 = false ; |
d55e5bfc RD |
11459 | PyObject * obj0 = 0 ; |
11460 | char *kwnames[] = { | |
11461 | (char *) "name", NULL | |
11462 | }; | |
11463 | ||
11464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11465 | { | |
11466 | arg1 = wxString_in_helper(obj0); | |
11467 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11468 | temp1 = true; |
d55e5bfc RD |
11469 | } |
11470 | { | |
11471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11472 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11473 | ||
11474 | wxPyEndAllowThreads(__tstate); | |
11475 | if (PyErr_Occurred()) SWIG_fail; | |
11476 | } | |
11477 | { | |
11478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11479 | } | |
11480 | { | |
11481 | if (temp1) | |
11482 | delete arg1; | |
11483 | } | |
11484 | return resultobj; | |
11485 | fail: | |
11486 | { | |
11487 | if (temp1) | |
11488 | delete arg1; | |
11489 | } | |
11490 | return NULL; | |
11491 | } | |
11492 | ||
11493 | ||
c32bde28 | 11494 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11495 | PyObject *resultobj; |
11496 | wxString result; | |
11497 | char *kwnames[] = { | |
11498 | NULL | |
11499 | }; | |
11500 | ||
11501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11502 | { | |
11503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11504 | result = wxImage::GetImageExtWildcard(); | |
11505 | ||
11506 | wxPyEndAllowThreads(__tstate); | |
11507 | if (PyErr_Occurred()) SWIG_fail; | |
11508 | } | |
11509 | { | |
11510 | #if wxUSE_UNICODE | |
11511 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11512 | #else | |
11513 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11514 | #endif | |
11515 | } | |
11516 | return resultobj; | |
11517 | fail: | |
11518 | return NULL; | |
11519 | } | |
11520 | ||
11521 | ||
c32bde28 | 11522 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11523 | PyObject *resultobj; |
11524 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 11525 | int arg2 = (int) -1 ; |
d55e5bfc RD |
11526 | wxBitmap result; |
11527 | PyObject * obj0 = 0 ; | |
1fbf26be | 11528 | PyObject * obj1 = 0 ; |
d55e5bfc | 11529 | char *kwnames[] = { |
1fbf26be | 11530 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
11531 | }; |
11532 | ||
1fbf26be | 11533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fbf26be RD |
11536 | if (obj1) { |
11537 | arg2 = (int)SWIG_As_int(obj1); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
d55e5bfc | 11540 | { |
0439c23b | 11541 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 11543 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
11544 | |
11545 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11546 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11547 | } |
11548 | { | |
11549 | wxBitmap * resultptr; | |
11550 | resultptr = new wxBitmap((wxBitmap &) result); | |
11551 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11552 | } | |
11553 | return resultobj; | |
11554 | fail: | |
11555 | return NULL; | |
11556 | } | |
11557 | ||
11558 | ||
c32bde28 | 11559 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11560 | PyObject *resultobj; |
11561 | wxImage *arg1 = (wxImage *) 0 ; | |
11562 | unsigned char arg2 ; | |
11563 | unsigned char arg3 ; | |
11564 | unsigned char arg4 ; | |
11565 | wxBitmap result; | |
11566 | PyObject * obj0 = 0 ; | |
11567 | PyObject * obj1 = 0 ; | |
11568 | PyObject * obj2 = 0 ; | |
11569 | PyObject * obj3 = 0 ; | |
11570 | char *kwnames[] = { | |
11571 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11572 | }; | |
11573 | ||
11574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11577 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11578 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11579 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11580 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11581 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11582 | if (PyErr_Occurred()) SWIG_fail; |
11583 | { | |
0439c23b | 11584 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11586 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11587 | ||
11588 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11589 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11590 | } |
11591 | { | |
11592 | wxBitmap * resultptr; | |
11593 | resultptr = new wxBitmap((wxBitmap &) result); | |
11594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11595 | } | |
11596 | return resultobj; | |
11597 | fail: | |
11598 | return NULL; | |
11599 | } | |
11600 | ||
11601 | ||
c32bde28 | 11602 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11603 | PyObject *obj; |
11604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11605 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11606 | Py_INCREF(obj); | |
11607 | return Py_BuildValue((char *)""); | |
11608 | } | |
c32bde28 | 11609 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
11610 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11611 | return 1; | |
11612 | } | |
11613 | ||
11614 | ||
11615 | static PyObject *_wrap_NullImage_get() { | |
11616 | PyObject *pyobj; | |
11617 | ||
11618 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11619 | return pyobj; | |
11620 | } | |
11621 | ||
11622 | ||
c32bde28 | 11623 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
11624 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11625 | return 1; | |
11626 | } | |
11627 | ||
11628 | ||
11629 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11630 | PyObject *pyobj; | |
11631 | ||
11632 | { | |
11633 | #if wxUSE_UNICODE | |
11634 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11635 | #else | |
11636 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11637 | #endif | |
11638 | } | |
11639 | return pyobj; | |
11640 | } | |
11641 | ||
11642 | ||
c32bde28 | 11643 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
11644 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11645 | return 1; | |
11646 | } | |
11647 | ||
11648 | ||
11649 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11650 | PyObject *pyobj; | |
11651 | ||
11652 | { | |
11653 | #if wxUSE_UNICODE | |
11654 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11655 | #else | |
11656 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11657 | #endif | |
11658 | } | |
11659 | return pyobj; | |
11660 | } | |
11661 | ||
11662 | ||
c32bde28 | 11663 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
11664 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11665 | return 1; | |
11666 | } | |
11667 | ||
11668 | ||
11669 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11670 | PyObject *pyobj; | |
11671 | ||
11672 | { | |
11673 | #if wxUSE_UNICODE | |
11674 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11675 | #else | |
11676 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11677 | #endif | |
11678 | } | |
11679 | return pyobj; | |
11680 | } | |
11681 | ||
11682 | ||
c32bde28 | 11683 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
11684 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11685 | return 1; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11690 | PyObject *pyobj; | |
11691 | ||
11692 | { | |
11693 | #if wxUSE_UNICODE | |
11694 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11695 | #else | |
11696 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11697 | #endif | |
11698 | } | |
11699 | return pyobj; | |
11700 | } | |
11701 | ||
11702 | ||
c32bde28 | 11703 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
11704 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11705 | return 1; | |
11706 | } | |
11707 | ||
11708 | ||
11709 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11710 | PyObject *pyobj; | |
11711 | ||
11712 | { | |
11713 | #if wxUSE_UNICODE | |
11714 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11715 | #else | |
11716 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11717 | #endif | |
11718 | } | |
11719 | return pyobj; | |
11720 | } | |
11721 | ||
11722 | ||
c32bde28 | 11723 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11724 | PyObject *resultobj; |
11725 | wxBMPHandler *result; | |
11726 | char *kwnames[] = { | |
11727 | NULL | |
11728 | }; | |
11729 | ||
11730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11731 | { | |
11732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11733 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11734 | ||
11735 | wxPyEndAllowThreads(__tstate); | |
11736 | if (PyErr_Occurred()) SWIG_fail; | |
11737 | } | |
11738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11739 | return resultobj; | |
11740 | fail: | |
11741 | return NULL; | |
11742 | } | |
11743 | ||
11744 | ||
c32bde28 | 11745 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11746 | PyObject *obj; |
11747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11748 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11749 | Py_INCREF(obj); | |
11750 | return Py_BuildValue((char *)""); | |
11751 | } | |
c32bde28 | 11752 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11753 | PyObject *resultobj; |
11754 | wxICOHandler *result; | |
11755 | char *kwnames[] = { | |
11756 | NULL | |
11757 | }; | |
11758 | ||
11759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11760 | { | |
11761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11762 | result = (wxICOHandler *)new wxICOHandler(); | |
11763 | ||
11764 | wxPyEndAllowThreads(__tstate); | |
11765 | if (PyErr_Occurred()) SWIG_fail; | |
11766 | } | |
11767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11768 | return resultobj; | |
11769 | fail: | |
11770 | return NULL; | |
11771 | } | |
11772 | ||
11773 | ||
c32bde28 | 11774 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11775 | PyObject *obj; |
11776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11777 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11778 | Py_INCREF(obj); | |
11779 | return Py_BuildValue((char *)""); | |
11780 | } | |
c32bde28 | 11781 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11782 | PyObject *resultobj; |
11783 | wxCURHandler *result; | |
11784 | char *kwnames[] = { | |
11785 | NULL | |
11786 | }; | |
11787 | ||
11788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11789 | { | |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11791 | result = (wxCURHandler *)new wxCURHandler(); | |
11792 | ||
11793 | wxPyEndAllowThreads(__tstate); | |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
11795 | } | |
11796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11797 | return resultobj; | |
11798 | fail: | |
11799 | return NULL; | |
11800 | } | |
11801 | ||
11802 | ||
c32bde28 | 11803 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11804 | PyObject *obj; |
11805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11806 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11807 | Py_INCREF(obj); | |
11808 | return Py_BuildValue((char *)""); | |
11809 | } | |
c32bde28 | 11810 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11811 | PyObject *resultobj; |
11812 | wxANIHandler *result; | |
11813 | char *kwnames[] = { | |
11814 | NULL | |
11815 | }; | |
11816 | ||
11817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11818 | { | |
11819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11820 | result = (wxANIHandler *)new wxANIHandler(); | |
11821 | ||
11822 | wxPyEndAllowThreads(__tstate); | |
11823 | if (PyErr_Occurred()) SWIG_fail; | |
11824 | } | |
11825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11826 | return resultobj; | |
11827 | fail: | |
11828 | return NULL; | |
11829 | } | |
11830 | ||
11831 | ||
c32bde28 | 11832 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11833 | PyObject *obj; |
11834 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11835 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11836 | Py_INCREF(obj); | |
11837 | return Py_BuildValue((char *)""); | |
11838 | } | |
c32bde28 | 11839 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11840 | PyObject *resultobj; |
11841 | wxPNGHandler *result; | |
11842 | char *kwnames[] = { | |
11843 | NULL | |
11844 | }; | |
11845 | ||
11846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11847 | { | |
11848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11849 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11850 | ||
11851 | wxPyEndAllowThreads(__tstate); | |
11852 | if (PyErr_Occurred()) SWIG_fail; | |
11853 | } | |
11854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11855 | return resultobj; | |
11856 | fail: | |
11857 | return NULL; | |
11858 | } | |
11859 | ||
11860 | ||
c32bde28 | 11861 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11862 | PyObject *obj; |
11863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11864 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11865 | Py_INCREF(obj); | |
11866 | return Py_BuildValue((char *)""); | |
11867 | } | |
c32bde28 | 11868 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11869 | PyObject *resultobj; |
11870 | wxGIFHandler *result; | |
11871 | char *kwnames[] = { | |
11872 | NULL | |
11873 | }; | |
11874 | ||
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11876 | { | |
11877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11878 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11879 | ||
11880 | wxPyEndAllowThreads(__tstate); | |
11881 | if (PyErr_Occurred()) SWIG_fail; | |
11882 | } | |
11883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11884 | return resultobj; | |
11885 | fail: | |
11886 | return NULL; | |
11887 | } | |
11888 | ||
11889 | ||
c32bde28 | 11890 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11891 | PyObject *obj; |
11892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11893 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11894 | Py_INCREF(obj); | |
11895 | return Py_BuildValue((char *)""); | |
11896 | } | |
c32bde28 | 11897 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11898 | PyObject *resultobj; |
11899 | wxPCXHandler *result; | |
11900 | char *kwnames[] = { | |
11901 | NULL | |
11902 | }; | |
11903 | ||
11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11905 | { | |
11906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11907 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11908 | ||
11909 | wxPyEndAllowThreads(__tstate); | |
11910 | if (PyErr_Occurred()) SWIG_fail; | |
11911 | } | |
11912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11913 | return resultobj; | |
11914 | fail: | |
11915 | return NULL; | |
11916 | } | |
11917 | ||
11918 | ||
c32bde28 | 11919 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11920 | PyObject *obj; |
11921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11922 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11923 | Py_INCREF(obj); | |
11924 | return Py_BuildValue((char *)""); | |
11925 | } | |
c32bde28 | 11926 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11927 | PyObject *resultobj; |
11928 | wxJPEGHandler *result; | |
11929 | char *kwnames[] = { | |
11930 | NULL | |
11931 | }; | |
11932 | ||
11933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11934 | { | |
11935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11936 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11937 | ||
11938 | wxPyEndAllowThreads(__tstate); | |
11939 | if (PyErr_Occurred()) SWIG_fail; | |
11940 | } | |
11941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11942 | return resultobj; | |
11943 | fail: | |
11944 | return NULL; | |
11945 | } | |
11946 | ||
11947 | ||
c32bde28 | 11948 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11949 | PyObject *obj; |
11950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11951 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11952 | Py_INCREF(obj); | |
11953 | return Py_BuildValue((char *)""); | |
11954 | } | |
c32bde28 | 11955 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11956 | PyObject *resultobj; |
11957 | wxPNMHandler *result; | |
11958 | char *kwnames[] = { | |
11959 | NULL | |
11960 | }; | |
11961 | ||
11962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11963 | { | |
11964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11965 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11966 | ||
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
11971 | return resultobj; | |
11972 | fail: | |
11973 | return NULL; | |
11974 | } | |
11975 | ||
11976 | ||
c32bde28 | 11977 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11978 | PyObject *obj; |
11979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11980 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11981 | Py_INCREF(obj); | |
11982 | return Py_BuildValue((char *)""); | |
11983 | } | |
c32bde28 | 11984 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11985 | PyObject *resultobj; |
11986 | wxXPMHandler *result; | |
11987 | char *kwnames[] = { | |
11988 | NULL | |
11989 | }; | |
11990 | ||
11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11992 | { | |
11993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11994 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11995 | ||
11996 | wxPyEndAllowThreads(__tstate); | |
11997 | if (PyErr_Occurred()) SWIG_fail; | |
11998 | } | |
11999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | return NULL; | |
12003 | } | |
12004 | ||
12005 | ||
c32bde28 | 12006 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12007 | PyObject *obj; |
12008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12009 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12010 | Py_INCREF(obj); | |
12011 | return Py_BuildValue((char *)""); | |
12012 | } | |
c32bde28 | 12013 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12014 | PyObject *resultobj; |
12015 | wxTIFFHandler *result; | |
12016 | char *kwnames[] = { | |
12017 | NULL | |
12018 | }; | |
12019 | ||
12020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12021 | { | |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12023 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12024 | ||
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
12028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
12029 | return resultobj; | |
12030 | fail: | |
12031 | return NULL; | |
12032 | } | |
12033 | ||
12034 | ||
c32bde28 | 12035 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12036 | PyObject *obj; |
12037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12038 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12039 | Py_INCREF(obj); | |
12040 | return Py_BuildValue((char *)""); | |
12041 | } | |
c32bde28 | 12042 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12043 | PyObject *resultobj; |
12044 | wxImage *arg1 = 0 ; | |
12045 | wxImage *arg2 = 0 ; | |
12046 | int arg3 = (int) 236 ; | |
12047 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12048 | bool result; | |
12049 | PyObject * obj0 = 0 ; | |
12050 | PyObject * obj1 = 0 ; | |
12051 | PyObject * obj2 = 0 ; | |
12052 | PyObject * obj3 = 0 ; | |
12053 | char *kwnames[] = { | |
12054 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12055 | }; | |
12056 | ||
12057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12060 | SWIG_fail; | |
12061 | if (arg1 == NULL) { | |
12062 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12063 | SWIG_fail; | |
12064 | } | |
12065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12067 | SWIG_fail; | |
12068 | if (arg2 == NULL) { | |
12069 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12070 | SWIG_fail; | |
12071 | } | |
12072 | if (obj2) { | |
c32bde28 | 12073 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12074 | if (PyErr_Occurred()) SWIG_fail; |
12075 | } | |
12076 | if (obj3) { | |
c32bde28 | 12077 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12078 | if (PyErr_Occurred()) SWIG_fail; |
12079 | } | |
12080 | { | |
12081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12082 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12083 | ||
12084 | wxPyEndAllowThreads(__tstate); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
12086 | } | |
12087 | { | |
12088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12089 | } | |
12090 | return resultobj; | |
12091 | fail: | |
12092 | return NULL; | |
12093 | } | |
12094 | ||
12095 | ||
c32bde28 | 12096 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12097 | PyObject *obj; |
12098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12099 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12100 | Py_INCREF(obj); | |
12101 | return Py_BuildValue((char *)""); | |
12102 | } | |
c32bde28 | 12103 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12104 | PyObject *resultobj; |
12105 | wxEvtHandler *result; | |
12106 | char *kwnames[] = { | |
12107 | NULL | |
12108 | }; | |
12109 | ||
12110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12114 | ||
12115 | wxPyEndAllowThreads(__tstate); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
b0f7404b | 12118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
12119 | return resultobj; |
12120 | fail: | |
12121 | return NULL; | |
12122 | } | |
12123 | ||
12124 | ||
c32bde28 | 12125 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12126 | PyObject *resultobj; |
12127 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12128 | wxEvtHandler *result; | |
12129 | PyObject * obj0 = 0 ; | |
12130 | char *kwnames[] = { | |
12131 | (char *) "self", NULL | |
12132 | }; | |
12133 | ||
12134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
12135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12137 | { | |
12138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12139 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12140 | ||
12141 | wxPyEndAllowThreads(__tstate); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | } | |
12144 | { | |
412d302d | 12145 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12146 | } |
12147 | return resultobj; | |
12148 | fail: | |
12149 | return NULL; | |
12150 | } | |
12151 | ||
12152 | ||
c32bde28 | 12153 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12154 | PyObject *resultobj; |
12155 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12156 | wxEvtHandler *result; | |
12157 | PyObject * obj0 = 0 ; | |
12158 | char *kwnames[] = { | |
12159 | (char *) "self", NULL | |
12160 | }; | |
12161 | ||
12162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
12163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12165 | { | |
12166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12167 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12168 | ||
12169 | wxPyEndAllowThreads(__tstate); | |
12170 | if (PyErr_Occurred()) SWIG_fail; | |
12171 | } | |
12172 | { | |
412d302d | 12173 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12174 | } |
12175 | return resultobj; | |
12176 | fail: | |
12177 | return NULL; | |
12178 | } | |
12179 | ||
12180 | ||
c32bde28 | 12181 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12182 | PyObject *resultobj; |
12183 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12184 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12185 | PyObject * obj0 = 0 ; | |
12186 | PyObject * obj1 = 0 ; | |
12187 | char *kwnames[] = { | |
12188 | (char *) "self",(char *) "handler", NULL | |
12189 | }; | |
12190 | ||
12191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
12192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12194 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12196 | { | |
12197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12198 | (arg1)->SetNextHandler(arg2); | |
12199 | ||
12200 | wxPyEndAllowThreads(__tstate); | |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
12202 | } | |
12203 | Py_INCREF(Py_None); resultobj = Py_None; | |
12204 | return resultobj; | |
12205 | fail: | |
12206 | return NULL; | |
12207 | } | |
12208 | ||
12209 | ||
c32bde28 | 12210 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12211 | PyObject *resultobj; |
12212 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12213 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12214 | PyObject * obj0 = 0 ; | |
12215 | PyObject * obj1 = 0 ; | |
12216 | char *kwnames[] = { | |
12217 | (char *) "self",(char *) "handler", NULL | |
12218 | }; | |
12219 | ||
12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
12221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12225 | { | |
12226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12227 | (arg1)->SetPreviousHandler(arg2); | |
12228 | ||
12229 | wxPyEndAllowThreads(__tstate); | |
12230 | if (PyErr_Occurred()) SWIG_fail; | |
12231 | } | |
12232 | Py_INCREF(Py_None); resultobj = Py_None; | |
12233 | return resultobj; | |
12234 | fail: | |
12235 | return NULL; | |
12236 | } | |
12237 | ||
12238 | ||
c32bde28 | 12239 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12240 | PyObject *resultobj; |
12241 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12242 | bool result; | |
12243 | PyObject * obj0 = 0 ; | |
12244 | char *kwnames[] = { | |
12245 | (char *) "self", NULL | |
12246 | }; | |
12247 | ||
12248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12251 | { | |
12252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12253 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12254 | ||
12255 | wxPyEndAllowThreads(__tstate); | |
12256 | if (PyErr_Occurred()) SWIG_fail; | |
12257 | } | |
12258 | { | |
12259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12260 | } | |
12261 | return resultobj; | |
12262 | fail: | |
12263 | return NULL; | |
12264 | } | |
12265 | ||
12266 | ||
c32bde28 | 12267 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12268 | PyObject *resultobj; |
12269 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12270 | bool arg2 ; | |
12271 | PyObject * obj0 = 0 ; | |
12272 | PyObject * obj1 = 0 ; | |
12273 | char *kwnames[] = { | |
12274 | (char *) "self",(char *) "enabled", NULL | |
12275 | }; | |
12276 | ||
12277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12280 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12281 | if (PyErr_Occurred()) SWIG_fail; |
12282 | { | |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12285 | ||
12286 | wxPyEndAllowThreads(__tstate); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
12289 | Py_INCREF(Py_None); resultobj = Py_None; | |
12290 | return resultobj; | |
12291 | fail: | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
c32bde28 | 12296 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12297 | PyObject *resultobj; |
12298 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12299 | wxEvent *arg2 = 0 ; | |
12300 | bool result; | |
12301 | PyObject * obj0 = 0 ; | |
12302 | PyObject * obj1 = 0 ; | |
12303 | char *kwnames[] = { | |
12304 | (char *) "self",(char *) "event", NULL | |
12305 | }; | |
12306 | ||
12307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12311 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12312 | SWIG_fail; | |
12313 | if (arg2 == NULL) { | |
12314 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12315 | SWIG_fail; | |
12316 | } | |
12317 | { | |
12318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12319 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12320 | ||
12321 | wxPyEndAllowThreads(__tstate); | |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | } | |
12324 | { | |
12325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12326 | } | |
12327 | return resultobj; | |
12328 | fail: | |
12329 | return NULL; | |
12330 | } | |
12331 | ||
12332 | ||
c32bde28 | 12333 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12334 | PyObject *resultobj; |
12335 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12336 | wxEvent *arg2 = 0 ; | |
12337 | PyObject * obj0 = 0 ; | |
12338 | PyObject * obj1 = 0 ; | |
12339 | char *kwnames[] = { | |
12340 | (char *) "self",(char *) "event", NULL | |
12341 | }; | |
12342 | ||
12343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12348 | SWIG_fail; | |
12349 | if (arg2 == NULL) { | |
12350 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12351 | SWIG_fail; | |
12352 | } | |
12353 | { | |
12354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12355 | (arg1)->AddPendingEvent(*arg2); | |
12356 | ||
12357 | wxPyEndAllowThreads(__tstate); | |
12358 | if (PyErr_Occurred()) SWIG_fail; | |
12359 | } | |
12360 | Py_INCREF(Py_None); resultobj = Py_None; | |
12361 | return resultobj; | |
12362 | fail: | |
12363 | return NULL; | |
12364 | } | |
12365 | ||
12366 | ||
c32bde28 | 12367 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12368 | PyObject *resultobj; |
12369 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12370 | PyObject * obj0 = 0 ; | |
12371 | char *kwnames[] = { | |
12372 | (char *) "self", NULL | |
12373 | }; | |
12374 | ||
12375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12378 | { | |
12379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12380 | (arg1)->ProcessPendingEvents(); | |
12381 | ||
12382 | wxPyEndAllowThreads(__tstate); | |
12383 | if (PyErr_Occurred()) SWIG_fail; | |
12384 | } | |
12385 | Py_INCREF(Py_None); resultobj = Py_None; | |
12386 | return resultobj; | |
12387 | fail: | |
12388 | return NULL; | |
12389 | } | |
12390 | ||
12391 | ||
c32bde28 | 12392 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12393 | PyObject *resultobj; |
12394 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12395 | int arg2 ; | |
12396 | int arg3 ; | |
12397 | int arg4 ; | |
12398 | PyObject *arg5 = (PyObject *) 0 ; | |
12399 | PyObject * obj0 = 0 ; | |
12400 | PyObject * obj1 = 0 ; | |
12401 | PyObject * obj2 = 0 ; | |
12402 | PyObject * obj3 = 0 ; | |
12403 | PyObject * obj4 = 0 ; | |
12404 | char *kwnames[] = { | |
12405 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12406 | }; | |
12407 | ||
12408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12411 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12412 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12413 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12414 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12415 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12416 | if (PyErr_Occurred()) SWIG_fail; |
12417 | arg5 = obj4; | |
12418 | { | |
12419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12420 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12421 | ||
12422 | wxPyEndAllowThreads(__tstate); | |
12423 | if (PyErr_Occurred()) SWIG_fail; | |
12424 | } | |
12425 | Py_INCREF(Py_None); resultobj = Py_None; | |
12426 | return resultobj; | |
12427 | fail: | |
12428 | return NULL; | |
12429 | } | |
12430 | ||
12431 | ||
c32bde28 | 12432 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12433 | PyObject *resultobj; |
12434 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12435 | int arg2 ; | |
12436 | int arg3 = (int) -1 ; | |
12437 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12438 | bool result; | |
12439 | PyObject * obj0 = 0 ; | |
12440 | PyObject * obj1 = 0 ; | |
12441 | PyObject * obj2 = 0 ; | |
12442 | PyObject * obj3 = 0 ; | |
12443 | char *kwnames[] = { | |
12444 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12445 | }; | |
12446 | ||
12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12450 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12451 | if (PyErr_Occurred()) SWIG_fail; |
12452 | if (obj2) { | |
c32bde28 | 12453 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12454 | if (PyErr_Occurred()) SWIG_fail; |
12455 | } | |
12456 | if (obj3) { | |
c32bde28 | 12457 | arg4 = (wxEventType)SWIG_As_int(obj3); |
d55e5bfc RD |
12458 | if (PyErr_Occurred()) SWIG_fail; |
12459 | } | |
12460 | { | |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | { | |
12468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12469 | } | |
12470 | return resultobj; | |
12471 | fail: | |
12472 | return NULL; | |
12473 | } | |
12474 | ||
12475 | ||
c32bde28 | 12476 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12477 | PyObject *resultobj; |
12478 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12479 | PyObject *arg2 = (PyObject *) 0 ; | |
12480 | PyObject * obj0 = 0 ; | |
12481 | PyObject * obj1 = 0 ; | |
12482 | char *kwnames[] = { | |
12483 | (char *) "self",(char *) "_self", NULL | |
12484 | }; | |
12485 | ||
12486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12489 | arg2 = obj1; | |
12490 | { | |
12491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12492 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12493 | ||
12494 | wxPyEndAllowThreads(__tstate); | |
12495 | if (PyErr_Occurred()) SWIG_fail; | |
12496 | } | |
12497 | Py_INCREF(Py_None); resultobj = Py_None; | |
12498 | return resultobj; | |
12499 | fail: | |
12500 | return NULL; | |
12501 | } | |
12502 | ||
12503 | ||
c32bde28 | 12504 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12505 | PyObject *obj; |
12506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12507 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12508 | Py_INCREF(obj); | |
12509 | return Py_BuildValue((char *)""); | |
12510 | } | |
c32bde28 | 12511 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12512 | PyObject *resultobj; |
12513 | wxEventType result; | |
12514 | char *kwnames[] = { | |
12515 | NULL | |
12516 | }; | |
12517 | ||
12518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12519 | { | |
12520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12521 | result = (wxEventType)wxNewEventType(); | |
12522 | ||
12523 | wxPyEndAllowThreads(__tstate); | |
12524 | if (PyErr_Occurred()) SWIG_fail; | |
12525 | } | |
c32bde28 | 12526 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12527 | return resultobj; |
12528 | fail: | |
12529 | return NULL; | |
12530 | } | |
12531 | ||
12532 | ||
c32bde28 | 12533 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12534 | PyObject *resultobj; |
12535 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12536 | PyObject * obj0 = 0 ; | |
12537 | char *kwnames[] = { | |
12538 | (char *) "self", NULL | |
12539 | }; | |
12540 | ||
12541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12544 | { | |
12545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12546 | delete arg1; | |
12547 | ||
12548 | wxPyEndAllowThreads(__tstate); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | Py_INCREF(Py_None); resultobj = Py_None; | |
12552 | return resultobj; | |
12553 | fail: | |
12554 | return NULL; | |
12555 | } | |
12556 | ||
12557 | ||
c32bde28 | 12558 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12559 | PyObject *resultobj; |
12560 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12561 | wxEventType arg2 ; | |
12562 | PyObject * obj0 = 0 ; | |
12563 | PyObject * obj1 = 0 ; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "self",(char *) "typ", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12571 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
12572 | if (PyErr_Occurred()) SWIG_fail; |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | (arg1)->SetEventType(arg2); | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | Py_INCREF(Py_None); resultobj = Py_None; | |
12581 | return resultobj; | |
12582 | fail: | |
12583 | return NULL; | |
12584 | } | |
12585 | ||
12586 | ||
c32bde28 | 12587 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12588 | PyObject *resultobj; |
12589 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12590 | wxEventType result; | |
12591 | PyObject * obj0 = 0 ; | |
12592 | char *kwnames[] = { | |
12593 | (char *) "self", NULL | |
12594 | }; | |
12595 | ||
12596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12599 | { | |
12600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12601 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12602 | ||
12603 | wxPyEndAllowThreads(__tstate); | |
12604 | if (PyErr_Occurred()) SWIG_fail; | |
12605 | } | |
c32bde28 | 12606 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12607 | return resultobj; |
12608 | fail: | |
12609 | return NULL; | |
12610 | } | |
12611 | ||
12612 | ||
c32bde28 | 12613 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12614 | PyObject *resultobj; |
12615 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12616 | wxObject *result; | |
12617 | PyObject * obj0 = 0 ; | |
12618 | char *kwnames[] = { | |
12619 | (char *) "self", NULL | |
12620 | }; | |
12621 | ||
12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12625 | { | |
12626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12627 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12628 | ||
12629 | wxPyEndAllowThreads(__tstate); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | { | |
412d302d | 12633 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12634 | } |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
12638 | } | |
12639 | ||
12640 | ||
c32bde28 | 12641 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12642 | PyObject *resultobj; |
12643 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12644 | wxObject *arg2 = (wxObject *) 0 ; | |
12645 | PyObject * obj0 = 0 ; | |
12646 | PyObject * obj1 = 0 ; | |
12647 | char *kwnames[] = { | |
12648 | (char *) "self",(char *) "obj", NULL | |
12649 | }; | |
12650 | ||
12651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12656 | { | |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | (arg1)->SetEventObject(arg2); | |
12659 | ||
12660 | wxPyEndAllowThreads(__tstate); | |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | Py_INCREF(Py_None); resultobj = Py_None; | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
12667 | } | |
12668 | ||
12669 | ||
c32bde28 | 12670 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12671 | PyObject *resultobj; |
12672 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12673 | long result; | |
12674 | PyObject * obj0 = 0 ; | |
12675 | char *kwnames[] = { | |
12676 | (char *) "self", NULL | |
12677 | }; | |
12678 | ||
12679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12682 | { | |
12683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12684 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12685 | ||
12686 | wxPyEndAllowThreads(__tstate); | |
12687 | if (PyErr_Occurred()) SWIG_fail; | |
12688 | } | |
c32bde28 | 12689 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
12690 | return resultobj; |
12691 | fail: | |
12692 | return NULL; | |
12693 | } | |
12694 | ||
12695 | ||
c32bde28 | 12696 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12697 | PyObject *resultobj; |
12698 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12699 | long arg2 = (long) 0 ; | |
12700 | PyObject * obj0 = 0 ; | |
12701 | PyObject * obj1 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self",(char *) "ts", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12709 | if (obj1) { | |
c32bde28 | 12710 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
12711 | if (PyErr_Occurred()) SWIG_fail; |
12712 | } | |
12713 | { | |
12714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12715 | (arg1)->SetTimestamp(arg2); | |
12716 | ||
12717 | wxPyEndAllowThreads(__tstate); | |
12718 | if (PyErr_Occurred()) SWIG_fail; | |
12719 | } | |
12720 | Py_INCREF(Py_None); resultobj = Py_None; | |
12721 | return resultobj; | |
12722 | fail: | |
12723 | return NULL; | |
12724 | } | |
12725 | ||
12726 | ||
c32bde28 | 12727 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12728 | PyObject *resultobj; |
12729 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12730 | int result; | |
12731 | PyObject * obj0 = 0 ; | |
12732 | char *kwnames[] = { | |
12733 | (char *) "self", NULL | |
12734 | }; | |
12735 | ||
12736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12739 | { | |
12740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12741 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12742 | ||
12743 | wxPyEndAllowThreads(__tstate); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
c32bde28 | 12746 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12747 | return resultobj; |
12748 | fail: | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
c32bde28 | 12753 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12754 | PyObject *resultobj; |
12755 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12756 | int arg2 ; | |
12757 | PyObject * obj0 = 0 ; | |
12758 | PyObject * obj1 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self",(char *) "Id", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12766 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12767 | if (PyErr_Occurred()) SWIG_fail; |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | (arg1)->SetId(arg2); | |
12771 | ||
12772 | wxPyEndAllowThreads(__tstate); | |
12773 | if (PyErr_Occurred()) SWIG_fail; | |
12774 | } | |
12775 | Py_INCREF(Py_None); resultobj = Py_None; | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | return NULL; | |
12779 | } | |
12780 | ||
12781 | ||
c32bde28 | 12782 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12783 | PyObject *resultobj; |
12784 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12785 | bool result; | |
12786 | PyObject * obj0 = 0 ; | |
12787 | char *kwnames[] = { | |
12788 | (char *) "self", NULL | |
12789 | }; | |
12790 | ||
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12794 | { | |
12795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12796 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12797 | ||
12798 | wxPyEndAllowThreads(__tstate); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
12801 | { | |
12802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12803 | } | |
12804 | return resultobj; | |
12805 | fail: | |
12806 | return NULL; | |
12807 | } | |
12808 | ||
12809 | ||
c32bde28 | 12810 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12811 | PyObject *resultobj; |
12812 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 12813 | bool arg2 = (bool) true ; |
d55e5bfc RD |
12814 | PyObject * obj0 = 0 ; |
12815 | PyObject * obj1 = 0 ; | |
12816 | char *kwnames[] = { | |
12817 | (char *) "self",(char *) "skip", NULL | |
12818 | }; | |
12819 | ||
12820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12823 | if (obj1) { | |
c32bde28 | 12824 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12825 | if (PyErr_Occurred()) SWIG_fail; |
12826 | } | |
12827 | { | |
12828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12829 | (arg1)->Skip(arg2); | |
12830 | ||
12831 | wxPyEndAllowThreads(__tstate); | |
12832 | if (PyErr_Occurred()) SWIG_fail; | |
12833 | } | |
12834 | Py_INCREF(Py_None); resultobj = Py_None; | |
12835 | return resultobj; | |
12836 | fail: | |
12837 | return NULL; | |
12838 | } | |
12839 | ||
12840 | ||
c32bde28 | 12841 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12842 | PyObject *resultobj; |
12843 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12844 | bool result; | |
12845 | PyObject * obj0 = 0 ; | |
12846 | char *kwnames[] = { | |
12847 | (char *) "self", NULL | |
12848 | }; | |
12849 | ||
12850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12853 | { | |
12854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12855 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12856 | ||
12857 | wxPyEndAllowThreads(__tstate); | |
12858 | if (PyErr_Occurred()) SWIG_fail; | |
12859 | } | |
12860 | { | |
12861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12862 | } | |
12863 | return resultobj; | |
12864 | fail: | |
12865 | return NULL; | |
12866 | } | |
12867 | ||
12868 | ||
c32bde28 | 12869 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12870 | PyObject *resultobj; |
12871 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12872 | bool result; | |
12873 | PyObject * obj0 = 0 ; | |
12874 | char *kwnames[] = { | |
12875 | (char *) "self", NULL | |
12876 | }; | |
12877 | ||
12878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12881 | { | |
12882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12883 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12884 | ||
12885 | wxPyEndAllowThreads(__tstate); | |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
12888 | { | |
12889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12890 | } | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
c32bde28 | 12897 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12898 | PyObject *resultobj; |
12899 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12900 | int result; | |
12901 | PyObject * obj0 = 0 ; | |
12902 | char *kwnames[] = { | |
12903 | (char *) "self", NULL | |
12904 | }; | |
12905 | ||
12906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12909 | { | |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12911 | result = (int)(arg1)->StopPropagation(); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
12914 | if (PyErr_Occurred()) SWIG_fail; | |
12915 | } | |
c32bde28 | 12916 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12917 | return resultobj; |
12918 | fail: | |
12919 | return NULL; | |
12920 | } | |
12921 | ||
12922 | ||
c32bde28 | 12923 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12924 | PyObject *resultobj; |
12925 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12926 | int arg2 ; | |
12927 | PyObject * obj0 = 0 ; | |
12928 | PyObject * obj1 = 0 ; | |
12929 | char *kwnames[] = { | |
12930 | (char *) "self",(char *) "propagationLevel", NULL | |
12931 | }; | |
12932 | ||
12933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12936 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12937 | if (PyErr_Occurred()) SWIG_fail; |
12938 | { | |
12939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12940 | (arg1)->ResumePropagation(arg2); | |
12941 | ||
12942 | wxPyEndAllowThreads(__tstate); | |
12943 | if (PyErr_Occurred()) SWIG_fail; | |
12944 | } | |
12945 | Py_INCREF(Py_None); resultobj = Py_None; | |
12946 | return resultobj; | |
12947 | fail: | |
12948 | return NULL; | |
12949 | } | |
12950 | ||
12951 | ||
c32bde28 | 12952 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12953 | PyObject *resultobj; |
12954 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12955 | wxEvent *result; | |
12956 | PyObject * obj0 = 0 ; | |
12957 | char *kwnames[] = { | |
12958 | (char *) "self", NULL | |
12959 | }; | |
12960 | ||
12961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12964 | { | |
12965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12966 | result = (wxEvent *)(arg1)->Clone(); | |
12967 | ||
12968 | wxPyEndAllowThreads(__tstate); | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | } | |
12971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
12972 | return resultobj; | |
12973 | fail: | |
12974 | return NULL; | |
12975 | } | |
12976 | ||
12977 | ||
c32bde28 | 12978 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12979 | PyObject *obj; |
12980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12981 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12982 | Py_INCREF(obj); | |
12983 | return Py_BuildValue((char *)""); | |
12984 | } | |
c32bde28 | 12985 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12986 | PyObject *resultobj; |
12987 | wxEvent *arg1 = 0 ; | |
12988 | wxPropagationDisabler *result; | |
12989 | PyObject * obj0 = 0 ; | |
12990 | char *kwnames[] = { | |
12991 | (char *) "event", NULL | |
12992 | }; | |
12993 | ||
12994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12997 | SWIG_fail; | |
12998 | if (arg1 == NULL) { | |
12999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13000 | SWIG_fail; | |
13001 | } | |
13002 | { | |
13003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13004 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13005 | ||
13006 | wxPyEndAllowThreads(__tstate); | |
13007 | if (PyErr_Occurred()) SWIG_fail; | |
13008 | } | |
13009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
13010 | return resultobj; | |
13011 | fail: | |
13012 | return NULL; | |
13013 | } | |
13014 | ||
13015 | ||
c32bde28 | 13016 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13017 | PyObject *resultobj; |
13018 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13019 | PyObject * obj0 = 0 ; | |
13020 | char *kwnames[] = { | |
13021 | (char *) "self", NULL | |
13022 | }; | |
13023 | ||
13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
13026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13027 | { | |
13028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13029 | delete arg1; | |
13030 | ||
13031 | wxPyEndAllowThreads(__tstate); | |
13032 | if (PyErr_Occurred()) SWIG_fail; | |
13033 | } | |
13034 | Py_INCREF(Py_None); resultobj = Py_None; | |
13035 | return resultobj; | |
13036 | fail: | |
13037 | return NULL; | |
13038 | } | |
13039 | ||
13040 | ||
c32bde28 | 13041 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13042 | PyObject *obj; |
13043 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13044 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13045 | Py_INCREF(obj); | |
13046 | return Py_BuildValue((char *)""); | |
13047 | } | |
c32bde28 | 13048 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13049 | PyObject *resultobj; |
13050 | wxEvent *arg1 = 0 ; | |
13051 | wxPropagateOnce *result; | |
13052 | PyObject * obj0 = 0 ; | |
13053 | char *kwnames[] = { | |
13054 | (char *) "event", NULL | |
13055 | }; | |
13056 | ||
13057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
13058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13060 | SWIG_fail; | |
13061 | if (arg1 == NULL) { | |
13062 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13063 | SWIG_fail; | |
13064 | } | |
13065 | { | |
13066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13067 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13068 | ||
13069 | wxPyEndAllowThreads(__tstate); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
13072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
13073 | return resultobj; | |
13074 | fail: | |
13075 | return NULL; | |
13076 | } | |
13077 | ||
13078 | ||
c32bde28 | 13079 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13080 | PyObject *resultobj; |
13081 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13082 | PyObject * obj0 = 0 ; | |
13083 | char *kwnames[] = { | |
13084 | (char *) "self", NULL | |
13085 | }; | |
13086 | ||
13087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
13088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
13089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13090 | { | |
13091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13092 | delete arg1; | |
13093 | ||
13094 | wxPyEndAllowThreads(__tstate); | |
13095 | if (PyErr_Occurred()) SWIG_fail; | |
13096 | } | |
13097 | Py_INCREF(Py_None); resultobj = Py_None; | |
13098 | return resultobj; | |
13099 | fail: | |
13100 | return NULL; | |
13101 | } | |
13102 | ||
13103 | ||
c32bde28 | 13104 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13105 | PyObject *obj; |
13106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13107 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13108 | Py_INCREF(obj); | |
13109 | return Py_BuildValue((char *)""); | |
13110 | } | |
c32bde28 | 13111 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13112 | PyObject *resultobj; |
13113 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13114 | int arg2 = (int) 0 ; | |
13115 | wxCommandEvent *result; | |
13116 | PyObject * obj0 = 0 ; | |
13117 | PyObject * obj1 = 0 ; | |
13118 | char *kwnames[] = { | |
13119 | (char *) "commandType",(char *) "winid", NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
13123 | if (obj0) { | |
c32bde28 | 13124 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13125 | if (PyErr_Occurred()) SWIG_fail; |
13126 | } | |
13127 | if (obj1) { | |
c32bde28 | 13128 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13129 | if (PyErr_Occurred()) SWIG_fail; |
13130 | } | |
13131 | { | |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
13139 | return resultobj; | |
13140 | fail: | |
13141 | return NULL; | |
13142 | } | |
13143 | ||
13144 | ||
c32bde28 | 13145 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13146 | PyObject *resultobj; |
13147 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13148 | int result; | |
13149 | PyObject * obj0 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self", NULL | |
13152 | }; | |
13153 | ||
13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13157 | { | |
13158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13159 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13160 | ||
13161 | wxPyEndAllowThreads(__tstate); | |
13162 | if (PyErr_Occurred()) SWIG_fail; | |
13163 | } | |
c32bde28 | 13164 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13165 | return resultobj; |
13166 | fail: | |
13167 | return NULL; | |
13168 | } | |
13169 | ||
13170 | ||
c32bde28 | 13171 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13172 | PyObject *resultobj; |
13173 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13174 | wxString *arg2 = 0 ; | |
ae8162c8 | 13175 | bool temp2 = false ; |
d55e5bfc RD |
13176 | PyObject * obj0 = 0 ; |
13177 | PyObject * obj1 = 0 ; | |
13178 | char *kwnames[] = { | |
13179 | (char *) "self",(char *) "s", NULL | |
13180 | }; | |
13181 | ||
13182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
13183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13185 | { | |
13186 | arg2 = wxString_in_helper(obj1); | |
13187 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13188 | temp2 = true; |
d55e5bfc RD |
13189 | } |
13190 | { | |
13191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13192 | (arg1)->SetString((wxString const &)*arg2); | |
13193 | ||
13194 | wxPyEndAllowThreads(__tstate); | |
13195 | if (PyErr_Occurred()) SWIG_fail; | |
13196 | } | |
13197 | Py_INCREF(Py_None); resultobj = Py_None; | |
13198 | { | |
13199 | if (temp2) | |
13200 | delete arg2; | |
13201 | } | |
13202 | return resultobj; | |
13203 | fail: | |
13204 | { | |
13205 | if (temp2) | |
13206 | delete arg2; | |
13207 | } | |
13208 | return NULL; | |
13209 | } | |
13210 | ||
13211 | ||
c32bde28 | 13212 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13213 | PyObject *resultobj; |
13214 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13215 | wxString result; | |
13216 | PyObject * obj0 = 0 ; | |
13217 | char *kwnames[] = { | |
13218 | (char *) "self", NULL | |
13219 | }; | |
13220 | ||
13221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
13222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13224 | { | |
13225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13226 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13227 | ||
13228 | wxPyEndAllowThreads(__tstate); | |
13229 | if (PyErr_Occurred()) SWIG_fail; | |
13230 | } | |
13231 | { | |
13232 | #if wxUSE_UNICODE | |
13233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13234 | #else | |
13235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13236 | #endif | |
13237 | } | |
13238 | return resultobj; | |
13239 | fail: | |
13240 | return NULL; | |
13241 | } | |
13242 | ||
13243 | ||
c32bde28 | 13244 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13245 | PyObject *resultobj; |
13246 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13247 | bool result; | |
13248 | PyObject * obj0 = 0 ; | |
13249 | char *kwnames[] = { | |
13250 | (char *) "self", NULL | |
13251 | }; | |
13252 | ||
13253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13256 | { | |
13257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13258 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13259 | ||
13260 | wxPyEndAllowThreads(__tstate); | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | } | |
13263 | { | |
13264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13265 | } | |
13266 | return resultobj; | |
13267 | fail: | |
13268 | return NULL; | |
13269 | } | |
13270 | ||
13271 | ||
c32bde28 | 13272 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13273 | PyObject *resultobj; |
13274 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13275 | bool result; | |
13276 | PyObject * obj0 = 0 ; | |
13277 | char *kwnames[] = { | |
13278 | (char *) "self", NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13284 | { | |
13285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13286 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13287 | ||
13288 | wxPyEndAllowThreads(__tstate); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
13291 | { | |
13292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13293 | } | |
13294 | return resultobj; | |
13295 | fail: | |
13296 | return NULL; | |
13297 | } | |
13298 | ||
13299 | ||
c32bde28 | 13300 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13301 | PyObject *resultobj; |
13302 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13303 | long arg2 ; | |
13304 | PyObject * obj0 = 0 ; | |
13305 | PyObject * obj1 = 0 ; | |
13306 | char *kwnames[] = { | |
13307 | (char *) "self",(char *) "extraLong", NULL | |
13308 | }; | |
13309 | ||
13310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13313 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
13314 | if (PyErr_Occurred()) SWIG_fail; |
13315 | { | |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | (arg1)->SetExtraLong(arg2); | |
13318 | ||
13319 | wxPyEndAllowThreads(__tstate); | |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
13321 | } | |
13322 | Py_INCREF(Py_None); resultobj = Py_None; | |
13323 | return resultobj; | |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
c32bde28 | 13329 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13330 | PyObject *resultobj; |
13331 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13332 | long result; | |
13333 | PyObject * obj0 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13341 | { | |
13342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13343 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13344 | ||
13345 | wxPyEndAllowThreads(__tstate); | |
13346 | if (PyErr_Occurred()) SWIG_fail; | |
13347 | } | |
c32bde28 | 13348 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13349 | return resultobj; |
13350 | fail: | |
13351 | return NULL; | |
13352 | } | |
13353 | ||
13354 | ||
c32bde28 | 13355 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13356 | PyObject *resultobj; |
13357 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13358 | int arg2 ; | |
13359 | PyObject * obj0 = 0 ; | |
13360 | PyObject * obj1 = 0 ; | |
13361 | char *kwnames[] = { | |
13362 | (char *) "self",(char *) "i", NULL | |
13363 | }; | |
13364 | ||
13365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13368 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13369 | if (PyErr_Occurred()) SWIG_fail; |
13370 | { | |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | (arg1)->SetInt(arg2); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | Py_INCREF(Py_None); resultobj = Py_None; | |
13378 | return resultobj; | |
13379 | fail: | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
c32bde28 | 13384 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13385 | PyObject *resultobj; |
13386 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13387 | long result; | |
13388 | PyObject * obj0 = 0 ; | |
13389 | char *kwnames[] = { | |
13390 | (char *) "self", NULL | |
13391 | }; | |
13392 | ||
13393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13396 | { | |
13397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13398 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13399 | ||
13400 | wxPyEndAllowThreads(__tstate); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
13402 | } | |
c32bde28 | 13403 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13404 | return resultobj; |
13405 | fail: | |
13406 | return NULL; | |
13407 | } | |
13408 | ||
13409 | ||
c32bde28 | 13410 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13411 | PyObject *resultobj; |
13412 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13413 | wxEvent *result; | |
13414 | PyObject * obj0 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13422 | { | |
13423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13424 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13425 | ||
13426 | wxPyEndAllowThreads(__tstate); | |
13427 | if (PyErr_Occurred()) SWIG_fail; | |
13428 | } | |
13429 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13430 | return resultobj; | |
13431 | fail: | |
13432 | return NULL; | |
13433 | } | |
13434 | ||
13435 | ||
c32bde28 | 13436 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13437 | PyObject *obj; |
13438 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13439 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13440 | Py_INCREF(obj); | |
13441 | return Py_BuildValue((char *)""); | |
13442 | } | |
c32bde28 | 13443 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13444 | PyObject *resultobj; |
13445 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13446 | int arg2 = (int) 0 ; | |
13447 | wxNotifyEvent *result; | |
13448 | PyObject * obj0 = 0 ; | |
13449 | PyObject * obj1 = 0 ; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "commandType",(char *) "winid", NULL | |
13452 | }; | |
13453 | ||
13454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13455 | if (obj0) { | |
c32bde28 | 13456 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13457 | if (PyErr_Occurred()) SWIG_fail; |
13458 | } | |
13459 | if (obj1) { | |
c32bde28 | 13460 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13461 | if (PyErr_Occurred()) SWIG_fail; |
13462 | } | |
13463 | { | |
13464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13465 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13466 | ||
13467 | wxPyEndAllowThreads(__tstate); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
13470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13471 | return resultobj; | |
13472 | fail: | |
13473 | return NULL; | |
13474 | } | |
13475 | ||
13476 | ||
c32bde28 | 13477 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13478 | PyObject *resultobj; |
13479 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13480 | PyObject * obj0 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | (arg1)->Veto(); | |
13491 | ||
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | Py_INCREF(Py_None); resultobj = Py_None; | |
13496 | return resultobj; | |
13497 | fail: | |
13498 | return NULL; | |
13499 | } | |
13500 | ||
13501 | ||
c32bde28 | 13502 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13503 | PyObject *resultobj; |
13504 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13505 | PyObject * obj0 = 0 ; | |
13506 | char *kwnames[] = { | |
13507 | (char *) "self", NULL | |
13508 | }; | |
13509 | ||
13510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13513 | { | |
13514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13515 | (arg1)->Allow(); | |
13516 | ||
13517 | wxPyEndAllowThreads(__tstate); | |
13518 | if (PyErr_Occurred()) SWIG_fail; | |
13519 | } | |
13520 | Py_INCREF(Py_None); resultobj = Py_None; | |
13521 | return resultobj; | |
13522 | fail: | |
13523 | return NULL; | |
13524 | } | |
13525 | ||
13526 | ||
c32bde28 | 13527 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13528 | PyObject *resultobj; |
13529 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13530 | bool result; | |
13531 | PyObject * obj0 = 0 ; | |
13532 | char *kwnames[] = { | |
13533 | (char *) "self", NULL | |
13534 | }; | |
13535 | ||
13536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13539 | { | |
13540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13541 | result = (bool)(arg1)->IsAllowed(); | |
13542 | ||
13543 | wxPyEndAllowThreads(__tstate); | |
13544 | if (PyErr_Occurred()) SWIG_fail; | |
13545 | } | |
13546 | { | |
13547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13548 | } | |
13549 | return resultobj; | |
13550 | fail: | |
13551 | return NULL; | |
13552 | } | |
13553 | ||
13554 | ||
c32bde28 | 13555 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13556 | PyObject *obj; |
13557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13558 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13559 | Py_INCREF(obj); | |
13560 | return Py_BuildValue((char *)""); | |
13561 | } | |
c32bde28 | 13562 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13563 | PyObject *resultobj; |
13564 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13565 | int arg2 = (int) 0 ; | |
13566 | int arg3 = (int) 0 ; | |
13567 | int arg4 = (int) 0 ; | |
13568 | wxScrollEvent *result; | |
13569 | PyObject * obj0 = 0 ; | |
13570 | PyObject * obj1 = 0 ; | |
13571 | PyObject * obj2 = 0 ; | |
13572 | PyObject * obj3 = 0 ; | |
13573 | char *kwnames[] = { | |
13574 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13575 | }; | |
13576 | ||
13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13578 | if (obj0) { | |
c32bde28 | 13579 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13580 | if (PyErr_Occurred()) SWIG_fail; |
13581 | } | |
13582 | if (obj1) { | |
c32bde28 | 13583 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13584 | if (PyErr_Occurred()) SWIG_fail; |
13585 | } | |
13586 | if (obj2) { | |
c32bde28 | 13587 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13588 | if (PyErr_Occurred()) SWIG_fail; |
13589 | } | |
13590 | if (obj3) { | |
c32bde28 | 13591 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13592 | if (PyErr_Occurred()) SWIG_fail; |
13593 | } | |
13594 | { | |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13597 | ||
13598 | wxPyEndAllowThreads(__tstate); | |
13599 | if (PyErr_Occurred()) SWIG_fail; | |
13600 | } | |
13601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13602 | return resultobj; | |
13603 | fail: | |
13604 | return NULL; | |
13605 | } | |
13606 | ||
13607 | ||
c32bde28 | 13608 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13609 | PyObject *resultobj; |
13610 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13611 | int result; | |
13612 | PyObject * obj0 = 0 ; | |
13613 | char *kwnames[] = { | |
13614 | (char *) "self", NULL | |
13615 | }; | |
13616 | ||
13617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13620 | { | |
13621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13622 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13623 | ||
13624 | wxPyEndAllowThreads(__tstate); | |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
13626 | } | |
c32bde28 | 13627 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13628 | return resultobj; |
13629 | fail: | |
13630 | return NULL; | |
13631 | } | |
13632 | ||
13633 | ||
c32bde28 | 13634 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13635 | PyObject *resultobj; |
13636 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13637 | int result; | |
13638 | PyObject * obj0 = 0 ; | |
13639 | char *kwnames[] = { | |
13640 | (char *) "self", NULL | |
13641 | }; | |
13642 | ||
13643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13646 | { | |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13648 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
c32bde28 | 13653 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13654 | return resultobj; |
13655 | fail: | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
c32bde28 | 13660 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13661 | PyObject *resultobj; |
13662 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13663 | int arg2 ; | |
13664 | PyObject * obj0 = 0 ; | |
13665 | PyObject * obj1 = 0 ; | |
13666 | char *kwnames[] = { | |
13667 | (char *) "self",(char *) "orient", NULL | |
13668 | }; | |
13669 | ||
13670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13673 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13674 | if (PyErr_Occurred()) SWIG_fail; |
13675 | { | |
13676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13677 | (arg1)->SetOrientation(arg2); | |
13678 | ||
13679 | wxPyEndAllowThreads(__tstate); | |
13680 | if (PyErr_Occurred()) SWIG_fail; | |
13681 | } | |
13682 | Py_INCREF(Py_None); resultobj = Py_None; | |
13683 | return resultobj; | |
13684 | fail: | |
13685 | return NULL; | |
13686 | } | |
13687 | ||
13688 | ||
c32bde28 | 13689 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13690 | PyObject *resultobj; |
13691 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13692 | int arg2 ; | |
13693 | PyObject * obj0 = 0 ; | |
13694 | PyObject * obj1 = 0 ; | |
13695 | char *kwnames[] = { | |
13696 | (char *) "self",(char *) "pos", NULL | |
13697 | }; | |
13698 | ||
13699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13702 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13703 | if (PyErr_Occurred()) SWIG_fail; |
13704 | { | |
13705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13706 | (arg1)->SetPosition(arg2); | |
13707 | ||
13708 | wxPyEndAllowThreads(__tstate); | |
13709 | if (PyErr_Occurred()) SWIG_fail; | |
13710 | } | |
13711 | Py_INCREF(Py_None); resultobj = Py_None; | |
13712 | return resultobj; | |
13713 | fail: | |
13714 | return NULL; | |
13715 | } | |
13716 | ||
13717 | ||
c32bde28 | 13718 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13719 | PyObject *obj; |
13720 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13721 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13722 | Py_INCREF(obj); | |
13723 | return Py_BuildValue((char *)""); | |
13724 | } | |
c32bde28 | 13725 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13726 | PyObject *resultobj; |
13727 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13728 | int arg2 = (int) 0 ; | |
13729 | int arg3 = (int) 0 ; | |
13730 | wxScrollWinEvent *result; | |
13731 | PyObject * obj0 = 0 ; | |
13732 | PyObject * obj1 = 0 ; | |
13733 | PyObject * obj2 = 0 ; | |
13734 | char *kwnames[] = { | |
13735 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13736 | }; | |
13737 | ||
13738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13739 | if (obj0) { | |
c32bde28 | 13740 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13741 | if (PyErr_Occurred()) SWIG_fail; |
13742 | } | |
13743 | if (obj1) { | |
c32bde28 | 13744 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13745 | if (PyErr_Occurred()) SWIG_fail; |
13746 | } | |
13747 | if (obj2) { | |
c32bde28 | 13748 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13749 | if (PyErr_Occurred()) SWIG_fail; |
13750 | } | |
13751 | { | |
13752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13753 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13754 | ||
13755 | wxPyEndAllowThreads(__tstate); | |
13756 | if (PyErr_Occurred()) SWIG_fail; | |
13757 | } | |
13758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13759 | return resultobj; | |
13760 | fail: | |
13761 | return NULL; | |
13762 | } | |
13763 | ||
13764 | ||
c32bde28 | 13765 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13766 | PyObject *resultobj; |
13767 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13768 | int result; | |
13769 | PyObject * obj0 = 0 ; | |
13770 | char *kwnames[] = { | |
13771 | (char *) "self", NULL | |
13772 | }; | |
13773 | ||
13774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13777 | { | |
13778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13779 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13780 | ||
13781 | wxPyEndAllowThreads(__tstate); | |
13782 | if (PyErr_Occurred()) SWIG_fail; | |
13783 | } | |
c32bde28 | 13784 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13785 | return resultobj; |
13786 | fail: | |
13787 | return NULL; | |
13788 | } | |
13789 | ||
13790 | ||
c32bde28 | 13791 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13792 | PyObject *resultobj; |
13793 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13794 | int result; | |
13795 | PyObject * obj0 = 0 ; | |
13796 | char *kwnames[] = { | |
13797 | (char *) "self", NULL | |
13798 | }; | |
13799 | ||
13800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13803 | { | |
13804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13805 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13806 | ||
13807 | wxPyEndAllowThreads(__tstate); | |
13808 | if (PyErr_Occurred()) SWIG_fail; | |
13809 | } | |
c32bde28 | 13810 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13811 | return resultobj; |
13812 | fail: | |
13813 | return NULL; | |
13814 | } | |
13815 | ||
13816 | ||
c32bde28 | 13817 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13818 | PyObject *resultobj; |
13819 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13820 | int arg2 ; | |
13821 | PyObject * obj0 = 0 ; | |
13822 | PyObject * obj1 = 0 ; | |
13823 | char *kwnames[] = { | |
13824 | (char *) "self",(char *) "orient", NULL | |
13825 | }; | |
13826 | ||
13827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13830 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13831 | if (PyErr_Occurred()) SWIG_fail; |
13832 | { | |
13833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13834 | (arg1)->SetOrientation(arg2); | |
13835 | ||
13836 | wxPyEndAllowThreads(__tstate); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
13839 | Py_INCREF(Py_None); resultobj = Py_None; | |
13840 | return resultobj; | |
13841 | fail: | |
13842 | return NULL; | |
13843 | } | |
13844 | ||
13845 | ||
c32bde28 | 13846 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13847 | PyObject *resultobj; |
13848 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13849 | int arg2 ; | |
13850 | PyObject * obj0 = 0 ; | |
13851 | PyObject * obj1 = 0 ; | |
13852 | char *kwnames[] = { | |
13853 | (char *) "self",(char *) "pos", NULL | |
13854 | }; | |
13855 | ||
13856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13859 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13860 | if (PyErr_Occurred()) SWIG_fail; |
13861 | { | |
13862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13863 | (arg1)->SetPosition(arg2); | |
13864 | ||
13865 | wxPyEndAllowThreads(__tstate); | |
13866 | if (PyErr_Occurred()) SWIG_fail; | |
13867 | } | |
13868 | Py_INCREF(Py_None); resultobj = Py_None; | |
13869 | return resultobj; | |
13870 | fail: | |
13871 | return NULL; | |
13872 | } | |
13873 | ||
13874 | ||
c32bde28 | 13875 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13876 | PyObject *obj; |
13877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13878 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13879 | Py_INCREF(obj); | |
13880 | return Py_BuildValue((char *)""); | |
13881 | } | |
c32bde28 | 13882 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13883 | PyObject *resultobj; |
13884 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13885 | wxMouseEvent *result; | |
13886 | PyObject * obj0 = 0 ; | |
13887 | char *kwnames[] = { | |
13888 | (char *) "mouseType", NULL | |
13889 | }; | |
13890 | ||
13891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13892 | if (obj0) { | |
c32bde28 | 13893 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13894 | if (PyErr_Occurred()) SWIG_fail; |
13895 | } | |
13896 | { | |
13897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13898 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13899 | ||
13900 | wxPyEndAllowThreads(__tstate); | |
13901 | if (PyErr_Occurred()) SWIG_fail; | |
13902 | } | |
13903 | { | |
412d302d | 13904 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
13905 | } |
13906 | return resultobj; | |
13907 | fail: | |
13908 | return NULL; | |
13909 | } | |
13910 | ||
13911 | ||
c32bde28 | 13912 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13913 | PyObject *resultobj; |
13914 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13915 | bool result; | |
13916 | PyObject * obj0 = 0 ; | |
13917 | char *kwnames[] = { | |
13918 | (char *) "self", NULL | |
13919 | }; | |
13920 | ||
13921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13924 | { | |
13925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13926 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13927 | ||
13928 | wxPyEndAllowThreads(__tstate); | |
13929 | if (PyErr_Occurred()) SWIG_fail; | |
13930 | } | |
13931 | { | |
13932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13933 | } | |
13934 | return resultobj; | |
13935 | fail: | |
13936 | return NULL; | |
13937 | } | |
13938 | ||
13939 | ||
c32bde28 | 13940 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13941 | PyObject *resultobj; |
13942 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13943 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13944 | bool result; | |
13945 | PyObject * obj0 = 0 ; | |
13946 | PyObject * obj1 = 0 ; | |
13947 | char *kwnames[] = { | |
13948 | (char *) "self",(char *) "but", NULL | |
13949 | }; | |
13950 | ||
13951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
13952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13954 | if (obj1) { | |
c32bde28 | 13955 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13956 | if (PyErr_Occurred()) SWIG_fail; |
13957 | } | |
13958 | { | |
13959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13960 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13961 | ||
13962 | wxPyEndAllowThreads(__tstate); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | } | |
13965 | { | |
13966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13967 | } | |
13968 | return resultobj; | |
13969 | fail: | |
13970 | return NULL; | |
13971 | } | |
13972 | ||
13973 | ||
c32bde28 | 13974 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13975 | PyObject *resultobj; |
13976 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13977 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13978 | bool result; | |
13979 | PyObject * obj0 = 0 ; | |
13980 | PyObject * obj1 = 0 ; | |
13981 | char *kwnames[] = { | |
13982 | (char *) "self",(char *) "but", NULL | |
13983 | }; | |
13984 | ||
13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
13986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13988 | if (obj1) { | |
c32bde28 | 13989 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13990 | if (PyErr_Occurred()) SWIG_fail; |
13991 | } | |
13992 | { | |
13993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13994 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13995 | ||
13996 | wxPyEndAllowThreads(__tstate); | |
13997 | if (PyErr_Occurred()) SWIG_fail; | |
13998 | } | |
13999 | { | |
14000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14001 | } | |
14002 | return resultobj; | |
14003 | fail: | |
14004 | return NULL; | |
14005 | } | |
14006 | ||
14007 | ||
c32bde28 | 14008 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14009 | PyObject *resultobj; |
14010 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14011 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14012 | bool result; | |
14013 | PyObject * obj0 = 0 ; | |
14014 | PyObject * obj1 = 0 ; | |
14015 | char *kwnames[] = { | |
14016 | (char *) "self",(char *) "but", NULL | |
14017 | }; | |
14018 | ||
14019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
14020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14022 | if (obj1) { | |
c32bde28 | 14023 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14024 | if (PyErr_Occurred()) SWIG_fail; |
14025 | } | |
14026 | { | |
14027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14028 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14029 | ||
14030 | wxPyEndAllowThreads(__tstate); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | } | |
14033 | { | |
14034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14035 | } | |
14036 | return resultobj; | |
14037 | fail: | |
14038 | return NULL; | |
14039 | } | |
14040 | ||
14041 | ||
c32bde28 | 14042 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14043 | PyObject *resultobj; |
14044 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14045 | int arg2 ; | |
14046 | bool result; | |
14047 | PyObject * obj0 = 0 ; | |
14048 | PyObject * obj1 = 0 ; | |
14049 | char *kwnames[] = { | |
14050 | (char *) "self",(char *) "but", NULL | |
14051 | }; | |
14052 | ||
14053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
14054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14056 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14057 | if (PyErr_Occurred()) SWIG_fail; |
14058 | { | |
14059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14060 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14061 | ||
14062 | wxPyEndAllowThreads(__tstate); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
14064 | } | |
14065 | { | |
14066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14067 | } | |
14068 | return resultobj; | |
14069 | fail: | |
14070 | return NULL; | |
14071 | } | |
14072 | ||
14073 | ||
c32bde28 | 14074 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14075 | PyObject *resultobj; |
14076 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14077 | int arg2 ; | |
14078 | bool result; | |
14079 | PyObject * obj0 = 0 ; | |
14080 | PyObject * obj1 = 0 ; | |
14081 | char *kwnames[] = { | |
14082 | (char *) "self",(char *) "but", NULL | |
14083 | }; | |
14084 | ||
14085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
14086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14088 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14089 | if (PyErr_Occurred()) SWIG_fail; |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14093 | ||
14094 | wxPyEndAllowThreads(__tstate); | |
14095 | if (PyErr_Occurred()) SWIG_fail; | |
14096 | } | |
14097 | { | |
14098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14099 | } | |
14100 | return resultobj; | |
14101 | fail: | |
14102 | return NULL; | |
14103 | } | |
14104 | ||
14105 | ||
c32bde28 | 14106 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14107 | PyObject *resultobj; |
14108 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14109 | int result; | |
14110 | PyObject * obj0 = 0 ; | |
14111 | char *kwnames[] = { | |
14112 | (char *) "self", NULL | |
14113 | }; | |
14114 | ||
14115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
14116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14118 | { | |
14119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14120 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14121 | ||
14122 | wxPyEndAllowThreads(__tstate); | |
14123 | if (PyErr_Occurred()) SWIG_fail; | |
14124 | } | |
c32bde28 | 14125 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14126 | return resultobj; |
14127 | fail: | |
14128 | return NULL; | |
14129 | } | |
14130 | ||
14131 | ||
c32bde28 | 14132 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14133 | PyObject *resultobj; |
14134 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14135 | bool result; | |
14136 | PyObject * obj0 = 0 ; | |
14137 | char *kwnames[] = { | |
14138 | (char *) "self", NULL | |
14139 | }; | |
14140 | ||
14141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14144 | { | |
14145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14146 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14147 | ||
14148 | wxPyEndAllowThreads(__tstate); | |
14149 | if (PyErr_Occurred()) SWIG_fail; | |
14150 | } | |
14151 | { | |
14152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14153 | } | |
14154 | return resultobj; | |
14155 | fail: | |
14156 | return NULL; | |
14157 | } | |
14158 | ||
14159 | ||
c32bde28 | 14160 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14161 | PyObject *resultobj; |
14162 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14163 | bool result; | |
14164 | PyObject * obj0 = 0 ; | |
14165 | char *kwnames[] = { | |
14166 | (char *) "self", NULL | |
14167 | }; | |
14168 | ||
14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14172 | { | |
14173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14174 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14175 | ||
14176 | wxPyEndAllowThreads(__tstate); | |
14177 | if (PyErr_Occurred()) SWIG_fail; | |
14178 | } | |
14179 | { | |
14180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14181 | } | |
14182 | return resultobj; | |
14183 | fail: | |
14184 | return NULL; | |
14185 | } | |
14186 | ||
14187 | ||
c32bde28 | 14188 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14189 | PyObject *resultobj; |
14190 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14191 | bool result; | |
14192 | PyObject * obj0 = 0 ; | |
14193 | char *kwnames[] = { | |
14194 | (char *) "self", NULL | |
14195 | }; | |
14196 | ||
14197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
14198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14200 | { | |
14201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14202 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14203 | ||
14204 | wxPyEndAllowThreads(__tstate); | |
14205 | if (PyErr_Occurred()) SWIG_fail; | |
14206 | } | |
14207 | { | |
14208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14209 | } | |
14210 | return resultobj; | |
14211 | fail: | |
14212 | return NULL; | |
14213 | } | |
14214 | ||
14215 | ||
c32bde28 | 14216 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14217 | PyObject *resultobj; |
14218 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14219 | bool result; | |
14220 | PyObject * obj0 = 0 ; | |
14221 | char *kwnames[] = { | |
14222 | (char *) "self", NULL | |
14223 | }; | |
14224 | ||
14225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14228 | { | |
14229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14230 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14231 | ||
14232 | wxPyEndAllowThreads(__tstate); | |
14233 | if (PyErr_Occurred()) SWIG_fail; | |
14234 | } | |
14235 | { | |
14236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14237 | } | |
14238 | return resultobj; | |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
c32bde28 | 14244 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14245 | PyObject *resultobj; |
14246 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14247 | bool result; | |
14248 | PyObject * obj0 = 0 ; | |
14249 | char *kwnames[] = { | |
14250 | (char *) "self", NULL | |
14251 | }; | |
14252 | ||
14253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14256 | { | |
14257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14258 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14259 | ||
14260 | wxPyEndAllowThreads(__tstate); | |
14261 | if (PyErr_Occurred()) SWIG_fail; | |
14262 | } | |
14263 | { | |
14264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14265 | } | |
14266 | return resultobj; | |
14267 | fail: | |
14268 | return NULL; | |
14269 | } | |
14270 | ||
14271 | ||
c32bde28 | 14272 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14273 | PyObject *resultobj; |
14274 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14275 | bool result; | |
14276 | PyObject * obj0 = 0 ; | |
14277 | char *kwnames[] = { | |
14278 | (char *) "self", NULL | |
14279 | }; | |
14280 | ||
14281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14284 | { | |
14285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14286 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14287 | ||
14288 | wxPyEndAllowThreads(__tstate); | |
14289 | if (PyErr_Occurred()) SWIG_fail; | |
14290 | } | |
14291 | { | |
14292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14293 | } | |
14294 | return resultobj; | |
14295 | fail: | |
14296 | return NULL; | |
14297 | } | |
14298 | ||
14299 | ||
c32bde28 | 14300 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14301 | PyObject *resultobj; |
14302 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14303 | bool result; | |
14304 | PyObject * obj0 = 0 ; | |
14305 | char *kwnames[] = { | |
14306 | (char *) "self", NULL | |
14307 | }; | |
14308 | ||
14309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
14310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14312 | { | |
14313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14314 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14315 | ||
14316 | wxPyEndAllowThreads(__tstate); | |
14317 | if (PyErr_Occurred()) SWIG_fail; | |
14318 | } | |
14319 | { | |
14320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14321 | } | |
14322 | return resultobj; | |
14323 | fail: | |
14324 | return NULL; | |
14325 | } | |
14326 | ||
14327 | ||
c32bde28 | 14328 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14329 | PyObject *resultobj; |
14330 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14331 | bool result; | |
14332 | PyObject * obj0 = 0 ; | |
14333 | char *kwnames[] = { | |
14334 | (char *) "self", NULL | |
14335 | }; | |
14336 | ||
14337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14340 | { | |
14341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14342 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14343 | ||
14344 | wxPyEndAllowThreads(__tstate); | |
14345 | if (PyErr_Occurred()) SWIG_fail; | |
14346 | } | |
14347 | { | |
14348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14349 | } | |
14350 | return resultobj; | |
14351 | fail: | |
14352 | return NULL; | |
14353 | } | |
14354 | ||
14355 | ||
c32bde28 | 14356 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14357 | PyObject *resultobj; |
14358 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14359 | bool result; | |
14360 | PyObject * obj0 = 0 ; | |
14361 | char *kwnames[] = { | |
14362 | (char *) "self", NULL | |
14363 | }; | |
14364 | ||
14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14368 | { | |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | { | |
14376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14377 | } | |
14378 | return resultobj; | |
14379 | fail: | |
14380 | return NULL; | |
14381 | } | |
14382 | ||
14383 | ||
c32bde28 | 14384 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14385 | PyObject *resultobj; |
14386 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14387 | bool result; | |
14388 | PyObject * obj0 = 0 ; | |
14389 | char *kwnames[] = { | |
14390 | (char *) "self", NULL | |
14391 | }; | |
14392 | ||
14393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14396 | { | |
14397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14398 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14399 | ||
14400 | wxPyEndAllowThreads(__tstate); | |
14401 | if (PyErr_Occurred()) SWIG_fail; | |
14402 | } | |
14403 | { | |
14404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14405 | } | |
14406 | return resultobj; | |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
c32bde28 | 14412 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14413 | PyObject *resultobj; |
14414 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14415 | bool result; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "self", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14424 | { | |
14425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14426 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14427 | ||
14428 | wxPyEndAllowThreads(__tstate); | |
14429 | if (PyErr_Occurred()) SWIG_fail; | |
14430 | } | |
14431 | { | |
14432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14433 | } | |
14434 | return resultobj; | |
14435 | fail: | |
14436 | return NULL; | |
14437 | } | |
14438 | ||
14439 | ||
c32bde28 | 14440 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14441 | PyObject *resultobj; |
14442 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14443 | bool result; | |
14444 | PyObject * obj0 = 0 ; | |
14445 | char *kwnames[] = { | |
14446 | (char *) "self", NULL | |
14447 | }; | |
14448 | ||
14449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14452 | { | |
14453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14454 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14455 | ||
14456 | wxPyEndAllowThreads(__tstate); | |
14457 | if (PyErr_Occurred()) SWIG_fail; | |
14458 | } | |
14459 | { | |
14460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14461 | } | |
14462 | return resultobj; | |
14463 | fail: | |
14464 | return NULL; | |
14465 | } | |
14466 | ||
14467 | ||
c32bde28 | 14468 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14469 | PyObject *resultobj; |
14470 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14471 | bool result; | |
14472 | PyObject * obj0 = 0 ; | |
14473 | char *kwnames[] = { | |
14474 | (char *) "self", NULL | |
14475 | }; | |
14476 | ||
14477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
14485 | if (PyErr_Occurred()) SWIG_fail; | |
14486 | } | |
14487 | { | |
14488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14489 | } | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
c32bde28 | 14496 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14497 | PyObject *resultobj; |
14498 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14499 | bool result; | |
14500 | PyObject * obj0 = 0 ; | |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14508 | { | |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14510 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14511 | ||
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
14515 | { | |
14516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14517 | } | |
14518 | return resultobj; | |
14519 | fail: | |
14520 | return NULL; | |
14521 | } | |
14522 | ||
14523 | ||
c32bde28 | 14524 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14525 | PyObject *resultobj; |
14526 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14527 | bool result; | |
14528 | PyObject * obj0 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14536 | { | |
14537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14538 | result = (bool)(arg1)->LeftIsDown(); | |
14539 | ||
14540 | wxPyEndAllowThreads(__tstate); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | } | |
14543 | { | |
14544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14545 | } | |
14546 | return resultobj; | |
14547 | fail: | |
14548 | return NULL; | |
14549 | } | |
14550 | ||
14551 | ||
c32bde28 | 14552 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14553 | PyObject *resultobj; |
14554 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14555 | bool result; | |
14556 | PyObject * obj0 = 0 ; | |
14557 | char *kwnames[] = { | |
14558 | (char *) "self", NULL | |
14559 | }; | |
14560 | ||
14561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14564 | { | |
14565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14566 | result = (bool)(arg1)->MiddleIsDown(); | |
14567 | ||
14568 | wxPyEndAllowThreads(__tstate); | |
14569 | if (PyErr_Occurred()) SWIG_fail; | |
14570 | } | |
14571 | { | |
14572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14573 | } | |
14574 | return resultobj; | |
14575 | fail: | |
14576 | return NULL; | |
14577 | } | |
14578 | ||
14579 | ||
c32bde28 | 14580 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14581 | PyObject *resultobj; |
14582 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14583 | bool result; | |
14584 | PyObject * obj0 = 0 ; | |
14585 | char *kwnames[] = { | |
14586 | (char *) "self", NULL | |
14587 | }; | |
14588 | ||
14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14592 | { | |
14593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14594 | result = (bool)(arg1)->RightIsDown(); | |
14595 | ||
14596 | wxPyEndAllowThreads(__tstate); | |
14597 | if (PyErr_Occurred()) SWIG_fail; | |
14598 | } | |
14599 | { | |
14600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14601 | } | |
14602 | return resultobj; | |
14603 | fail: | |
14604 | return NULL; | |
14605 | } | |
14606 | ||
14607 | ||
c32bde28 | 14608 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14609 | PyObject *resultobj; |
14610 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14611 | bool result; | |
14612 | PyObject * obj0 = 0 ; | |
14613 | char *kwnames[] = { | |
14614 | (char *) "self", NULL | |
14615 | }; | |
14616 | ||
14617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14620 | { | |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14623 | ||
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
14627 | { | |
14628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14629 | } | |
14630 | return resultobj; | |
14631 | fail: | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
c32bde28 | 14636 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14637 | PyObject *resultobj; |
14638 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14639 | bool result; | |
14640 | PyObject * obj0 = 0 ; | |
14641 | char *kwnames[] = { | |
14642 | (char *) "self", NULL | |
14643 | }; | |
14644 | ||
14645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14650 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14651 | ||
14652 | wxPyEndAllowThreads(__tstate); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | { | |
14656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14657 | } | |
14658 | return resultobj; | |
14659 | fail: | |
14660 | return NULL; | |
14661 | } | |
14662 | ||
14663 | ||
c32bde28 | 14664 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14665 | PyObject *resultobj; |
14666 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14667 | bool result; | |
14668 | PyObject * obj0 = 0 ; | |
14669 | char *kwnames[] = { | |
14670 | (char *) "self", NULL | |
14671 | }; | |
14672 | ||
14673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14676 | { | |
14677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14678 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14679 | ||
14680 | wxPyEndAllowThreads(__tstate); | |
14681 | if (PyErr_Occurred()) SWIG_fail; | |
14682 | } | |
14683 | { | |
14684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14685 | } | |
14686 | return resultobj; | |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
c32bde28 | 14692 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14693 | PyObject *resultobj; |
14694 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14695 | bool result; | |
14696 | PyObject * obj0 = 0 ; | |
14697 | char *kwnames[] = { | |
14698 | (char *) "self", NULL | |
14699 | }; | |
14700 | ||
14701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14704 | { | |
14705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14706 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14707 | ||
14708 | wxPyEndAllowThreads(__tstate); | |
14709 | if (PyErr_Occurred()) SWIG_fail; | |
14710 | } | |
14711 | { | |
14712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14713 | } | |
14714 | return resultobj; | |
14715 | fail: | |
14716 | return NULL; | |
14717 | } | |
14718 | ||
14719 | ||
c32bde28 | 14720 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14721 | PyObject *resultobj; |
14722 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14723 | wxPoint result; | |
14724 | PyObject * obj0 = 0 ; | |
14725 | char *kwnames[] = { | |
14726 | (char *) "self", NULL | |
14727 | }; | |
14728 | ||
14729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14732 | { | |
14733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14734 | result = (arg1)->GetPosition(); | |
14735 | ||
14736 | wxPyEndAllowThreads(__tstate); | |
14737 | if (PyErr_Occurred()) SWIG_fail; | |
14738 | } | |
14739 | { | |
14740 | wxPoint * resultptr; | |
14741 | resultptr = new wxPoint((wxPoint &) result); | |
14742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14743 | } | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
c32bde28 | 14750 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14751 | PyObject *resultobj; |
14752 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14753 | long *arg2 = (long *) 0 ; | |
14754 | long *arg3 = (long *) 0 ; | |
14755 | long temp2 ; | |
c32bde28 | 14756 | int res2 = 0 ; |
d55e5bfc | 14757 | long temp3 ; |
c32bde28 | 14758 | int res3 = 0 ; |
d55e5bfc RD |
14759 | PyObject * obj0 = 0 ; |
14760 | char *kwnames[] = { | |
14761 | (char *) "self", NULL | |
14762 | }; | |
14763 | ||
c32bde28 RD |
14764 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14765 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
14767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14769 | { | |
14770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14771 | (arg1)->GetPosition(arg2,arg3); | |
14772 | ||
14773 | wxPyEndAllowThreads(__tstate); | |
14774 | if (PyErr_Occurred()) SWIG_fail; | |
14775 | } | |
14776 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14777 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14778 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
14779 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14780 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
14781 | return resultobj; |
14782 | fail: | |
14783 | return NULL; | |
14784 | } | |
14785 | ||
14786 | ||
c32bde28 | 14787 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14788 | PyObject *resultobj; |
14789 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14790 | wxDC *arg2 = 0 ; | |
14791 | wxPoint result; | |
14792 | PyObject * obj0 = 0 ; | |
14793 | PyObject * obj1 = 0 ; | |
14794 | char *kwnames[] = { | |
14795 | (char *) "self",(char *) "dc", NULL | |
14796 | }; | |
14797 | ||
14798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14802 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14803 | SWIG_fail; | |
14804 | if (arg2 == NULL) { | |
14805 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14806 | SWIG_fail; | |
14807 | } | |
14808 | { | |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14810 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | { | |
14816 | wxPoint * resultptr; | |
14817 | resultptr = new wxPoint((wxPoint &) result); | |
14818 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14819 | } | |
14820 | return resultobj; | |
14821 | fail: | |
14822 | return NULL; | |
14823 | } | |
14824 | ||
14825 | ||
c32bde28 | 14826 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14827 | PyObject *resultobj; |
14828 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14829 | int result; | |
14830 | PyObject * obj0 = 0 ; | |
14831 | char *kwnames[] = { | |
14832 | (char *) "self", NULL | |
14833 | }; | |
14834 | ||
14835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14838 | { | |
14839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14840 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14841 | ||
14842 | wxPyEndAllowThreads(__tstate); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
c32bde28 | 14845 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14846 | return resultobj; |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
c32bde28 | 14852 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14853 | PyObject *resultobj; |
14854 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14855 | int result; | |
14856 | PyObject * obj0 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "self", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",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 = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
c32bde28 | 14871 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14872 | return resultobj; |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
c32bde28 | 14878 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14879 | PyObject *resultobj; |
14880 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14881 | int result; | |
14882 | PyObject * obj0 = 0 ; | |
14883 | char *kwnames[] = { | |
14884 | (char *) "self", NULL | |
14885 | }; | |
14886 | ||
14887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14890 | { | |
14891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14892 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14893 | ||
14894 | wxPyEndAllowThreads(__tstate); | |
14895 | if (PyErr_Occurred()) SWIG_fail; | |
14896 | } | |
c32bde28 | 14897 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14898 | return resultobj; |
14899 | fail: | |
14900 | return NULL; | |
14901 | } | |
14902 | ||
14903 | ||
c32bde28 | 14904 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14905 | PyObject *resultobj; |
14906 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14907 | int result; | |
14908 | PyObject * obj0 = 0 ; | |
14909 | char *kwnames[] = { | |
14910 | (char *) "self", NULL | |
14911 | }; | |
14912 | ||
14913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14916 | { | |
14917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14918 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14919 | ||
14920 | wxPyEndAllowThreads(__tstate); | |
14921 | if (PyErr_Occurred()) SWIG_fail; | |
14922 | } | |
c32bde28 | 14923 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14924 | return resultobj; |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
c32bde28 | 14930 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14931 | PyObject *resultobj; |
14932 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14933 | int result; | |
14934 | PyObject * obj0 = 0 ; | |
14935 | char *kwnames[] = { | |
14936 | (char *) "self", NULL | |
14937 | }; | |
14938 | ||
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14942 | { | |
14943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14944 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14945 | ||
14946 | wxPyEndAllowThreads(__tstate); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
14948 | } | |
c32bde28 | 14949 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14950 | return resultobj; |
14951 | fail: | |
14952 | return NULL; | |
14953 | } | |
14954 | ||
14955 | ||
c32bde28 | 14956 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14957 | PyObject *resultobj; |
14958 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14959 | bool result; | |
14960 | PyObject * obj0 = 0 ; | |
14961 | char *kwnames[] = { | |
14962 | (char *) "self", NULL | |
14963 | }; | |
14964 | ||
14965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14968 | { | |
14969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14970 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14971 | ||
14972 | wxPyEndAllowThreads(__tstate); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | } | |
14975 | { | |
14976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14977 | } | |
14978 | return resultobj; | |
14979 | fail: | |
14980 | return NULL; | |
14981 | } | |
14982 | ||
14983 | ||
c32bde28 | 14984 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14985 | PyObject *resultobj; |
14986 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14987 | int arg2 ; | |
14988 | PyObject * obj0 = 0 ; | |
14989 | PyObject * obj1 = 0 ; | |
14990 | char *kwnames[] = { | |
14991 | (char *) "self",(char *) "m_x", NULL | |
14992 | }; | |
14993 | ||
14994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
14995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14997 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14998 | if (PyErr_Occurred()) SWIG_fail; |
14999 | if (arg1) (arg1)->m_x = arg2; | |
15000 | ||
15001 | Py_INCREF(Py_None); resultobj = Py_None; | |
15002 | return resultobj; | |
15003 | fail: | |
15004 | return NULL; | |
15005 | } | |
15006 | ||
15007 | ||
c32bde28 | 15008 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15009 | PyObject *resultobj; |
15010 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15011 | int result; | |
15012 | PyObject * obj0 = 0 ; | |
15013 | char *kwnames[] = { | |
15014 | (char *) "self", NULL | |
15015 | }; | |
15016 | ||
15017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15020 | result = (int) ((arg1)->m_x); | |
15021 | ||
c32bde28 | 15022 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15023 | return resultobj; |
15024 | fail: | |
15025 | return NULL; | |
15026 | } | |
15027 | ||
15028 | ||
c32bde28 | 15029 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15030 | PyObject *resultobj; |
15031 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15032 | int arg2 ; | |
15033 | PyObject * obj0 = 0 ; | |
15034 | PyObject * obj1 = 0 ; | |
15035 | char *kwnames[] = { | |
15036 | (char *) "self",(char *) "m_y", NULL | |
15037 | }; | |
15038 | ||
15039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15042 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15043 | if (PyErr_Occurred()) SWIG_fail; |
15044 | if (arg1) (arg1)->m_y = arg2; | |
15045 | ||
15046 | Py_INCREF(Py_None); resultobj = Py_None; | |
15047 | return resultobj; | |
15048 | fail: | |
15049 | return NULL; | |
15050 | } | |
15051 | ||
15052 | ||
c32bde28 | 15053 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15054 | PyObject *resultobj; |
15055 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15056 | int result; | |
15057 | PyObject * obj0 = 0 ; | |
15058 | char *kwnames[] = { | |
15059 | (char *) "self", NULL | |
15060 | }; | |
15061 | ||
15062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15065 | result = (int) ((arg1)->m_y); | |
15066 | ||
c32bde28 | 15067 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15068 | return resultobj; |
15069 | fail: | |
15070 | return NULL; | |
15071 | } | |
15072 | ||
15073 | ||
c32bde28 | 15074 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15075 | PyObject *resultobj; |
15076 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15077 | bool arg2 ; | |
15078 | PyObject * obj0 = 0 ; | |
15079 | PyObject * obj1 = 0 ; | |
15080 | char *kwnames[] = { | |
15081 | (char *) "self",(char *) "m_leftDown", NULL | |
15082 | }; | |
15083 | ||
15084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15087 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15088 | if (PyErr_Occurred()) SWIG_fail; |
15089 | if (arg1) (arg1)->m_leftDown = arg2; | |
15090 | ||
15091 | Py_INCREF(Py_None); resultobj = Py_None; | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
15095 | } | |
15096 | ||
15097 | ||
c32bde28 | 15098 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15099 | PyObject *resultobj; |
15100 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15101 | bool result; | |
15102 | PyObject * obj0 = 0 ; | |
15103 | char *kwnames[] = { | |
15104 | (char *) "self", NULL | |
15105 | }; | |
15106 | ||
15107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15110 | result = (bool) ((arg1)->m_leftDown); | |
15111 | ||
15112 | { | |
15113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15114 | } | |
15115 | return resultobj; | |
15116 | fail: | |
15117 | return NULL; | |
15118 | } | |
15119 | ||
15120 | ||
c32bde28 | 15121 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15122 | PyObject *resultobj; |
15123 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15124 | bool arg2 ; | |
15125 | PyObject * obj0 = 0 ; | |
15126 | PyObject * obj1 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self",(char *) "m_middleDown", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15134 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15135 | if (PyErr_Occurred()) SWIG_fail; |
15136 | if (arg1) (arg1)->m_middleDown = arg2; | |
15137 | ||
15138 | Py_INCREF(Py_None); resultobj = Py_None; | |
15139 | return resultobj; | |
15140 | fail: | |
15141 | return NULL; | |
15142 | } | |
15143 | ||
15144 | ||
c32bde28 | 15145 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15146 | PyObject *resultobj; |
15147 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15148 | bool result; | |
15149 | PyObject * obj0 = 0 ; | |
15150 | char *kwnames[] = { | |
15151 | (char *) "self", NULL | |
15152 | }; | |
15153 | ||
15154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15157 | result = (bool) ((arg1)->m_middleDown); | |
15158 | ||
15159 | { | |
15160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15161 | } | |
15162 | return resultobj; | |
15163 | fail: | |
15164 | return NULL; | |
15165 | } | |
15166 | ||
15167 | ||
c32bde28 | 15168 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15169 | PyObject *resultobj; |
15170 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15171 | bool arg2 ; | |
15172 | PyObject * obj0 = 0 ; | |
15173 | PyObject * obj1 = 0 ; | |
15174 | char *kwnames[] = { | |
15175 | (char *) "self",(char *) "m_rightDown", NULL | |
15176 | }; | |
15177 | ||
15178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15181 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15182 | if (PyErr_Occurred()) SWIG_fail; |
15183 | if (arg1) (arg1)->m_rightDown = arg2; | |
15184 | ||
15185 | Py_INCREF(Py_None); resultobj = Py_None; | |
15186 | return resultobj; | |
15187 | fail: | |
15188 | return NULL; | |
15189 | } | |
15190 | ||
15191 | ||
c32bde28 | 15192 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15193 | PyObject *resultobj; |
15194 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15195 | bool result; | |
15196 | PyObject * obj0 = 0 ; | |
15197 | char *kwnames[] = { | |
15198 | (char *) "self", NULL | |
15199 | }; | |
15200 | ||
15201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15204 | result = (bool) ((arg1)->m_rightDown); | |
15205 | ||
15206 | { | |
15207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15208 | } | |
15209 | return resultobj; | |
15210 | fail: | |
15211 | return NULL; | |
15212 | } | |
15213 | ||
15214 | ||
c32bde28 | 15215 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15216 | PyObject *resultobj; |
15217 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15218 | bool arg2 ; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | PyObject * obj1 = 0 ; | |
15221 | char *kwnames[] = { | |
15222 | (char *) "self",(char *) "m_controlDown", NULL | |
15223 | }; | |
15224 | ||
15225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15228 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15229 | if (PyErr_Occurred()) SWIG_fail; |
15230 | if (arg1) (arg1)->m_controlDown = arg2; | |
15231 | ||
15232 | Py_INCREF(Py_None); resultobj = Py_None; | |
15233 | return resultobj; | |
15234 | fail: | |
15235 | return NULL; | |
15236 | } | |
15237 | ||
15238 | ||
c32bde28 | 15239 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15240 | PyObject *resultobj; |
15241 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15242 | bool result; | |
15243 | PyObject * obj0 = 0 ; | |
15244 | char *kwnames[] = { | |
15245 | (char *) "self", NULL | |
15246 | }; | |
15247 | ||
15248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15251 | result = (bool) ((arg1)->m_controlDown); | |
15252 | ||
15253 | { | |
15254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15255 | } | |
15256 | return resultobj; | |
15257 | fail: | |
15258 | return NULL; | |
15259 | } | |
15260 | ||
15261 | ||
c32bde28 | 15262 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15263 | PyObject *resultobj; |
15264 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15265 | bool arg2 ; | |
15266 | PyObject * obj0 = 0 ; | |
15267 | PyObject * obj1 = 0 ; | |
15268 | char *kwnames[] = { | |
15269 | (char *) "self",(char *) "m_shiftDown", NULL | |
15270 | }; | |
15271 | ||
15272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15275 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15276 | if (PyErr_Occurred()) SWIG_fail; |
15277 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15278 | ||
15279 | Py_INCREF(Py_None); resultobj = Py_None; | |
15280 | return resultobj; | |
15281 | fail: | |
15282 | return NULL; | |
15283 | } | |
15284 | ||
15285 | ||
c32bde28 | 15286 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15287 | PyObject *resultobj; |
15288 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15289 | bool result; | |
15290 | PyObject * obj0 = 0 ; | |
15291 | char *kwnames[] = { | |
15292 | (char *) "self", NULL | |
15293 | }; | |
15294 | ||
15295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15298 | result = (bool) ((arg1)->m_shiftDown); | |
15299 | ||
15300 | { | |
15301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15302 | } | |
15303 | return resultobj; | |
15304 | fail: | |
15305 | return NULL; | |
15306 | } | |
15307 | ||
15308 | ||
c32bde28 | 15309 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15310 | PyObject *resultobj; |
15311 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15312 | bool arg2 ; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | PyObject * obj1 = 0 ; | |
15315 | char *kwnames[] = { | |
15316 | (char *) "self",(char *) "m_altDown", NULL | |
15317 | }; | |
15318 | ||
15319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15322 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15323 | if (PyErr_Occurred()) SWIG_fail; |
15324 | if (arg1) (arg1)->m_altDown = arg2; | |
15325 | ||
15326 | Py_INCREF(Py_None); resultobj = Py_None; | |
15327 | return resultobj; | |
15328 | fail: | |
15329 | return NULL; | |
15330 | } | |
15331 | ||
15332 | ||
c32bde28 | 15333 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15334 | PyObject *resultobj; |
15335 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15336 | bool result; | |
15337 | PyObject * obj0 = 0 ; | |
15338 | char *kwnames[] = { | |
15339 | (char *) "self", NULL | |
15340 | }; | |
15341 | ||
15342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15345 | result = (bool) ((arg1)->m_altDown); | |
15346 | ||
15347 | { | |
15348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15349 | } | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | return NULL; | |
15353 | } | |
15354 | ||
15355 | ||
c32bde28 | 15356 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15357 | PyObject *resultobj; |
15358 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15359 | bool arg2 ; | |
15360 | PyObject * obj0 = 0 ; | |
15361 | PyObject * obj1 = 0 ; | |
15362 | char *kwnames[] = { | |
15363 | (char *) "self",(char *) "m_metaDown", NULL | |
15364 | }; | |
15365 | ||
15366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15369 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15370 | if (PyErr_Occurred()) SWIG_fail; |
15371 | if (arg1) (arg1)->m_metaDown = arg2; | |
15372 | ||
15373 | Py_INCREF(Py_None); resultobj = Py_None; | |
15374 | return resultobj; | |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
c32bde28 | 15380 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15381 | PyObject *resultobj; |
15382 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15383 | bool result; | |
15384 | PyObject * obj0 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15392 | result = (bool) ((arg1)->m_metaDown); | |
15393 | ||
15394 | { | |
15395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15396 | } | |
15397 | return resultobj; | |
15398 | fail: | |
15399 | return NULL; | |
15400 | } | |
15401 | ||
15402 | ||
c32bde28 | 15403 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15404 | PyObject *resultobj; |
15405 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15406 | int arg2 ; | |
15407 | PyObject * obj0 = 0 ; | |
15408 | PyObject * obj1 = 0 ; | |
15409 | char *kwnames[] = { | |
15410 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15411 | }; | |
15412 | ||
15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15416 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15417 | if (PyErr_Occurred()) SWIG_fail; |
15418 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15419 | ||
15420 | Py_INCREF(Py_None); resultobj = Py_None; | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
c32bde28 | 15427 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15428 | PyObject *resultobj; |
15429 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15430 | int result; | |
15431 | PyObject * obj0 = 0 ; | |
15432 | char *kwnames[] = { | |
15433 | (char *) "self", NULL | |
15434 | }; | |
15435 | ||
15436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15439 | result = (int) ((arg1)->m_wheelRotation); | |
15440 | ||
c32bde28 | 15441 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15442 | return resultobj; |
15443 | fail: | |
15444 | return NULL; | |
15445 | } | |
15446 | ||
15447 | ||
c32bde28 | 15448 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15449 | PyObject *resultobj; |
15450 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15451 | int arg2 ; | |
15452 | PyObject * obj0 = 0 ; | |
15453 | PyObject * obj1 = 0 ; | |
15454 | char *kwnames[] = { | |
15455 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15456 | }; | |
15457 | ||
15458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15461 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15462 | if (PyErr_Occurred()) SWIG_fail; |
15463 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15464 | ||
15465 | Py_INCREF(Py_None); resultobj = Py_None; | |
15466 | return resultobj; | |
15467 | fail: | |
15468 | return NULL; | |
15469 | } | |
15470 | ||
15471 | ||
c32bde28 | 15472 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15473 | PyObject *resultobj; |
15474 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15475 | int result; | |
15476 | PyObject * obj0 = 0 ; | |
15477 | char *kwnames[] = { | |
15478 | (char *) "self", NULL | |
15479 | }; | |
15480 | ||
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15484 | result = (int) ((arg1)->m_wheelDelta); | |
15485 | ||
c32bde28 | 15486 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15487 | return resultobj; |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
c32bde28 | 15493 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15494 | PyObject *resultobj; |
15495 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15496 | int arg2 ; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | PyObject * obj1 = 0 ; | |
15499 | char *kwnames[] = { | |
15500 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15501 | }; | |
15502 | ||
15503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15506 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15507 | if (PyErr_Occurred()) SWIG_fail; |
15508 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15509 | ||
15510 | Py_INCREF(Py_None); resultobj = Py_None; | |
15511 | return resultobj; | |
15512 | fail: | |
15513 | return NULL; | |
15514 | } | |
15515 | ||
15516 | ||
c32bde28 | 15517 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15518 | PyObject *resultobj; |
15519 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15520 | int result; | |
15521 | PyObject * obj0 = 0 ; | |
15522 | char *kwnames[] = { | |
15523 | (char *) "self", NULL | |
15524 | }; | |
15525 | ||
15526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15529 | result = (int) ((arg1)->m_linesPerAction); | |
15530 | ||
c32bde28 | 15531 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15532 | return resultobj; |
15533 | fail: | |
15534 | return NULL; | |
15535 | } | |
15536 | ||
15537 | ||
c32bde28 | 15538 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15539 | PyObject *obj; |
15540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15541 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15542 | Py_INCREF(obj); | |
15543 | return Py_BuildValue((char *)""); | |
15544 | } | |
c32bde28 | 15545 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15546 | PyObject *resultobj; |
15547 | int arg1 = (int) 0 ; | |
15548 | int arg2 = (int) 0 ; | |
15549 | wxSetCursorEvent *result; | |
15550 | PyObject * obj0 = 0 ; | |
15551 | PyObject * obj1 = 0 ; | |
15552 | char *kwnames[] = { | |
15553 | (char *) "x",(char *) "y", NULL | |
15554 | }; | |
15555 | ||
15556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15557 | if (obj0) { | |
c32bde28 | 15558 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
15559 | if (PyErr_Occurred()) SWIG_fail; |
15560 | } | |
15561 | if (obj1) { | |
c32bde28 | 15562 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15563 | if (PyErr_Occurred()) SWIG_fail; |
15564 | } | |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15568 | ||
15569 | wxPyEndAllowThreads(__tstate); | |
15570 | if (PyErr_Occurred()) SWIG_fail; | |
15571 | } | |
15572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15573 | return resultobj; | |
15574 | fail: | |
15575 | return NULL; | |
15576 | } | |
15577 | ||
15578 | ||
c32bde28 | 15579 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15580 | PyObject *resultobj; |
15581 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15582 | int result; | |
15583 | PyObject * obj0 = 0 ; | |
15584 | char *kwnames[] = { | |
15585 | (char *) "self", NULL | |
15586 | }; | |
15587 | ||
15588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15591 | { | |
15592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15593 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15594 | ||
15595 | wxPyEndAllowThreads(__tstate); | |
15596 | if (PyErr_Occurred()) SWIG_fail; | |
15597 | } | |
c32bde28 | 15598 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15599 | return resultobj; |
15600 | fail: | |
15601 | return NULL; | |
15602 | } | |
15603 | ||
15604 | ||
c32bde28 | 15605 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15606 | PyObject *resultobj; |
15607 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15608 | int result; | |
15609 | PyObject * obj0 = 0 ; | |
15610 | char *kwnames[] = { | |
15611 | (char *) "self", NULL | |
15612 | }; | |
15613 | ||
15614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15617 | { | |
15618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15619 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15620 | ||
15621 | wxPyEndAllowThreads(__tstate); | |
15622 | if (PyErr_Occurred()) SWIG_fail; | |
15623 | } | |
c32bde28 | 15624 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15625 | return resultobj; |
15626 | fail: | |
15627 | return NULL; | |
15628 | } | |
15629 | ||
15630 | ||
c32bde28 | 15631 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15632 | PyObject *resultobj; |
15633 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15634 | wxCursor *arg2 = 0 ; | |
15635 | PyObject * obj0 = 0 ; | |
15636 | PyObject * obj1 = 0 ; | |
15637 | char *kwnames[] = { | |
15638 | (char *) "self",(char *) "cursor", NULL | |
15639 | }; | |
15640 | ||
15641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15646 | SWIG_fail; | |
15647 | if (arg2 == NULL) { | |
15648 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15649 | SWIG_fail; | |
15650 | } | |
15651 | { | |
15652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15653 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15654 | ||
15655 | wxPyEndAllowThreads(__tstate); | |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
15657 | } | |
15658 | Py_INCREF(Py_None); resultobj = Py_None; | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | return NULL; | |
15662 | } | |
15663 | ||
15664 | ||
c32bde28 | 15665 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15666 | PyObject *resultobj; |
15667 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15668 | wxCursor *result; | |
15669 | PyObject * obj0 = 0 ; | |
15670 | char *kwnames[] = { | |
15671 | (char *) "self", NULL | |
15672 | }; | |
15673 | ||
15674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15677 | { | |
15678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15679 | { | |
15680 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15681 | result = (wxCursor *) &_result_ref; | |
15682 | } | |
15683 | ||
15684 | wxPyEndAllowThreads(__tstate); | |
15685 | if (PyErr_Occurred()) SWIG_fail; | |
15686 | } | |
15687 | { | |
15688 | wxCursor* resultptr = new wxCursor(*result); | |
15689 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15690 | } | |
15691 | return resultobj; | |
15692 | fail: | |
15693 | return NULL; | |
15694 | } | |
15695 | ||
15696 | ||
c32bde28 | 15697 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15698 | PyObject *resultobj; |
15699 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15700 | bool result; | |
15701 | PyObject * obj0 = 0 ; | |
15702 | char *kwnames[] = { | |
15703 | (char *) "self", NULL | |
15704 | }; | |
15705 | ||
15706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15709 | { | |
15710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15711 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15712 | ||
15713 | wxPyEndAllowThreads(__tstate); | |
15714 | if (PyErr_Occurred()) SWIG_fail; | |
15715 | } | |
15716 | { | |
15717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15718 | } | |
15719 | return resultobj; | |
15720 | fail: | |
15721 | return NULL; | |
15722 | } | |
15723 | ||
15724 | ||
c32bde28 | 15725 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15726 | PyObject *obj; |
15727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15728 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15729 | Py_INCREF(obj); | |
15730 | return Py_BuildValue((char *)""); | |
15731 | } | |
c32bde28 | 15732 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15733 | PyObject *resultobj; |
15734 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15735 | wxKeyEvent *result; | |
15736 | PyObject * obj0 = 0 ; | |
15737 | char *kwnames[] = { | |
15738 | (char *) "keyType", NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15742 | if (obj0) { | |
c32bde28 | 15743 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15744 | if (PyErr_Occurred()) SWIG_fail; |
15745 | } | |
15746 | { | |
15747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15748 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15749 | ||
15750 | wxPyEndAllowThreads(__tstate); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
15757 | } | |
15758 | ||
15759 | ||
c32bde28 | 15760 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15761 | PyObject *resultobj; |
15762 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15763 | bool result; | |
15764 | PyObject * obj0 = 0 ; | |
15765 | char *kwnames[] = { | |
15766 | (char *) "self", NULL | |
15767 | }; | |
15768 | ||
15769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15772 | { | |
15773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15774 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15775 | ||
15776 | wxPyEndAllowThreads(__tstate); | |
15777 | if (PyErr_Occurred()) SWIG_fail; | |
15778 | } | |
15779 | { | |
15780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15781 | } | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
c32bde28 | 15788 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15789 | PyObject *resultobj; |
15790 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15791 | bool result; | |
15792 | PyObject * obj0 = 0 ; | |
15793 | char *kwnames[] = { | |
15794 | (char *) "self", NULL | |
15795 | }; | |
15796 | ||
15797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15800 | { | |
15801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15802 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15803 | ||
15804 | wxPyEndAllowThreads(__tstate); | |
15805 | if (PyErr_Occurred()) SWIG_fail; | |
15806 | } | |
15807 | { | |
15808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15809 | } | |
15810 | return resultobj; | |
15811 | fail: | |
15812 | return NULL; | |
15813 | } | |
15814 | ||
15815 | ||
c32bde28 | 15816 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15817 | PyObject *resultobj; |
15818 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15819 | bool result; | |
15820 | PyObject * obj0 = 0 ; | |
15821 | char *kwnames[] = { | |
15822 | (char *) "self", NULL | |
15823 | }; | |
15824 | ||
15825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15828 | { | |
15829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15830 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15831 | ||
15832 | wxPyEndAllowThreads(__tstate); | |
15833 | if (PyErr_Occurred()) SWIG_fail; | |
15834 | } | |
15835 | { | |
15836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15837 | } | |
15838 | return resultobj; | |
15839 | fail: | |
15840 | return NULL; | |
15841 | } | |
15842 | ||
15843 | ||
c32bde28 | 15844 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15845 | PyObject *resultobj; |
15846 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15847 | bool result; | |
15848 | PyObject * obj0 = 0 ; | |
15849 | char *kwnames[] = { | |
15850 | (char *) "self", NULL | |
15851 | }; | |
15852 | ||
15853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15856 | { | |
15857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15858 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15859 | ||
15860 | wxPyEndAllowThreads(__tstate); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
15863 | { | |
15864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15865 | } | |
15866 | return resultobj; | |
15867 | fail: | |
15868 | return NULL; | |
15869 | } | |
15870 | ||
15871 | ||
c32bde28 | 15872 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
15873 | PyObject *resultobj; |
15874 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15875 | bool result; | |
15876 | PyObject * obj0 = 0 ; | |
15877 | char *kwnames[] = { | |
15878 | (char *) "self", NULL | |
15879 | }; | |
15880 | ||
15881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
15882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15884 | { | |
15885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15886 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
15887 | ||
15888 | wxPyEndAllowThreads(__tstate); | |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | } | |
15891 | { | |
15892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15893 | } | |
15894 | return resultobj; | |
15895 | fail: | |
15896 | return NULL; | |
15897 | } | |
15898 | ||
15899 | ||
c32bde28 | 15900 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15901 | PyObject *resultobj; |
15902 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15903 | bool result; | |
15904 | PyObject * obj0 = 0 ; | |
15905 | char *kwnames[] = { | |
15906 | (char *) "self", NULL | |
15907 | }; | |
15908 | ||
15909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15912 | { | |
15913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15914 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15915 | ||
15916 | wxPyEndAllowThreads(__tstate); | |
15917 | if (PyErr_Occurred()) SWIG_fail; | |
15918 | } | |
15919 | { | |
15920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15921 | } | |
15922 | return resultobj; | |
15923 | fail: | |
15924 | return NULL; | |
15925 | } | |
15926 | ||
15927 | ||
c32bde28 | 15928 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15929 | PyObject *resultobj; |
15930 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15931 | int result; | |
15932 | PyObject * obj0 = 0 ; | |
15933 | char *kwnames[] = { | |
15934 | (char *) "self", NULL | |
15935 | }; | |
15936 | ||
15937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15940 | { | |
15941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15942 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15943 | ||
15944 | wxPyEndAllowThreads(__tstate); | |
15945 | if (PyErr_Occurred()) SWIG_fail; | |
15946 | } | |
c32bde28 | 15947 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15948 | return resultobj; |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
c32bde28 | 15954 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15955 | PyObject *resultobj; |
15956 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15957 | int result; | |
15958 | PyObject * obj0 = 0 ; | |
15959 | char *kwnames[] = { | |
15960 | (char *) "self", NULL | |
15961 | }; | |
15962 | ||
19272049 | 15963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
15964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15966 | { | |
15967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 15968 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
15969 | |
15970 | wxPyEndAllowThreads(__tstate); | |
15971 | if (PyErr_Occurred()) SWIG_fail; | |
15972 | } | |
c32bde28 | 15973 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15974 | return resultobj; |
15975 | fail: | |
15976 | return NULL; | |
15977 | } | |
15978 | ||
15979 | ||
c32bde28 | 15980 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15981 | PyObject *resultobj; |
15982 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15983 | unsigned int result; | |
15984 | PyObject * obj0 = 0 ; | |
15985 | char *kwnames[] = { | |
15986 | (char *) "self", NULL | |
15987 | }; | |
15988 | ||
15989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15992 | { | |
15993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15994 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
15995 | ||
15996 | wxPyEndAllowThreads(__tstate); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
15998 | } | |
c32bde28 | 15999 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16000 | return resultobj; |
16001 | fail: | |
16002 | return NULL; | |
16003 | } | |
16004 | ||
16005 | ||
c32bde28 | 16006 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16007 | PyObject *resultobj; |
16008 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16009 | unsigned int result; | |
16010 | PyObject * obj0 = 0 ; | |
16011 | char *kwnames[] = { | |
16012 | (char *) "self", NULL | |
16013 | }; | |
16014 | ||
16015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
16016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16018 | { | |
16019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16020 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
16021 | ||
16022 | wxPyEndAllowThreads(__tstate); | |
16023 | if (PyErr_Occurred()) SWIG_fail; | |
16024 | } | |
c32bde28 | 16025 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16026 | return resultobj; |
16027 | fail: | |
16028 | return NULL; | |
16029 | } | |
16030 | ||
16031 | ||
c32bde28 | 16032 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16033 | PyObject *resultobj; |
16034 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16035 | wxPoint result; | |
16036 | PyObject * obj0 = 0 ; | |
16037 | char *kwnames[] = { | |
16038 | (char *) "self", NULL | |
16039 | }; | |
16040 | ||
16041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",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 = (arg1)->GetPosition(); | |
16047 | ||
16048 | wxPyEndAllowThreads(__tstate); | |
16049 | if (PyErr_Occurred()) SWIG_fail; | |
16050 | } | |
16051 | { | |
16052 | wxPoint * resultptr; | |
16053 | resultptr = new wxPoint((wxPoint &) result); | |
16054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16055 | } | |
16056 | return resultobj; | |
16057 | fail: | |
16058 | return NULL; | |
16059 | } | |
16060 | ||
16061 | ||
c32bde28 | 16062 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16063 | PyObject *resultobj; |
16064 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16065 | long *arg2 = (long *) 0 ; | |
16066 | long *arg3 = (long *) 0 ; | |
16067 | long temp2 ; | |
c32bde28 | 16068 | int res2 = 0 ; |
d55e5bfc | 16069 | long temp3 ; |
c32bde28 | 16070 | int res3 = 0 ; |
d55e5bfc RD |
16071 | PyObject * obj0 = 0 ; |
16072 | char *kwnames[] = { | |
16073 | (char *) "self", NULL | |
16074 | }; | |
16075 | ||
c32bde28 RD |
16076 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16077 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
16079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16081 | { | |
16082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16083 | (arg1)->GetPosition(arg2,arg3); | |
16084 | ||
16085 | wxPyEndAllowThreads(__tstate); | |
16086 | if (PyErr_Occurred()) SWIG_fail; | |
16087 | } | |
16088 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16089 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16090 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16091 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16092 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16093 | return resultobj; |
16094 | fail: | |
16095 | return NULL; | |
16096 | } | |
16097 | ||
16098 | ||
c32bde28 | 16099 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16100 | PyObject *resultobj; |
16101 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16102 | int result; | |
16103 | PyObject * obj0 = 0 ; | |
16104 | char *kwnames[] = { | |
16105 | (char *) "self", NULL | |
16106 | }; | |
16107 | ||
16108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
16109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16111 | { | |
16112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16113 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
16114 | ||
16115 | wxPyEndAllowThreads(__tstate); | |
16116 | if (PyErr_Occurred()) SWIG_fail; | |
16117 | } | |
c32bde28 | 16118 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16119 | return resultobj; |
16120 | fail: | |
16121 | return NULL; | |
16122 | } | |
16123 | ||
16124 | ||
c32bde28 | 16125 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16126 | PyObject *resultobj; |
16127 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16128 | int result; | |
16129 | PyObject * obj0 = 0 ; | |
16130 | char *kwnames[] = { | |
16131 | (char *) "self", NULL | |
16132 | }; | |
16133 | ||
16134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
16135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16137 | { | |
16138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16139 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
16140 | ||
16141 | wxPyEndAllowThreads(__tstate); | |
16142 | if (PyErr_Occurred()) SWIG_fail; | |
16143 | } | |
c32bde28 | 16144 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16145 | return resultobj; |
16146 | fail: | |
16147 | return NULL; | |
16148 | } | |
16149 | ||
16150 | ||
c32bde28 | 16151 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16152 | PyObject *resultobj; |
16153 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16154 | int arg2 ; | |
16155 | PyObject * obj0 = 0 ; | |
16156 | PyObject * obj1 = 0 ; | |
16157 | char *kwnames[] = { | |
16158 | (char *) "self",(char *) "m_x", NULL | |
16159 | }; | |
16160 | ||
16161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
16162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16164 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16165 | if (PyErr_Occurred()) SWIG_fail; |
16166 | if (arg1) (arg1)->m_x = arg2; | |
16167 | ||
16168 | Py_INCREF(Py_None); resultobj = Py_None; | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
c32bde28 | 16175 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16176 | PyObject *resultobj; |
16177 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16178 | int result; | |
16179 | PyObject * obj0 = 0 ; | |
16180 | char *kwnames[] = { | |
16181 | (char *) "self", NULL | |
16182 | }; | |
16183 | ||
16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
16185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16187 | result = (int) ((arg1)->m_x); | |
16188 | ||
c32bde28 | 16189 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16190 | return resultobj; |
16191 | fail: | |
16192 | return NULL; | |
16193 | } | |
16194 | ||
16195 | ||
c32bde28 | 16196 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16197 | PyObject *resultobj; |
16198 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16199 | int arg2 ; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | PyObject * obj1 = 0 ; | |
16202 | char *kwnames[] = { | |
16203 | (char *) "self",(char *) "m_y", NULL | |
16204 | }; | |
16205 | ||
16206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
16207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16209 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16210 | if (PyErr_Occurred()) SWIG_fail; |
16211 | if (arg1) (arg1)->m_y = arg2; | |
16212 | ||
16213 | Py_INCREF(Py_None); resultobj = Py_None; | |
16214 | return resultobj; | |
16215 | fail: | |
16216 | return NULL; | |
16217 | } | |
16218 | ||
16219 | ||
c32bde28 | 16220 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16221 | PyObject *resultobj; |
16222 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16223 | int result; | |
16224 | PyObject * obj0 = 0 ; | |
16225 | char *kwnames[] = { | |
16226 | (char *) "self", NULL | |
16227 | }; | |
16228 | ||
16229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16232 | result = (int) ((arg1)->m_y); | |
16233 | ||
c32bde28 | 16234 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16235 | return resultobj; |
16236 | fail: | |
16237 | return NULL; | |
16238 | } | |
16239 | ||
16240 | ||
c32bde28 | 16241 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16242 | PyObject *resultobj; |
16243 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16244 | long arg2 ; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | PyObject * obj1 = 0 ; | |
16247 | char *kwnames[] = { | |
16248 | (char *) "self",(char *) "m_keyCode", NULL | |
16249 | }; | |
16250 | ||
16251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16254 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16255 | if (PyErr_Occurred()) SWIG_fail; |
16256 | if (arg1) (arg1)->m_keyCode = arg2; | |
16257 | ||
16258 | Py_INCREF(Py_None); resultobj = Py_None; | |
16259 | return resultobj; | |
16260 | fail: | |
16261 | return NULL; | |
16262 | } | |
16263 | ||
16264 | ||
c32bde28 | 16265 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16266 | PyObject *resultobj; |
16267 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16268 | long result; | |
16269 | PyObject * obj0 = 0 ; | |
16270 | char *kwnames[] = { | |
16271 | (char *) "self", NULL | |
16272 | }; | |
16273 | ||
16274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16277 | result = (long) ((arg1)->m_keyCode); | |
16278 | ||
c32bde28 | 16279 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16280 | return resultobj; |
16281 | fail: | |
16282 | return NULL; | |
16283 | } | |
16284 | ||
16285 | ||
c32bde28 | 16286 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16287 | PyObject *resultobj; |
16288 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16289 | bool arg2 ; | |
16290 | PyObject * obj0 = 0 ; | |
16291 | PyObject * obj1 = 0 ; | |
16292 | char *kwnames[] = { | |
16293 | (char *) "self",(char *) "m_controlDown", NULL | |
16294 | }; | |
16295 | ||
16296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16299 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16300 | if (PyErr_Occurred()) SWIG_fail; |
16301 | if (arg1) (arg1)->m_controlDown = arg2; | |
16302 | ||
16303 | Py_INCREF(Py_None); resultobj = Py_None; | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
16307 | } | |
16308 | ||
16309 | ||
c32bde28 | 16310 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16311 | PyObject *resultobj; |
16312 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16313 | bool result; | |
16314 | PyObject * obj0 = 0 ; | |
16315 | char *kwnames[] = { | |
16316 | (char *) "self", NULL | |
16317 | }; | |
16318 | ||
16319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16322 | result = (bool) ((arg1)->m_controlDown); | |
16323 | ||
16324 | { | |
16325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16326 | } | |
16327 | return resultobj; | |
16328 | fail: | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
c32bde28 | 16333 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16334 | PyObject *resultobj; |
16335 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16336 | bool arg2 ; | |
16337 | PyObject * obj0 = 0 ; | |
16338 | PyObject * obj1 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self",(char *) "m_shiftDown", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16346 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16347 | if (PyErr_Occurred()) SWIG_fail; |
16348 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16349 | ||
16350 | Py_INCREF(Py_None); resultobj = Py_None; | |
16351 | return resultobj; | |
16352 | fail: | |
16353 | return NULL; | |
16354 | } | |
16355 | ||
16356 | ||
c32bde28 | 16357 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16358 | PyObject *resultobj; |
16359 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16360 | bool result; | |
16361 | PyObject * obj0 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "self", NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16369 | result = (bool) ((arg1)->m_shiftDown); | |
16370 | ||
16371 | { | |
16372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16373 | } | |
16374 | return resultobj; | |
16375 | fail: | |
16376 | return NULL; | |
16377 | } | |
16378 | ||
16379 | ||
c32bde28 | 16380 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16381 | PyObject *resultobj; |
16382 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16383 | bool arg2 ; | |
16384 | PyObject * obj0 = 0 ; | |
16385 | PyObject * obj1 = 0 ; | |
16386 | char *kwnames[] = { | |
16387 | (char *) "self",(char *) "m_altDown", NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16393 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16394 | if (PyErr_Occurred()) SWIG_fail; |
16395 | if (arg1) (arg1)->m_altDown = arg2; | |
16396 | ||
16397 | Py_INCREF(Py_None); resultobj = Py_None; | |
16398 | return resultobj; | |
16399 | fail: | |
16400 | return NULL; | |
16401 | } | |
16402 | ||
16403 | ||
c32bde28 | 16404 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16405 | PyObject *resultobj; |
16406 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16407 | bool result; | |
16408 | PyObject * obj0 = 0 ; | |
16409 | char *kwnames[] = { | |
16410 | (char *) "self", NULL | |
16411 | }; | |
16412 | ||
16413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16416 | result = (bool) ((arg1)->m_altDown); | |
16417 | ||
16418 | { | |
16419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16420 | } | |
16421 | return resultobj; | |
16422 | fail: | |
16423 | return NULL; | |
16424 | } | |
16425 | ||
16426 | ||
c32bde28 | 16427 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16428 | PyObject *resultobj; |
16429 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16430 | bool arg2 ; | |
16431 | PyObject * obj0 = 0 ; | |
16432 | PyObject * obj1 = 0 ; | |
16433 | char *kwnames[] = { | |
16434 | (char *) "self",(char *) "m_metaDown", NULL | |
16435 | }; | |
16436 | ||
16437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16440 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16441 | if (PyErr_Occurred()) SWIG_fail; |
16442 | if (arg1) (arg1)->m_metaDown = arg2; | |
16443 | ||
16444 | Py_INCREF(Py_None); resultobj = Py_None; | |
16445 | return resultobj; | |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
c32bde28 | 16451 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16452 | PyObject *resultobj; |
16453 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16454 | bool result; | |
16455 | PyObject * obj0 = 0 ; | |
16456 | char *kwnames[] = { | |
16457 | (char *) "self", NULL | |
16458 | }; | |
16459 | ||
16460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16463 | result = (bool) ((arg1)->m_metaDown); | |
16464 | ||
16465 | { | |
16466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16467 | } | |
16468 | return resultobj; | |
16469 | fail: | |
16470 | return NULL; | |
16471 | } | |
16472 | ||
16473 | ||
c32bde28 | 16474 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16475 | PyObject *resultobj; |
16476 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16477 | bool arg2 ; | |
16478 | PyObject * obj0 = 0 ; | |
16479 | PyObject * obj1 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self",(char *) "m_scanCode", NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16487 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16488 | if (PyErr_Occurred()) SWIG_fail; |
16489 | if (arg1) (arg1)->m_scanCode = arg2; | |
16490 | ||
16491 | Py_INCREF(Py_None); resultobj = Py_None; | |
16492 | return resultobj; | |
16493 | fail: | |
16494 | return NULL; | |
16495 | } | |
16496 | ||
16497 | ||
c32bde28 | 16498 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16499 | PyObject *resultobj; |
16500 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16501 | bool result; | |
16502 | PyObject * obj0 = 0 ; | |
16503 | char *kwnames[] = { | |
16504 | (char *) "self", NULL | |
16505 | }; | |
16506 | ||
16507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16510 | result = (bool) ((arg1)->m_scanCode); | |
16511 | ||
16512 | { | |
16513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16514 | } | |
16515 | return resultobj; | |
16516 | fail: | |
16517 | return NULL; | |
16518 | } | |
16519 | ||
16520 | ||
c32bde28 | 16521 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16522 | PyObject *resultobj; |
16523 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16524 | unsigned int arg2 ; | |
16525 | PyObject * obj0 = 0 ; | |
16526 | PyObject * obj1 = 0 ; | |
16527 | char *kwnames[] = { | |
16528 | (char *) "self",(char *) "m_rawCode", NULL | |
16529 | }; | |
16530 | ||
16531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16534 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16535 | if (PyErr_Occurred()) SWIG_fail; |
16536 | if (arg1) (arg1)->m_rawCode = arg2; | |
16537 | ||
16538 | Py_INCREF(Py_None); resultobj = Py_None; | |
16539 | return resultobj; | |
16540 | fail: | |
16541 | return NULL; | |
16542 | } | |
16543 | ||
16544 | ||
c32bde28 | 16545 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16546 | PyObject *resultobj; |
16547 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16548 | unsigned int result; | |
16549 | PyObject * obj0 = 0 ; | |
16550 | char *kwnames[] = { | |
16551 | (char *) "self", NULL | |
16552 | }; | |
16553 | ||
16554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16557 | result = (unsigned int) ((arg1)->m_rawCode); | |
16558 | ||
c32bde28 | 16559 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16560 | return resultobj; |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
c32bde28 | 16566 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16567 | PyObject *resultobj; |
16568 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16569 | unsigned int arg2 ; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self",(char *) "m_rawFlags", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16579 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16580 | if (PyErr_Occurred()) SWIG_fail; |
16581 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16582 | ||
16583 | Py_INCREF(Py_None); resultobj = Py_None; | |
16584 | return resultobj; | |
16585 | fail: | |
16586 | return NULL; | |
16587 | } | |
16588 | ||
16589 | ||
c32bde28 | 16590 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16591 | PyObject *resultobj; |
16592 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16593 | unsigned int result; | |
16594 | PyObject * obj0 = 0 ; | |
16595 | char *kwnames[] = { | |
16596 | (char *) "self", NULL | |
16597 | }; | |
16598 | ||
16599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16602 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16603 | ||
c32bde28 | 16604 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16605 | return resultobj; |
16606 | fail: | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
c32bde28 | 16611 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16612 | PyObject *obj; |
16613 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16614 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16615 | Py_INCREF(obj); | |
16616 | return Py_BuildValue((char *)""); | |
16617 | } | |
c32bde28 | 16618 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16619 | PyObject *resultobj; |
16620 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16621 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16622 | int arg2 = (int) 0 ; | |
16623 | wxSizeEvent *result; | |
16624 | wxSize temp1 ; | |
16625 | PyObject * obj0 = 0 ; | |
16626 | PyObject * obj1 = 0 ; | |
16627 | char *kwnames[] = { | |
16628 | (char *) "sz",(char *) "winid", NULL | |
16629 | }; | |
16630 | ||
16631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16632 | if (obj0) { | |
16633 | { | |
16634 | arg1 = &temp1; | |
16635 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16636 | } | |
16637 | } | |
16638 | if (obj1) { | |
c32bde28 | 16639 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16640 | if (PyErr_Occurred()) SWIG_fail; |
16641 | } | |
16642 | { | |
16643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16644 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16645 | ||
16646 | wxPyEndAllowThreads(__tstate); | |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
16648 | } | |
16649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16650 | return resultobj; | |
16651 | fail: | |
16652 | return NULL; | |
16653 | } | |
16654 | ||
16655 | ||
c32bde28 | 16656 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16657 | PyObject *resultobj; |
16658 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16659 | wxSize result; | |
16660 | PyObject * obj0 = 0 ; | |
16661 | char *kwnames[] = { | |
16662 | (char *) "self", NULL | |
16663 | }; | |
16664 | ||
16665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16668 | { | |
16669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16670 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16671 | ||
16672 | wxPyEndAllowThreads(__tstate); | |
16673 | if (PyErr_Occurred()) SWIG_fail; | |
16674 | } | |
16675 | { | |
16676 | wxSize * resultptr; | |
16677 | resultptr = new wxSize((wxSize &) result); | |
16678 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16679 | } | |
16680 | return resultobj; | |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
c32bde28 | 16686 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16687 | PyObject *resultobj; |
16688 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16689 | wxRect result; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | char *kwnames[] = { | |
16692 | (char *) "self", NULL | |
16693 | }; | |
16694 | ||
16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16698 | { | |
16699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16700 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16701 | ||
16702 | wxPyEndAllowThreads(__tstate); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | } | |
16705 | { | |
16706 | wxRect * resultptr; | |
16707 | resultptr = new wxRect((wxRect &) result); | |
16708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16709 | } | |
16710 | return resultobj; | |
16711 | fail: | |
16712 | return NULL; | |
16713 | } | |
16714 | ||
16715 | ||
c32bde28 | 16716 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16717 | PyObject *resultobj; |
16718 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16719 | wxRect arg2 ; | |
16720 | wxRect *argp2 ; | |
16721 | PyObject * obj0 = 0 ; | |
16722 | PyObject * obj1 = 0 ; | |
16723 | char *kwnames[] = { | |
16724 | (char *) "self",(char *) "rect", NULL | |
16725 | }; | |
16726 | ||
16727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16730 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16731 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16732 | arg2 = *argp2; | |
16733 | { | |
16734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16735 | (arg1)->SetRect(arg2); | |
16736 | ||
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
16740 | Py_INCREF(Py_None); resultobj = Py_None; | |
16741 | return resultobj; | |
16742 | fail: | |
16743 | return NULL; | |
16744 | } | |
16745 | ||
16746 | ||
c32bde28 | 16747 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16748 | PyObject *resultobj; |
16749 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16750 | wxSize arg2 ; | |
16751 | wxSize *argp2 ; | |
16752 | PyObject * obj0 = 0 ; | |
16753 | PyObject * obj1 = 0 ; | |
16754 | char *kwnames[] = { | |
16755 | (char *) "self",(char *) "size", NULL | |
16756 | }; | |
16757 | ||
16758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16761 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16762 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16763 | arg2 = *argp2; | |
16764 | { | |
16765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16766 | wxSizeEvent_SetSize(arg1,arg2); | |
16767 | ||
16768 | wxPyEndAllowThreads(__tstate); | |
16769 | if (PyErr_Occurred()) SWIG_fail; | |
16770 | } | |
16771 | Py_INCREF(Py_None); resultobj = Py_None; | |
16772 | return resultobj; | |
16773 | fail: | |
16774 | return NULL; | |
16775 | } | |
16776 | ||
16777 | ||
c32bde28 | 16778 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16779 | PyObject *resultobj; |
16780 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16781 | wxSize *arg2 = (wxSize *) 0 ; | |
16782 | PyObject * obj0 = 0 ; | |
16783 | PyObject * obj1 = 0 ; | |
16784 | char *kwnames[] = { | |
16785 | (char *) "self",(char *) "m_size", NULL | |
16786 | }; | |
16787 | ||
16788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16793 | if (arg1) (arg1)->m_size = *arg2; | |
16794 | ||
16795 | Py_INCREF(Py_None); resultobj = Py_None; | |
16796 | return resultobj; | |
16797 | fail: | |
16798 | return NULL; | |
16799 | } | |
16800 | ||
16801 | ||
c32bde28 | 16802 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16803 | PyObject *resultobj; |
16804 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16805 | wxSize *result; | |
16806 | PyObject * obj0 = 0 ; | |
16807 | char *kwnames[] = { | |
16808 | (char *) "self", NULL | |
16809 | }; | |
16810 | ||
16811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16814 | result = (wxSize *)& ((arg1)->m_size); | |
16815 | ||
16816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16817 | return resultobj; | |
16818 | fail: | |
16819 | return NULL; | |
16820 | } | |
16821 | ||
16822 | ||
c32bde28 | 16823 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16824 | PyObject *resultobj; |
16825 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16826 | wxRect *arg2 = (wxRect *) 0 ; | |
16827 | PyObject * obj0 = 0 ; | |
16828 | PyObject * obj1 = 0 ; | |
16829 | char *kwnames[] = { | |
16830 | (char *) "self",(char *) "m_rect", NULL | |
16831 | }; | |
16832 | ||
16833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16838 | if (arg1) (arg1)->m_rect = *arg2; | |
16839 | ||
16840 | Py_INCREF(Py_None); resultobj = Py_None; | |
16841 | return resultobj; | |
16842 | fail: | |
16843 | return NULL; | |
16844 | } | |
16845 | ||
16846 | ||
c32bde28 | 16847 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16848 | PyObject *resultobj; |
16849 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16850 | wxRect *result; | |
16851 | PyObject * obj0 = 0 ; | |
16852 | char *kwnames[] = { | |
16853 | (char *) "self", NULL | |
16854 | }; | |
16855 | ||
16856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16859 | result = (wxRect *)& ((arg1)->m_rect); | |
16860 | ||
16861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16862 | return resultobj; | |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
c32bde28 | 16868 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16869 | PyObject *obj; |
16870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16871 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16872 | Py_INCREF(obj); | |
16873 | return Py_BuildValue((char *)""); | |
16874 | } | |
c32bde28 | 16875 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16876 | PyObject *resultobj; |
16877 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16878 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16879 | int arg2 = (int) 0 ; | |
16880 | wxMoveEvent *result; | |
16881 | wxPoint temp1 ; | |
16882 | PyObject * obj0 = 0 ; | |
16883 | PyObject * obj1 = 0 ; | |
16884 | char *kwnames[] = { | |
16885 | (char *) "pos",(char *) "winid", NULL | |
16886 | }; | |
16887 | ||
16888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16889 | if (obj0) { | |
16890 | { | |
16891 | arg1 = &temp1; | |
16892 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16893 | } | |
16894 | } | |
16895 | if (obj1) { | |
c32bde28 | 16896 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16897 | if (PyErr_Occurred()) SWIG_fail; |
16898 | } | |
16899 | { | |
16900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16901 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16902 | ||
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16907 | return resultobj; | |
16908 | fail: | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
c32bde28 | 16913 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16914 | PyObject *resultobj; |
16915 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16916 | wxPoint result; | |
16917 | PyObject * obj0 = 0 ; | |
16918 | char *kwnames[] = { | |
16919 | (char *) "self", NULL | |
16920 | }; | |
16921 | ||
16922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | { | |
16933 | wxPoint * resultptr; | |
16934 | resultptr = new wxPoint((wxPoint &) result); | |
16935 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16936 | } | |
16937 | return resultobj; | |
16938 | fail: | |
16939 | return NULL; | |
16940 | } | |
16941 | ||
16942 | ||
c32bde28 | 16943 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16944 | PyObject *resultobj; |
16945 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16946 | wxRect result; | |
16947 | PyObject * obj0 = 0 ; | |
16948 | char *kwnames[] = { | |
16949 | (char *) "self", NULL | |
16950 | }; | |
16951 | ||
16952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
16953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16955 | { | |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16957 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16958 | ||
16959 | wxPyEndAllowThreads(__tstate); | |
16960 | if (PyErr_Occurred()) SWIG_fail; | |
16961 | } | |
16962 | { | |
16963 | wxRect * resultptr; | |
16964 | resultptr = new wxRect((wxRect &) result); | |
16965 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16966 | } | |
16967 | return resultobj; | |
16968 | fail: | |
16969 | return NULL; | |
16970 | } | |
16971 | ||
16972 | ||
c32bde28 | 16973 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16974 | PyObject *resultobj; |
16975 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16976 | wxRect arg2 ; | |
16977 | wxRect *argp2 ; | |
16978 | PyObject * obj0 = 0 ; | |
16979 | PyObject * obj1 = 0 ; | |
16980 | char *kwnames[] = { | |
16981 | (char *) "self",(char *) "rect", NULL | |
16982 | }; | |
16983 | ||
16984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16987 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16988 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16989 | arg2 = *argp2; | |
16990 | { | |
16991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16992 | (arg1)->SetRect(arg2); | |
16993 | ||
16994 | wxPyEndAllowThreads(__tstate); | |
16995 | if (PyErr_Occurred()) SWIG_fail; | |
16996 | } | |
16997 | Py_INCREF(Py_None); resultobj = Py_None; | |
16998 | return resultobj; | |
16999 | fail: | |
17000 | return NULL; | |
17001 | } | |
17002 | ||
17003 | ||
c32bde28 | 17004 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17005 | PyObject *resultobj; |
17006 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17007 | wxPoint arg2 ; | |
17008 | wxPoint *argp2 ; | |
17009 | PyObject * obj0 = 0 ; | |
17010 | PyObject * obj1 = 0 ; | |
17011 | char *kwnames[] = { | |
17012 | (char *) "self",(char *) "pos", NULL | |
17013 | }; | |
17014 | ||
17015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17018 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17019 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17020 | arg2 = *argp2; | |
17021 | { | |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | wxMoveEvent_SetPosition(arg1,arg2); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | Py_INCREF(Py_None); resultobj = Py_None; | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
c32bde28 | 17035 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17036 | PyObject *resultobj; |
17037 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17038 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17039 | PyObject * obj0 = 0 ; | |
17040 | PyObject * obj1 = 0 ; | |
17041 | char *kwnames[] = { | |
17042 | (char *) "self",(char *) "m_pos", NULL | |
17043 | }; | |
17044 | ||
17045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
17046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17048 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17050 | if (arg1) (arg1)->m_pos = *arg2; | |
17051 | ||
17052 | Py_INCREF(Py_None); resultobj = Py_None; | |
17053 | return resultobj; | |
17054 | fail: | |
17055 | return NULL; | |
17056 | } | |
17057 | ||
17058 | ||
c32bde28 | 17059 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17060 | PyObject *resultobj; |
17061 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17062 | wxPoint *result; | |
17063 | PyObject * obj0 = 0 ; | |
17064 | char *kwnames[] = { | |
17065 | (char *) "self", NULL | |
17066 | }; | |
17067 | ||
17068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
17069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17071 | result = (wxPoint *)& ((arg1)->m_pos); | |
17072 | ||
17073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
17074 | return resultobj; | |
17075 | fail: | |
17076 | return NULL; | |
17077 | } | |
17078 | ||
17079 | ||
c32bde28 | 17080 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17081 | PyObject *resultobj; |
17082 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17083 | wxRect *arg2 = (wxRect *) 0 ; | |
17084 | PyObject * obj0 = 0 ; | |
17085 | PyObject * obj1 = 0 ; | |
17086 | char *kwnames[] = { | |
17087 | (char *) "self",(char *) "m_rect", NULL | |
17088 | }; | |
17089 | ||
17090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17095 | if (arg1) (arg1)->m_rect = *arg2; | |
17096 | ||
17097 | Py_INCREF(Py_None); resultobj = Py_None; | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | return NULL; | |
17101 | } | |
17102 | ||
17103 | ||
c32bde28 | 17104 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17105 | PyObject *resultobj; |
17106 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17107 | wxRect *result; | |
17108 | PyObject * obj0 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self", NULL | |
17111 | }; | |
17112 | ||
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17116 | result = (wxRect *)& ((arg1)->m_rect); | |
17117 | ||
17118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17119 | return resultobj; | |
17120 | fail: | |
17121 | return NULL; | |
17122 | } | |
17123 | ||
17124 | ||
c32bde28 | 17125 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17126 | PyObject *obj; |
17127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17128 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17129 | Py_INCREF(obj); | |
17130 | return Py_BuildValue((char *)""); | |
17131 | } | |
c32bde28 | 17132 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17133 | PyObject *resultobj; |
17134 | int arg1 = (int) 0 ; | |
17135 | wxPaintEvent *result; | |
17136 | PyObject * obj0 = 0 ; | |
17137 | char *kwnames[] = { | |
17138 | (char *) "Id", NULL | |
17139 | }; | |
17140 | ||
17141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
17142 | if (obj0) { | |
c32bde28 | 17143 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17144 | if (PyErr_Occurred()) SWIG_fail; |
17145 | } | |
17146 | { | |
17147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17148 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17149 | ||
17150 | wxPyEndAllowThreads(__tstate); | |
17151 | if (PyErr_Occurred()) SWIG_fail; | |
17152 | } | |
17153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
17154 | return resultobj; | |
17155 | fail: | |
17156 | return NULL; | |
17157 | } | |
17158 | ||
17159 | ||
c32bde28 | 17160 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17161 | PyObject *obj; |
17162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17163 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17164 | Py_INCREF(obj); | |
17165 | return Py_BuildValue((char *)""); | |
17166 | } | |
c32bde28 | 17167 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17168 | PyObject *resultobj; |
17169 | int arg1 = (int) 0 ; | |
17170 | wxNcPaintEvent *result; | |
17171 | PyObject * obj0 = 0 ; | |
17172 | char *kwnames[] = { | |
17173 | (char *) "winid", NULL | |
17174 | }; | |
17175 | ||
17176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
17177 | if (obj0) { | |
c32bde28 | 17178 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17179 | if (PyErr_Occurred()) SWIG_fail; |
17180 | } | |
17181 | { | |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17184 | ||
17185 | wxPyEndAllowThreads(__tstate); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
17187 | } | |
17188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
17189 | return resultobj; | |
17190 | fail: | |
17191 | return NULL; | |
17192 | } | |
17193 | ||
17194 | ||
c32bde28 | 17195 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17196 | PyObject *obj; |
17197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17198 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17199 | Py_INCREF(obj); | |
17200 | return Py_BuildValue((char *)""); | |
17201 | } | |
c32bde28 | 17202 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17203 | PyObject *resultobj; |
17204 | int arg1 = (int) 0 ; | |
17205 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17206 | wxEraseEvent *result; | |
17207 | PyObject * obj0 = 0 ; | |
17208 | PyObject * obj1 = 0 ; | |
17209 | char *kwnames[] = { | |
17210 | (char *) "Id",(char *) "dc", NULL | |
17211 | }; | |
17212 | ||
17213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17214 | if (obj0) { | |
c32bde28 | 17215 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17216 | if (PyErr_Occurred()) SWIG_fail; |
17217 | } | |
17218 | if (obj1) { | |
17219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17221 | } | |
17222 | { | |
17223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17224 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17225 | ||
17226 | wxPyEndAllowThreads(__tstate); | |
17227 | if (PyErr_Occurred()) SWIG_fail; | |
17228 | } | |
17229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17230 | return resultobj; | |
17231 | fail: | |
17232 | return NULL; | |
17233 | } | |
17234 | ||
17235 | ||
c32bde28 | 17236 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17237 | PyObject *resultobj; |
17238 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17239 | wxDC *result; | |
17240 | PyObject * obj0 = 0 ; | |
17241 | char *kwnames[] = { | |
17242 | (char *) "self", NULL | |
17243 | }; | |
17244 | ||
17245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17248 | { | |
17249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17250 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17251 | ||
17252 | wxPyEndAllowThreads(__tstate); | |
17253 | if (PyErr_Occurred()) SWIG_fail; | |
17254 | } | |
17255 | { | |
412d302d | 17256 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17257 | } |
17258 | return resultobj; | |
17259 | fail: | |
17260 | return NULL; | |
17261 | } | |
17262 | ||
17263 | ||
c32bde28 | 17264 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17265 | PyObject *obj; |
17266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17267 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17268 | Py_INCREF(obj); | |
17269 | return Py_BuildValue((char *)""); | |
17270 | } | |
c32bde28 | 17271 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17272 | PyObject *resultobj; |
17273 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17274 | int arg2 = (int) 0 ; | |
17275 | wxFocusEvent *result; | |
17276 | PyObject * obj0 = 0 ; | |
17277 | PyObject * obj1 = 0 ; | |
17278 | char *kwnames[] = { | |
17279 | (char *) "type",(char *) "winid", NULL | |
17280 | }; | |
17281 | ||
17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17283 | if (obj0) { | |
c32bde28 | 17284 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17285 | if (PyErr_Occurred()) SWIG_fail; |
17286 | } | |
17287 | if (obj1) { | |
c32bde28 | 17288 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17289 | if (PyErr_Occurred()) SWIG_fail; |
17290 | } | |
17291 | { | |
17292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17293 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17294 | ||
17295 | wxPyEndAllowThreads(__tstate); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | } | |
17298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17299 | return resultobj; | |
17300 | fail: | |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
c32bde28 | 17305 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17306 | PyObject *resultobj; |
17307 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17308 | wxWindow *result; | |
17309 | PyObject * obj0 = 0 ; | |
17310 | char *kwnames[] = { | |
17311 | (char *) "self", NULL | |
17312 | }; | |
17313 | ||
17314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17317 | { | |
17318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17319 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17320 | ||
17321 | wxPyEndAllowThreads(__tstate); | |
17322 | if (PyErr_Occurred()) SWIG_fail; | |
17323 | } | |
17324 | { | |
412d302d | 17325 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17326 | } |
17327 | return resultobj; | |
17328 | fail: | |
17329 | return NULL; | |
17330 | } | |
17331 | ||
17332 | ||
c32bde28 | 17333 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17334 | PyObject *resultobj; |
17335 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17336 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17337 | PyObject * obj0 = 0 ; | |
17338 | PyObject * obj1 = 0 ; | |
17339 | char *kwnames[] = { | |
17340 | (char *) "self",(char *) "win", NULL | |
17341 | }; | |
17342 | ||
17343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17348 | { | |
17349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17350 | (arg1)->SetWindow(arg2); | |
17351 | ||
17352 | wxPyEndAllowThreads(__tstate); | |
17353 | if (PyErr_Occurred()) SWIG_fail; | |
17354 | } | |
17355 | Py_INCREF(Py_None); resultobj = Py_None; | |
17356 | return resultobj; | |
17357 | fail: | |
17358 | return NULL; | |
17359 | } | |
17360 | ||
17361 | ||
c32bde28 | 17362 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17363 | PyObject *obj; |
17364 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17365 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17366 | Py_INCREF(obj); | |
17367 | return Py_BuildValue((char *)""); | |
17368 | } | |
c32bde28 | 17369 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17370 | PyObject *resultobj; |
17371 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17372 | wxChildFocusEvent *result; | |
17373 | PyObject * obj0 = 0 ; | |
17374 | char *kwnames[] = { | |
17375 | (char *) "win", NULL | |
17376 | }; | |
17377 | ||
17378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17379 | if (obj0) { | |
17380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17382 | } | |
17383 | { | |
17384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17385 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17386 | ||
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17391 | return resultobj; | |
17392 | fail: | |
17393 | return NULL; | |
17394 | } | |
17395 | ||
17396 | ||
c32bde28 | 17397 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17398 | PyObject *resultobj; |
17399 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17400 | wxWindow *result; | |
17401 | PyObject * obj0 = 0 ; | |
17402 | char *kwnames[] = { | |
17403 | (char *) "self", NULL | |
17404 | }; | |
17405 | ||
17406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17409 | { | |
17410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17411 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17412 | ||
17413 | wxPyEndAllowThreads(__tstate); | |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | } | |
17416 | { | |
412d302d | 17417 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17418 | } |
17419 | return resultobj; | |
17420 | fail: | |
17421 | return NULL; | |
17422 | } | |
17423 | ||
17424 | ||
c32bde28 | 17425 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17426 | PyObject *obj; |
17427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17428 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17429 | Py_INCREF(obj); | |
17430 | return Py_BuildValue((char *)""); | |
17431 | } | |
c32bde28 | 17432 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17433 | PyObject *resultobj; |
17434 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 17435 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17436 | int arg3 = (int) 0 ; |
17437 | wxActivateEvent *result; | |
17438 | PyObject * obj0 = 0 ; | |
17439 | PyObject * obj1 = 0 ; | |
17440 | PyObject * obj2 = 0 ; | |
17441 | char *kwnames[] = { | |
17442 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17443 | }; | |
17444 | ||
17445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17446 | if (obj0) { | |
c32bde28 | 17447 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17448 | if (PyErr_Occurred()) SWIG_fail; |
17449 | } | |
17450 | if (obj1) { | |
c32bde28 | 17451 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17452 | if (PyErr_Occurred()) SWIG_fail; |
17453 | } | |
17454 | if (obj2) { | |
c32bde28 | 17455 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17456 | if (PyErr_Occurred()) SWIG_fail; |
17457 | } | |
17458 | { | |
17459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17460 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17461 | ||
17462 | wxPyEndAllowThreads(__tstate); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | } | |
17465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17466 | return resultobj; | |
17467 | fail: | |
17468 | return NULL; | |
17469 | } | |
17470 | ||
17471 | ||
c32bde28 | 17472 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17473 | PyObject *resultobj; |
17474 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17475 | bool result; | |
17476 | PyObject * obj0 = 0 ; | |
17477 | char *kwnames[] = { | |
17478 | (char *) "self", NULL | |
17479 | }; | |
17480 | ||
17481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17484 | { | |
17485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17486 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17487 | ||
17488 | wxPyEndAllowThreads(__tstate); | |
17489 | if (PyErr_Occurred()) SWIG_fail; | |
17490 | } | |
17491 | { | |
17492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17493 | } | |
17494 | return resultobj; | |
17495 | fail: | |
17496 | return NULL; | |
17497 | } | |
17498 | ||
17499 | ||
c32bde28 | 17500 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17501 | PyObject *obj; |
17502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17503 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17504 | Py_INCREF(obj); | |
17505 | return Py_BuildValue((char *)""); | |
17506 | } | |
c32bde28 | 17507 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17508 | PyObject *resultobj; |
17509 | int arg1 = (int) 0 ; | |
17510 | wxInitDialogEvent *result; | |
17511 | PyObject * obj0 = 0 ; | |
17512 | char *kwnames[] = { | |
17513 | (char *) "Id", NULL | |
17514 | }; | |
17515 | ||
17516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17517 | if (obj0) { | |
c32bde28 | 17518 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17519 | if (PyErr_Occurred()) SWIG_fail; |
17520 | } | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17524 | ||
17525 | wxPyEndAllowThreads(__tstate); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
17528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17529 | return resultobj; | |
17530 | fail: | |
17531 | return NULL; | |
17532 | } | |
17533 | ||
17534 | ||
c32bde28 | 17535 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17536 | PyObject *obj; |
17537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17538 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17539 | Py_INCREF(obj); | |
17540 | return Py_BuildValue((char *)""); | |
17541 | } | |
c32bde28 | 17542 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17543 | PyObject *resultobj; |
17544 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17545 | int arg2 = (int) 0 ; | |
17546 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17547 | wxMenuEvent *result; | |
17548 | PyObject * obj0 = 0 ; | |
17549 | PyObject * obj1 = 0 ; | |
17550 | PyObject * obj2 = 0 ; | |
17551 | char *kwnames[] = { | |
17552 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17553 | }; | |
17554 | ||
17555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17556 | if (obj0) { | |
c32bde28 | 17557 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17558 | if (PyErr_Occurred()) SWIG_fail; |
17559 | } | |
17560 | if (obj1) { | |
c32bde28 | 17561 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17562 | if (PyErr_Occurred()) SWIG_fail; |
17563 | } | |
17564 | if (obj2) { | |
17565 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17567 | } | |
17568 | { | |
17569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17570 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17571 | ||
17572 | wxPyEndAllowThreads(__tstate); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | } | |
17575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17576 | return resultobj; | |
17577 | fail: | |
17578 | return NULL; | |
17579 | } | |
17580 | ||
17581 | ||
c32bde28 | 17582 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17583 | PyObject *resultobj; |
17584 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17585 | int result; | |
17586 | PyObject * obj0 = 0 ; | |
17587 | char *kwnames[] = { | |
17588 | (char *) "self", NULL | |
17589 | }; | |
17590 | ||
17591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17594 | { | |
17595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17596 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17597 | ||
17598 | wxPyEndAllowThreads(__tstate); | |
17599 | if (PyErr_Occurred()) SWIG_fail; | |
17600 | } | |
c32bde28 | 17601 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17602 | return resultobj; |
17603 | fail: | |
17604 | return NULL; | |
17605 | } | |
17606 | ||
17607 | ||
c32bde28 | 17608 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17609 | PyObject *resultobj; |
17610 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17611 | bool result; | |
17612 | PyObject * obj0 = 0 ; | |
17613 | char *kwnames[] = { | |
17614 | (char *) "self", NULL | |
17615 | }; | |
17616 | ||
17617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17620 | { | |
17621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17622 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17623 | ||
17624 | wxPyEndAllowThreads(__tstate); | |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
17626 | } | |
17627 | { | |
17628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17629 | } | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
c32bde28 | 17636 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17637 | PyObject *resultobj; |
17638 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17639 | wxMenu *result; | |
17640 | PyObject * obj0 = 0 ; | |
17641 | char *kwnames[] = { | |
17642 | (char *) "self", NULL | |
17643 | }; | |
17644 | ||
17645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17648 | { | |
17649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17650 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17651 | ||
17652 | wxPyEndAllowThreads(__tstate); | |
17653 | if (PyErr_Occurred()) SWIG_fail; | |
17654 | } | |
17655 | { | |
412d302d | 17656 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17657 | } |
17658 | return resultobj; | |
17659 | fail: | |
17660 | return NULL; | |
17661 | } | |
17662 | ||
17663 | ||
c32bde28 | 17664 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17665 | PyObject *obj; |
17666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17667 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17668 | Py_INCREF(obj); | |
17669 | return Py_BuildValue((char *)""); | |
17670 | } | |
c32bde28 | 17671 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17672 | PyObject *resultobj; |
17673 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17674 | int arg2 = (int) 0 ; | |
17675 | wxCloseEvent *result; | |
17676 | PyObject * obj0 = 0 ; | |
17677 | PyObject * obj1 = 0 ; | |
17678 | char *kwnames[] = { | |
17679 | (char *) "type",(char *) "winid", NULL | |
17680 | }; | |
17681 | ||
17682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17683 | if (obj0) { | |
c32bde28 | 17684 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17685 | if (PyErr_Occurred()) SWIG_fail; |
17686 | } | |
17687 | if (obj1) { | |
c32bde28 | 17688 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17689 | if (PyErr_Occurred()) SWIG_fail; |
17690 | } | |
17691 | { | |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17694 | ||
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17699 | return resultobj; | |
17700 | fail: | |
17701 | return NULL; | |
17702 | } | |
17703 | ||
17704 | ||
c32bde28 | 17705 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17706 | PyObject *resultobj; |
17707 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17708 | bool arg2 ; | |
17709 | PyObject * obj0 = 0 ; | |
17710 | PyObject * obj1 = 0 ; | |
17711 | char *kwnames[] = { | |
17712 | (char *) "self",(char *) "logOff", NULL | |
17713 | }; | |
17714 | ||
17715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17718 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17719 | if (PyErr_Occurred()) SWIG_fail; |
17720 | { | |
17721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17722 | (arg1)->SetLoggingOff(arg2); | |
17723 | ||
17724 | wxPyEndAllowThreads(__tstate); | |
17725 | if (PyErr_Occurred()) SWIG_fail; | |
17726 | } | |
17727 | Py_INCREF(Py_None); resultobj = Py_None; | |
17728 | return resultobj; | |
17729 | fail: | |
17730 | return NULL; | |
17731 | } | |
17732 | ||
17733 | ||
c32bde28 | 17734 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17735 | PyObject *resultobj; |
17736 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17737 | bool result; | |
17738 | PyObject * obj0 = 0 ; | |
17739 | char *kwnames[] = { | |
17740 | (char *) "self", NULL | |
17741 | }; | |
17742 | ||
17743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17746 | { | |
17747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17748 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17749 | ||
17750 | wxPyEndAllowThreads(__tstate); | |
17751 | if (PyErr_Occurred()) SWIG_fail; | |
17752 | } | |
17753 | { | |
17754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17755 | } | |
17756 | return resultobj; | |
17757 | fail: | |
17758 | return NULL; | |
17759 | } | |
17760 | ||
17761 | ||
c32bde28 | 17762 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17763 | PyObject *resultobj; |
17764 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 17765 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17766 | PyObject * obj0 = 0 ; |
17767 | PyObject * obj1 = 0 ; | |
17768 | char *kwnames[] = { | |
17769 | (char *) "self",(char *) "veto", NULL | |
17770 | }; | |
17771 | ||
17772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17775 | if (obj1) { | |
c32bde28 | 17776 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17777 | if (PyErr_Occurred()) SWIG_fail; |
17778 | } | |
17779 | { | |
17780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17781 | (arg1)->Veto(arg2); | |
17782 | ||
17783 | wxPyEndAllowThreads(__tstate); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | } | |
17786 | Py_INCREF(Py_None); resultobj = Py_None; | |
17787 | return resultobj; | |
17788 | fail: | |
17789 | return NULL; | |
17790 | } | |
17791 | ||
17792 | ||
c32bde28 | 17793 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17794 | PyObject *resultobj; |
17795 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17796 | bool arg2 ; | |
17797 | PyObject * obj0 = 0 ; | |
17798 | PyObject * obj1 = 0 ; | |
17799 | char *kwnames[] = { | |
17800 | (char *) "self",(char *) "canVeto", NULL | |
17801 | }; | |
17802 | ||
17803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17806 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17807 | if (PyErr_Occurred()) SWIG_fail; |
17808 | { | |
17809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17810 | (arg1)->SetCanVeto(arg2); | |
17811 | ||
17812 | wxPyEndAllowThreads(__tstate); | |
17813 | if (PyErr_Occurred()) SWIG_fail; | |
17814 | } | |
17815 | Py_INCREF(Py_None); resultobj = Py_None; | |
17816 | return resultobj; | |
17817 | fail: | |
17818 | return NULL; | |
17819 | } | |
17820 | ||
17821 | ||
c32bde28 | 17822 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17823 | PyObject *resultobj; |
17824 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17825 | bool result; | |
17826 | PyObject * obj0 = 0 ; | |
17827 | char *kwnames[] = { | |
17828 | (char *) "self", NULL | |
17829 | }; | |
17830 | ||
17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17834 | { | |
17835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17836 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17837 | ||
17838 | wxPyEndAllowThreads(__tstate); | |
17839 | if (PyErr_Occurred()) SWIG_fail; | |
17840 | } | |
17841 | { | |
17842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17843 | } | |
17844 | return resultobj; | |
17845 | fail: | |
17846 | return NULL; | |
17847 | } | |
17848 | ||
17849 | ||
c32bde28 | 17850 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17851 | PyObject *resultobj; |
17852 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17853 | bool result; | |
17854 | PyObject * obj0 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "self", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17862 | { | |
17863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17864 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17865 | ||
17866 | wxPyEndAllowThreads(__tstate); | |
17867 | if (PyErr_Occurred()) SWIG_fail; | |
17868 | } | |
17869 | { | |
17870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17871 | } | |
17872 | return resultobj; | |
17873 | fail: | |
17874 | return NULL; | |
17875 | } | |
17876 | ||
17877 | ||
c32bde28 | 17878 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17879 | PyObject *obj; |
17880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17881 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17882 | Py_INCREF(obj); | |
17883 | return Py_BuildValue((char *)""); | |
17884 | } | |
c32bde28 | 17885 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17886 | PyObject *resultobj; |
17887 | int arg1 = (int) 0 ; | |
ae8162c8 | 17888 | bool arg2 = (bool) false ; |
d55e5bfc RD |
17889 | wxShowEvent *result; |
17890 | PyObject * obj0 = 0 ; | |
17891 | PyObject * obj1 = 0 ; | |
17892 | char *kwnames[] = { | |
17893 | (char *) "winid",(char *) "show", NULL | |
17894 | }; | |
17895 | ||
17896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17897 | if (obj0) { | |
c32bde28 | 17898 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17899 | if (PyErr_Occurred()) SWIG_fail; |
17900 | } | |
17901 | if (obj1) { | |
c32bde28 | 17902 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17903 | if (PyErr_Occurred()) SWIG_fail; |
17904 | } | |
17905 | { | |
17906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17907 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
17912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17913 | return resultobj; | |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
c32bde28 | 17919 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17920 | PyObject *resultobj; |
17921 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17922 | bool arg2 ; | |
17923 | PyObject * obj0 = 0 ; | |
17924 | PyObject * obj1 = 0 ; | |
17925 | char *kwnames[] = { | |
17926 | (char *) "self",(char *) "show", NULL | |
17927 | }; | |
17928 | ||
17929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17932 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17933 | if (PyErr_Occurred()) SWIG_fail; |
17934 | { | |
17935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17936 | (arg1)->SetShow(arg2); | |
17937 | ||
17938 | wxPyEndAllowThreads(__tstate); | |
17939 | if (PyErr_Occurred()) SWIG_fail; | |
17940 | } | |
17941 | Py_INCREF(Py_None); resultobj = Py_None; | |
17942 | return resultobj; | |
17943 | fail: | |
17944 | return NULL; | |
17945 | } | |
17946 | ||
17947 | ||
c32bde28 | 17948 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17949 | PyObject *resultobj; |
17950 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17951 | bool result; | |
17952 | PyObject * obj0 = 0 ; | |
17953 | char *kwnames[] = { | |
17954 | (char *) "self", NULL | |
17955 | }; | |
17956 | ||
17957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
17958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17960 | { | |
17961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17962 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17963 | ||
17964 | wxPyEndAllowThreads(__tstate); | |
17965 | if (PyErr_Occurred()) SWIG_fail; | |
17966 | } | |
17967 | { | |
17968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17969 | } | |
17970 | return resultobj; | |
17971 | fail: | |
17972 | return NULL; | |
17973 | } | |
17974 | ||
17975 | ||
c32bde28 | 17976 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17977 | PyObject *obj; |
17978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17979 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17980 | Py_INCREF(obj); | |
17981 | return Py_BuildValue((char *)""); | |
17982 | } | |
c32bde28 | 17983 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17984 | PyObject *resultobj; |
17985 | int arg1 = (int) 0 ; | |
ae8162c8 | 17986 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17987 | wxIconizeEvent *result; |
17988 | PyObject * obj0 = 0 ; | |
17989 | PyObject * obj1 = 0 ; | |
17990 | char *kwnames[] = { | |
17991 | (char *) "id",(char *) "iconized", NULL | |
17992 | }; | |
17993 | ||
17994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
17995 | if (obj0) { | |
c32bde28 | 17996 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17997 | if (PyErr_Occurred()) SWIG_fail; |
17998 | } | |
17999 | if (obj1) { | |
c32bde28 | 18000 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18001 | if (PyErr_Occurred()) SWIG_fail; |
18002 | } | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18006 | ||
18007 | wxPyEndAllowThreads(__tstate); | |
18008 | if (PyErr_Occurred()) SWIG_fail; | |
18009 | } | |
18010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
18011 | return resultobj; | |
18012 | fail: | |
18013 | return NULL; | |
18014 | } | |
18015 | ||
18016 | ||
c32bde28 | 18017 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18018 | PyObject *resultobj; |
18019 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18020 | bool result; | |
18021 | PyObject * obj0 = 0 ; | |
18022 | char *kwnames[] = { | |
18023 | (char *) "self", NULL | |
18024 | }; | |
18025 | ||
18026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
18027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
18028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18029 | { | |
18030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18031 | result = (bool)(arg1)->Iconized(); | |
18032 | ||
18033 | wxPyEndAllowThreads(__tstate); | |
18034 | if (PyErr_Occurred()) SWIG_fail; | |
18035 | } | |
18036 | { | |
18037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18038 | } | |
18039 | return resultobj; | |
18040 | fail: | |
18041 | return NULL; | |
18042 | } | |
18043 | ||
18044 | ||
c32bde28 | 18045 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18046 | PyObject *obj; |
18047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18048 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18049 | Py_INCREF(obj); | |
18050 | return Py_BuildValue((char *)""); | |
18051 | } | |
c32bde28 | 18052 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18053 | PyObject *resultobj; |
18054 | int arg1 = (int) 0 ; | |
18055 | wxMaximizeEvent *result; | |
18056 | PyObject * obj0 = 0 ; | |
18057 | char *kwnames[] = { | |
18058 | (char *) "id", NULL | |
18059 | }; | |
18060 | ||
18061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
18062 | if (obj0) { | |
c32bde28 | 18063 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18064 | if (PyErr_Occurred()) SWIG_fail; |
18065 | } | |
18066 | { | |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18069 | ||
18070 | wxPyEndAllowThreads(__tstate); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
18072 | } | |
18073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
18074 | return resultobj; | |
18075 | fail: | |
18076 | return NULL; | |
18077 | } | |
18078 | ||
18079 | ||
c32bde28 | 18080 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18081 | PyObject *obj; |
18082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18083 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18084 | Py_INCREF(obj); | |
18085 | return Py_BuildValue((char *)""); | |
18086 | } | |
c32bde28 | 18087 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18088 | PyObject *resultobj; |
18089 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18090 | wxPoint result; | |
18091 | PyObject * obj0 = 0 ; | |
18092 | char *kwnames[] = { | |
18093 | (char *) "self", NULL | |
18094 | }; | |
18095 | ||
18096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18099 | { | |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | result = (arg1)->GetPosition(); | |
18102 | ||
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | { | |
18107 | wxPoint * resultptr; | |
18108 | resultptr = new wxPoint((wxPoint &) result); | |
18109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
18110 | } | |
18111 | return resultobj; | |
18112 | fail: | |
18113 | return NULL; | |
18114 | } | |
18115 | ||
18116 | ||
c32bde28 | 18117 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18118 | PyObject *resultobj; |
18119 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18120 | int result; | |
18121 | PyObject * obj0 = 0 ; | |
18122 | char *kwnames[] = { | |
18123 | (char *) "self", NULL | |
18124 | }; | |
18125 | ||
18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
18127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18129 | { | |
18130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18131 | result = (int)(arg1)->GetNumberOfFiles(); | |
18132 | ||
18133 | wxPyEndAllowThreads(__tstate); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
c32bde28 | 18136 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18137 | return resultobj; |
18138 | fail: | |
18139 | return NULL; | |
18140 | } | |
18141 | ||
18142 | ||
c32bde28 | 18143 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18144 | PyObject *resultobj; |
18145 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18146 | PyObject *result; | |
18147 | PyObject * obj0 = 0 ; | |
18148 | char *kwnames[] = { | |
18149 | (char *) "self", NULL | |
18150 | }; | |
18151 | ||
18152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
18153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18155 | { | |
18156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18157 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18158 | ||
18159 | wxPyEndAllowThreads(__tstate); | |
18160 | if (PyErr_Occurred()) SWIG_fail; | |
18161 | } | |
18162 | resultobj = result; | |
18163 | return resultobj; | |
18164 | fail: | |
18165 | return NULL; | |
18166 | } | |
18167 | ||
18168 | ||
c32bde28 | 18169 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18170 | PyObject *obj; |
18171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18172 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18173 | Py_INCREF(obj); | |
18174 | return Py_BuildValue((char *)""); | |
18175 | } | |
c32bde28 | 18176 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18177 | PyObject *resultobj; |
18178 | int arg1 = (int) 0 ; | |
18179 | wxUpdateUIEvent *result; | |
18180 | PyObject * obj0 = 0 ; | |
18181 | char *kwnames[] = { | |
18182 | (char *) "commandId", NULL | |
18183 | }; | |
18184 | ||
18185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
18186 | if (obj0) { | |
c32bde28 | 18187 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18188 | if (PyErr_Occurred()) SWIG_fail; |
18189 | } | |
18190 | { | |
18191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18192 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18193 | ||
18194 | wxPyEndAllowThreads(__tstate); | |
18195 | if (PyErr_Occurred()) SWIG_fail; | |
18196 | } | |
18197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
18198 | return resultobj; | |
18199 | fail: | |
18200 | return NULL; | |
18201 | } | |
18202 | ||
18203 | ||
c32bde28 | 18204 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18205 | PyObject *resultobj; |
18206 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18207 | bool result; | |
18208 | PyObject * obj0 = 0 ; | |
18209 | char *kwnames[] = { | |
18210 | (char *) "self", NULL | |
18211 | }; | |
18212 | ||
18213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
18214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18216 | { | |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18219 | ||
18220 | wxPyEndAllowThreads(__tstate); | |
18221 | if (PyErr_Occurred()) SWIG_fail; | |
18222 | } | |
18223 | { | |
18224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18225 | } | |
18226 | return resultobj; | |
18227 | fail: | |
18228 | return NULL; | |
18229 | } | |
18230 | ||
18231 | ||
c32bde28 | 18232 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18233 | PyObject *resultobj; |
18234 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18235 | bool result; | |
18236 | PyObject * obj0 = 0 ; | |
18237 | char *kwnames[] = { | |
18238 | (char *) "self", NULL | |
18239 | }; | |
18240 | ||
18241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18244 | { | |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | { | |
18252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18253 | } | |
18254 | return resultobj; | |
18255 | fail: | |
18256 | return NULL; | |
18257 | } | |
18258 | ||
18259 | ||
c32bde28 | 18260 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18261 | PyObject *resultobj; |
18262 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18263 | wxString result; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | char *kwnames[] = { | |
18266 | (char *) "self", NULL | |
18267 | }; | |
18268 | ||
18269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18272 | { | |
18273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18274 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18275 | ||
18276 | wxPyEndAllowThreads(__tstate); | |
18277 | if (PyErr_Occurred()) SWIG_fail; | |
18278 | } | |
18279 | { | |
18280 | #if wxUSE_UNICODE | |
18281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18282 | #else | |
18283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18284 | #endif | |
18285 | } | |
18286 | return resultobj; | |
18287 | fail: | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
c32bde28 | 18292 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18293 | PyObject *resultobj; |
18294 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18295 | bool result; | |
18296 | PyObject * obj0 = 0 ; | |
18297 | char *kwnames[] = { | |
18298 | (char *) "self", NULL | |
18299 | }; | |
18300 | ||
18301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18304 | { | |
18305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18306 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18307 | ||
18308 | wxPyEndAllowThreads(__tstate); | |
18309 | if (PyErr_Occurred()) SWIG_fail; | |
18310 | } | |
18311 | { | |
18312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18313 | } | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
c32bde28 | 18320 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18321 | PyObject *resultobj; |
18322 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18323 | bool result; | |
18324 | PyObject * obj0 = 0 ; | |
18325 | char *kwnames[] = { | |
18326 | (char *) "self", NULL | |
18327 | }; | |
18328 | ||
18329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18332 | { | |
18333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18334 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18335 | ||
18336 | wxPyEndAllowThreads(__tstate); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
18339 | { | |
18340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18341 | } | |
18342 | return resultobj; | |
18343 | fail: | |
18344 | return NULL; | |
18345 | } | |
18346 | ||
18347 | ||
c32bde28 | 18348 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18349 | PyObject *resultobj; |
18350 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18351 | bool result; | |
18352 | PyObject * obj0 = 0 ; | |
18353 | char *kwnames[] = { | |
18354 | (char *) "self", NULL | |
18355 | }; | |
18356 | ||
18357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18360 | { | |
18361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18362 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18363 | ||
18364 | wxPyEndAllowThreads(__tstate); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
18367 | { | |
18368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18369 | } | |
18370 | return resultobj; | |
18371 | fail: | |
18372 | return NULL; | |
18373 | } | |
18374 | ||
18375 | ||
c32bde28 | 18376 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18377 | PyObject *resultobj; |
18378 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18379 | bool arg2 ; | |
18380 | PyObject * obj0 = 0 ; | |
18381 | PyObject * obj1 = 0 ; | |
18382 | char *kwnames[] = { | |
18383 | (char *) "self",(char *) "check", NULL | |
18384 | }; | |
18385 | ||
18386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18389 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18390 | if (PyErr_Occurred()) SWIG_fail; |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | (arg1)->Check(arg2); | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | Py_INCREF(Py_None); resultobj = Py_None; | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
c32bde28 | 18405 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18406 | PyObject *resultobj; |
18407 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18408 | bool arg2 ; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | PyObject * obj1 = 0 ; | |
18411 | char *kwnames[] = { | |
18412 | (char *) "self",(char *) "enable", NULL | |
18413 | }; | |
18414 | ||
18415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18418 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18419 | if (PyErr_Occurred()) SWIG_fail; |
18420 | { | |
18421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18422 | (arg1)->Enable(arg2); | |
18423 | ||
18424 | wxPyEndAllowThreads(__tstate); | |
18425 | if (PyErr_Occurred()) SWIG_fail; | |
18426 | } | |
18427 | Py_INCREF(Py_None); resultobj = Py_None; | |
18428 | return resultobj; | |
18429 | fail: | |
18430 | return NULL; | |
18431 | } | |
18432 | ||
18433 | ||
c32bde28 | 18434 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18435 | PyObject *resultobj; |
18436 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18437 | wxString *arg2 = 0 ; | |
ae8162c8 | 18438 | bool temp2 = false ; |
d55e5bfc RD |
18439 | PyObject * obj0 = 0 ; |
18440 | PyObject * obj1 = 0 ; | |
18441 | char *kwnames[] = { | |
18442 | (char *) "self",(char *) "text", NULL | |
18443 | }; | |
18444 | ||
18445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18448 | { | |
18449 | arg2 = wxString_in_helper(obj1); | |
18450 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18451 | temp2 = true; |
d55e5bfc RD |
18452 | } |
18453 | { | |
18454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18455 | (arg1)->SetText((wxString const &)*arg2); | |
18456 | ||
18457 | wxPyEndAllowThreads(__tstate); | |
18458 | if (PyErr_Occurred()) SWIG_fail; | |
18459 | } | |
18460 | Py_INCREF(Py_None); resultobj = Py_None; | |
18461 | { | |
18462 | if (temp2) | |
18463 | delete arg2; | |
18464 | } | |
18465 | return resultobj; | |
18466 | fail: | |
18467 | { | |
18468 | if (temp2) | |
18469 | delete arg2; | |
18470 | } | |
18471 | return NULL; | |
18472 | } | |
18473 | ||
18474 | ||
c32bde28 | 18475 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18476 | PyObject *resultobj; |
18477 | long arg1 ; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | char *kwnames[] = { | |
18480 | (char *) "updateInterval", NULL | |
18481 | }; | |
18482 | ||
18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
c32bde28 | 18484 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
18485 | if (PyErr_Occurred()) SWIG_fail; |
18486 | { | |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18488 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18489 | ||
18490 | wxPyEndAllowThreads(__tstate); | |
18491 | if (PyErr_Occurred()) SWIG_fail; | |
18492 | } | |
18493 | Py_INCREF(Py_None); resultobj = Py_None; | |
18494 | return resultobj; | |
18495 | fail: | |
18496 | return NULL; | |
18497 | } | |
18498 | ||
18499 | ||
c32bde28 | 18500 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18501 | PyObject *resultobj; |
18502 | long result; | |
18503 | char *kwnames[] = { | |
18504 | NULL | |
18505 | }; | |
18506 | ||
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18508 | { | |
18509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18510 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18511 | ||
18512 | wxPyEndAllowThreads(__tstate); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
c32bde28 | 18515 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
18516 | return resultobj; |
18517 | fail: | |
18518 | return NULL; | |
18519 | } | |
18520 | ||
18521 | ||
c32bde28 | 18522 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18523 | PyObject *resultobj; |
18524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18525 | bool result; | |
18526 | PyObject * obj0 = 0 ; | |
18527 | char *kwnames[] = { | |
18528 | (char *) "win", NULL | |
18529 | }; | |
18530 | ||
18531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | { | |
18542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18543 | } | |
18544 | return resultobj; | |
18545 | fail: | |
18546 | return NULL; | |
18547 | } | |
18548 | ||
18549 | ||
c32bde28 | 18550 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18551 | PyObject *resultobj; |
18552 | char *kwnames[] = { | |
18553 | NULL | |
18554 | }; | |
18555 | ||
18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18557 | { | |
18558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18559 | wxUpdateUIEvent::ResetUpdateTime(); | |
18560 | ||
18561 | wxPyEndAllowThreads(__tstate); | |
18562 | if (PyErr_Occurred()) SWIG_fail; | |
18563 | } | |
18564 | Py_INCREF(Py_None); resultobj = Py_None; | |
18565 | return resultobj; | |
18566 | fail: | |
18567 | return NULL; | |
18568 | } | |
18569 | ||
18570 | ||
c32bde28 | 18571 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18572 | PyObject *resultobj; |
18573 | int arg1 ; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | char *kwnames[] = { | |
18576 | (char *) "mode", NULL | |
18577 | }; | |
18578 | ||
18579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 18580 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18581 | if (PyErr_Occurred()) SWIG_fail; |
18582 | { | |
18583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18584 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18585 | ||
18586 | wxPyEndAllowThreads(__tstate); | |
18587 | if (PyErr_Occurred()) SWIG_fail; | |
18588 | } | |
18589 | Py_INCREF(Py_None); resultobj = Py_None; | |
18590 | return resultobj; | |
18591 | fail: | |
18592 | return NULL; | |
18593 | } | |
18594 | ||
18595 | ||
c32bde28 | 18596 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18597 | PyObject *resultobj; |
18598 | int result; | |
18599 | char *kwnames[] = { | |
18600 | NULL | |
18601 | }; | |
18602 | ||
18603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18604 | { | |
18605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18606 | result = (int)wxUpdateUIEvent::GetMode(); | |
18607 | ||
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
c32bde28 | 18611 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18612 | return resultobj; |
18613 | fail: | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
c32bde28 | 18618 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18619 | PyObject *obj; |
18620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18621 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18622 | Py_INCREF(obj); | |
18623 | return Py_BuildValue((char *)""); | |
18624 | } | |
c32bde28 | 18625 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18626 | PyObject *resultobj; |
18627 | wxSysColourChangedEvent *result; | |
18628 | char *kwnames[] = { | |
18629 | NULL | |
18630 | }; | |
18631 | ||
18632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18633 | { | |
18634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18635 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18636 | ||
18637 | wxPyEndAllowThreads(__tstate); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
18640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18641 | return resultobj; | |
18642 | fail: | |
18643 | return NULL; | |
18644 | } | |
18645 | ||
18646 | ||
c32bde28 | 18647 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18648 | PyObject *obj; |
18649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18650 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18651 | Py_INCREF(obj); | |
18652 | return Py_BuildValue((char *)""); | |
18653 | } | |
c32bde28 | 18654 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18655 | PyObject *resultobj; |
18656 | int arg1 = (int) 0 ; | |
18657 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18658 | wxMouseCaptureChangedEvent *result; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | PyObject * obj1 = 0 ; | |
18661 | char *kwnames[] = { | |
18662 | (char *) "winid",(char *) "gainedCapture", NULL | |
18663 | }; | |
18664 | ||
18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18666 | if (obj0) { | |
c32bde28 | 18667 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18668 | if (PyErr_Occurred()) SWIG_fail; |
18669 | } | |
18670 | if (obj1) { | |
18671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18673 | } | |
18674 | { | |
18675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18676 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18677 | ||
18678 | wxPyEndAllowThreads(__tstate); | |
18679 | if (PyErr_Occurred()) SWIG_fail; | |
18680 | } | |
18681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
c32bde28 | 18688 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18689 | PyObject *resultobj; |
18690 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18691 | wxWindow *result; | |
18692 | PyObject * obj0 = 0 ; | |
18693 | char *kwnames[] = { | |
18694 | (char *) "self", NULL | |
18695 | }; | |
18696 | ||
18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18700 | { | |
18701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18702 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18703 | ||
18704 | wxPyEndAllowThreads(__tstate); | |
18705 | if (PyErr_Occurred()) SWIG_fail; | |
18706 | } | |
18707 | { | |
412d302d | 18708 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18709 | } |
18710 | return resultobj; | |
18711 | fail: | |
18712 | return NULL; | |
18713 | } | |
18714 | ||
18715 | ||
c32bde28 | 18716 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18717 | PyObject *obj; |
18718 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18719 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18720 | Py_INCREF(obj); | |
18721 | return Py_BuildValue((char *)""); | |
18722 | } | |
c32bde28 | 18723 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18724 | PyObject *resultobj; |
18725 | wxDisplayChangedEvent *result; | |
18726 | char *kwnames[] = { | |
18727 | NULL | |
18728 | }; | |
18729 | ||
18730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18731 | { | |
18732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18733 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18734 | ||
18735 | wxPyEndAllowThreads(__tstate); | |
18736 | if (PyErr_Occurred()) SWIG_fail; | |
18737 | } | |
18738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18739 | return resultobj; | |
18740 | fail: | |
18741 | return NULL; | |
18742 | } | |
18743 | ||
18744 | ||
c32bde28 | 18745 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18746 | PyObject *obj; |
18747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18748 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18749 | Py_INCREF(obj); | |
18750 | return Py_BuildValue((char *)""); | |
18751 | } | |
c32bde28 | 18752 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18753 | PyObject *resultobj; |
18754 | int arg1 = (int) 0 ; | |
18755 | wxPaletteChangedEvent *result; | |
18756 | PyObject * obj0 = 0 ; | |
18757 | char *kwnames[] = { | |
18758 | (char *) "id", NULL | |
18759 | }; | |
18760 | ||
18761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18762 | if (obj0) { | |
c32bde28 | 18763 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18764 | if (PyErr_Occurred()) SWIG_fail; |
18765 | } | |
18766 | { | |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18769 | ||
18770 | wxPyEndAllowThreads(__tstate); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | } | |
18773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18774 | return resultobj; | |
18775 | fail: | |
18776 | return NULL; | |
18777 | } | |
18778 | ||
18779 | ||
c32bde28 | 18780 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18781 | PyObject *resultobj; |
18782 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18783 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18784 | PyObject * obj0 = 0 ; | |
18785 | PyObject * obj1 = 0 ; | |
18786 | char *kwnames[] = { | |
18787 | (char *) "self",(char *) "win", NULL | |
18788 | }; | |
18789 | ||
18790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18795 | { | |
18796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18797 | (arg1)->SetChangedWindow(arg2); | |
18798 | ||
18799 | wxPyEndAllowThreads(__tstate); | |
18800 | if (PyErr_Occurred()) SWIG_fail; | |
18801 | } | |
18802 | Py_INCREF(Py_None); resultobj = Py_None; | |
18803 | return resultobj; | |
18804 | fail: | |
18805 | return NULL; | |
18806 | } | |
18807 | ||
18808 | ||
c32bde28 | 18809 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18810 | PyObject *resultobj; |
18811 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18812 | wxWindow *result; | |
18813 | PyObject * obj0 = 0 ; | |
18814 | char *kwnames[] = { | |
18815 | (char *) "self", NULL | |
18816 | }; | |
18817 | ||
18818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18821 | { | |
18822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18823 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18824 | ||
18825 | wxPyEndAllowThreads(__tstate); | |
18826 | if (PyErr_Occurred()) SWIG_fail; | |
18827 | } | |
18828 | { | |
412d302d | 18829 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18830 | } |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
c32bde28 | 18837 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18838 | PyObject *obj; |
18839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18840 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18841 | Py_INCREF(obj); | |
18842 | return Py_BuildValue((char *)""); | |
18843 | } | |
c32bde28 | 18844 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18845 | PyObject *resultobj; |
18846 | int arg1 = (int) 0 ; | |
18847 | wxQueryNewPaletteEvent *result; | |
18848 | PyObject * obj0 = 0 ; | |
18849 | char *kwnames[] = { | |
18850 | (char *) "winid", NULL | |
18851 | }; | |
18852 | ||
18853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18854 | if (obj0) { | |
c32bde28 | 18855 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18856 | if (PyErr_Occurred()) SWIG_fail; |
18857 | } | |
18858 | { | |
18859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18860 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18861 | ||
18862 | wxPyEndAllowThreads(__tstate); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | } | |
18865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18866 | return resultobj; | |
18867 | fail: | |
18868 | return NULL; | |
18869 | } | |
18870 | ||
18871 | ||
c32bde28 | 18872 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18873 | PyObject *resultobj; |
18874 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18875 | bool arg2 ; | |
18876 | PyObject * obj0 = 0 ; | |
18877 | PyObject * obj1 = 0 ; | |
18878 | char *kwnames[] = { | |
18879 | (char *) "self",(char *) "realized", NULL | |
18880 | }; | |
18881 | ||
18882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18885 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18886 | if (PyErr_Occurred()) SWIG_fail; |
18887 | { | |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | (arg1)->SetPaletteRealized(arg2); | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | Py_INCREF(Py_None); resultobj = Py_None; | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
c32bde28 | 18901 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18902 | PyObject *resultobj; |
18903 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18904 | bool result; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18913 | { | |
18914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18915 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18916 | ||
18917 | wxPyEndAllowThreads(__tstate); | |
18918 | if (PyErr_Occurred()) SWIG_fail; | |
18919 | } | |
18920 | { | |
18921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18922 | } | |
18923 | return resultobj; | |
18924 | fail: | |
18925 | return NULL; | |
18926 | } | |
18927 | ||
18928 | ||
c32bde28 | 18929 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18930 | PyObject *obj; |
18931 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18932 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18933 | Py_INCREF(obj); | |
18934 | return Py_BuildValue((char *)""); | |
18935 | } | |
c32bde28 | 18936 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18937 | PyObject *resultobj; |
18938 | wxNavigationKeyEvent *result; | |
18939 | char *kwnames[] = { | |
18940 | NULL | |
18941 | }; | |
18942 | ||
18943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18944 | { | |
18945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18946 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18947 | ||
18948 | wxPyEndAllowThreads(__tstate); | |
18949 | if (PyErr_Occurred()) SWIG_fail; | |
18950 | } | |
18951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
18952 | return resultobj; | |
18953 | fail: | |
18954 | return NULL; | |
18955 | } | |
18956 | ||
18957 | ||
c32bde28 | 18958 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18959 | PyObject *resultobj; |
18960 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18961 | bool result; | |
18962 | PyObject * obj0 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "self", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
18968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18970 | { | |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
18977 | { | |
18978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18979 | } | |
18980 | return resultobj; | |
18981 | fail: | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
c32bde28 | 18986 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18987 | PyObject *resultobj; |
18988 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18989 | bool arg2 ; | |
18990 | PyObject * obj0 = 0 ; | |
18991 | PyObject * obj1 = 0 ; | |
18992 | char *kwnames[] = { | |
908b74cd | 18993 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
18994 | }; |
18995 | ||
18996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
18997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18999 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19000 | if (PyErr_Occurred()) SWIG_fail; |
19001 | { | |
19002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19003 | (arg1)->SetDirection(arg2); | |
19004 | ||
19005 | wxPyEndAllowThreads(__tstate); | |
19006 | if (PyErr_Occurred()) SWIG_fail; | |
19007 | } | |
19008 | Py_INCREF(Py_None); resultobj = Py_None; | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | return NULL; | |
19012 | } | |
19013 | ||
19014 | ||
c32bde28 | 19015 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19016 | PyObject *resultobj; |
19017 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19018 | bool result; | |
19019 | PyObject * obj0 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
19034 | { | |
19035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19036 | } | |
19037 | return resultobj; | |
19038 | fail: | |
19039 | return NULL; | |
19040 | } | |
19041 | ||
19042 | ||
c32bde28 | 19043 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19044 | PyObject *resultobj; |
19045 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19046 | bool arg2 ; | |
19047 | PyObject * obj0 = 0 ; | |
19048 | PyObject * obj1 = 0 ; | |
19049 | char *kwnames[] = { | |
908b74cd | 19050 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
19051 | }; |
19052 | ||
19053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
19054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19056 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19057 | if (PyErr_Occurred()) SWIG_fail; |
19058 | { | |
19059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19060 | (arg1)->SetWindowChange(arg2); | |
19061 | ||
19062 | wxPyEndAllowThreads(__tstate); | |
19063 | if (PyErr_Occurred()) SWIG_fail; | |
19064 | } | |
19065 | Py_INCREF(Py_None); resultobj = Py_None; | |
19066 | return resultobj; | |
19067 | fail: | |
19068 | return NULL; | |
19069 | } | |
19070 | ||
19071 | ||
c32bde28 | 19072 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19073 | PyObject *resultobj; |
19074 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19075 | long arg2 ; | |
19076 | PyObject * obj0 = 0 ; | |
19077 | PyObject * obj1 = 0 ; | |
19078 | char *kwnames[] = { | |
19079 | (char *) "self",(char *) "flags", NULL | |
19080 | }; | |
19081 | ||
19082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19085 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19086 | if (PyErr_Occurred()) SWIG_fail; |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | (arg1)->SetFlags(arg2); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
19094 | Py_INCREF(Py_None); resultobj = Py_None; | |
19095 | return resultobj; | |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
c32bde28 | 19101 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19102 | PyObject *resultobj; |
19103 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19104 | wxWindow *result; | |
19105 | PyObject * obj0 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
19111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19113 | { | |
19114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19115 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19116 | ||
19117 | wxPyEndAllowThreads(__tstate); | |
19118 | if (PyErr_Occurred()) SWIG_fail; | |
19119 | } | |
19120 | { | |
412d302d | 19121 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19122 | } |
19123 | return resultobj; | |
19124 | fail: | |
19125 | return NULL; | |
19126 | } | |
19127 | ||
19128 | ||
c32bde28 | 19129 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19130 | PyObject *resultobj; |
19131 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19132 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19133 | PyObject * obj0 = 0 ; | |
19134 | PyObject * obj1 = 0 ; | |
19135 | char *kwnames[] = { | |
19136 | (char *) "self",(char *) "win", NULL | |
19137 | }; | |
19138 | ||
19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
19140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19144 | { | |
19145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19146 | (arg1)->SetCurrentFocus(arg2); | |
19147 | ||
19148 | wxPyEndAllowThreads(__tstate); | |
19149 | if (PyErr_Occurred()) SWIG_fail; | |
19150 | } | |
19151 | Py_INCREF(Py_None); resultobj = Py_None; | |
19152 | return resultobj; | |
19153 | fail: | |
19154 | return NULL; | |
19155 | } | |
19156 | ||
19157 | ||
c32bde28 | 19158 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19159 | PyObject *obj; |
19160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19161 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19162 | Py_INCREF(obj); | |
19163 | return Py_BuildValue((char *)""); | |
19164 | } | |
c32bde28 | 19165 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19166 | PyObject *resultobj; |
19167 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19168 | wxWindowCreateEvent *result; | |
19169 | PyObject * obj0 = 0 ; | |
19170 | char *kwnames[] = { | |
19171 | (char *) "win", NULL | |
19172 | }; | |
19173 | ||
19174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19175 | if (obj0) { | |
19176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19178 | } | |
19179 | { | |
19180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19181 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19182 | ||
19183 | wxPyEndAllowThreads(__tstate); | |
19184 | if (PyErr_Occurred()) SWIG_fail; | |
19185 | } | |
19186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
19187 | return resultobj; | |
19188 | fail: | |
19189 | return NULL; | |
19190 | } | |
19191 | ||
19192 | ||
c32bde28 | 19193 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19194 | PyObject *resultobj; |
19195 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19196 | wxWindow *result; | |
19197 | PyObject * obj0 = 0 ; | |
19198 | char *kwnames[] = { | |
19199 | (char *) "self", NULL | |
19200 | }; | |
19201 | ||
19202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
19204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19205 | { | |
19206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19207 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19208 | ||
19209 | wxPyEndAllowThreads(__tstate); | |
19210 | if (PyErr_Occurred()) SWIG_fail; | |
19211 | } | |
19212 | { | |
412d302d | 19213 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19214 | } |
19215 | return resultobj; | |
19216 | fail: | |
19217 | return NULL; | |
19218 | } | |
19219 | ||
19220 | ||
c32bde28 | 19221 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19222 | PyObject *obj; |
19223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19224 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19225 | Py_INCREF(obj); | |
19226 | return Py_BuildValue((char *)""); | |
19227 | } | |
c32bde28 | 19228 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19229 | PyObject *resultobj; |
19230 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19231 | wxWindowDestroyEvent *result; | |
19232 | PyObject * obj0 = 0 ; | |
19233 | char *kwnames[] = { | |
19234 | (char *) "win", NULL | |
19235 | }; | |
19236 | ||
19237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19238 | if (obj0) { | |
19239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19241 | } | |
19242 | { | |
19243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19244 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19245 | ||
19246 | wxPyEndAllowThreads(__tstate); | |
19247 | if (PyErr_Occurred()) SWIG_fail; | |
19248 | } | |
19249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19250 | return resultobj; | |
19251 | fail: | |
19252 | return NULL; | |
19253 | } | |
19254 | ||
19255 | ||
c32bde28 | 19256 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19257 | PyObject *resultobj; |
19258 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19259 | wxWindow *result; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | char *kwnames[] = { | |
19262 | (char *) "self", NULL | |
19263 | }; | |
19264 | ||
19265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19268 | { | |
19269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19270 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
19275 | { | |
412d302d | 19276 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19277 | } |
19278 | return resultobj; | |
19279 | fail: | |
19280 | return NULL; | |
19281 | } | |
19282 | ||
19283 | ||
c32bde28 | 19284 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19285 | PyObject *obj; |
19286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19287 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19288 | Py_INCREF(obj); | |
19289 | return Py_BuildValue((char *)""); | |
19290 | } | |
c32bde28 | 19291 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19292 | PyObject *resultobj; |
19293 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19294 | int arg2 = (int) 0 ; | |
19295 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19296 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19297 | wxContextMenuEvent *result; | |
19298 | wxPoint temp3 ; | |
19299 | PyObject * obj0 = 0 ; | |
19300 | PyObject * obj1 = 0 ; | |
19301 | PyObject * obj2 = 0 ; | |
19302 | char *kwnames[] = { | |
19303 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19304 | }; | |
19305 | ||
19306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19307 | if (obj0) { | |
c32bde28 | 19308 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19309 | if (PyErr_Occurred()) SWIG_fail; |
19310 | } | |
19311 | if (obj1) { | |
c32bde28 | 19312 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19313 | if (PyErr_Occurred()) SWIG_fail; |
19314 | } | |
19315 | if (obj2) { | |
19316 | { | |
19317 | arg3 = &temp3; | |
19318 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19319 | } | |
19320 | } | |
19321 | { | |
19322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19323 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19324 | ||
19325 | wxPyEndAllowThreads(__tstate); | |
19326 | if (PyErr_Occurred()) SWIG_fail; | |
19327 | } | |
19328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19329 | return resultobj; | |
19330 | fail: | |
19331 | return NULL; | |
19332 | } | |
19333 | ||
19334 | ||
c32bde28 | 19335 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19336 | PyObject *resultobj; |
19337 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19338 | wxPoint *result; | |
19339 | PyObject * obj0 = 0 ; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "self", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19347 | { | |
19348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19349 | { | |
19350 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19351 | result = (wxPoint *) &_result_ref; | |
19352 | } | |
19353 | ||
19354 | wxPyEndAllowThreads(__tstate); | |
19355 | if (PyErr_Occurred()) SWIG_fail; | |
19356 | } | |
19357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19358 | return resultobj; | |
19359 | fail: | |
19360 | return NULL; | |
19361 | } | |
19362 | ||
19363 | ||
c32bde28 | 19364 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19365 | PyObject *resultobj; |
19366 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19367 | wxPoint *arg2 = 0 ; | |
19368 | wxPoint temp2 ; | |
19369 | PyObject * obj0 = 0 ; | |
19370 | PyObject * obj1 = 0 ; | |
19371 | char *kwnames[] = { | |
19372 | (char *) "self",(char *) "pos", NULL | |
19373 | }; | |
19374 | ||
19375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19378 | { | |
19379 | arg2 = &temp2; | |
19380 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19381 | } | |
19382 | { | |
19383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19384 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19385 | ||
19386 | wxPyEndAllowThreads(__tstate); | |
19387 | if (PyErr_Occurred()) SWIG_fail; | |
19388 | } | |
19389 | Py_INCREF(Py_None); resultobj = Py_None; | |
19390 | return resultobj; | |
19391 | fail: | |
19392 | return NULL; | |
19393 | } | |
19394 | ||
19395 | ||
c32bde28 | 19396 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19397 | PyObject *obj; |
19398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19399 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19400 | Py_INCREF(obj); | |
19401 | return Py_BuildValue((char *)""); | |
19402 | } | |
c32bde28 | 19403 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19404 | PyObject *resultobj; |
19405 | wxIdleEvent *result; | |
19406 | char *kwnames[] = { | |
19407 | NULL | |
19408 | }; | |
19409 | ||
19410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19411 | { | |
19412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19413 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19414 | ||
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | return NULL; | |
19422 | } | |
19423 | ||
19424 | ||
c32bde28 | 19425 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19426 | PyObject *resultobj; |
19427 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 19428 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19429 | PyObject * obj0 = 0 ; |
19430 | PyObject * obj1 = 0 ; | |
19431 | char *kwnames[] = { | |
19432 | (char *) "self",(char *) "needMore", NULL | |
19433 | }; | |
19434 | ||
19435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19438 | if (obj1) { | |
c32bde28 | 19439 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19440 | if (PyErr_Occurred()) SWIG_fail; |
19441 | } | |
19442 | { | |
19443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19444 | (arg1)->RequestMore(arg2); | |
19445 | ||
19446 | wxPyEndAllowThreads(__tstate); | |
19447 | if (PyErr_Occurred()) SWIG_fail; | |
19448 | } | |
19449 | Py_INCREF(Py_None); resultobj = Py_None; | |
19450 | return resultobj; | |
19451 | fail: | |
19452 | return NULL; | |
19453 | } | |
19454 | ||
19455 | ||
c32bde28 | 19456 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19457 | PyObject *resultobj; |
19458 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19459 | bool result; | |
19460 | PyObject * obj0 = 0 ; | |
19461 | char *kwnames[] = { | |
19462 | (char *) "self", NULL | |
19463 | }; | |
19464 | ||
19465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19468 | { | |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19471 | ||
19472 | wxPyEndAllowThreads(__tstate); | |
19473 | if (PyErr_Occurred()) SWIG_fail; | |
19474 | } | |
19475 | { | |
19476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19477 | } | |
19478 | return resultobj; | |
19479 | fail: | |
19480 | return NULL; | |
19481 | } | |
19482 | ||
19483 | ||
c32bde28 | 19484 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19485 | PyObject *resultobj; |
19486 | int arg1 ; | |
19487 | PyObject * obj0 = 0 ; | |
19488 | char *kwnames[] = { | |
19489 | (char *) "mode", NULL | |
19490 | }; | |
19491 | ||
19492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 19493 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19494 | if (PyErr_Occurred()) SWIG_fail; |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
19502 | Py_INCREF(Py_None); resultobj = Py_None; | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
c32bde28 | 19509 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19510 | PyObject *resultobj; |
19511 | int result; | |
19512 | char *kwnames[] = { | |
19513 | NULL | |
19514 | }; | |
19515 | ||
19516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19517 | { | |
19518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19519 | result = (int)wxIdleEvent::GetMode(); | |
19520 | ||
19521 | wxPyEndAllowThreads(__tstate); | |
19522 | if (PyErr_Occurred()) SWIG_fail; | |
19523 | } | |
c32bde28 | 19524 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19525 | return resultobj; |
19526 | fail: | |
19527 | return NULL; | |
19528 | } | |
19529 | ||
19530 | ||
c32bde28 | 19531 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19532 | PyObject *resultobj; |
19533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19534 | bool result; | |
19535 | PyObject * obj0 = 0 ; | |
19536 | char *kwnames[] = { | |
19537 | (char *) "win", NULL | |
19538 | }; | |
19539 | ||
19540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | { | |
19551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19552 | } | |
19553 | return resultobj; | |
19554 | fail: | |
19555 | return NULL; | |
19556 | } | |
19557 | ||
19558 | ||
c32bde28 | 19559 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19560 | PyObject *obj; |
19561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19562 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19563 | Py_INCREF(obj); | |
19564 | return Py_BuildValue((char *)""); | |
19565 | } | |
c32bde28 | 19566 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19567 | PyObject *resultobj; |
19568 | int arg1 = (int) 0 ; | |
19569 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19570 | wxPyEvent *result; | |
19571 | PyObject * obj0 = 0 ; | |
19572 | PyObject * obj1 = 0 ; | |
19573 | char *kwnames[] = { | |
19574 | (char *) "winid",(char *) "commandType", NULL | |
19575 | }; | |
19576 | ||
19577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19578 | if (obj0) { | |
c32bde28 | 19579 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19580 | if (PyErr_Occurred()) SWIG_fail; |
19581 | } | |
19582 | if (obj1) { | |
c32bde28 | 19583 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
19584 | if (PyErr_Occurred()) SWIG_fail; |
19585 | } | |
19586 | { | |
19587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19588 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19589 | ||
19590 | wxPyEndAllowThreads(__tstate); | |
19591 | if (PyErr_Occurred()) SWIG_fail; | |
19592 | } | |
19593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19594 | return resultobj; | |
19595 | fail: | |
19596 | return NULL; | |
19597 | } | |
19598 | ||
19599 | ||
c32bde28 | 19600 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19601 | PyObject *resultobj; |
19602 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19603 | PyObject * obj0 = 0 ; | |
19604 | char *kwnames[] = { | |
19605 | (char *) "self", NULL | |
19606 | }; | |
19607 | ||
19608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19611 | { | |
19612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19613 | delete arg1; | |
19614 | ||
19615 | wxPyEndAllowThreads(__tstate); | |
19616 | if (PyErr_Occurred()) SWIG_fail; | |
19617 | } | |
19618 | Py_INCREF(Py_None); resultobj = Py_None; | |
19619 | return resultobj; | |
19620 | fail: | |
19621 | return NULL; | |
19622 | } | |
19623 | ||
19624 | ||
c32bde28 | 19625 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19626 | PyObject *resultobj; |
19627 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19628 | PyObject *arg2 = (PyObject *) 0 ; | |
19629 | PyObject * obj0 = 0 ; | |
19630 | PyObject * obj1 = 0 ; | |
19631 | char *kwnames[] = { | |
19632 | (char *) "self",(char *) "self", NULL | |
19633 | }; | |
19634 | ||
19635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19638 | arg2 = obj1; | |
19639 | { | |
19640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19641 | (arg1)->SetSelf(arg2); | |
19642 | ||
19643 | wxPyEndAllowThreads(__tstate); | |
19644 | if (PyErr_Occurred()) SWIG_fail; | |
19645 | } | |
19646 | Py_INCREF(Py_None); resultobj = Py_None; | |
19647 | return resultobj; | |
19648 | fail: | |
19649 | return NULL; | |
19650 | } | |
19651 | ||
19652 | ||
c32bde28 | 19653 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19654 | PyObject *resultobj; |
19655 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19656 | PyObject *result; | |
19657 | PyObject * obj0 = 0 ; | |
19658 | char *kwnames[] = { | |
19659 | (char *) "self", NULL | |
19660 | }; | |
19661 | ||
19662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (PyObject *)(arg1)->GetSelf(); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
19672 | resultobj = result; | |
19673 | return resultobj; | |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
c32bde28 | 19679 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19680 | PyObject *obj; |
19681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19682 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19683 | Py_INCREF(obj); | |
19684 | return Py_BuildValue((char *)""); | |
19685 | } | |
c32bde28 | 19686 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19687 | PyObject *resultobj; |
19688 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19689 | int arg2 = (int) 0 ; | |
19690 | wxPyCommandEvent *result; | |
19691 | PyObject * obj0 = 0 ; | |
19692 | PyObject * obj1 = 0 ; | |
19693 | char *kwnames[] = { | |
19694 | (char *) "commandType",(char *) "id", NULL | |
19695 | }; | |
19696 | ||
19697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19698 | if (obj0) { | |
c32bde28 | 19699 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19700 | if (PyErr_Occurred()) SWIG_fail; |
19701 | } | |
19702 | if (obj1) { | |
c32bde28 | 19703 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19704 | if (PyErr_Occurred()) SWIG_fail; |
19705 | } | |
19706 | { | |
19707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19708 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19709 | ||
19710 | wxPyEndAllowThreads(__tstate); | |
19711 | if (PyErr_Occurred()) SWIG_fail; | |
19712 | } | |
19713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19714 | return resultobj; | |
19715 | fail: | |
19716 | return NULL; | |
19717 | } | |
19718 | ||
19719 | ||
c32bde28 | 19720 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19721 | PyObject *resultobj; |
19722 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19723 | PyObject * obj0 = 0 ; | |
19724 | char *kwnames[] = { | |
19725 | (char *) "self", NULL | |
19726 | }; | |
19727 | ||
19728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19731 | { | |
19732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19733 | delete arg1; | |
19734 | ||
19735 | wxPyEndAllowThreads(__tstate); | |
19736 | if (PyErr_Occurred()) SWIG_fail; | |
19737 | } | |
19738 | Py_INCREF(Py_None); resultobj = Py_None; | |
19739 | return resultobj; | |
19740 | fail: | |
19741 | return NULL; | |
19742 | } | |
19743 | ||
19744 | ||
c32bde28 | 19745 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19746 | PyObject *resultobj; |
19747 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19748 | PyObject *arg2 = (PyObject *) 0 ; | |
19749 | PyObject * obj0 = 0 ; | |
19750 | PyObject * obj1 = 0 ; | |
19751 | char *kwnames[] = { | |
19752 | (char *) "self",(char *) "self", NULL | |
19753 | }; | |
19754 | ||
19755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19758 | arg2 = obj1; | |
19759 | { | |
19760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19761 | (arg1)->SetSelf(arg2); | |
19762 | ||
19763 | wxPyEndAllowThreads(__tstate); | |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
19765 | } | |
19766 | Py_INCREF(Py_None); resultobj = Py_None; | |
19767 | return resultobj; | |
19768 | fail: | |
19769 | return NULL; | |
19770 | } | |
19771 | ||
19772 | ||
c32bde28 | 19773 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19774 | PyObject *resultobj; |
19775 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19776 | PyObject *result; | |
19777 | PyObject * obj0 = 0 ; | |
19778 | char *kwnames[] = { | |
19779 | (char *) "self", NULL | |
19780 | }; | |
19781 | ||
19782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19785 | { | |
19786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19787 | result = (PyObject *)(arg1)->GetSelf(); | |
19788 | ||
19789 | wxPyEndAllowThreads(__tstate); | |
19790 | if (PyErr_Occurred()) SWIG_fail; | |
19791 | } | |
19792 | resultobj = result; | |
19793 | return resultobj; | |
19794 | fail: | |
19795 | return NULL; | |
19796 | } | |
19797 | ||
19798 | ||
c32bde28 | 19799 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19800 | PyObject *obj; |
19801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19802 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19803 | Py_INCREF(obj); | |
19804 | return Py_BuildValue((char *)""); | |
19805 | } | |
c32bde28 | 19806 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19807 | PyObject *resultobj; |
19808 | wxPyApp *result; | |
19809 | char *kwnames[] = { | |
19810 | NULL | |
19811 | }; | |
19812 | ||
19813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19814 | { | |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | result = (wxPyApp *)new_wxPyApp(); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
b0f7404b | 19821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
19822 | return resultobj; |
19823 | fail: | |
19824 | return NULL; | |
19825 | } | |
19826 | ||
19827 | ||
c32bde28 | 19828 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19829 | PyObject *resultobj; |
19830 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19831 | PyObject * obj0 = 0 ; | |
19832 | char *kwnames[] = { | |
19833 | (char *) "self", NULL | |
19834 | }; | |
19835 | ||
19836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19839 | { | |
19840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19841 | delete arg1; | |
19842 | ||
19843 | wxPyEndAllowThreads(__tstate); | |
19844 | if (PyErr_Occurred()) SWIG_fail; | |
19845 | } | |
19846 | Py_INCREF(Py_None); resultobj = Py_None; | |
19847 | return resultobj; | |
19848 | fail: | |
19849 | return NULL; | |
19850 | } | |
19851 | ||
19852 | ||
c32bde28 | 19853 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19854 | PyObject *resultobj; |
19855 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19856 | PyObject *arg2 = (PyObject *) 0 ; | |
19857 | PyObject *arg3 = (PyObject *) 0 ; | |
19858 | PyObject * obj0 = 0 ; | |
19859 | PyObject * obj1 = 0 ; | |
19860 | PyObject * obj2 = 0 ; | |
19861 | char *kwnames[] = { | |
19862 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19863 | }; | |
19864 | ||
19865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19868 | arg2 = obj1; | |
19869 | arg3 = obj2; | |
19870 | { | |
19871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19872 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19873 | ||
19874 | wxPyEndAllowThreads(__tstate); | |
19875 | if (PyErr_Occurred()) SWIG_fail; | |
19876 | } | |
19877 | Py_INCREF(Py_None); resultobj = Py_None; | |
19878 | return resultobj; | |
19879 | fail: | |
19880 | return NULL; | |
19881 | } | |
19882 | ||
19883 | ||
c32bde28 | 19884 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19885 | PyObject *resultobj; |
19886 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19887 | wxString result; | |
19888 | PyObject * obj0 = 0 ; | |
19889 | char *kwnames[] = { | |
19890 | (char *) "self", NULL | |
19891 | }; | |
19892 | ||
19893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19896 | { | |
19897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19898 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19899 | ||
19900 | wxPyEndAllowThreads(__tstate); | |
19901 | if (PyErr_Occurred()) SWIG_fail; | |
19902 | } | |
19903 | { | |
19904 | #if wxUSE_UNICODE | |
19905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19906 | #else | |
19907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19908 | #endif | |
19909 | } | |
19910 | return resultobj; | |
19911 | fail: | |
19912 | return NULL; | |
19913 | } | |
19914 | ||
19915 | ||
c32bde28 | 19916 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19917 | PyObject *resultobj; |
19918 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19919 | wxString *arg2 = 0 ; | |
ae8162c8 | 19920 | bool temp2 = false ; |
d55e5bfc RD |
19921 | PyObject * obj0 = 0 ; |
19922 | PyObject * obj1 = 0 ; | |
19923 | char *kwnames[] = { | |
19924 | (char *) "self",(char *) "name", NULL | |
19925 | }; | |
19926 | ||
19927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19930 | { | |
19931 | arg2 = wxString_in_helper(obj1); | |
19932 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19933 | temp2 = true; |
d55e5bfc RD |
19934 | } |
19935 | { | |
19936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19937 | (arg1)->SetAppName((wxString const &)*arg2); | |
19938 | ||
19939 | wxPyEndAllowThreads(__tstate); | |
19940 | if (PyErr_Occurred()) SWIG_fail; | |
19941 | } | |
19942 | Py_INCREF(Py_None); resultobj = Py_None; | |
19943 | { | |
19944 | if (temp2) | |
19945 | delete arg2; | |
19946 | } | |
19947 | return resultobj; | |
19948 | fail: | |
19949 | { | |
19950 | if (temp2) | |
19951 | delete arg2; | |
19952 | } | |
19953 | return NULL; | |
19954 | } | |
19955 | ||
19956 | ||
c32bde28 | 19957 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19958 | PyObject *resultobj; |
19959 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19960 | wxString result; | |
19961 | PyObject * obj0 = 0 ; | |
19962 | char *kwnames[] = { | |
19963 | (char *) "self", NULL | |
19964 | }; | |
19965 | ||
19966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
19967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19969 | { | |
19970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19971 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19972 | ||
19973 | wxPyEndAllowThreads(__tstate); | |
19974 | if (PyErr_Occurred()) SWIG_fail; | |
19975 | } | |
19976 | { | |
19977 | #if wxUSE_UNICODE | |
19978 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19979 | #else | |
19980 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19981 | #endif | |
19982 | } | |
19983 | return resultobj; | |
19984 | fail: | |
19985 | return NULL; | |
19986 | } | |
19987 | ||
19988 | ||
c32bde28 | 19989 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19990 | PyObject *resultobj; |
19991 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19992 | wxString *arg2 = 0 ; | |
ae8162c8 | 19993 | bool temp2 = false ; |
d55e5bfc RD |
19994 | PyObject * obj0 = 0 ; |
19995 | PyObject * obj1 = 0 ; | |
19996 | char *kwnames[] = { | |
19997 | (char *) "self",(char *) "name", NULL | |
19998 | }; | |
19999 | ||
20000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
20001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20003 | { | |
20004 | arg2 = wxString_in_helper(obj1); | |
20005 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20006 | temp2 = true; |
d55e5bfc RD |
20007 | } |
20008 | { | |
20009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20010 | (arg1)->SetClassName((wxString const &)*arg2); | |
20011 | ||
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
20015 | Py_INCREF(Py_None); resultobj = Py_None; | |
20016 | { | |
20017 | if (temp2) | |
20018 | delete arg2; | |
20019 | } | |
20020 | return resultobj; | |
20021 | fail: | |
20022 | { | |
20023 | if (temp2) | |
20024 | delete arg2; | |
20025 | } | |
20026 | return NULL; | |
20027 | } | |
20028 | ||
20029 | ||
c32bde28 | 20030 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20031 | PyObject *resultobj; |
20032 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20033 | wxString *result; | |
20034 | PyObject * obj0 = 0 ; | |
20035 | char *kwnames[] = { | |
20036 | (char *) "self", NULL | |
20037 | }; | |
20038 | ||
20039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
20040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20042 | { | |
20043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20044 | { | |
20045 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20046 | result = (wxString *) &_result_ref; | |
20047 | } | |
20048 | ||
20049 | wxPyEndAllowThreads(__tstate); | |
20050 | if (PyErr_Occurred()) SWIG_fail; | |
20051 | } | |
20052 | { | |
20053 | #if wxUSE_UNICODE | |
20054 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20055 | #else | |
20056 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20057 | #endif | |
20058 | } | |
20059 | return resultobj; | |
20060 | fail: | |
20061 | return NULL; | |
20062 | } | |
20063 | ||
20064 | ||
c32bde28 | 20065 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20066 | PyObject *resultobj; |
20067 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20068 | wxString *arg2 = 0 ; | |
ae8162c8 | 20069 | bool temp2 = false ; |
d55e5bfc RD |
20070 | PyObject * obj0 = 0 ; |
20071 | PyObject * obj1 = 0 ; | |
20072 | char *kwnames[] = { | |
20073 | (char *) "self",(char *) "name", NULL | |
20074 | }; | |
20075 | ||
20076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
20077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20079 | { | |
20080 | arg2 = wxString_in_helper(obj1); | |
20081 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20082 | temp2 = true; |
d55e5bfc RD |
20083 | } |
20084 | { | |
20085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20086 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20087 | ||
20088 | wxPyEndAllowThreads(__tstate); | |
20089 | if (PyErr_Occurred()) SWIG_fail; | |
20090 | } | |
20091 | Py_INCREF(Py_None); resultobj = Py_None; | |
20092 | { | |
20093 | if (temp2) | |
20094 | delete arg2; | |
20095 | } | |
20096 | return resultobj; | |
20097 | fail: | |
20098 | { | |
20099 | if (temp2) | |
20100 | delete arg2; | |
20101 | } | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
c32bde28 | 20106 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20107 | PyObject *resultobj; |
20108 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20109 | wxAppTraits *result; | |
20110 | PyObject * obj0 = 0 ; | |
20111 | char *kwnames[] = { | |
20112 | (char *) "self", NULL | |
20113 | }; | |
20114 | ||
20115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
20116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20118 | { | |
20119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20120 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20121 | ||
20122 | wxPyEndAllowThreads(__tstate); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | } | |
20125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
20126 | return resultobj; | |
20127 | fail: | |
20128 | return NULL; | |
20129 | } | |
20130 | ||
20131 | ||
c32bde28 | 20132 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20133 | PyObject *resultobj; |
20134 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20135 | PyObject * obj0 = 0 ; | |
20136 | char *kwnames[] = { | |
20137 | (char *) "self", NULL | |
20138 | }; | |
20139 | ||
20140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
20141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20143 | { | |
20144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20145 | (arg1)->ProcessPendingEvents(); | |
20146 | ||
20147 | wxPyEndAllowThreads(__tstate); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
20150 | Py_INCREF(Py_None); resultobj = Py_None; | |
20151 | return resultobj; | |
20152 | fail: | |
20153 | return NULL; | |
20154 | } | |
20155 | ||
20156 | ||
c32bde28 | 20157 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20158 | PyObject *resultobj; |
20159 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 20160 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20161 | bool result; |
20162 | PyObject * obj0 = 0 ; | |
20163 | PyObject * obj1 = 0 ; | |
20164 | char *kwnames[] = { | |
20165 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20166 | }; | |
20167 | ||
20168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
20169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20171 | if (obj1) { | |
c32bde28 | 20172 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20173 | if (PyErr_Occurred()) SWIG_fail; |
20174 | } | |
20175 | { | |
20176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20177 | result = (bool)(arg1)->Yield(arg2); | |
20178 | ||
20179 | wxPyEndAllowThreads(__tstate); | |
20180 | if (PyErr_Occurred()) SWIG_fail; | |
20181 | } | |
20182 | { | |
20183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20184 | } | |
20185 | return resultobj; | |
20186 | fail: | |
20187 | return NULL; | |
20188 | } | |
20189 | ||
20190 | ||
c32bde28 | 20191 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20192 | PyObject *resultobj; |
20193 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20194 | PyObject * obj0 = 0 ; | |
20195 | char *kwnames[] = { | |
20196 | (char *) "self", NULL | |
20197 | }; | |
20198 | ||
20199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
20200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20202 | { | |
20203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20204 | (arg1)->WakeUpIdle(); | |
20205 | ||
20206 | wxPyEndAllowThreads(__tstate); | |
20207 | if (PyErr_Occurred()) SWIG_fail; | |
20208 | } | |
20209 | Py_INCREF(Py_None); resultobj = Py_None; | |
20210 | return resultobj; | |
20211 | fail: | |
20212 | return NULL; | |
20213 | } | |
20214 | ||
20215 | ||
c32bde28 | 20216 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20217 | PyObject *resultobj; |
20218 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20219 | int result; | |
20220 | PyObject * obj0 = 0 ; | |
20221 | char *kwnames[] = { | |
20222 | (char *) "self", NULL | |
20223 | }; | |
20224 | ||
20225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20228 | { | |
20229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20230 | result = (int)(arg1)->MainLoop(); | |
20231 | ||
20232 | wxPyEndAllowThreads(__tstate); | |
20233 | if (PyErr_Occurred()) SWIG_fail; | |
20234 | } | |
c32bde28 | 20235 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20236 | return resultobj; |
20237 | fail: | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
c32bde28 | 20242 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20243 | PyObject *resultobj; |
20244 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20245 | PyObject * obj0 = 0 ; | |
20246 | char *kwnames[] = { | |
20247 | (char *) "self", NULL | |
20248 | }; | |
20249 | ||
20250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20253 | { | |
20254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20255 | (arg1)->Exit(); | |
20256 | ||
20257 | wxPyEndAllowThreads(__tstate); | |
20258 | if (PyErr_Occurred()) SWIG_fail; | |
20259 | } | |
20260 | Py_INCREF(Py_None); resultobj = Py_None; | |
20261 | return resultobj; | |
20262 | fail: | |
20263 | return NULL; | |
20264 | } | |
20265 | ||
20266 | ||
c32bde28 | 20267 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20268 | PyObject *resultobj; |
20269 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20270 | PyObject * obj0 = 0 ; | |
20271 | char *kwnames[] = { | |
20272 | (char *) "self", NULL | |
20273 | }; | |
20274 | ||
20275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20278 | { | |
20279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20280 | (arg1)->ExitMainLoop(); | |
20281 | ||
20282 | wxPyEndAllowThreads(__tstate); | |
20283 | if (PyErr_Occurred()) SWIG_fail; | |
20284 | } | |
20285 | Py_INCREF(Py_None); resultobj = Py_None; | |
20286 | return resultobj; | |
20287 | fail: | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
c32bde28 | 20292 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20293 | PyObject *resultobj; |
20294 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20295 | bool result; | |
20296 | PyObject * obj0 = 0 ; | |
20297 | char *kwnames[] = { | |
20298 | (char *) "self", NULL | |
20299 | }; | |
20300 | ||
20301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20304 | { | |
20305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20306 | result = (bool)(arg1)->Pending(); | |
20307 | ||
20308 | wxPyEndAllowThreads(__tstate); | |
20309 | if (PyErr_Occurred()) SWIG_fail; | |
20310 | } | |
20311 | { | |
20312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20313 | } | |
20314 | return resultobj; | |
20315 | fail: | |
20316 | return NULL; | |
20317 | } | |
20318 | ||
20319 | ||
c32bde28 | 20320 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20321 | PyObject *resultobj; |
20322 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20323 | bool result; | |
20324 | PyObject * obj0 = 0 ; | |
20325 | char *kwnames[] = { | |
20326 | (char *) "self", NULL | |
20327 | }; | |
20328 | ||
20329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20332 | { | |
20333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20334 | result = (bool)(arg1)->Dispatch(); | |
20335 | ||
20336 | wxPyEndAllowThreads(__tstate); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | } | |
20339 | { | |
20340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20341 | } | |
20342 | return resultobj; | |
20343 | fail: | |
20344 | return NULL; | |
20345 | } | |
20346 | ||
20347 | ||
c32bde28 | 20348 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20349 | PyObject *resultobj; |
20350 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20351 | bool result; | |
20352 | PyObject * obj0 = 0 ; | |
20353 | char *kwnames[] = { | |
20354 | (char *) "self", NULL | |
20355 | }; | |
20356 | ||
20357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20360 | { | |
20361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20362 | result = (bool)(arg1)->ProcessIdle(); | |
20363 | ||
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
20367 | { | |
20368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20369 | } | |
20370 | return resultobj; | |
20371 | fail: | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
c32bde28 | 20376 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20377 | PyObject *resultobj; |
20378 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20379 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20380 | wxIdleEvent *arg3 = 0 ; | |
20381 | bool result; | |
20382 | PyObject * obj0 = 0 ; | |
20383 | PyObject * obj1 = 0 ; | |
20384 | PyObject * obj2 = 0 ; | |
20385 | char *kwnames[] = { | |
20386 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20387 | }; | |
20388 | ||
20389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20394 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20396 | SWIG_fail; | |
20397 | if (arg3 == NULL) { | |
20398 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20399 | SWIG_fail; | |
20400 | } | |
20401 | { | |
20402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20403 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20404 | ||
20405 | wxPyEndAllowThreads(__tstate); | |
20406 | if (PyErr_Occurred()) SWIG_fail; | |
20407 | } | |
20408 | { | |
20409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20410 | } | |
20411 | return resultobj; | |
20412 | fail: | |
20413 | return NULL; | |
20414 | } | |
20415 | ||
20416 | ||
c32bde28 | 20417 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20418 | PyObject *resultobj; |
20419 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20420 | bool result; | |
20421 | PyObject * obj0 = 0 ; | |
20422 | char *kwnames[] = { | |
20423 | (char *) "self", NULL | |
20424 | }; | |
20425 | ||
20426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20429 | { | |
20430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20431 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20432 | ||
20433 | wxPyEndAllowThreads(__tstate); | |
20434 | if (PyErr_Occurred()) SWIG_fail; | |
20435 | } | |
20436 | { | |
20437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20438 | } | |
20439 | return resultobj; | |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
c32bde28 | 20445 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20446 | PyObject *resultobj; |
20447 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20448 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20449 | PyObject * obj0 = 0 ; | |
20450 | PyObject * obj1 = 0 ; | |
20451 | char *kwnames[] = { | |
20452 | (char *) "self",(char *) "win", NULL | |
20453 | }; | |
20454 | ||
20455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20458 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20460 | { | |
20461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20462 | (arg1)->SetTopWindow(arg2); | |
20463 | ||
20464 | wxPyEndAllowThreads(__tstate); | |
20465 | if (PyErr_Occurred()) SWIG_fail; | |
20466 | } | |
20467 | Py_INCREF(Py_None); resultobj = Py_None; | |
20468 | return resultobj; | |
20469 | fail: | |
20470 | return NULL; | |
20471 | } | |
20472 | ||
20473 | ||
c32bde28 | 20474 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20475 | PyObject *resultobj; |
20476 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20477 | wxWindow *result; | |
20478 | PyObject * obj0 = 0 ; | |
20479 | char *kwnames[] = { | |
20480 | (char *) "self", NULL | |
20481 | }; | |
20482 | ||
20483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20486 | { | |
20487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20488 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20489 | ||
20490 | wxPyEndAllowThreads(__tstate); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
20493 | { | |
412d302d | 20494 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20495 | } |
20496 | return resultobj; | |
20497 | fail: | |
20498 | return NULL; | |
20499 | } | |
20500 | ||
20501 | ||
c32bde28 | 20502 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20503 | PyObject *resultobj; |
20504 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20505 | bool arg2 ; | |
20506 | PyObject * obj0 = 0 ; | |
20507 | PyObject * obj1 = 0 ; | |
20508 | char *kwnames[] = { | |
20509 | (char *) "self",(char *) "flag", NULL | |
20510 | }; | |
20511 | ||
20512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20515 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20516 | if (PyErr_Occurred()) SWIG_fail; |
20517 | { | |
20518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20519 | (arg1)->SetExitOnFrameDelete(arg2); | |
20520 | ||
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
20524 | Py_INCREF(Py_None); resultobj = Py_None; | |
20525 | return resultobj; | |
20526 | fail: | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
c32bde28 | 20531 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20532 | PyObject *resultobj; |
20533 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20534 | bool result; | |
20535 | PyObject * obj0 = 0 ; | |
20536 | char *kwnames[] = { | |
20537 | (char *) "self", NULL | |
20538 | }; | |
20539 | ||
20540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20543 | { | |
20544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20545 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20546 | ||
20547 | wxPyEndAllowThreads(__tstate); | |
20548 | if (PyErr_Occurred()) SWIG_fail; | |
20549 | } | |
20550 | { | |
20551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20552 | } | |
20553 | return resultobj; | |
20554 | fail: | |
20555 | return NULL; | |
20556 | } | |
20557 | ||
20558 | ||
c32bde28 | 20559 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20560 | PyObject *resultobj; |
20561 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20562 | bool arg2 ; | |
20563 | PyObject * obj0 = 0 ; | |
20564 | PyObject * obj1 = 0 ; | |
20565 | char *kwnames[] = { | |
20566 | (char *) "self",(char *) "flag", NULL | |
20567 | }; | |
20568 | ||
20569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20572 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20573 | if (PyErr_Occurred()) SWIG_fail; |
20574 | { | |
20575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20576 | (arg1)->SetUseBestVisual(arg2); | |
20577 | ||
20578 | wxPyEndAllowThreads(__tstate); | |
20579 | if (PyErr_Occurred()) SWIG_fail; | |
20580 | } | |
20581 | Py_INCREF(Py_None); resultobj = Py_None; | |
20582 | return resultobj; | |
20583 | fail: | |
20584 | return NULL; | |
20585 | } | |
20586 | ||
20587 | ||
c32bde28 | 20588 | static PyObject *_wrap_PyApp_GetUseBestVisual(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_GetUseBestVisual",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)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
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 | ||
c32bde28 | 20616 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20617 | PyObject *resultobj; |
20618 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20619 | int arg2 ; | |
20620 | PyObject * obj0 = 0 ; | |
20621 | PyObject * obj1 = 0 ; | |
20622 | char *kwnames[] = { | |
20623 | (char *) "self",(char *) "mode", NULL | |
20624 | }; | |
20625 | ||
20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20629 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20630 | if (PyErr_Occurred()) SWIG_fail; |
20631 | { | |
20632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20633 | (arg1)->SetPrintMode(arg2); | |
20634 | ||
20635 | wxPyEndAllowThreads(__tstate); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
20638 | Py_INCREF(Py_None); resultobj = Py_None; | |
20639 | return resultobj; | |
20640 | fail: | |
20641 | return NULL; | |
20642 | } | |
20643 | ||
20644 | ||
c32bde28 | 20645 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20646 | PyObject *resultobj; |
20647 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20648 | int result; | |
20649 | PyObject * obj0 = 0 ; | |
20650 | char *kwnames[] = { | |
20651 | (char *) "self", NULL | |
20652 | }; | |
20653 | ||
20654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20657 | { | |
20658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20659 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20660 | ||
20661 | wxPyEndAllowThreads(__tstate); | |
20662 | if (PyErr_Occurred()) SWIG_fail; | |
20663 | } | |
c32bde28 | 20664 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20665 | return resultobj; |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
c32bde28 | 20671 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20672 | PyObject *resultobj; |
20673 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20674 | int arg2 ; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | PyObject * obj1 = 0 ; | |
20677 | char *kwnames[] = { | |
20678 | (char *) "self",(char *) "mode", NULL | |
20679 | }; | |
20680 | ||
20681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20684 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20685 | if (PyErr_Occurred()) SWIG_fail; |
20686 | { | |
20687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20688 | (arg1)->SetAssertMode(arg2); | |
20689 | ||
20690 | wxPyEndAllowThreads(__tstate); | |
20691 | if (PyErr_Occurred()) SWIG_fail; | |
20692 | } | |
20693 | Py_INCREF(Py_None); resultobj = Py_None; | |
20694 | return resultobj; | |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
c32bde28 | 20700 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20701 | PyObject *resultobj; |
20702 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20703 | int result; | |
20704 | PyObject * obj0 = 0 ; | |
20705 | char *kwnames[] = { | |
20706 | (char *) "self", NULL | |
20707 | }; | |
20708 | ||
20709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20712 | { | |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | result = (int)(arg1)->GetAssertMode(); | |
20715 | ||
20716 | wxPyEndAllowThreads(__tstate); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
c32bde28 | 20719 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20720 | return resultobj; |
20721 | fail: | |
20722 | return NULL; | |
20723 | } | |
20724 | ||
20725 | ||
c32bde28 | 20726 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20727 | PyObject *resultobj; |
20728 | bool result; | |
20729 | char *kwnames[] = { | |
20730 | NULL | |
20731 | }; | |
20732 | ||
20733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20734 | { | |
20735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20736 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20737 | ||
20738 | wxPyEndAllowThreads(__tstate); | |
20739 | if (PyErr_Occurred()) SWIG_fail; | |
20740 | } | |
20741 | { | |
20742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20743 | } | |
20744 | return resultobj; | |
20745 | fail: | |
20746 | return NULL; | |
20747 | } | |
20748 | ||
20749 | ||
c32bde28 | 20750 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20751 | PyObject *resultobj; |
20752 | long result; | |
20753 | char *kwnames[] = { | |
20754 | NULL | |
20755 | }; | |
20756 | ||
20757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20761 | ||
20762 | wxPyEndAllowThreads(__tstate); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | } | |
c32bde28 | 20765 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20766 | return resultobj; |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
c32bde28 | 20772 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20773 | PyObject *resultobj; |
20774 | long result; | |
20775 | char *kwnames[] = { | |
20776 | NULL | |
20777 | }; | |
20778 | ||
20779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20783 | ||
20784 | wxPyEndAllowThreads(__tstate); | |
20785 | if (PyErr_Occurred()) SWIG_fail; | |
20786 | } | |
c32bde28 | 20787 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20788 | return resultobj; |
20789 | fail: | |
20790 | return NULL; | |
20791 | } | |
20792 | ||
20793 | ||
c32bde28 | 20794 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20795 | PyObject *resultobj; |
20796 | long result; | |
20797 | char *kwnames[] = { | |
20798 | NULL | |
20799 | }; | |
20800 | ||
20801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20802 | { | |
20803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20804 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20805 | ||
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
c32bde28 | 20809 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20810 | return resultobj; |
20811 | fail: | |
20812 | return NULL; | |
20813 | } | |
20814 | ||
20815 | ||
c32bde28 | 20816 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20817 | PyObject *resultobj; |
20818 | wxString result; | |
20819 | char *kwnames[] = { | |
20820 | NULL | |
20821 | }; | |
20822 | ||
20823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20824 | { | |
20825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20826 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20827 | ||
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
20831 | { | |
20832 | #if wxUSE_UNICODE | |
20833 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20834 | #else | |
20835 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20836 | #endif | |
20837 | } | |
20838 | return resultobj; | |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
c32bde28 | 20844 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20845 | PyObject *resultobj; |
20846 | bool arg1 ; | |
20847 | PyObject * obj0 = 0 ; | |
20848 | char *kwnames[] = { | |
20849 | (char *) "val", NULL | |
20850 | }; | |
20851 | ||
20852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c32bde28 | 20853 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
20854 | if (PyErr_Occurred()) SWIG_fail; |
20855 | { | |
20856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20857 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20858 | ||
20859 | wxPyEndAllowThreads(__tstate); | |
20860 | if (PyErr_Occurred()) SWIG_fail; | |
20861 | } | |
20862 | Py_INCREF(Py_None); resultobj = Py_None; | |
20863 | return resultobj; | |
20864 | fail: | |
20865 | return NULL; | |
20866 | } | |
20867 | ||
20868 | ||
c32bde28 | 20869 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20870 | PyObject *resultobj; |
20871 | long arg1 ; | |
20872 | PyObject * obj0 = 0 ; | |
20873 | char *kwnames[] = { | |
20874 | (char *) "val", NULL | |
20875 | }; | |
20876 | ||
20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 20878 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20879 | if (PyErr_Occurred()) SWIG_fail; |
20880 | { | |
20881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20882 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20883 | ||
20884 | wxPyEndAllowThreads(__tstate); | |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
20886 | } | |
20887 | Py_INCREF(Py_None); resultobj = Py_None; | |
20888 | return resultobj; | |
20889 | fail: | |
20890 | return NULL; | |
20891 | } | |
20892 | ||
20893 | ||
c32bde28 | 20894 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20895 | PyObject *resultobj; |
20896 | long arg1 ; | |
20897 | PyObject * obj0 = 0 ; | |
20898 | char *kwnames[] = { | |
20899 | (char *) "val", NULL | |
20900 | }; | |
20901 | ||
20902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 20903 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20904 | if (PyErr_Occurred()) SWIG_fail; |
20905 | { | |
20906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20907 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20908 | ||
20909 | wxPyEndAllowThreads(__tstate); | |
20910 | if (PyErr_Occurred()) SWIG_fail; | |
20911 | } | |
20912 | Py_INCREF(Py_None); resultobj = Py_None; | |
20913 | return resultobj; | |
20914 | fail: | |
20915 | return NULL; | |
20916 | } | |
20917 | ||
20918 | ||
c32bde28 | 20919 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20920 | PyObject *resultobj; |
20921 | long arg1 ; | |
20922 | PyObject * obj0 = 0 ; | |
20923 | char *kwnames[] = { | |
20924 | (char *) "val", NULL | |
20925 | }; | |
20926 | ||
20927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 20928 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20929 | if (PyErr_Occurred()) SWIG_fail; |
20930 | { | |
20931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20932 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20933 | ||
20934 | wxPyEndAllowThreads(__tstate); | |
20935 | if (PyErr_Occurred()) SWIG_fail; | |
20936 | } | |
20937 | Py_INCREF(Py_None); resultobj = Py_None; | |
20938 | return resultobj; | |
20939 | fail: | |
20940 | return NULL; | |
20941 | } | |
20942 | ||
20943 | ||
c32bde28 | 20944 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20945 | PyObject *resultobj; |
20946 | wxString *arg1 = 0 ; | |
ae8162c8 | 20947 | bool temp1 = false ; |
d55e5bfc RD |
20948 | PyObject * obj0 = 0 ; |
20949 | char *kwnames[] = { | |
20950 | (char *) "val", NULL | |
20951 | }; | |
20952 | ||
20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20954 | { | |
20955 | arg1 = wxString_in_helper(obj0); | |
20956 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 20957 | temp1 = true; |
d55e5bfc RD |
20958 | } |
20959 | { | |
20960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20961 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20962 | ||
20963 | wxPyEndAllowThreads(__tstate); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | } | |
20966 | Py_INCREF(Py_None); resultobj = Py_None; | |
20967 | { | |
20968 | if (temp1) | |
20969 | delete arg1; | |
20970 | } | |
20971 | return resultobj; | |
20972 | fail: | |
20973 | { | |
20974 | if (temp1) | |
20975 | delete arg1; | |
20976 | } | |
20977 | return NULL; | |
20978 | } | |
20979 | ||
20980 | ||
c32bde28 | 20981 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20982 | PyObject *resultobj; |
20983 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
20990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | (arg1)->_BootstrapApp(); | |
20995 | ||
20996 | wxPyEndAllowThreads(__tstate); | |
20997 | if (PyErr_Occurred()) SWIG_fail; | |
20998 | } | |
20999 | Py_INCREF(Py_None); resultobj = Py_None; | |
21000 | return resultobj; | |
21001 | fail: | |
21002 | return NULL; | |
21003 | } | |
21004 | ||
21005 | ||
c32bde28 | 21006 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21007 | PyObject *resultobj; |
21008 | int result; | |
21009 | char *kwnames[] = { | |
21010 | NULL | |
21011 | }; | |
21012 | ||
21013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21014 | { | |
21015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21016 | result = (int)wxPyApp::GetComCtl32Version(); | |
21017 | ||
21018 | wxPyEndAllowThreads(__tstate); | |
21019 | if (PyErr_Occurred()) SWIG_fail; | |
21020 | } | |
c32bde28 | 21021 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21022 | return resultobj; |
21023 | fail: | |
21024 | return NULL; | |
21025 | } | |
21026 | ||
21027 | ||
c32bde28 | 21028 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21029 | PyObject *obj; |
21030 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21031 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21032 | Py_INCREF(obj); | |
21033 | return Py_BuildValue((char *)""); | |
21034 | } | |
c32bde28 | 21035 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21036 | PyObject *resultobj; |
21037 | char *kwnames[] = { | |
21038 | NULL | |
21039 | }; | |
21040 | ||
21041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21042 | { | |
21043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21044 | wxExit(); | |
21045 | ||
21046 | wxPyEndAllowThreads(__tstate); | |
21047 | if (PyErr_Occurred()) SWIG_fail; | |
21048 | } | |
21049 | Py_INCREF(Py_None); resultobj = Py_None; | |
21050 | return resultobj; | |
21051 | fail: | |
21052 | return NULL; | |
21053 | } | |
21054 | ||
21055 | ||
c32bde28 | 21056 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21057 | PyObject *resultobj; |
21058 | bool result; | |
21059 | char *kwnames[] = { | |
21060 | NULL | |
21061 | }; | |
21062 | ||
21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21064 | { | |
21065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21066 | result = (bool)wxYield(); | |
21067 | ||
21068 | wxPyEndAllowThreads(__tstate); | |
21069 | if (PyErr_Occurred()) SWIG_fail; | |
21070 | } | |
21071 | { | |
21072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21073 | } | |
21074 | return resultobj; | |
21075 | fail: | |
21076 | return NULL; | |
21077 | } | |
21078 | ||
21079 | ||
c32bde28 | 21080 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21081 | PyObject *resultobj; |
21082 | bool result; | |
21083 | char *kwnames[] = { | |
21084 | NULL | |
21085 | }; | |
21086 | ||
21087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21088 | { | |
21089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21090 | result = (bool)wxYieldIfNeeded(); | |
21091 | ||
21092 | wxPyEndAllowThreads(__tstate); | |
21093 | if (PyErr_Occurred()) SWIG_fail; | |
21094 | } | |
21095 | { | |
21096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21097 | } | |
21098 | return resultobj; | |
21099 | fail: | |
21100 | return NULL; | |
21101 | } | |
21102 | ||
21103 | ||
c32bde28 | 21104 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21105 | PyObject *resultobj; |
21106 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 21107 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21108 | bool result; |
21109 | PyObject * obj0 = 0 ; | |
21110 | PyObject * obj1 = 0 ; | |
21111 | char *kwnames[] = { | |
21112 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21113 | }; | |
21114 | ||
21115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21116 | if (obj0) { | |
21117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21119 | } | |
21120 | if (obj1) { | |
c32bde28 | 21121 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21122 | if (PyErr_Occurred()) SWIG_fail; |
21123 | } | |
21124 | { | |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | result = (bool)wxSafeYield(arg1,arg2); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | { | |
21132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21133 | } | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | return NULL; | |
21137 | } | |
21138 | ||
21139 | ||
c32bde28 | 21140 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21141 | PyObject *resultobj; |
21142 | char *kwnames[] = { | |
21143 | NULL | |
21144 | }; | |
21145 | ||
21146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21147 | { | |
21148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21149 | wxWakeUpIdle(); | |
21150 | ||
21151 | wxPyEndAllowThreads(__tstate); | |
21152 | if (PyErr_Occurred()) SWIG_fail; | |
21153 | } | |
21154 | Py_INCREF(Py_None); resultobj = Py_None; | |
21155 | return resultobj; | |
21156 | fail: | |
21157 | return NULL; | |
21158 | } | |
21159 | ||
21160 | ||
c32bde28 | 21161 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21162 | PyObject *resultobj; |
21163 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21164 | wxEvent *arg2 = 0 ; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | PyObject * obj1 = 0 ; | |
21167 | char *kwnames[] = { | |
21168 | (char *) "dest",(char *) "event", NULL | |
21169 | }; | |
21170 | ||
21171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21174 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21175 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21176 | SWIG_fail; | |
21177 | if (arg2 == NULL) { | |
21178 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21179 | SWIG_fail; | |
21180 | } | |
21181 | { | |
21182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21183 | wxPostEvent(arg1,*arg2); | |
21184 | ||
21185 | wxPyEndAllowThreads(__tstate); | |
21186 | if (PyErr_Occurred()) SWIG_fail; | |
21187 | } | |
21188 | Py_INCREF(Py_None); resultobj = Py_None; | |
21189 | return resultobj; | |
21190 | fail: | |
21191 | return NULL; | |
21192 | } | |
21193 | ||
21194 | ||
c32bde28 | 21195 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21196 | PyObject *resultobj; |
21197 | char *kwnames[] = { | |
21198 | NULL | |
21199 | }; | |
21200 | ||
21201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21202 | { | |
21203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21204 | wxApp_CleanUp(); | |
21205 | ||
21206 | wxPyEndAllowThreads(__tstate); | |
21207 | if (PyErr_Occurred()) SWIG_fail; | |
21208 | } | |
21209 | Py_INCREF(Py_None); resultobj = Py_None; | |
21210 | return resultobj; | |
21211 | fail: | |
21212 | return NULL; | |
21213 | } | |
21214 | ||
21215 | ||
c32bde28 | 21216 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21217 | PyObject *resultobj; |
21218 | wxPyApp *result; | |
21219 | char *kwnames[] = { | |
21220 | NULL | |
21221 | }; | |
21222 | ||
21223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21224 | { | |
21225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 21226 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21227 | |
21228 | wxPyEndAllowThreads(__tstate); | |
21229 | if (PyErr_Occurred()) SWIG_fail; | |
21230 | } | |
21231 | { | |
412d302d | 21232 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21233 | } |
21234 | return resultobj; | |
21235 | fail: | |
21236 | return NULL; | |
21237 | } | |
21238 | ||
21239 | ||
ae8162c8 RD |
21240 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21241 | PyObject *resultobj; | |
21242 | wxEventLoop *result; | |
21243 | char *kwnames[] = { | |
21244 | NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21248 | { | |
21249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21250 | result = (wxEventLoop *)new wxEventLoop(); | |
21251 | ||
21252 | wxPyEndAllowThreads(__tstate); | |
21253 | if (PyErr_Occurred()) SWIG_fail; | |
21254 | } | |
21255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21256 | return resultobj; | |
21257 | fail: | |
21258 | return NULL; | |
21259 | } | |
21260 | ||
21261 | ||
21262 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21263 | PyObject *resultobj; | |
21264 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21265 | PyObject * obj0 = 0 ; | |
21266 | char *kwnames[] = { | |
21267 | (char *) "self", NULL | |
21268 | }; | |
21269 | ||
21270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21273 | { | |
21274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21275 | delete arg1; | |
21276 | ||
21277 | wxPyEndAllowThreads(__tstate); | |
21278 | if (PyErr_Occurred()) SWIG_fail; | |
21279 | } | |
21280 | Py_INCREF(Py_None); resultobj = Py_None; | |
21281 | return resultobj; | |
21282 | fail: | |
21283 | return NULL; | |
21284 | } | |
21285 | ||
21286 | ||
21287 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21288 | PyObject *resultobj; | |
21289 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21290 | int result; | |
21291 | PyObject * obj0 = 0 ; | |
21292 | char *kwnames[] = { | |
21293 | (char *) "self", NULL | |
21294 | }; | |
21295 | ||
21296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21299 | { | |
21300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21301 | result = (int)(arg1)->Run(); | |
21302 | ||
21303 | wxPyEndAllowThreads(__tstate); | |
21304 | if (PyErr_Occurred()) SWIG_fail; | |
21305 | } | |
21306 | resultobj = SWIG_From_int((int)result); | |
21307 | return resultobj; | |
21308 | fail: | |
21309 | return NULL; | |
21310 | } | |
21311 | ||
21312 | ||
21313 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21314 | PyObject *resultobj; | |
21315 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21316 | int arg2 = (int) 0 ; | |
21317 | PyObject * obj0 = 0 ; | |
21318 | PyObject * obj1 = 0 ; | |
21319 | char *kwnames[] = { | |
21320 | (char *) "self",(char *) "rc", NULL | |
21321 | }; | |
21322 | ||
21323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21326 | if (obj1) { | |
21327 | arg2 = (int)SWIG_As_int(obj1); | |
21328 | if (PyErr_Occurred()) SWIG_fail; | |
21329 | } | |
21330 | { | |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | (arg1)->Exit(arg2); | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | Py_INCREF(Py_None); resultobj = Py_None; | |
21338 | return resultobj; | |
21339 | fail: | |
21340 | return NULL; | |
21341 | } | |
21342 | ||
21343 | ||
21344 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21345 | PyObject *resultobj; | |
21346 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21347 | bool result; | |
21348 | PyObject * obj0 = 0 ; | |
21349 | char *kwnames[] = { | |
21350 | (char *) "self", NULL | |
21351 | }; | |
21352 | ||
21353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21356 | { | |
21357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21358 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
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 | ||
21372 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21373 | PyObject *resultobj; | |
21374 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21375 | bool result; | |
21376 | PyObject * obj0 = 0 ; | |
21377 | char *kwnames[] = { | |
21378 | (char *) "self", NULL | |
21379 | }; | |
21380 | ||
21381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21384 | { | |
21385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21386 | result = (bool)(arg1)->Dispatch(); | |
21387 | ||
21388 | wxPyEndAllowThreads(__tstate); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
21390 | } | |
21391 | { | |
21392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21393 | } | |
21394 | return resultobj; | |
21395 | fail: | |
21396 | return NULL; | |
21397 | } | |
21398 | ||
21399 | ||
21400 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21401 | PyObject *resultobj; | |
21402 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21403 | bool result; | |
21404 | PyObject * obj0 = 0 ; | |
21405 | char *kwnames[] = { | |
21406 | (char *) "self", NULL | |
21407 | }; | |
21408 | ||
21409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21412 | { | |
21413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21414 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21415 | ||
21416 | wxPyEndAllowThreads(__tstate); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
21419 | { | |
21420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21421 | } | |
21422 | return resultobj; | |
21423 | fail: | |
21424 | return NULL; | |
21425 | } | |
21426 | ||
21427 | ||
21428 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21429 | PyObject *resultobj; | |
21430 | wxEventLoop *result; | |
21431 | char *kwnames[] = { | |
21432 | NULL | |
21433 | }; | |
21434 | ||
21435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21436 | { | |
21437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21438 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21439 | ||
21440 | wxPyEndAllowThreads(__tstate); | |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
21442 | } | |
21443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21444 | return resultobj; | |
21445 | fail: | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
21450 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21451 | PyObject *resultobj; | |
21452 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | char *kwnames[] = { | |
21455 | (char *) "loop", NULL | |
21456 | }; | |
21457 | ||
21458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21461 | { | |
21462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21463 | wxEventLoop::SetActive(arg1); | |
21464 | ||
21465 | wxPyEndAllowThreads(__tstate); | |
21466 | if (PyErr_Occurred()) SWIG_fail; | |
21467 | } | |
21468 | Py_INCREF(Py_None); resultobj = Py_None; | |
21469 | return resultobj; | |
21470 | fail: | |
21471 | return NULL; | |
21472 | } | |
21473 | ||
21474 | ||
21475 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21476 | PyObject *obj; | |
21477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21478 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21479 | Py_INCREF(obj); | |
21480 | return Py_BuildValue((char *)""); | |
21481 | } | |
c32bde28 | 21482 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21483 | PyObject *resultobj; |
21484 | int arg1 = (int) 0 ; | |
21485 | int arg2 = (int) 0 ; | |
21486 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21487 | wxAcceleratorEntry *result; |
21488 | PyObject * obj0 = 0 ; | |
21489 | PyObject * obj1 = 0 ; | |
21490 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21491 | char *kwnames[] = { |
c24da6d6 | 21492 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21493 | }; |
21494 | ||
c24da6d6 | 21495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21496 | if (obj0) { |
c32bde28 | 21497 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21498 | if (PyErr_Occurred()) SWIG_fail; |
21499 | } | |
21500 | if (obj1) { | |
c32bde28 | 21501 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21502 | if (PyErr_Occurred()) SWIG_fail; |
21503 | } | |
21504 | if (obj2) { | |
c32bde28 | 21505 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21506 | if (PyErr_Occurred()) SWIG_fail; |
21507 | } | |
d55e5bfc RD |
21508 | { |
21509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21510 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21511 | |
21512 | wxPyEndAllowThreads(__tstate); | |
21513 | if (PyErr_Occurred()) SWIG_fail; | |
21514 | } | |
21515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21516 | return resultobj; | |
21517 | fail: | |
21518 | return NULL; | |
21519 | } | |
21520 | ||
21521 | ||
c32bde28 | 21522 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21523 | PyObject *resultobj; |
21524 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21525 | PyObject * obj0 = 0 ; | |
21526 | char *kwnames[] = { | |
21527 | (char *) "self", NULL | |
21528 | }; | |
21529 | ||
21530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21533 | { | |
21534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21535 | delete arg1; | |
21536 | ||
21537 | wxPyEndAllowThreads(__tstate); | |
21538 | if (PyErr_Occurred()) SWIG_fail; | |
21539 | } | |
21540 | Py_INCREF(Py_None); resultobj = Py_None; | |
21541 | return resultobj; | |
21542 | fail: | |
21543 | return NULL; | |
21544 | } | |
21545 | ||
21546 | ||
c32bde28 | 21547 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21548 | PyObject *resultobj; |
21549 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21550 | int arg2 ; | |
21551 | int arg3 ; | |
21552 | int arg4 ; | |
d55e5bfc RD |
21553 | PyObject * obj0 = 0 ; |
21554 | PyObject * obj1 = 0 ; | |
21555 | PyObject * obj2 = 0 ; | |
21556 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21557 | char *kwnames[] = { |
c24da6d6 | 21558 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21559 | }; |
21560 | ||
c24da6d6 | 21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21564 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21565 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21566 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21567 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21568 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21569 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21570 | { |
21571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21572 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21573 | |
21574 | wxPyEndAllowThreads(__tstate); | |
21575 | if (PyErr_Occurred()) SWIG_fail; | |
21576 | } | |
21577 | Py_INCREF(Py_None); resultobj = Py_None; | |
21578 | return resultobj; | |
21579 | fail: | |
21580 | return NULL; | |
21581 | } | |
21582 | ||
21583 | ||
c32bde28 | 21584 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21585 | PyObject *resultobj; |
21586 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21587 | int result; | |
21588 | PyObject * obj0 = 0 ; | |
21589 | char *kwnames[] = { | |
21590 | (char *) "self", NULL | |
21591 | }; | |
21592 | ||
21593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21596 | { | |
21597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21598 | result = (int)(arg1)->GetFlags(); | |
21599 | ||
21600 | wxPyEndAllowThreads(__tstate); | |
21601 | if (PyErr_Occurred()) SWIG_fail; | |
21602 | } | |
c32bde28 | 21603 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21604 | return resultobj; |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
c32bde28 | 21610 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21611 | PyObject *resultobj; |
21612 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21613 | int result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | char *kwnames[] = { | |
21616 | (char *) "self", NULL | |
21617 | }; | |
21618 | ||
21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = (int)(arg1)->GetKeyCode(); | |
21625 | ||
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
c32bde28 | 21629 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21630 | return resultobj; |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
c32bde28 | 21636 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21637 | PyObject *resultobj; |
21638 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21639 | int result; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | char *kwnames[] = { | |
21642 | (char *) "self", NULL | |
21643 | }; | |
21644 | ||
21645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21648 | { | |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21650 | result = (int)(arg1)->GetCommand(); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
c32bde28 | 21655 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21656 | return resultobj; |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
c32bde28 | 21662 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21663 | PyObject *obj; |
21664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21665 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21666 | Py_INCREF(obj); | |
21667 | return Py_BuildValue((char *)""); | |
21668 | } | |
c32bde28 | 21669 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21670 | PyObject *resultobj; |
21671 | int arg1 ; | |
21672 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21673 | wxAcceleratorTable *result; | |
21674 | PyObject * obj0 = 0 ; | |
21675 | char *kwnames[] = { | |
21676 | (char *) "n", NULL | |
21677 | }; | |
21678 | ||
21679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21680 | { | |
21681 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21682 | if (arg2) arg1 = PyList_Size(obj0); | |
21683 | else arg1 = 0; | |
21684 | } | |
21685 | { | |
21686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21687 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21688 | ||
21689 | wxPyEndAllowThreads(__tstate); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | } | |
21692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21693 | { | |
21694 | delete [] arg2; | |
21695 | } | |
21696 | return resultobj; | |
21697 | fail: | |
21698 | { | |
21699 | delete [] arg2; | |
21700 | } | |
21701 | return NULL; | |
21702 | } | |
21703 | ||
21704 | ||
c32bde28 | 21705 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21706 | PyObject *resultobj; |
21707 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21708 | PyObject * obj0 = 0 ; | |
21709 | char *kwnames[] = { | |
21710 | (char *) "self", NULL | |
21711 | }; | |
21712 | ||
21713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21716 | { | |
21717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21718 | delete arg1; | |
21719 | ||
21720 | wxPyEndAllowThreads(__tstate); | |
21721 | if (PyErr_Occurred()) SWIG_fail; | |
21722 | } | |
21723 | Py_INCREF(Py_None); resultobj = Py_None; | |
21724 | return resultobj; | |
21725 | fail: | |
21726 | return NULL; | |
21727 | } | |
21728 | ||
21729 | ||
c32bde28 | 21730 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21731 | PyObject *resultobj; |
21732 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21733 | bool result; | |
21734 | PyObject * obj0 = 0 ; | |
21735 | char *kwnames[] = { | |
21736 | (char *) "self", NULL | |
21737 | }; | |
21738 | ||
21739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21742 | { | |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21745 | ||
21746 | wxPyEndAllowThreads(__tstate); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
21749 | { | |
21750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21751 | } | |
21752 | return resultobj; | |
21753 | fail: | |
21754 | return NULL; | |
21755 | } | |
21756 | ||
21757 | ||
c32bde28 | 21758 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21759 | PyObject *obj; |
21760 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21761 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21762 | Py_INCREF(obj); | |
21763 | return Py_BuildValue((char *)""); | |
21764 | } | |
c32bde28 | 21765 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
21766 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21767 | return 1; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21772 | PyObject *pyobj; | |
21773 | ||
21774 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21775 | return pyobj; | |
21776 | } | |
21777 | ||
21778 | ||
c32bde28 | 21779 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21780 | PyObject *resultobj; |
21781 | wxString *arg1 = 0 ; | |
21782 | wxAcceleratorEntry *result; | |
ae8162c8 | 21783 | bool temp1 = false ; |
d55e5bfc RD |
21784 | PyObject * obj0 = 0 ; |
21785 | char *kwnames[] = { | |
21786 | (char *) "label", NULL | |
21787 | }; | |
21788 | ||
21789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21790 | { | |
21791 | arg1 = wxString_in_helper(obj0); | |
21792 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21793 | temp1 = true; |
d55e5bfc RD |
21794 | } |
21795 | { | |
21796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21797 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21798 | ||
21799 | wxPyEndAllowThreads(__tstate); | |
21800 | if (PyErr_Occurred()) SWIG_fail; | |
21801 | } | |
21802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21803 | { | |
21804 | if (temp1) | |
21805 | delete arg1; | |
21806 | } | |
21807 | return resultobj; | |
21808 | fail: | |
21809 | { | |
21810 | if (temp1) | |
21811 | delete arg1; | |
21812 | } | |
21813 | return NULL; | |
21814 | } | |
21815 | ||
21816 | ||
c32bde28 | 21817 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
21818 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21819 | return 1; | |
21820 | } | |
21821 | ||
21822 | ||
21823 | static PyObject *_wrap_PanelNameStr_get() { | |
21824 | PyObject *pyobj; | |
21825 | ||
21826 | { | |
21827 | #if wxUSE_UNICODE | |
21828 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21829 | #else | |
21830 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21831 | #endif | |
21832 | } | |
21833 | return pyobj; | |
21834 | } | |
21835 | ||
21836 | ||
c32bde28 | 21837 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21838 | PyObject *resultobj; |
21839 | wxVisualAttributes *result; | |
21840 | char *kwnames[] = { | |
21841 | NULL | |
21842 | }; | |
21843 | ||
21844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21845 | { | |
21846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21847 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21848 | ||
21849 | wxPyEndAllowThreads(__tstate); | |
21850 | if (PyErr_Occurred()) SWIG_fail; | |
21851 | } | |
21852 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21853 | return resultobj; | |
21854 | fail: | |
21855 | return NULL; | |
21856 | } | |
21857 | ||
21858 | ||
c32bde28 | 21859 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21860 | PyObject *resultobj; |
21861 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21862 | PyObject * obj0 = 0 ; | |
21863 | char *kwnames[] = { | |
21864 | (char *) "self", NULL | |
21865 | }; | |
21866 | ||
21867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21870 | { | |
21871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21872 | delete_wxVisualAttributes(arg1); | |
21873 | ||
21874 | wxPyEndAllowThreads(__tstate); | |
21875 | if (PyErr_Occurred()) SWIG_fail; | |
21876 | } | |
21877 | Py_INCREF(Py_None); resultobj = Py_None; | |
21878 | return resultobj; | |
21879 | fail: | |
21880 | return NULL; | |
21881 | } | |
21882 | ||
21883 | ||
c32bde28 | 21884 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21885 | PyObject *resultobj; |
21886 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21887 | wxFont *arg2 = (wxFont *) 0 ; | |
21888 | PyObject * obj0 = 0 ; | |
21889 | PyObject * obj1 = 0 ; | |
21890 | char *kwnames[] = { | |
21891 | (char *) "self",(char *) "font", NULL | |
21892 | }; | |
21893 | ||
21894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21897 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21899 | if (arg1) (arg1)->font = *arg2; | |
21900 | ||
21901 | Py_INCREF(Py_None); resultobj = Py_None; | |
21902 | return resultobj; | |
21903 | fail: | |
21904 | return NULL; | |
21905 | } | |
21906 | ||
21907 | ||
c32bde28 | 21908 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21909 | PyObject *resultobj; |
21910 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21911 | wxFont *result; | |
21912 | PyObject * obj0 = 0 ; | |
21913 | char *kwnames[] = { | |
21914 | (char *) "self", NULL | |
21915 | }; | |
21916 | ||
21917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21920 | result = (wxFont *)& ((arg1)->font); | |
21921 | ||
21922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21923 | return resultobj; | |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
c32bde28 | 21929 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21930 | PyObject *resultobj; |
21931 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21932 | wxColour *arg2 = (wxColour *) 0 ; | |
21933 | PyObject * obj0 = 0 ; | |
21934 | PyObject * obj1 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self",(char *) "colFg", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21942 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21944 | if (arg1) (arg1)->colFg = *arg2; | |
21945 | ||
21946 | Py_INCREF(Py_None); resultobj = Py_None; | |
21947 | return resultobj; | |
21948 | fail: | |
21949 | return NULL; | |
21950 | } | |
21951 | ||
21952 | ||
c32bde28 | 21953 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21954 | PyObject *resultobj; |
21955 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21956 | wxColour *result; | |
21957 | PyObject * obj0 = 0 ; | |
21958 | char *kwnames[] = { | |
21959 | (char *) "self", NULL | |
21960 | }; | |
21961 | ||
21962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21965 | result = (wxColour *)& ((arg1)->colFg); | |
21966 | ||
21967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21968 | return resultobj; | |
21969 | fail: | |
21970 | return NULL; | |
21971 | } | |
21972 | ||
21973 | ||
c32bde28 | 21974 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21975 | PyObject *resultobj; |
21976 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21977 | wxColour *arg2 = (wxColour *) 0 ; | |
21978 | PyObject * obj0 = 0 ; | |
21979 | PyObject * obj1 = 0 ; | |
21980 | char *kwnames[] = { | |
21981 | (char *) "self",(char *) "colBg", NULL | |
21982 | }; | |
21983 | ||
21984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21987 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | if (arg1) (arg1)->colBg = *arg2; | |
21990 | ||
21991 | Py_INCREF(Py_None); resultobj = Py_None; | |
21992 | return resultobj; | |
21993 | fail: | |
21994 | return NULL; | |
21995 | } | |
21996 | ||
21997 | ||
c32bde28 | 21998 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21999 | PyObject *resultobj; |
22000 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22001 | wxColour *result; | |
22002 | PyObject * obj0 = 0 ; | |
22003 | char *kwnames[] = { | |
22004 | (char *) "self", NULL | |
22005 | }; | |
22006 | ||
22007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22010 | result = (wxColour *)& ((arg1)->colBg); | |
22011 | ||
22012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22013 | return resultobj; | |
22014 | fail: | |
22015 | return NULL; | |
22016 | } | |
22017 | ||
22018 | ||
c32bde28 | 22019 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22020 | PyObject *obj; |
22021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22022 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22023 | Py_INCREF(obj); | |
22024 | return Py_BuildValue((char *)""); | |
22025 | } | |
c32bde28 | 22026 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22027 | PyObject *resultobj; |
22028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22029 | int arg2 = (int) (int)-1 ; | |
22030 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22031 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22032 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22033 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22034 | long arg5 = (long) 0 ; | |
22035 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22036 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22037 | wxWindow *result; | |
22038 | wxPoint temp3 ; | |
22039 | wxSize temp4 ; | |
ae8162c8 | 22040 | bool temp6 = false ; |
d55e5bfc RD |
22041 | PyObject * obj0 = 0 ; |
22042 | PyObject * obj1 = 0 ; | |
22043 | PyObject * obj2 = 0 ; | |
22044 | PyObject * obj3 = 0 ; | |
22045 | PyObject * obj4 = 0 ; | |
22046 | PyObject * obj5 = 0 ; | |
22047 | char *kwnames[] = { | |
22048 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22049 | }; | |
22050 | ||
22051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22054 | if (obj1) { | |
c32bde28 | 22055 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22056 | if (PyErr_Occurred()) SWIG_fail; |
22057 | } | |
22058 | if (obj2) { | |
22059 | { | |
22060 | arg3 = &temp3; | |
22061 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22062 | } | |
22063 | } | |
22064 | if (obj3) { | |
22065 | { | |
22066 | arg4 = &temp4; | |
22067 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22068 | } | |
22069 | } | |
22070 | if (obj4) { | |
c32bde28 | 22071 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22072 | if (PyErr_Occurred()) SWIG_fail; |
22073 | } | |
22074 | if (obj5) { | |
22075 | { | |
22076 | arg6 = wxString_in_helper(obj5); | |
22077 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 22078 | temp6 = true; |
d55e5bfc RD |
22079 | } |
22080 | } | |
22081 | { | |
0439c23b | 22082 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22084 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22085 | ||
22086 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22087 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22088 | } |
b0f7404b | 22089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22090 | { |
22091 | if (temp6) | |
22092 | delete arg6; | |
22093 | } | |
22094 | return resultobj; | |
22095 | fail: | |
22096 | { | |
22097 | if (temp6) | |
22098 | delete arg6; | |
22099 | } | |
22100 | return NULL; | |
22101 | } | |
22102 | ||
22103 | ||
c32bde28 | 22104 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22105 | PyObject *resultobj; |
22106 | wxWindow *result; | |
22107 | char *kwnames[] = { | |
22108 | NULL | |
22109 | }; | |
22110 | ||
22111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22112 | { | |
0439c23b | 22113 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22115 | result = (wxWindow *)new wxWindow(); | |
22116 | ||
22117 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22118 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22119 | } |
b0f7404b | 22120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22121 | return resultobj; |
22122 | fail: | |
22123 | return NULL; | |
22124 | } | |
22125 | ||
22126 | ||
c32bde28 | 22127 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22128 | PyObject *resultobj; |
22129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22130 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22131 | int arg3 = (int) (int)-1 ; | |
22132 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22133 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22134 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22135 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22136 | long arg6 = (long) 0 ; | |
22137 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22138 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22139 | bool result; | |
22140 | wxPoint temp4 ; | |
22141 | wxSize temp5 ; | |
ae8162c8 | 22142 | bool temp7 = false ; |
d55e5bfc RD |
22143 | PyObject * obj0 = 0 ; |
22144 | PyObject * obj1 = 0 ; | |
22145 | PyObject * obj2 = 0 ; | |
22146 | PyObject * obj3 = 0 ; | |
22147 | PyObject * obj4 = 0 ; | |
22148 | PyObject * obj5 = 0 ; | |
22149 | PyObject * obj6 = 0 ; | |
22150 | char *kwnames[] = { | |
22151 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22152 | }; | |
22153 | ||
22154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22159 | if (obj2) { | |
c32bde28 | 22160 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22161 | if (PyErr_Occurred()) SWIG_fail; |
22162 | } | |
22163 | if (obj3) { | |
22164 | { | |
22165 | arg4 = &temp4; | |
22166 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22167 | } | |
22168 | } | |
22169 | if (obj4) { | |
22170 | { | |
22171 | arg5 = &temp5; | |
22172 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22173 | } | |
22174 | } | |
22175 | if (obj5) { | |
c32bde28 | 22176 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22177 | if (PyErr_Occurred()) SWIG_fail; |
22178 | } | |
22179 | if (obj6) { | |
22180 | { | |
22181 | arg7 = wxString_in_helper(obj6); | |
22182 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 22183 | temp7 = true; |
d55e5bfc RD |
22184 | } |
22185 | } | |
22186 | { | |
22187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22188 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22189 | ||
22190 | wxPyEndAllowThreads(__tstate); | |
22191 | if (PyErr_Occurred()) SWIG_fail; | |
22192 | } | |
22193 | { | |
22194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22195 | } | |
22196 | { | |
22197 | if (temp7) | |
22198 | delete arg7; | |
22199 | } | |
22200 | return resultobj; | |
22201 | fail: | |
22202 | { | |
22203 | if (temp7) | |
22204 | delete arg7; | |
22205 | } | |
22206 | return NULL; | |
22207 | } | |
22208 | ||
22209 | ||
c32bde28 | 22210 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22211 | PyObject *resultobj; |
22212 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 22213 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22214 | bool result; |
22215 | PyObject * obj0 = 0 ; | |
22216 | PyObject * obj1 = 0 ; | |
22217 | char *kwnames[] = { | |
22218 | (char *) "self",(char *) "force", NULL | |
22219 | }; | |
22220 | ||
22221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22224 | if (obj1) { | |
c32bde28 | 22225 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22226 | if (PyErr_Occurred()) SWIG_fail; |
22227 | } | |
22228 | { | |
22229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22230 | result = (bool)(arg1)->Close(arg2); | |
22231 | ||
22232 | wxPyEndAllowThreads(__tstate); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | } | |
22235 | { | |
22236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22237 | } | |
22238 | return resultobj; | |
22239 | fail: | |
22240 | return NULL; | |
22241 | } | |
22242 | ||
22243 | ||
c32bde28 | 22244 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22245 | PyObject *resultobj; |
22246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22247 | bool result; | |
22248 | PyObject * obj0 = 0 ; | |
22249 | char *kwnames[] = { | |
22250 | (char *) "self", NULL | |
22251 | }; | |
22252 | ||
22253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22256 | { | |
22257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22258 | result = (bool)(arg1)->Destroy(); | |
22259 | ||
22260 | wxPyEndAllowThreads(__tstate); | |
22261 | if (PyErr_Occurred()) SWIG_fail; | |
22262 | } | |
22263 | { | |
22264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22265 | } | |
22266 | return resultobj; | |
22267 | fail: | |
22268 | return NULL; | |
22269 | } | |
22270 | ||
22271 | ||
c32bde28 | 22272 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22273 | PyObject *resultobj; |
22274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22275 | bool result; | |
22276 | PyObject * obj0 = 0 ; | |
22277 | char *kwnames[] = { | |
22278 | (char *) "self", NULL | |
22279 | }; | |
22280 | ||
22281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | result = (bool)(arg1)->DestroyChildren(); | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | { | |
22292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22293 | } | |
22294 | return resultobj; | |
22295 | fail: | |
22296 | return NULL; | |
22297 | } | |
22298 | ||
22299 | ||
c32bde28 | 22300 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22301 | PyObject *resultobj; |
22302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22303 | bool result; | |
22304 | PyObject * obj0 = 0 ; | |
22305 | char *kwnames[] = { | |
22306 | (char *) "self", NULL | |
22307 | }; | |
22308 | ||
22309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22312 | { | |
22313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22314 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22315 | ||
22316 | wxPyEndAllowThreads(__tstate); | |
22317 | if (PyErr_Occurred()) SWIG_fail; | |
22318 | } | |
22319 | { | |
22320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22321 | } | |
22322 | return resultobj; | |
22323 | fail: | |
22324 | return NULL; | |
22325 | } | |
22326 | ||
22327 | ||
c32bde28 | 22328 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22329 | PyObject *resultobj; |
22330 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22331 | wxString *arg2 = 0 ; | |
ae8162c8 | 22332 | bool temp2 = false ; |
d55e5bfc RD |
22333 | PyObject * obj0 = 0 ; |
22334 | PyObject * obj1 = 0 ; | |
22335 | char *kwnames[] = { | |
22336 | (char *) "self",(char *) "title", NULL | |
22337 | }; | |
22338 | ||
22339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22342 | { | |
22343 | arg2 = wxString_in_helper(obj1); | |
22344 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22345 | temp2 = true; |
d55e5bfc RD |
22346 | } |
22347 | { | |
22348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22349 | (arg1)->SetTitle((wxString const &)*arg2); | |
22350 | ||
22351 | wxPyEndAllowThreads(__tstate); | |
22352 | if (PyErr_Occurred()) SWIG_fail; | |
22353 | } | |
22354 | Py_INCREF(Py_None); resultobj = Py_None; | |
22355 | { | |
22356 | if (temp2) | |
22357 | delete arg2; | |
22358 | } | |
22359 | return resultobj; | |
22360 | fail: | |
22361 | { | |
22362 | if (temp2) | |
22363 | delete arg2; | |
22364 | } | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
c32bde28 | 22369 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22370 | PyObject *resultobj; |
22371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22372 | wxString result; | |
22373 | PyObject * obj0 = 0 ; | |
22374 | char *kwnames[] = { | |
22375 | (char *) "self", NULL | |
22376 | }; | |
22377 | ||
22378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22381 | { | |
22382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22383 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22384 | ||
22385 | wxPyEndAllowThreads(__tstate); | |
22386 | if (PyErr_Occurred()) SWIG_fail; | |
22387 | } | |
22388 | { | |
22389 | #if wxUSE_UNICODE | |
22390 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22391 | #else | |
22392 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22393 | #endif | |
22394 | } | |
22395 | return resultobj; | |
22396 | fail: | |
22397 | return NULL; | |
22398 | } | |
22399 | ||
22400 | ||
c32bde28 | 22401 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22402 | PyObject *resultobj; |
22403 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22404 | wxString *arg2 = 0 ; | |
ae8162c8 | 22405 | bool temp2 = false ; |
d55e5bfc RD |
22406 | PyObject * obj0 = 0 ; |
22407 | PyObject * obj1 = 0 ; | |
22408 | char *kwnames[] = { | |
22409 | (char *) "self",(char *) "label", NULL | |
22410 | }; | |
22411 | ||
22412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22415 | { | |
22416 | arg2 = wxString_in_helper(obj1); | |
22417 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22418 | temp2 = true; |
d55e5bfc RD |
22419 | } |
22420 | { | |
22421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22422 | (arg1)->SetLabel((wxString const &)*arg2); | |
22423 | ||
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
22427 | Py_INCREF(Py_None); resultobj = Py_None; | |
22428 | { | |
22429 | if (temp2) | |
22430 | delete arg2; | |
22431 | } | |
22432 | return resultobj; | |
22433 | fail: | |
22434 | { | |
22435 | if (temp2) | |
22436 | delete arg2; | |
22437 | } | |
22438 | return NULL; | |
22439 | } | |
22440 | ||
22441 | ||
c32bde28 | 22442 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22443 | PyObject *resultobj; |
22444 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22445 | wxString result; | |
22446 | PyObject * obj0 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "self", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22457 | ||
22458 | wxPyEndAllowThreads(__tstate); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
22461 | { | |
22462 | #if wxUSE_UNICODE | |
22463 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22464 | #else | |
22465 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22466 | #endif | |
22467 | } | |
22468 | return resultobj; | |
22469 | fail: | |
22470 | return NULL; | |
22471 | } | |
22472 | ||
22473 | ||
c32bde28 | 22474 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22475 | PyObject *resultobj; |
22476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22477 | wxString *arg2 = 0 ; | |
ae8162c8 | 22478 | bool temp2 = false ; |
d55e5bfc RD |
22479 | PyObject * obj0 = 0 ; |
22480 | PyObject * obj1 = 0 ; | |
22481 | char *kwnames[] = { | |
22482 | (char *) "self",(char *) "name", NULL | |
22483 | }; | |
22484 | ||
22485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22488 | { | |
22489 | arg2 = wxString_in_helper(obj1); | |
22490 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22491 | temp2 = true; |
d55e5bfc RD |
22492 | } |
22493 | { | |
22494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22495 | (arg1)->SetName((wxString const &)*arg2); | |
22496 | ||
22497 | wxPyEndAllowThreads(__tstate); | |
22498 | if (PyErr_Occurred()) SWIG_fail; | |
22499 | } | |
22500 | Py_INCREF(Py_None); resultobj = Py_None; | |
22501 | { | |
22502 | if (temp2) | |
22503 | delete arg2; | |
22504 | } | |
22505 | return resultobj; | |
22506 | fail: | |
22507 | { | |
22508 | if (temp2) | |
22509 | delete arg2; | |
22510 | } | |
22511 | return NULL; | |
22512 | } | |
22513 | ||
22514 | ||
c32bde28 | 22515 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22516 | PyObject *resultobj; |
22517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22518 | wxString result; | |
22519 | PyObject * obj0 = 0 ; | |
22520 | char *kwnames[] = { | |
22521 | (char *) "self", NULL | |
22522 | }; | |
22523 | ||
22524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22527 | { | |
22528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22529 | result = ((wxWindow const *)arg1)->GetName(); | |
22530 | ||
22531 | wxPyEndAllowThreads(__tstate); | |
22532 | if (PyErr_Occurred()) SWIG_fail; | |
22533 | } | |
22534 | { | |
22535 | #if wxUSE_UNICODE | |
22536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22537 | #else | |
22538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22539 | #endif | |
22540 | } | |
22541 | return resultobj; | |
22542 | fail: | |
22543 | return NULL; | |
22544 | } | |
22545 | ||
22546 | ||
c32bde28 | 22547 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22548 | PyObject *resultobj; |
22549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22550 | int arg2 ; | |
22551 | PyObject * obj0 = 0 ; | |
22552 | PyObject * obj1 = 0 ; | |
22553 | char *kwnames[] = { | |
22554 | (char *) "self",(char *) "variant", NULL | |
22555 | }; | |
22556 | ||
22557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22560 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22561 | if (PyErr_Occurred()) SWIG_fail; |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22565 | ||
22566 | wxPyEndAllowThreads(__tstate); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
22569 | Py_INCREF(Py_None); resultobj = Py_None; | |
22570 | return resultobj; | |
22571 | fail: | |
22572 | return NULL; | |
22573 | } | |
22574 | ||
22575 | ||
c32bde28 | 22576 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22577 | PyObject *resultobj; |
22578 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22579 | int result; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | char *kwnames[] = { | |
22582 | (char *) "self", NULL | |
22583 | }; | |
22584 | ||
22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22588 | { | |
22589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22590 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22591 | ||
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
c32bde28 | 22595 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22596 | return resultobj; |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
c32bde28 | 22602 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22603 | PyObject *resultobj; |
22604 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22605 | int arg2 ; | |
22606 | PyObject * obj0 = 0 ; | |
22607 | PyObject * obj1 = 0 ; | |
22608 | char *kwnames[] = { | |
22609 | (char *) "self",(char *) "winid", NULL | |
22610 | }; | |
22611 | ||
22612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22615 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22616 | if (PyErr_Occurred()) SWIG_fail; |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | (arg1)->SetId(arg2); | |
22620 | ||
22621 | wxPyEndAllowThreads(__tstate); | |
22622 | if (PyErr_Occurred()) SWIG_fail; | |
22623 | } | |
22624 | Py_INCREF(Py_None); resultobj = Py_None; | |
22625 | return resultobj; | |
22626 | fail: | |
22627 | return NULL; | |
22628 | } | |
22629 | ||
22630 | ||
c32bde28 | 22631 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22632 | PyObject *resultobj; |
22633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22634 | int result; | |
22635 | PyObject * obj0 = 0 ; | |
22636 | char *kwnames[] = { | |
22637 | (char *) "self", NULL | |
22638 | }; | |
22639 | ||
22640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22643 | { | |
22644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22645 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22646 | ||
22647 | wxPyEndAllowThreads(__tstate); | |
22648 | if (PyErr_Occurred()) SWIG_fail; | |
22649 | } | |
c32bde28 | 22650 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22651 | return resultobj; |
22652 | fail: | |
22653 | return NULL; | |
22654 | } | |
22655 | ||
22656 | ||
c32bde28 | 22657 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22658 | PyObject *resultobj; |
22659 | int result; | |
22660 | char *kwnames[] = { | |
22661 | NULL | |
22662 | }; | |
22663 | ||
22664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | result = (int)wxWindow::NewControlId(); | |
22668 | ||
22669 | wxPyEndAllowThreads(__tstate); | |
22670 | if (PyErr_Occurred()) SWIG_fail; | |
22671 | } | |
c32bde28 | 22672 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22673 | return resultobj; |
22674 | fail: | |
22675 | return NULL; | |
22676 | } | |
22677 | ||
22678 | ||
c32bde28 | 22679 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22680 | PyObject *resultobj; |
22681 | int arg1 ; | |
22682 | int result; | |
22683 | PyObject * obj0 = 0 ; | |
22684 | char *kwnames[] = { | |
22685 | (char *) "winid", NULL | |
22686 | }; | |
22687 | ||
22688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 22689 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22690 | if (PyErr_Occurred()) SWIG_fail; |
22691 | { | |
22692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22693 | result = (int)wxWindow::NextControlId(arg1); | |
22694 | ||
22695 | wxPyEndAllowThreads(__tstate); | |
22696 | if (PyErr_Occurred()) SWIG_fail; | |
22697 | } | |
c32bde28 | 22698 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22699 | return resultobj; |
22700 | fail: | |
22701 | return NULL; | |
22702 | } | |
22703 | ||
22704 | ||
c32bde28 | 22705 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22706 | PyObject *resultobj; |
22707 | int arg1 ; | |
22708 | int result; | |
22709 | PyObject * obj0 = 0 ; | |
22710 | char *kwnames[] = { | |
22711 | (char *) "winid", NULL | |
22712 | }; | |
22713 | ||
22714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 22715 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22716 | if (PyErr_Occurred()) SWIG_fail; |
22717 | { | |
22718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22719 | result = (int)wxWindow::PrevControlId(arg1); | |
22720 | ||
22721 | wxPyEndAllowThreads(__tstate); | |
22722 | if (PyErr_Occurred()) SWIG_fail; | |
22723 | } | |
c32bde28 | 22724 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22725 | return resultobj; |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
c32bde28 | 22731 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22732 | PyObject *resultobj; |
22733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22734 | wxSize *arg2 = 0 ; | |
22735 | wxSize temp2 ; | |
22736 | PyObject * obj0 = 0 ; | |
22737 | PyObject * obj1 = 0 ; | |
22738 | char *kwnames[] = { | |
22739 | (char *) "self",(char *) "size", NULL | |
22740 | }; | |
22741 | ||
22742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22745 | { | |
22746 | arg2 = &temp2; | |
22747 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22748 | } | |
22749 | { | |
22750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22751 | (arg1)->SetSize((wxSize const &)*arg2); | |
22752 | ||
22753 | wxPyEndAllowThreads(__tstate); | |
22754 | if (PyErr_Occurred()) SWIG_fail; | |
22755 | } | |
22756 | Py_INCREF(Py_None); resultobj = Py_None; | |
22757 | return resultobj; | |
22758 | fail: | |
22759 | return NULL; | |
22760 | } | |
22761 | ||
22762 | ||
c32bde28 | 22763 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22764 | PyObject *resultobj; |
22765 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22766 | int arg2 ; | |
22767 | int arg3 ; | |
22768 | int arg4 ; | |
22769 | int arg5 ; | |
22770 | int arg6 = (int) wxSIZE_AUTO ; | |
22771 | PyObject * obj0 = 0 ; | |
22772 | PyObject * obj1 = 0 ; | |
22773 | PyObject * obj2 = 0 ; | |
22774 | PyObject * obj3 = 0 ; | |
22775 | PyObject * obj4 = 0 ; | |
22776 | PyObject * obj5 = 0 ; | |
22777 | char *kwnames[] = { | |
22778 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22779 | }; | |
22780 | ||
22781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22784 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22785 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22786 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 22787 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22788 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 22789 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22790 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
22791 | if (PyErr_Occurred()) SWIG_fail; |
22792 | if (obj5) { | |
c32bde28 | 22793 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
22794 | if (PyErr_Occurred()) SWIG_fail; |
22795 | } | |
22796 | { | |
22797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22798 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22799 | ||
22800 | wxPyEndAllowThreads(__tstate); | |
22801 | if (PyErr_Occurred()) SWIG_fail; | |
22802 | } | |
22803 | Py_INCREF(Py_None); resultobj = Py_None; | |
22804 | return resultobj; | |
22805 | fail: | |
22806 | return NULL; | |
22807 | } | |
22808 | ||
22809 | ||
c32bde28 | 22810 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22811 | PyObject *resultobj; |
22812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22813 | wxRect *arg2 = 0 ; | |
22814 | int arg3 = (int) wxSIZE_AUTO ; | |
22815 | wxRect temp2 ; | |
22816 | PyObject * obj0 = 0 ; | |
22817 | PyObject * obj1 = 0 ; | |
22818 | PyObject * obj2 = 0 ; | |
22819 | char *kwnames[] = { | |
22820 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22821 | }; | |
22822 | ||
22823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22826 | { | |
22827 | arg2 = &temp2; | |
22828 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22829 | } | |
22830 | if (obj2) { | |
c32bde28 | 22831 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22832 | if (PyErr_Occurred()) SWIG_fail; |
22833 | } | |
22834 | { | |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22836 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22837 | ||
22838 | wxPyEndAllowThreads(__tstate); | |
22839 | if (PyErr_Occurred()) SWIG_fail; | |
22840 | } | |
22841 | Py_INCREF(Py_None); resultobj = Py_None; | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
c32bde28 | 22848 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22849 | PyObject *resultobj; |
22850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22851 | int arg2 ; | |
22852 | int arg3 ; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | PyObject * obj1 = 0 ; | |
22855 | PyObject * obj2 = 0 ; | |
22856 | char *kwnames[] = { | |
22857 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22858 | }; | |
22859 | ||
22860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22863 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22864 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22865 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22866 | if (PyErr_Occurred()) SWIG_fail; |
22867 | { | |
22868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22869 | (arg1)->SetSize(arg2,arg3); | |
22870 | ||
22871 | wxPyEndAllowThreads(__tstate); | |
22872 | if (PyErr_Occurred()) SWIG_fail; | |
22873 | } | |
22874 | Py_INCREF(Py_None); resultobj = Py_None; | |
22875 | return resultobj; | |
22876 | fail: | |
22877 | return NULL; | |
22878 | } | |
22879 | ||
22880 | ||
c32bde28 | 22881 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22882 | PyObject *resultobj; |
22883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22884 | wxPoint *arg2 = 0 ; | |
22885 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22886 | wxPoint temp2 ; | |
22887 | PyObject * obj0 = 0 ; | |
22888 | PyObject * obj1 = 0 ; | |
22889 | PyObject * obj2 = 0 ; | |
22890 | char *kwnames[] = { | |
22891 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22892 | }; | |
22893 | ||
22894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22897 | { | |
22898 | arg2 = &temp2; | |
22899 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22900 | } | |
22901 | if (obj2) { | |
c32bde28 | 22902 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22903 | if (PyErr_Occurred()) SWIG_fail; |
22904 | } | |
22905 | { | |
22906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22907 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22908 | ||
22909 | wxPyEndAllowThreads(__tstate); | |
22910 | if (PyErr_Occurred()) SWIG_fail; | |
22911 | } | |
22912 | Py_INCREF(Py_None); resultobj = Py_None; | |
22913 | return resultobj; | |
22914 | fail: | |
22915 | return NULL; | |
22916 | } | |
22917 | ||
22918 | ||
c32bde28 | 22919 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22920 | PyObject *resultobj; |
22921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22922 | int arg2 ; | |
22923 | int arg3 ; | |
22924 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | PyObject * obj1 = 0 ; | |
22927 | PyObject * obj2 = 0 ; | |
22928 | PyObject * obj3 = 0 ; | |
22929 | char *kwnames[] = { | |
22930 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22931 | }; | |
22932 | ||
22933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22936 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22937 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22938 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22939 | if (PyErr_Occurred()) SWIG_fail; |
22940 | if (obj3) { | |
c32bde28 | 22941 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
22942 | if (PyErr_Occurred()) SWIG_fail; |
22943 | } | |
22944 | { | |
22945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22946 | (arg1)->Move(arg2,arg3,arg4); | |
22947 | ||
22948 | wxPyEndAllowThreads(__tstate); | |
22949 | if (PyErr_Occurred()) SWIG_fail; | |
22950 | } | |
22951 | Py_INCREF(Py_None); resultobj = Py_None; | |
22952 | return resultobj; | |
22953 | fail: | |
22954 | return NULL; | |
22955 | } | |
22956 | ||
22957 | ||
c32bde28 | 22958 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
22959 | PyObject *resultobj; |
22960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22961 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
22962 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
22963 | wxSize temp2 ; | |
22964 | PyObject * obj0 = 0 ; | |
22965 | PyObject * obj1 = 0 ; | |
22966 | char *kwnames[] = { | |
22967 | (char *) "self",(char *) "size", NULL | |
22968 | }; | |
22969 | ||
22970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
22971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22973 | if (obj1) { | |
22974 | { | |
22975 | arg2 = &temp2; | |
22976 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22977 | } | |
22978 | } | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
22982 | ||
22983 | wxPyEndAllowThreads(__tstate); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
22985 | } | |
22986 | Py_INCREF(Py_None); resultobj = Py_None; | |
22987 | return resultobj; | |
22988 | fail: | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
c32bde28 | 22993 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22994 | PyObject *resultobj; |
22995 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | char *kwnames[] = { | |
22998 | (char *) "self", NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23004 | { | |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | (arg1)->Raise(); | |
23007 | ||
23008 | wxPyEndAllowThreads(__tstate); | |
23009 | if (PyErr_Occurred()) SWIG_fail; | |
23010 | } | |
23011 | Py_INCREF(Py_None); resultobj = Py_None; | |
23012 | return resultobj; | |
23013 | fail: | |
23014 | return NULL; | |
23015 | } | |
23016 | ||
23017 | ||
c32bde28 | 23018 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23019 | PyObject *resultobj; |
23020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23021 | PyObject * obj0 = 0 ; | |
23022 | char *kwnames[] = { | |
23023 | (char *) "self", NULL | |
23024 | }; | |
23025 | ||
23026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23029 | { | |
23030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23031 | (arg1)->Lower(); | |
23032 | ||
23033 | wxPyEndAllowThreads(__tstate); | |
23034 | if (PyErr_Occurred()) SWIG_fail; | |
23035 | } | |
23036 | Py_INCREF(Py_None); resultobj = Py_None; | |
23037 | return resultobj; | |
23038 | fail: | |
23039 | return NULL; | |
23040 | } | |
23041 | ||
23042 | ||
c32bde28 | 23043 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23044 | PyObject *resultobj; |
23045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23046 | wxSize *arg2 = 0 ; | |
23047 | wxSize temp2 ; | |
23048 | PyObject * obj0 = 0 ; | |
23049 | PyObject * obj1 = 0 ; | |
23050 | char *kwnames[] = { | |
23051 | (char *) "self",(char *) "size", NULL | |
23052 | }; | |
23053 | ||
23054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23057 | { | |
23058 | arg2 = &temp2; | |
23059 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23060 | } | |
23061 | { | |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23063 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23064 | ||
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | Py_INCREF(Py_None); resultobj = Py_None; | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | return NULL; | |
23072 | } | |
23073 | ||
23074 | ||
c32bde28 | 23075 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23076 | PyObject *resultobj; |
23077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23078 | int arg2 ; | |
23079 | int arg3 ; | |
23080 | PyObject * obj0 = 0 ; | |
23081 | PyObject * obj1 = 0 ; | |
23082 | PyObject * obj2 = 0 ; | |
23083 | char *kwnames[] = { | |
23084 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23085 | }; | |
23086 | ||
23087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23090 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23091 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23092 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23093 | if (PyErr_Occurred()) SWIG_fail; |
23094 | { | |
23095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23096 | (arg1)->SetClientSize(arg2,arg3); | |
23097 | ||
23098 | wxPyEndAllowThreads(__tstate); | |
23099 | if (PyErr_Occurred()) SWIG_fail; | |
23100 | } | |
23101 | Py_INCREF(Py_None); resultobj = Py_None; | |
23102 | return resultobj; | |
23103 | fail: | |
23104 | return NULL; | |
23105 | } | |
23106 | ||
23107 | ||
c32bde28 | 23108 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23109 | PyObject *resultobj; |
23110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23111 | wxRect *arg2 = 0 ; | |
23112 | wxRect temp2 ; | |
23113 | PyObject * obj0 = 0 ; | |
23114 | PyObject * obj1 = 0 ; | |
23115 | char *kwnames[] = { | |
23116 | (char *) "self",(char *) "rect", NULL | |
23117 | }; | |
23118 | ||
23119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23122 | { | |
23123 | arg2 = &temp2; | |
23124 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23125 | } | |
23126 | { | |
23127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23128 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23129 | ||
23130 | wxPyEndAllowThreads(__tstate); | |
23131 | if (PyErr_Occurred()) SWIG_fail; | |
23132 | } | |
23133 | Py_INCREF(Py_None); resultobj = Py_None; | |
23134 | return resultobj; | |
23135 | fail: | |
23136 | return NULL; | |
23137 | } | |
23138 | ||
23139 | ||
c32bde28 | 23140 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23141 | PyObject *resultobj; |
23142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23143 | wxPoint result; | |
23144 | PyObject * obj0 = 0 ; | |
23145 | char *kwnames[] = { | |
23146 | (char *) "self", NULL | |
23147 | }; | |
23148 | ||
23149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23152 | { | |
23153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23154 | result = (arg1)->GetPosition(); | |
23155 | ||
23156 | wxPyEndAllowThreads(__tstate); | |
23157 | if (PyErr_Occurred()) SWIG_fail; | |
23158 | } | |
23159 | { | |
23160 | wxPoint * resultptr; | |
23161 | resultptr = new wxPoint((wxPoint &) result); | |
23162 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23163 | } | |
23164 | return resultobj; | |
23165 | fail: | |
23166 | return NULL; | |
23167 | } | |
23168 | ||
23169 | ||
c32bde28 | 23170 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23171 | PyObject *resultobj; |
23172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23173 | int *arg2 = (int *) 0 ; | |
23174 | int *arg3 = (int *) 0 ; | |
23175 | int temp2 ; | |
c32bde28 | 23176 | int res2 = 0 ; |
d55e5bfc | 23177 | int temp3 ; |
c32bde28 | 23178 | int res3 = 0 ; |
d55e5bfc RD |
23179 | PyObject * obj0 = 0 ; |
23180 | char *kwnames[] = { | |
23181 | (char *) "self", NULL | |
23182 | }; | |
23183 | ||
c32bde28 RD |
23184 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23185 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23189 | { | |
23190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23191 | (arg1)->GetPosition(arg2,arg3); | |
23192 | ||
23193 | wxPyEndAllowThreads(__tstate); | |
23194 | if (PyErr_Occurred()) SWIG_fail; | |
23195 | } | |
23196 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23197 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23198 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23199 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23200 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23201 | return resultobj; |
23202 | fail: | |
23203 | return NULL; | |
23204 | } | |
23205 | ||
23206 | ||
c32bde28 | 23207 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23208 | PyObject *resultobj; |
23209 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23210 | wxSize result; | |
23211 | PyObject * obj0 = 0 ; | |
23212 | char *kwnames[] = { | |
23213 | (char *) "self", NULL | |
23214 | }; | |
23215 | ||
23216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23219 | { | |
23220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23221 | result = ((wxWindow const *)arg1)->GetSize(); | |
23222 | ||
23223 | wxPyEndAllowThreads(__tstate); | |
23224 | if (PyErr_Occurred()) SWIG_fail; | |
23225 | } | |
23226 | { | |
23227 | wxSize * resultptr; | |
23228 | resultptr = new wxSize((wxSize &) result); | |
23229 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23230 | } | |
23231 | return resultobj; | |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
c32bde28 | 23237 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23238 | PyObject *resultobj; |
23239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23240 | int *arg2 = (int *) 0 ; | |
23241 | int *arg3 = (int *) 0 ; | |
23242 | int temp2 ; | |
c32bde28 | 23243 | int res2 = 0 ; |
d55e5bfc | 23244 | int temp3 ; |
c32bde28 | 23245 | int res3 = 0 ; |
d55e5bfc RD |
23246 | PyObject * obj0 = 0 ; |
23247 | char *kwnames[] = { | |
23248 | (char *) "self", NULL | |
23249 | }; | |
23250 | ||
c32bde28 RD |
23251 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23252 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23256 | { | |
23257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23258 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23259 | ||
23260 | wxPyEndAllowThreads(__tstate); | |
23261 | if (PyErr_Occurred()) SWIG_fail; | |
23262 | } | |
23263 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23264 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23265 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23266 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23267 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23268 | return resultobj; |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
c32bde28 | 23274 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23275 | PyObject *resultobj; |
23276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23277 | wxRect result; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | char *kwnames[] = { | |
23280 | (char *) "self", NULL | |
23281 | }; | |
23282 | ||
23283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23286 | { | |
23287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23288 | result = ((wxWindow const *)arg1)->GetRect(); | |
23289 | ||
23290 | wxPyEndAllowThreads(__tstate); | |
23291 | if (PyErr_Occurred()) SWIG_fail; | |
23292 | } | |
23293 | { | |
23294 | wxRect * resultptr; | |
23295 | resultptr = new wxRect((wxRect &) result); | |
23296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23297 | } | |
23298 | return resultobj; | |
23299 | fail: | |
23300 | return NULL; | |
23301 | } | |
23302 | ||
23303 | ||
c32bde28 | 23304 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23305 | PyObject *resultobj; |
23306 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23307 | wxSize result; | |
23308 | PyObject * obj0 = 0 ; | |
23309 | char *kwnames[] = { | |
23310 | (char *) "self", NULL | |
23311 | }; | |
23312 | ||
23313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | { | |
23324 | wxSize * resultptr; | |
23325 | resultptr = new wxSize((wxSize &) result); | |
23326 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23327 | } | |
23328 | return resultobj; | |
23329 | fail: | |
23330 | return NULL; | |
23331 | } | |
23332 | ||
23333 | ||
c32bde28 | 23334 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23335 | PyObject *resultobj; |
23336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23337 | int *arg2 = (int *) 0 ; | |
23338 | int *arg3 = (int *) 0 ; | |
23339 | int temp2 ; | |
c32bde28 | 23340 | int res2 = 0 ; |
d55e5bfc | 23341 | int temp3 ; |
c32bde28 | 23342 | int res3 = 0 ; |
d55e5bfc RD |
23343 | PyObject * obj0 = 0 ; |
23344 | char *kwnames[] = { | |
23345 | (char *) "self", NULL | |
23346 | }; | |
23347 | ||
c32bde28 RD |
23348 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23349 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23353 | { | |
23354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23355 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23356 | ||
23357 | wxPyEndAllowThreads(__tstate); | |
23358 | if (PyErr_Occurred()) SWIG_fail; | |
23359 | } | |
23360 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23361 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23362 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23363 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23364 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23365 | return resultobj; |
23366 | fail: | |
23367 | return NULL; | |
23368 | } | |
23369 | ||
23370 | ||
c32bde28 | 23371 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23372 | PyObject *resultobj; |
23373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23374 | wxPoint result; | |
23375 | PyObject * obj0 = 0 ; | |
23376 | char *kwnames[] = { | |
23377 | (char *) "self", NULL | |
23378 | }; | |
23379 | ||
23380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23383 | { | |
23384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23385 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23386 | ||
23387 | wxPyEndAllowThreads(__tstate); | |
23388 | if (PyErr_Occurred()) SWIG_fail; | |
23389 | } | |
23390 | { | |
23391 | wxPoint * resultptr; | |
23392 | resultptr = new wxPoint((wxPoint &) result); | |
23393 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23394 | } | |
23395 | return resultobj; | |
23396 | fail: | |
23397 | return NULL; | |
23398 | } | |
23399 | ||
23400 | ||
c32bde28 | 23401 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23402 | PyObject *resultobj; |
23403 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23404 | wxRect result; | |
23405 | PyObject * obj0 = 0 ; | |
23406 | char *kwnames[] = { | |
23407 | (char *) "self", NULL | |
23408 | }; | |
23409 | ||
23410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23413 | { | |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
23420 | { | |
23421 | wxRect * resultptr; | |
23422 | resultptr = new wxRect((wxRect &) result); | |
23423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23424 | } | |
23425 | return resultobj; | |
23426 | fail: | |
23427 | return NULL; | |
23428 | } | |
23429 | ||
23430 | ||
c32bde28 | 23431 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23432 | PyObject *resultobj; |
23433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23434 | wxSize result; | |
23435 | PyObject * obj0 = 0 ; | |
23436 | char *kwnames[] = { | |
23437 | (char *) "self", NULL | |
23438 | }; | |
23439 | ||
23440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23443 | { | |
23444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23445 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23446 | ||
23447 | wxPyEndAllowThreads(__tstate); | |
23448 | if (PyErr_Occurred()) SWIG_fail; | |
23449 | } | |
23450 | { | |
23451 | wxSize * resultptr; | |
23452 | resultptr = new wxSize((wxSize &) result); | |
23453 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23454 | } | |
23455 | return resultobj; | |
23456 | fail: | |
23457 | return NULL; | |
23458 | } | |
23459 | ||
23460 | ||
c32bde28 | 23461 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23462 | PyObject *resultobj; |
23463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23464 | int *arg2 = (int *) 0 ; | |
23465 | int *arg3 = (int *) 0 ; | |
23466 | int temp2 ; | |
c32bde28 | 23467 | int res2 = 0 ; |
d55e5bfc | 23468 | int temp3 ; |
c32bde28 | 23469 | int res3 = 0 ; |
d55e5bfc RD |
23470 | PyObject * obj0 = 0 ; |
23471 | char *kwnames[] = { | |
23472 | (char *) "self", NULL | |
23473 | }; | |
23474 | ||
c32bde28 RD |
23475 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23476 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23480 | { | |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23483 | ||
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
23487 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23488 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23489 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23490 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23491 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23492 | return resultobj; |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
c32bde28 | 23498 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23499 | PyObject *resultobj; |
23500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23501 | PyObject * obj0 = 0 ; | |
23502 | char *kwnames[] = { | |
23503 | (char *) "self", NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23509 | { | |
23510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23511 | (arg1)->InvalidateBestSize(); | |
23512 | ||
23513 | wxPyEndAllowThreads(__tstate); | |
23514 | if (PyErr_Occurred()) SWIG_fail; | |
23515 | } | |
23516 | Py_INCREF(Py_None); resultobj = Py_None; | |
23517 | return resultobj; | |
23518 | fail: | |
23519 | return NULL; | |
23520 | } | |
23521 | ||
23522 | ||
c32bde28 | 23523 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23524 | PyObject *resultobj; |
23525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23526 | wxSize result; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | char *kwnames[] = { | |
23529 | (char *) "self", NULL | |
23530 | }; | |
23531 | ||
23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | { | |
23543 | wxSize * resultptr; | |
23544 | resultptr = new wxSize((wxSize &) result); | |
23545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23546 | } | |
23547 | return resultobj; | |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
c32bde28 | 23553 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23554 | PyObject *resultobj; |
23555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23556 | wxSize result; | |
23557 | PyObject * obj0 = 0 ; | |
23558 | char *kwnames[] = { | |
23559 | (char *) "self", NULL | |
23560 | }; | |
23561 | ||
23562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23565 | { | |
23566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23567 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23568 | ||
23569 | wxPyEndAllowThreads(__tstate); | |
23570 | if (PyErr_Occurred()) SWIG_fail; | |
23571 | } | |
23572 | { | |
23573 | wxSize * resultptr; | |
23574 | resultptr = new wxSize((wxSize &) result); | |
23575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23576 | } | |
23577 | return resultobj; | |
23578 | fail: | |
23579 | return NULL; | |
23580 | } | |
23581 | ||
23582 | ||
c32bde28 | 23583 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23584 | PyObject *resultobj; |
23585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23586 | int arg2 = (int) wxBOTH ; | |
23587 | PyObject * obj0 = 0 ; | |
23588 | PyObject * obj1 = 0 ; | |
23589 | char *kwnames[] = { | |
23590 | (char *) "self",(char *) "direction", NULL | |
23591 | }; | |
23592 | ||
23593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23596 | if (obj1) { | |
c32bde28 | 23597 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23598 | if (PyErr_Occurred()) SWIG_fail; |
23599 | } | |
23600 | { | |
23601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23602 | (arg1)->Center(arg2); | |
23603 | ||
23604 | wxPyEndAllowThreads(__tstate); | |
23605 | if (PyErr_Occurred()) SWIG_fail; | |
23606 | } | |
23607 | Py_INCREF(Py_None); resultobj = Py_None; | |
23608 | return resultobj; | |
23609 | fail: | |
23610 | return NULL; | |
23611 | } | |
23612 | ||
23613 | ||
c32bde28 | 23614 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23615 | PyObject *resultobj; |
23616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23617 | int arg2 = (int) wxBOTH ; | |
23618 | PyObject * obj0 = 0 ; | |
23619 | PyObject * obj1 = 0 ; | |
23620 | char *kwnames[] = { | |
23621 | (char *) "self",(char *) "dir", NULL | |
23622 | }; | |
23623 | ||
23624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23627 | if (obj1) { | |
c32bde28 | 23628 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23629 | if (PyErr_Occurred()) SWIG_fail; |
23630 | } | |
23631 | { | |
23632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23633 | (arg1)->CenterOnScreen(arg2); | |
23634 | ||
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | Py_INCREF(Py_None); resultobj = Py_None; | |
23639 | return resultobj; | |
23640 | fail: | |
23641 | return NULL; | |
23642 | } | |
23643 | ||
23644 | ||
c32bde28 | 23645 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23646 | PyObject *resultobj; |
23647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23648 | int arg2 = (int) wxBOTH ; | |
23649 | PyObject * obj0 = 0 ; | |
23650 | PyObject * obj1 = 0 ; | |
23651 | char *kwnames[] = { | |
23652 | (char *) "self",(char *) "dir", NULL | |
23653 | }; | |
23654 | ||
23655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23658 | if (obj1) { | |
c32bde28 | 23659 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23660 | if (PyErr_Occurred()) SWIG_fail; |
23661 | } | |
23662 | { | |
23663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23664 | (arg1)->CenterOnParent(arg2); | |
23665 | ||
23666 | wxPyEndAllowThreads(__tstate); | |
23667 | if (PyErr_Occurred()) SWIG_fail; | |
23668 | } | |
23669 | Py_INCREF(Py_None); resultobj = Py_None; | |
23670 | return resultobj; | |
23671 | fail: | |
23672 | return NULL; | |
23673 | } | |
23674 | ||
23675 | ||
c32bde28 | 23676 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23677 | PyObject *resultobj; |
23678 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23679 | PyObject * obj0 = 0 ; | |
23680 | char *kwnames[] = { | |
23681 | (char *) "self", NULL | |
23682 | }; | |
23683 | ||
23684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | (arg1)->Fit(); | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | Py_INCREF(Py_None); resultobj = Py_None; | |
23695 | return resultobj; | |
23696 | fail: | |
23697 | return NULL; | |
23698 | } | |
23699 | ||
23700 | ||
c32bde28 | 23701 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23702 | PyObject *resultobj; |
23703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23704 | PyObject * obj0 = 0 ; | |
23705 | char *kwnames[] = { | |
23706 | (char *) "self", NULL | |
23707 | }; | |
23708 | ||
23709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
23710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23712 | { | |
23713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23714 | (arg1)->FitInside(); | |
23715 | ||
23716 | wxPyEndAllowThreads(__tstate); | |
23717 | if (PyErr_Occurred()) SWIG_fail; | |
23718 | } | |
23719 | Py_INCREF(Py_None); resultobj = Py_None; | |
23720 | return resultobj; | |
23721 | fail: | |
23722 | return NULL; | |
23723 | } | |
23724 | ||
23725 | ||
c32bde28 | 23726 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23727 | PyObject *resultobj; |
23728 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23729 | int arg2 ; | |
23730 | int arg3 ; | |
23731 | int arg4 = (int) -1 ; | |
23732 | int arg5 = (int) -1 ; | |
23733 | int arg6 = (int) -1 ; | |
23734 | int arg7 = (int) -1 ; | |
23735 | PyObject * obj0 = 0 ; | |
23736 | PyObject * obj1 = 0 ; | |
23737 | PyObject * obj2 = 0 ; | |
23738 | PyObject * obj3 = 0 ; | |
23739 | PyObject * obj4 = 0 ; | |
23740 | PyObject * obj5 = 0 ; | |
23741 | PyObject * obj6 = 0 ; | |
03837c5c RD |
23742 | char *kwnames[] = { |
23743 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23744 | }; | |
d55e5bfc | 23745 | |
03837c5c | 23746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
23747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23749 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23750 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23751 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23752 | if (PyErr_Occurred()) SWIG_fail; |
23753 | if (obj3) { | |
c32bde28 | 23754 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23755 | if (PyErr_Occurred()) SWIG_fail; |
23756 | } | |
23757 | if (obj4) { | |
c32bde28 | 23758 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23759 | if (PyErr_Occurred()) SWIG_fail; |
23760 | } | |
23761 | if (obj5) { | |
c32bde28 | 23762 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23763 | if (PyErr_Occurred()) SWIG_fail; |
23764 | } | |
23765 | if (obj6) { | |
c32bde28 | 23766 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
23767 | if (PyErr_Occurred()) SWIG_fail; |
23768 | } | |
23769 | { | |
23770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23771 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23772 | ||
23773 | wxPyEndAllowThreads(__tstate); | |
23774 | if (PyErr_Occurred()) SWIG_fail; | |
23775 | } | |
23776 | Py_INCREF(Py_None); resultobj = Py_None; | |
23777 | return resultobj; | |
23778 | fail: | |
23779 | return NULL; | |
23780 | } | |
23781 | ||
23782 | ||
c32bde28 | 23783 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23784 | PyObject *resultobj; |
23785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23786 | wxSize *arg2 = 0 ; |
23787 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23788 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
23789 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23790 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23791 | wxSize temp2 ; |
23792 | wxSize temp3 ; | |
03837c5c | 23793 | wxSize temp4 ; |
d55e5bfc RD |
23794 | PyObject * obj0 = 0 ; |
23795 | PyObject * obj1 = 0 ; | |
23796 | PyObject * obj2 = 0 ; | |
03837c5c RD |
23797 | PyObject * obj3 = 0 ; |
23798 | char *kwnames[] = { | |
23799 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23800 | }; | |
d55e5bfc | 23801 | |
03837c5c | 23802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
23803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23805 | { |
23806 | arg2 = &temp2; | |
23807 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23808 | } |
908b74cd RD |
23809 | if (obj2) { |
23810 | { | |
23811 | arg3 = &temp3; | |
23812 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23813 | } | |
d55e5bfc | 23814 | } |
03837c5c RD |
23815 | if (obj3) { |
23816 | { | |
23817 | arg4 = &temp4; | |
23818 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23819 | } | |
23820 | } | |
d55e5bfc RD |
23821 | { |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 23823 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
23824 | |
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
23828 | Py_INCREF(Py_None); resultobj = Py_None; | |
23829 | return resultobj; | |
23830 | fail: | |
23831 | return NULL; | |
23832 | } | |
23833 | ||
23834 | ||
c32bde28 | 23835 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23836 | PyObject *resultobj; |
23837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23838 | int arg2 ; |
23839 | int arg3 ; | |
23840 | int arg4 = (int) -1 ; | |
23841 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
23842 | PyObject * obj0 = 0 ; |
23843 | PyObject * obj1 = 0 ; | |
23844 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23845 | PyObject * obj3 = 0 ; |
23846 | PyObject * obj4 = 0 ; | |
03837c5c RD |
23847 | char *kwnames[] = { |
23848 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
23849 | }; | |
d55e5bfc | 23850 | |
03837c5c | 23851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
23852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23854 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 23855 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23856 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
23857 | if (PyErr_Occurred()) SWIG_fail; |
23858 | if (obj3) { | |
c32bde28 | 23859 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 23860 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 23861 | } |
908b74cd | 23862 | if (obj4) { |
c32bde28 | 23863 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 23864 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23865 | } |
23866 | { | |
23867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23868 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
23869 | |
23870 | wxPyEndAllowThreads(__tstate); | |
23871 | if (PyErr_Occurred()) SWIG_fail; | |
23872 | } | |
23873 | Py_INCREF(Py_None); resultobj = Py_None; | |
23874 | return resultobj; | |
23875 | fail: | |
23876 | return NULL; | |
23877 | } | |
23878 | ||
23879 | ||
c32bde28 | 23880 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
23881 | PyObject *resultobj; |
23882 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23883 | wxSize *arg2 = 0 ; | |
23884 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23885 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23886 | wxSize temp2 ; | |
23887 | wxSize temp3 ; | |
23888 | PyObject * obj0 = 0 ; | |
23889 | PyObject * obj1 = 0 ; | |
23890 | PyObject * obj2 = 0 ; | |
23891 | char *kwnames[] = { | |
23892 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
23893 | }; | |
d55e5bfc | 23894 | |
03837c5c RD |
23895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23898 | { | |
23899 | arg2 = &temp2; | |
23900 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23901 | } |
03837c5c | 23902 | if (obj2) { |
d55e5bfc | 23903 | { |
03837c5c RD |
23904 | arg3 = &temp3; |
23905 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
23906 | } |
23907 | } | |
03837c5c RD |
23908 | { |
23909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23910 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23911 | ||
23912 | wxPyEndAllowThreads(__tstate); | |
23913 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 23914 | } |
03837c5c RD |
23915 | Py_INCREF(Py_None); resultobj = Py_None; |
23916 | return resultobj; | |
23917 | fail: | |
d55e5bfc RD |
23918 | return NULL; |
23919 | } | |
23920 | ||
23921 | ||
c32bde28 | 23922 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23923 | PyObject *resultobj; |
23924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23925 | wxSize result; |
d55e5bfc RD |
23926 | PyObject * obj0 = 0 ; |
23927 | char *kwnames[] = { | |
23928 | (char *) "self", NULL | |
23929 | }; | |
23930 | ||
908b74cd | 23931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23934 | { | |
23935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23936 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
23937 | |
23938 | wxPyEndAllowThreads(__tstate); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
23940 | } | |
908b74cd RD |
23941 | { |
23942 | wxSize * resultptr; | |
23943 | resultptr = new wxSize((wxSize &) result); | |
23944 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23945 | } | |
d55e5bfc RD |
23946 | return resultobj; |
23947 | fail: | |
23948 | return NULL; | |
23949 | } | |
23950 | ||
23951 | ||
c32bde28 | 23952 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23953 | PyObject *resultobj; |
23954 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23955 | wxSize result; |
d55e5bfc RD |
23956 | PyObject * obj0 = 0 ; |
23957 | char *kwnames[] = { | |
23958 | (char *) "self", NULL | |
23959 | }; | |
23960 | ||
908b74cd | 23961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23964 | { | |
23965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23966 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
23967 | |
23968 | wxPyEndAllowThreads(__tstate); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
23970 | } | |
908b74cd RD |
23971 | { |
23972 | wxSize * resultptr; | |
23973 | resultptr = new wxSize((wxSize &) result); | |
23974 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23975 | } | |
d55e5bfc RD |
23976 | return resultobj; |
23977 | fail: | |
23978 | return NULL; | |
23979 | } | |
23980 | ||
23981 | ||
c32bde28 | 23982 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
23983 | PyObject *resultobj; |
23984 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23985 | wxSize *arg2 = 0 ; | |
23986 | wxSize temp2 ; | |
23987 | PyObject * obj0 = 0 ; | |
23988 | PyObject * obj1 = 0 ; | |
23989 | char *kwnames[] = { | |
23990 | (char *) "self",(char *) "minSize", NULL | |
23991 | }; | |
23992 | ||
23993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
23994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23996 | { | |
23997 | arg2 = &temp2; | |
23998 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23999 | } | |
24000 | { | |
24001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24002 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24003 | ||
24004 | wxPyEndAllowThreads(__tstate); | |
24005 | if (PyErr_Occurred()) SWIG_fail; | |
24006 | } | |
24007 | Py_INCREF(Py_None); resultobj = Py_None; | |
24008 | return resultobj; | |
24009 | fail: | |
24010 | return NULL; | |
24011 | } | |
24012 | ||
24013 | ||
c32bde28 | 24014 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24015 | PyObject *resultobj; |
24016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24017 | wxSize *arg2 = 0 ; | |
24018 | wxSize temp2 ; | |
24019 | PyObject * obj0 = 0 ; | |
24020 | PyObject * obj1 = 0 ; | |
24021 | char *kwnames[] = { | |
24022 | (char *) "self",(char *) "maxSize", NULL | |
24023 | }; | |
24024 | ||
24025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24028 | { | |
24029 | arg2 = &temp2; | |
24030 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24031 | } | |
24032 | { | |
24033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24034 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24035 | ||
24036 | wxPyEndAllowThreads(__tstate); | |
24037 | if (PyErr_Occurred()) SWIG_fail; | |
24038 | } | |
24039 | Py_INCREF(Py_None); resultobj = Py_None; | |
24040 | return resultobj; | |
24041 | fail: | |
24042 | return NULL; | |
24043 | } | |
24044 | ||
24045 | ||
c32bde28 | 24046 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24047 | PyObject *resultobj; |
24048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24049 | int result; | |
24050 | PyObject * obj0 = 0 ; | |
24051 | char *kwnames[] = { | |
24052 | (char *) "self", NULL | |
24053 | }; | |
24054 | ||
908b74cd | 24055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24058 | { | |
24059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24060 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24061 | |
24062 | wxPyEndAllowThreads(__tstate); | |
24063 | if (PyErr_Occurred()) SWIG_fail; | |
24064 | } | |
c32bde28 | 24065 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24066 | return resultobj; |
24067 | fail: | |
24068 | return NULL; | |
24069 | } | |
24070 | ||
24071 | ||
c32bde28 | 24072 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24073 | PyObject *resultobj; |
24074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24075 | int result; | |
24076 | PyObject * obj0 = 0 ; | |
24077 | char *kwnames[] = { | |
24078 | (char *) "self", NULL | |
24079 | }; | |
24080 | ||
908b74cd | 24081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24084 | { | |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24086 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24087 | |
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
c32bde28 | 24091 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24092 | return resultobj; |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
c32bde28 | 24098 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24099 | PyObject *resultobj; |
24100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24101 | int result; |
d55e5bfc RD |
24102 | PyObject * obj0 = 0 ; |
24103 | char *kwnames[] = { | |
24104 | (char *) "self", NULL | |
24105 | }; | |
24106 | ||
908b74cd | 24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24110 | { | |
24111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24112 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24113 | |
24114 | wxPyEndAllowThreads(__tstate); | |
24115 | if (PyErr_Occurred()) SWIG_fail; | |
24116 | } | |
c32bde28 | 24117 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24118 | return resultobj; |
24119 | fail: | |
24120 | return NULL; | |
24121 | } | |
24122 | ||
24123 | ||
c32bde28 | 24124 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24125 | PyObject *resultobj; |
24126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24127 | int result; |
d55e5bfc RD |
24128 | PyObject * obj0 = 0 ; |
24129 | char *kwnames[] = { | |
24130 | (char *) "self", NULL | |
24131 | }; | |
24132 | ||
908b74cd | 24133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24136 | { | |
24137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24138 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24139 | |
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
c32bde28 | 24143 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24144 | return resultobj; |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
c32bde28 | 24150 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24151 | PyObject *resultobj; |
24152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24153 | wxSize *arg2 = 0 ; | |
24154 | wxSize temp2 ; | |
24155 | PyObject * obj0 = 0 ; | |
24156 | PyObject * obj1 = 0 ; | |
24157 | char *kwnames[] = { | |
24158 | (char *) "self",(char *) "size", NULL | |
24159 | }; | |
24160 | ||
24161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24164 | { | |
24165 | arg2 = &temp2; | |
24166 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24167 | } | |
24168 | { | |
24169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24170 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24171 | ||
24172 | wxPyEndAllowThreads(__tstate); | |
24173 | if (PyErr_Occurred()) SWIG_fail; | |
24174 | } | |
24175 | Py_INCREF(Py_None); resultobj = Py_None; | |
24176 | return resultobj; | |
24177 | fail: | |
24178 | return NULL; | |
24179 | } | |
24180 | ||
24181 | ||
c32bde28 | 24182 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24183 | PyObject *resultobj; |
24184 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24185 | int arg2 ; | |
24186 | int arg3 ; | |
24187 | PyObject * obj0 = 0 ; | |
24188 | PyObject * obj1 = 0 ; | |
24189 | PyObject * obj2 = 0 ; | |
24190 | char *kwnames[] = { | |
24191 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24192 | }; | |
24193 | ||
24194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24197 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24198 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24199 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24200 | if (PyErr_Occurred()) SWIG_fail; |
24201 | { | |
24202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24203 | (arg1)->SetVirtualSize(arg2,arg3); | |
24204 | ||
24205 | wxPyEndAllowThreads(__tstate); | |
24206 | if (PyErr_Occurred()) SWIG_fail; | |
24207 | } | |
24208 | Py_INCREF(Py_None); resultobj = Py_None; | |
24209 | return resultobj; | |
24210 | fail: | |
24211 | return NULL; | |
24212 | } | |
24213 | ||
24214 | ||
c32bde28 | 24215 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24216 | PyObject *resultobj; |
24217 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24218 | wxSize result; | |
24219 | PyObject * obj0 = 0 ; | |
24220 | char *kwnames[] = { | |
24221 | (char *) "self", NULL | |
24222 | }; | |
24223 | ||
24224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24227 | { | |
24228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24229 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24230 | ||
24231 | wxPyEndAllowThreads(__tstate); | |
24232 | if (PyErr_Occurred()) SWIG_fail; | |
24233 | } | |
24234 | { | |
24235 | wxSize * resultptr; | |
24236 | resultptr = new wxSize((wxSize &) result); | |
24237 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24238 | } | |
24239 | return resultobj; | |
24240 | fail: | |
24241 | return NULL; | |
24242 | } | |
24243 | ||
24244 | ||
c32bde28 | 24245 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24246 | PyObject *resultobj; |
24247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24248 | int *arg2 = (int *) 0 ; | |
24249 | int *arg3 = (int *) 0 ; | |
24250 | int temp2 ; | |
c32bde28 | 24251 | int res2 = 0 ; |
d55e5bfc | 24252 | int temp3 ; |
c32bde28 | 24253 | int res3 = 0 ; |
d55e5bfc RD |
24254 | PyObject * obj0 = 0 ; |
24255 | char *kwnames[] = { | |
24256 | (char *) "self", NULL | |
24257 | }; | |
24258 | ||
c32bde28 RD |
24259 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24260 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24264 | { | |
24265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24266 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24267 | ||
24268 | wxPyEndAllowThreads(__tstate); | |
24269 | if (PyErr_Occurred()) SWIG_fail; | |
24270 | } | |
24271 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
24272 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24273 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24274 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24275 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24276 | return resultobj; |
24277 | fail: | |
24278 | return NULL; | |
24279 | } | |
24280 | ||
24281 | ||
c32bde28 | 24282 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24283 | PyObject *resultobj; |
24284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24285 | wxSize result; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24294 | { | |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24296 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
24299 | if (PyErr_Occurred()) SWIG_fail; | |
24300 | } | |
24301 | { | |
24302 | wxSize * resultptr; | |
24303 | resultptr = new wxSize((wxSize &) result); | |
24304 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24305 | } | |
24306 | return resultobj; | |
24307 | fail: | |
24308 | return NULL; | |
24309 | } | |
24310 | ||
24311 | ||
c32bde28 | 24312 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24313 | PyObject *resultobj; |
24314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24315 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24316 | bool result; |
24317 | PyObject * obj0 = 0 ; | |
24318 | PyObject * obj1 = 0 ; | |
24319 | char *kwnames[] = { | |
24320 | (char *) "self",(char *) "show", NULL | |
24321 | }; | |
24322 | ||
24323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24326 | if (obj1) { | |
c32bde28 | 24327 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24328 | if (PyErr_Occurred()) SWIG_fail; |
24329 | } | |
24330 | { | |
24331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24332 | result = (bool)(arg1)->Show(arg2); | |
24333 | ||
24334 | wxPyEndAllowThreads(__tstate); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | } | |
24337 | { | |
24338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24339 | } | |
24340 | return resultobj; | |
24341 | fail: | |
24342 | return NULL; | |
24343 | } | |
24344 | ||
24345 | ||
c32bde28 | 24346 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24347 | PyObject *resultobj; |
24348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24349 | bool result; | |
24350 | PyObject * obj0 = 0 ; | |
24351 | char *kwnames[] = { | |
24352 | (char *) "self", NULL | |
24353 | }; | |
24354 | ||
24355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
24356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24358 | { | |
24359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24360 | result = (bool)(arg1)->Hide(); | |
24361 | ||
24362 | wxPyEndAllowThreads(__tstate); | |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
24364 | } | |
24365 | { | |
24366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24367 | } | |
24368 | return resultobj; | |
24369 | fail: | |
24370 | return NULL; | |
24371 | } | |
24372 | ||
24373 | ||
c32bde28 | 24374 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24375 | PyObject *resultobj; |
24376 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24377 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24378 | bool result; |
24379 | PyObject * obj0 = 0 ; | |
24380 | PyObject * obj1 = 0 ; | |
24381 | char *kwnames[] = { | |
24382 | (char *) "self",(char *) "enable", NULL | |
24383 | }; | |
24384 | ||
24385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24388 | if (obj1) { | |
c32bde28 | 24389 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24390 | if (PyErr_Occurred()) SWIG_fail; |
24391 | } | |
24392 | { | |
24393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24394 | result = (bool)(arg1)->Enable(arg2); | |
24395 | ||
24396 | wxPyEndAllowThreads(__tstate); | |
24397 | if (PyErr_Occurred()) SWIG_fail; | |
24398 | } | |
24399 | { | |
24400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24401 | } | |
24402 | return resultobj; | |
24403 | fail: | |
24404 | return NULL; | |
24405 | } | |
24406 | ||
24407 | ||
c32bde28 | 24408 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24409 | PyObject *resultobj; |
24410 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24411 | bool result; | |
24412 | PyObject * obj0 = 0 ; | |
24413 | char *kwnames[] = { | |
24414 | (char *) "self", NULL | |
24415 | }; | |
24416 | ||
24417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24420 | { | |
24421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24422 | result = (bool)(arg1)->Disable(); | |
24423 | ||
24424 | wxPyEndAllowThreads(__tstate); | |
24425 | if (PyErr_Occurred()) SWIG_fail; | |
24426 | } | |
24427 | { | |
24428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24429 | } | |
24430 | return resultobj; | |
24431 | fail: | |
24432 | return NULL; | |
24433 | } | |
24434 | ||
24435 | ||
c32bde28 | 24436 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24437 | PyObject *resultobj; |
24438 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24439 | bool result; | |
24440 | PyObject * obj0 = 0 ; | |
24441 | char *kwnames[] = { | |
24442 | (char *) "self", NULL | |
24443 | }; | |
24444 | ||
24445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24448 | { | |
24449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24450 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24451 | ||
24452 | wxPyEndAllowThreads(__tstate); | |
24453 | if (PyErr_Occurred()) SWIG_fail; | |
24454 | } | |
24455 | { | |
24456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24457 | } | |
24458 | return resultobj; | |
24459 | fail: | |
24460 | return NULL; | |
24461 | } | |
24462 | ||
24463 | ||
c32bde28 | 24464 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24465 | PyObject *resultobj; |
24466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24467 | bool result; | |
24468 | PyObject * obj0 = 0 ; | |
24469 | char *kwnames[] = { | |
24470 | (char *) "self", NULL | |
24471 | }; | |
24472 | ||
24473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24476 | { | |
24477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24478 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24479 | ||
24480 | wxPyEndAllowThreads(__tstate); | |
24481 | if (PyErr_Occurred()) SWIG_fail; | |
24482 | } | |
24483 | { | |
24484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24485 | } | |
24486 | return resultobj; | |
24487 | fail: | |
24488 | return NULL; | |
24489 | } | |
24490 | ||
24491 | ||
c32bde28 | 24492 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24493 | PyObject *resultobj; |
24494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24495 | long arg2 ; | |
24496 | PyObject * obj0 = 0 ; | |
24497 | PyObject * obj1 = 0 ; | |
24498 | char *kwnames[] = { | |
24499 | (char *) "self",(char *) "style", NULL | |
24500 | }; | |
24501 | ||
24502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24505 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24506 | if (PyErr_Occurred()) SWIG_fail; |
24507 | { | |
24508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24509 | (arg1)->SetWindowStyleFlag(arg2); | |
24510 | ||
24511 | wxPyEndAllowThreads(__tstate); | |
24512 | if (PyErr_Occurred()) SWIG_fail; | |
24513 | } | |
24514 | Py_INCREF(Py_None); resultobj = Py_None; | |
24515 | return resultobj; | |
24516 | fail: | |
24517 | return NULL; | |
24518 | } | |
24519 | ||
24520 | ||
c32bde28 | 24521 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24522 | PyObject *resultobj; |
24523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24524 | long result; | |
24525 | PyObject * obj0 = 0 ; | |
24526 | char *kwnames[] = { | |
24527 | (char *) "self", NULL | |
24528 | }; | |
24529 | ||
24530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
c32bde28 | 24540 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24541 | return resultobj; |
24542 | fail: | |
24543 | return NULL; | |
24544 | } | |
24545 | ||
24546 | ||
c32bde28 | 24547 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24548 | PyObject *resultobj; |
24549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24550 | int arg2 ; | |
24551 | bool result; | |
24552 | PyObject * obj0 = 0 ; | |
24553 | PyObject * obj1 = 0 ; | |
24554 | char *kwnames[] = { | |
24555 | (char *) "self",(char *) "flag", NULL | |
24556 | }; | |
24557 | ||
24558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24561 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24562 | if (PyErr_Occurred()) SWIG_fail; |
24563 | { | |
24564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24565 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24566 | ||
24567 | wxPyEndAllowThreads(__tstate); | |
24568 | if (PyErr_Occurred()) SWIG_fail; | |
24569 | } | |
24570 | { | |
24571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24572 | } | |
24573 | return resultobj; | |
24574 | fail: | |
24575 | return NULL; | |
24576 | } | |
24577 | ||
24578 | ||
c32bde28 | 24579 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24580 | PyObject *resultobj; |
24581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24582 | bool result; | |
24583 | PyObject * obj0 = 0 ; | |
24584 | char *kwnames[] = { | |
24585 | (char *) "self", NULL | |
24586 | }; | |
24587 | ||
24588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24591 | { | |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24593 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24594 | ||
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24600 | } | |
24601 | return resultobj; | |
24602 | fail: | |
24603 | return NULL; | |
24604 | } | |
24605 | ||
24606 | ||
c32bde28 | 24607 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24608 | PyObject *resultobj; |
24609 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24610 | long arg2 ; | |
24611 | PyObject * obj0 = 0 ; | |
24612 | PyObject * obj1 = 0 ; | |
24613 | char *kwnames[] = { | |
24614 | (char *) "self",(char *) "exStyle", NULL | |
24615 | }; | |
24616 | ||
24617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24620 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24621 | if (PyErr_Occurred()) SWIG_fail; |
24622 | { | |
24623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24624 | (arg1)->SetExtraStyle(arg2); | |
24625 | ||
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | Py_INCREF(Py_None); resultobj = Py_None; | |
24630 | return resultobj; | |
24631 | fail: | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
c32bde28 | 24636 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24637 | PyObject *resultobj; |
24638 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24639 | long result; | |
24640 | PyObject * obj0 = 0 ; | |
24641 | char *kwnames[] = { | |
24642 | (char *) "self", NULL | |
24643 | }; | |
24644 | ||
24645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24648 | { | |
24649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24650 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24651 | ||
24652 | wxPyEndAllowThreads(__tstate); | |
24653 | if (PyErr_Occurred()) SWIG_fail; | |
24654 | } | |
c32bde28 | 24655 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24656 | return resultobj; |
24657 | fail: | |
24658 | return NULL; | |
24659 | } | |
24660 | ||
24661 | ||
c32bde28 | 24662 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24663 | PyObject *resultobj; |
24664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24665 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24666 | PyObject * obj0 = 0 ; |
24667 | PyObject * obj1 = 0 ; | |
24668 | char *kwnames[] = { | |
24669 | (char *) "self",(char *) "modal", NULL | |
24670 | }; | |
24671 | ||
24672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24675 | if (obj1) { | |
c32bde28 | 24676 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24677 | if (PyErr_Occurred()) SWIG_fail; |
24678 | } | |
24679 | { | |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | (arg1)->MakeModal(arg2); | |
24682 | ||
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | Py_INCREF(Py_None); resultobj = Py_None; | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | return NULL; | |
24690 | } | |
24691 | ||
24692 | ||
c32bde28 | 24693 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24694 | PyObject *resultobj; |
24695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24696 | bool arg2 ; | |
24697 | PyObject * obj0 = 0 ; | |
24698 | PyObject * obj1 = 0 ; | |
24699 | char *kwnames[] = { | |
24700 | (char *) "self",(char *) "enableTheme", NULL | |
24701 | }; | |
24702 | ||
24703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24706 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24707 | if (PyErr_Occurred()) SWIG_fail; |
24708 | { | |
24709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24710 | (arg1)->SetThemeEnabled(arg2); | |
24711 | ||
24712 | wxPyEndAllowThreads(__tstate); | |
24713 | if (PyErr_Occurred()) SWIG_fail; | |
24714 | } | |
24715 | Py_INCREF(Py_None); resultobj = Py_None; | |
24716 | return resultobj; | |
24717 | fail: | |
24718 | return NULL; | |
24719 | } | |
24720 | ||
24721 | ||
c32bde28 | 24722 | static PyObject *_wrap_Window_GetThemeEnabled(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_GetThemeEnabled",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)((wxWindow const *)arg1)->GetThemeEnabled(); | |
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 | ||
c32bde28 | 24750 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24751 | PyObject *resultobj; |
24752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24753 | PyObject * obj0 = 0 ; | |
24754 | char *kwnames[] = { | |
24755 | (char *) "self", NULL | |
24756 | }; | |
24757 | ||
24758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24761 | { | |
24762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24763 | (arg1)->SetFocus(); | |
24764 | ||
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
24768 | Py_INCREF(Py_None); resultobj = Py_None; | |
24769 | return resultobj; | |
24770 | fail: | |
24771 | return NULL; | |
24772 | } | |
24773 | ||
24774 | ||
c32bde28 | 24775 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24776 | PyObject *resultobj; |
24777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24778 | PyObject * obj0 = 0 ; | |
24779 | char *kwnames[] = { | |
24780 | (char *) "self", NULL | |
24781 | }; | |
24782 | ||
24783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24786 | { | |
24787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24788 | (arg1)->SetFocusFromKbd(); | |
24789 | ||
24790 | wxPyEndAllowThreads(__tstate); | |
24791 | if (PyErr_Occurred()) SWIG_fail; | |
24792 | } | |
24793 | Py_INCREF(Py_None); resultobj = Py_None; | |
24794 | return resultobj; | |
24795 | fail: | |
24796 | return NULL; | |
24797 | } | |
24798 | ||
24799 | ||
c32bde28 | 24800 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24801 | PyObject *resultobj; |
24802 | wxWindow *result; | |
24803 | char *kwnames[] = { | |
24804 | NULL | |
24805 | }; | |
24806 | ||
24807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24808 | { | |
0439c23b | 24809 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24811 | result = (wxWindow *)wxWindow::FindFocus(); | |
24812 | ||
24813 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24814 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24815 | } |
24816 | { | |
412d302d | 24817 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24818 | } |
24819 | return resultobj; | |
24820 | fail: | |
24821 | return NULL; | |
24822 | } | |
24823 | ||
24824 | ||
c32bde28 | 24825 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24826 | PyObject *resultobj; |
24827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24828 | bool result; | |
24829 | PyObject * obj0 = 0 ; | |
24830 | char *kwnames[] = { | |
24831 | (char *) "self", NULL | |
24832 | }; | |
24833 | ||
24834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24837 | { | |
24838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24839 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24840 | ||
24841 | wxPyEndAllowThreads(__tstate); | |
24842 | if (PyErr_Occurred()) SWIG_fail; | |
24843 | } | |
24844 | { | |
24845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24846 | } | |
24847 | return resultobj; | |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
c32bde28 | 24853 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24854 | PyObject *resultobj; |
24855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24856 | bool result; | |
24857 | PyObject * obj0 = 0 ; | |
24858 | char *kwnames[] = { | |
24859 | (char *) "self", NULL | |
24860 | }; | |
24861 | ||
24862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24865 | { | |
24866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24867 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24868 | ||
24869 | wxPyEndAllowThreads(__tstate); | |
24870 | if (PyErr_Occurred()) SWIG_fail; | |
24871 | } | |
24872 | { | |
24873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24874 | } | |
24875 | return resultobj; | |
24876 | fail: | |
24877 | return NULL; | |
24878 | } | |
24879 | ||
24880 | ||
c32bde28 | 24881 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24882 | PyObject *resultobj; |
24883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24884 | wxWindow *result; | |
24885 | PyObject * obj0 = 0 ; | |
24886 | char *kwnames[] = { | |
24887 | (char *) "self", NULL | |
24888 | }; | |
24889 | ||
24890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24893 | { | |
24894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24895 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24896 | ||
24897 | wxPyEndAllowThreads(__tstate); | |
24898 | if (PyErr_Occurred()) SWIG_fail; | |
24899 | } | |
24900 | { | |
412d302d | 24901 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24902 | } |
24903 | return resultobj; | |
24904 | fail: | |
24905 | return NULL; | |
24906 | } | |
24907 | ||
24908 | ||
c32bde28 | 24909 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24910 | PyObject *resultobj; |
24911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24913 | wxWindow *result; | |
24914 | PyObject * obj0 = 0 ; | |
24915 | PyObject * obj1 = 0 ; | |
24916 | char *kwnames[] = { | |
24917 | (char *) "self",(char *) "child", NULL | |
24918 | }; | |
24919 | ||
24920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24925 | { | |
24926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24927 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24928 | ||
24929 | wxPyEndAllowThreads(__tstate); | |
24930 | if (PyErr_Occurred()) SWIG_fail; | |
24931 | } | |
24932 | { | |
412d302d | 24933 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24934 | } |
24935 | return resultobj; | |
24936 | fail: | |
24937 | return NULL; | |
24938 | } | |
24939 | ||
24940 | ||
c32bde28 | 24941 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24942 | PyObject *resultobj; |
24943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24945 | PyObject * obj0 = 0 ; | |
24946 | PyObject * obj1 = 0 ; | |
24947 | char *kwnames[] = { | |
24948 | (char *) "self",(char *) "win", NULL | |
24949 | }; | |
24950 | ||
24951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24956 | { | |
24957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24958 | (arg1)->SetTmpDefaultItem(arg2); | |
24959 | ||
24960 | wxPyEndAllowThreads(__tstate); | |
24961 | if (PyErr_Occurred()) SWIG_fail; | |
24962 | } | |
24963 | Py_INCREF(Py_None); resultobj = Py_None; | |
24964 | return resultobj; | |
24965 | fail: | |
24966 | return NULL; | |
24967 | } | |
24968 | ||
24969 | ||
c32bde28 | 24970 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24971 | PyObject *resultobj; |
24972 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24973 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
24974 | bool result; | |
24975 | PyObject * obj0 = 0 ; | |
24976 | PyObject * obj1 = 0 ; | |
24977 | char *kwnames[] = { | |
24978 | (char *) "self",(char *) "flags", NULL | |
24979 | }; | |
24980 | ||
24981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
24982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24984 | if (obj1) { | |
c32bde28 | 24985 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
24986 | if (PyErr_Occurred()) SWIG_fail; |
24987 | } | |
24988 | { | |
24989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24990 | result = (bool)(arg1)->Navigate(arg2); | |
24991 | ||
24992 | wxPyEndAllowThreads(__tstate); | |
24993 | if (PyErr_Occurred()) SWIG_fail; | |
24994 | } | |
24995 | { | |
24996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24997 | } | |
24998 | return resultobj; | |
24999 | fail: | |
25000 | return NULL; | |
25001 | } | |
25002 | ||
25003 | ||
c32bde28 | 25004 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25005 | PyObject *resultobj; |
25006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25007 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25008 | PyObject * obj0 = 0 ; | |
25009 | PyObject * obj1 = 0 ; | |
25010 | char *kwnames[] = { | |
25011 | (char *) "self",(char *) "win", NULL | |
25012 | }; | |
25013 | ||
25014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25019 | { | |
25020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25021 | (arg1)->MoveAfterInTabOrder(arg2); | |
25022 | ||
25023 | wxPyEndAllowThreads(__tstate); | |
25024 | if (PyErr_Occurred()) SWIG_fail; | |
25025 | } | |
25026 | Py_INCREF(Py_None); resultobj = Py_None; | |
25027 | return resultobj; | |
25028 | fail: | |
25029 | return NULL; | |
25030 | } | |
25031 | ||
25032 | ||
c32bde28 | 25033 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25034 | PyObject *resultobj; |
25035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25036 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25037 | PyObject * obj0 = 0 ; | |
25038 | PyObject * obj1 = 0 ; | |
25039 | char *kwnames[] = { | |
25040 | (char *) "self",(char *) "win", NULL | |
25041 | }; | |
25042 | ||
25043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25048 | { | |
25049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25050 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25051 | ||
25052 | wxPyEndAllowThreads(__tstate); | |
25053 | if (PyErr_Occurred()) SWIG_fail; | |
25054 | } | |
25055 | Py_INCREF(Py_None); resultobj = Py_None; | |
25056 | return resultobj; | |
25057 | fail: | |
25058 | return NULL; | |
25059 | } | |
25060 | ||
25061 | ||
c32bde28 | 25062 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25063 | PyObject *resultobj; |
25064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25065 | PyObject *result; | |
25066 | PyObject * obj0 = 0 ; | |
25067 | char *kwnames[] = { | |
25068 | (char *) "self", NULL | |
25069 | }; | |
25070 | ||
25071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25074 | { | |
25075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25076 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25077 | ||
25078 | wxPyEndAllowThreads(__tstate); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
25081 | resultobj = result; | |
25082 | return resultobj; | |
25083 | fail: | |
25084 | return NULL; | |
25085 | } | |
25086 | ||
25087 | ||
c32bde28 | 25088 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25089 | PyObject *resultobj; |
25090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25091 | wxWindow *result; | |
25092 | PyObject * obj0 = 0 ; | |
25093 | char *kwnames[] = { | |
25094 | (char *) "self", NULL | |
25095 | }; | |
25096 | ||
25097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25100 | { | |
25101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25102 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
25107 | { | |
412d302d | 25108 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25109 | } |
25110 | return resultobj; | |
25111 | fail: | |
25112 | return NULL; | |
25113 | } | |
25114 | ||
25115 | ||
c32bde28 | 25116 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25117 | PyObject *resultobj; |
25118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25119 | wxWindow *result; | |
25120 | PyObject * obj0 = 0 ; | |
25121 | char *kwnames[] = { | |
25122 | (char *) "self", NULL | |
25123 | }; | |
25124 | ||
25125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25128 | { | |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
25135 | { | |
412d302d | 25136 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25137 | } |
25138 | return resultobj; | |
25139 | fail: | |
25140 | return NULL; | |
25141 | } | |
25142 | ||
25143 | ||
c32bde28 | 25144 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25145 | PyObject *resultobj; |
25146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25147 | bool result; | |
25148 | PyObject * obj0 = 0 ; | |
25149 | char *kwnames[] = { | |
25150 | (char *) "self", NULL | |
25151 | }; | |
25152 | ||
25153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25156 | { | |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25159 | ||
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | { | |
25164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25165 | } | |
25166 | return resultobj; | |
25167 | fail: | |
25168 | return NULL; | |
25169 | } | |
25170 | ||
25171 | ||
c32bde28 | 25172 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25173 | PyObject *resultobj; |
25174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25176 | bool result; | |
25177 | PyObject * obj0 = 0 ; | |
25178 | PyObject * obj1 = 0 ; | |
25179 | char *kwnames[] = { | |
25180 | (char *) "self",(char *) "newParent", NULL | |
25181 | }; | |
25182 | ||
25183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25188 | { | |
25189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25190 | result = (bool)(arg1)->Reparent(arg2); | |
25191 | ||
25192 | wxPyEndAllowThreads(__tstate); | |
25193 | if (PyErr_Occurred()) SWIG_fail; | |
25194 | } | |
25195 | { | |
25196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25197 | } | |
25198 | return resultobj; | |
25199 | fail: | |
25200 | return NULL; | |
25201 | } | |
25202 | ||
25203 | ||
c32bde28 | 25204 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25205 | PyObject *resultobj; |
25206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25207 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25208 | PyObject * obj0 = 0 ; | |
25209 | PyObject * obj1 = 0 ; | |
25210 | char *kwnames[] = { | |
25211 | (char *) "self",(char *) "child", NULL | |
25212 | }; | |
25213 | ||
25214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25219 | { | |
25220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25221 | (arg1)->AddChild(arg2); | |
25222 | ||
25223 | wxPyEndAllowThreads(__tstate); | |
25224 | if (PyErr_Occurred()) SWIG_fail; | |
25225 | } | |
25226 | Py_INCREF(Py_None); resultobj = Py_None; | |
25227 | return resultobj; | |
25228 | fail: | |
25229 | return NULL; | |
25230 | } | |
25231 | ||
25232 | ||
c32bde28 | 25233 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25234 | PyObject *resultobj; |
25235 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25236 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25237 | PyObject * obj0 = 0 ; | |
25238 | PyObject * obj1 = 0 ; | |
25239 | char *kwnames[] = { | |
25240 | (char *) "self",(char *) "child", NULL | |
25241 | }; | |
25242 | ||
25243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25248 | { | |
25249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25250 | (arg1)->RemoveChild(arg2); | |
25251 | ||
25252 | wxPyEndAllowThreads(__tstate); | |
25253 | if (PyErr_Occurred()) SWIG_fail; | |
25254 | } | |
25255 | Py_INCREF(Py_None); resultobj = Py_None; | |
25256 | return resultobj; | |
25257 | fail: | |
25258 | return NULL; | |
25259 | } | |
25260 | ||
25261 | ||
c32bde28 | 25262 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25263 | PyObject *resultobj; |
25264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25265 | long arg2 ; | |
25266 | wxWindow *result; | |
25267 | PyObject * obj0 = 0 ; | |
25268 | PyObject * obj1 = 0 ; | |
25269 | char *kwnames[] = { | |
25270 | (char *) "self",(char *) "winid", NULL | |
25271 | }; | |
25272 | ||
25273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25276 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25277 | if (PyErr_Occurred()) SWIG_fail; |
25278 | { | |
25279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25280 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25281 | ||
25282 | wxPyEndAllowThreads(__tstate); | |
25283 | if (PyErr_Occurred()) SWIG_fail; | |
25284 | } | |
25285 | { | |
412d302d | 25286 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25287 | } |
25288 | return resultobj; | |
25289 | fail: | |
25290 | return NULL; | |
25291 | } | |
25292 | ||
25293 | ||
c32bde28 | 25294 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25295 | PyObject *resultobj; |
25296 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25297 | wxString *arg2 = 0 ; | |
25298 | wxWindow *result; | |
ae8162c8 | 25299 | bool temp2 = false ; |
d55e5bfc RD |
25300 | PyObject * obj0 = 0 ; |
25301 | PyObject * obj1 = 0 ; | |
25302 | char *kwnames[] = { | |
25303 | (char *) "self",(char *) "name", NULL | |
25304 | }; | |
25305 | ||
25306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25309 | { | |
25310 | arg2 = wxString_in_helper(obj1); | |
25311 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25312 | temp2 = true; |
d55e5bfc RD |
25313 | } |
25314 | { | |
25315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25316 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25317 | ||
25318 | wxPyEndAllowThreads(__tstate); | |
25319 | if (PyErr_Occurred()) SWIG_fail; | |
25320 | } | |
25321 | { | |
412d302d | 25322 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25323 | } |
25324 | { | |
25325 | if (temp2) | |
25326 | delete arg2; | |
25327 | } | |
25328 | return resultobj; | |
25329 | fail: | |
25330 | { | |
25331 | if (temp2) | |
25332 | delete arg2; | |
25333 | } | |
25334 | return NULL; | |
25335 | } | |
25336 | ||
25337 | ||
c32bde28 | 25338 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25339 | PyObject *resultobj; |
25340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25341 | wxEvtHandler *result; | |
25342 | PyObject * obj0 = 0 ; | |
25343 | char *kwnames[] = { | |
25344 | (char *) "self", NULL | |
25345 | }; | |
25346 | ||
25347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25350 | { | |
25351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25352 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25353 | ||
25354 | wxPyEndAllowThreads(__tstate); | |
25355 | if (PyErr_Occurred()) SWIG_fail; | |
25356 | } | |
25357 | { | |
412d302d | 25358 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25359 | } |
25360 | return resultobj; | |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
c32bde28 | 25366 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25367 | PyObject *resultobj; |
25368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25369 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25370 | PyObject * obj0 = 0 ; | |
25371 | PyObject * obj1 = 0 ; | |
25372 | char *kwnames[] = { | |
25373 | (char *) "self",(char *) "handler", NULL | |
25374 | }; | |
25375 | ||
25376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25381 | { | |
25382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25383 | (arg1)->SetEventHandler(arg2); | |
25384 | ||
25385 | wxPyEndAllowThreads(__tstate); | |
25386 | if (PyErr_Occurred()) SWIG_fail; | |
25387 | } | |
25388 | Py_INCREF(Py_None); resultobj = Py_None; | |
25389 | return resultobj; | |
25390 | fail: | |
25391 | return NULL; | |
25392 | } | |
25393 | ||
25394 | ||
c32bde28 | 25395 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25396 | PyObject *resultobj; |
25397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25398 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25399 | PyObject * obj0 = 0 ; | |
25400 | PyObject * obj1 = 0 ; | |
25401 | char *kwnames[] = { | |
25402 | (char *) "self",(char *) "handler", NULL | |
25403 | }; | |
25404 | ||
25405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25410 | { | |
25411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25412 | (arg1)->PushEventHandler(arg2); | |
25413 | ||
25414 | wxPyEndAllowThreads(__tstate); | |
25415 | if (PyErr_Occurred()) SWIG_fail; | |
25416 | } | |
25417 | Py_INCREF(Py_None); resultobj = Py_None; | |
25418 | return resultobj; | |
25419 | fail: | |
25420 | return NULL; | |
25421 | } | |
25422 | ||
25423 | ||
c32bde28 | 25424 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25425 | PyObject *resultobj; |
25426 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25427 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25428 | wxEvtHandler *result; |
25429 | PyObject * obj0 = 0 ; | |
25430 | PyObject * obj1 = 0 ; | |
25431 | char *kwnames[] = { | |
25432 | (char *) "self",(char *) "deleteHandler", NULL | |
25433 | }; | |
25434 | ||
25435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25438 | if (obj1) { | |
c32bde28 | 25439 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25440 | if (PyErr_Occurred()) SWIG_fail; |
25441 | } | |
25442 | { | |
25443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25444 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
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 | ||
c32bde28 | 25458 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25459 | PyObject *resultobj; |
25460 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25461 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25462 | bool result; | |
25463 | PyObject * obj0 = 0 ; | |
25464 | PyObject * obj1 = 0 ; | |
25465 | char *kwnames[] = { | |
25466 | (char *) "self",(char *) "handler", NULL | |
25467 | }; | |
25468 | ||
25469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25474 | { | |
25475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25476 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25477 | ||
25478 | wxPyEndAllowThreads(__tstate); | |
25479 | if (PyErr_Occurred()) SWIG_fail; | |
25480 | } | |
25481 | { | |
25482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25483 | } | |
25484 | return resultobj; | |
25485 | fail: | |
25486 | return NULL; | |
25487 | } | |
25488 | ||
25489 | ||
c32bde28 | 25490 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25491 | PyObject *resultobj; |
25492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25493 | wxValidator *arg2 = 0 ; | |
25494 | PyObject * obj0 = 0 ; | |
25495 | PyObject * obj1 = 0 ; | |
25496 | char *kwnames[] = { | |
25497 | (char *) "self",(char *) "validator", NULL | |
25498 | }; | |
25499 | ||
25500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25505 | SWIG_fail; | |
25506 | if (arg2 == NULL) { | |
25507 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25508 | SWIG_fail; | |
25509 | } | |
25510 | { | |
25511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25512 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25513 | ||
25514 | wxPyEndAllowThreads(__tstate); | |
25515 | if (PyErr_Occurred()) SWIG_fail; | |
25516 | } | |
25517 | Py_INCREF(Py_None); resultobj = Py_None; | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | return NULL; | |
25521 | } | |
25522 | ||
25523 | ||
c32bde28 | 25524 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25525 | PyObject *resultobj; |
25526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25527 | wxValidator *result; | |
25528 | PyObject * obj0 = 0 ; | |
25529 | char *kwnames[] = { | |
25530 | (char *) "self", NULL | |
25531 | }; | |
25532 | ||
25533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25536 | { | |
25537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25538 | result = (wxValidator *)(arg1)->GetValidator(); | |
25539 | ||
25540 | wxPyEndAllowThreads(__tstate); | |
25541 | if (PyErr_Occurred()) SWIG_fail; | |
25542 | } | |
25543 | { | |
412d302d | 25544 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25545 | } |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
c32bde28 | 25552 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25553 | PyObject *resultobj; |
25554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25555 | bool result; | |
25556 | PyObject * obj0 = 0 ; | |
25557 | char *kwnames[] = { | |
25558 | (char *) "self", NULL | |
25559 | }; | |
25560 | ||
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25564 | { | |
25565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25566 | result = (bool)(arg1)->Validate(); | |
25567 | ||
25568 | wxPyEndAllowThreads(__tstate); | |
25569 | if (PyErr_Occurred()) SWIG_fail; | |
25570 | } | |
25571 | { | |
25572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25573 | } | |
25574 | return resultobj; | |
25575 | fail: | |
25576 | return NULL; | |
25577 | } | |
25578 | ||
25579 | ||
c32bde28 | 25580 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25581 | PyObject *resultobj; |
25582 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25583 | bool result; | |
25584 | PyObject * obj0 = 0 ; | |
25585 | char *kwnames[] = { | |
25586 | (char *) "self", NULL | |
25587 | }; | |
25588 | ||
25589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25592 | { | |
25593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25594 | result = (bool)(arg1)->TransferDataToWindow(); | |
25595 | ||
25596 | wxPyEndAllowThreads(__tstate); | |
25597 | if (PyErr_Occurred()) SWIG_fail; | |
25598 | } | |
25599 | { | |
25600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25601 | } | |
25602 | return resultobj; | |
25603 | fail: | |
25604 | return NULL; | |
25605 | } | |
25606 | ||
25607 | ||
c32bde28 | 25608 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25609 | PyObject *resultobj; |
25610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25611 | bool result; | |
25612 | PyObject * obj0 = 0 ; | |
25613 | char *kwnames[] = { | |
25614 | (char *) "self", NULL | |
25615 | }; | |
25616 | ||
25617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25620 | { | |
25621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25622 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25623 | ||
25624 | wxPyEndAllowThreads(__tstate); | |
25625 | if (PyErr_Occurred()) SWIG_fail; | |
25626 | } | |
25627 | { | |
25628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25629 | } | |
25630 | return resultobj; | |
25631 | fail: | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
c32bde28 | 25636 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25637 | PyObject *resultobj; |
25638 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25639 | PyObject * obj0 = 0 ; | |
25640 | char *kwnames[] = { | |
25641 | (char *) "self", NULL | |
25642 | }; | |
25643 | ||
25644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25647 | { | |
25648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25649 | (arg1)->InitDialog(); | |
25650 | ||
25651 | wxPyEndAllowThreads(__tstate); | |
25652 | if (PyErr_Occurred()) SWIG_fail; | |
25653 | } | |
25654 | Py_INCREF(Py_None); resultobj = Py_None; | |
25655 | return resultobj; | |
25656 | fail: | |
25657 | return NULL; | |
25658 | } | |
25659 | ||
25660 | ||
c32bde28 | 25661 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25662 | PyObject *resultobj; |
25663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25664 | wxAcceleratorTable *arg2 = 0 ; | |
25665 | PyObject * obj0 = 0 ; | |
25666 | PyObject * obj1 = 0 ; | |
25667 | char *kwnames[] = { | |
25668 | (char *) "self",(char *) "accel", NULL | |
25669 | }; | |
25670 | ||
25671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25675 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25676 | SWIG_fail; | |
25677 | if (arg2 == NULL) { | |
25678 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25679 | SWIG_fail; | |
25680 | } | |
25681 | { | |
25682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25683 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25684 | ||
25685 | wxPyEndAllowThreads(__tstate); | |
25686 | if (PyErr_Occurred()) SWIG_fail; | |
25687 | } | |
25688 | Py_INCREF(Py_None); resultobj = Py_None; | |
25689 | return resultobj; | |
25690 | fail: | |
25691 | return NULL; | |
25692 | } | |
25693 | ||
25694 | ||
c32bde28 | 25695 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25696 | PyObject *resultobj; |
25697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25698 | wxAcceleratorTable *result; | |
25699 | PyObject * obj0 = 0 ; | |
25700 | char *kwnames[] = { | |
25701 | (char *) "self", NULL | |
25702 | }; | |
25703 | ||
25704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
25705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25707 | { | |
25708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25709 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25710 | ||
25711 | wxPyEndAllowThreads(__tstate); | |
25712 | if (PyErr_Occurred()) SWIG_fail; | |
25713 | } | |
25714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
25715 | return resultobj; | |
25716 | fail: | |
25717 | return NULL; | |
25718 | } | |
25719 | ||
25720 | ||
c32bde28 | 25721 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25722 | PyObject *resultobj; |
25723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25724 | int arg2 ; | |
25725 | int arg3 ; | |
25726 | int arg4 ; | |
25727 | bool result; | |
25728 | PyObject * obj0 = 0 ; | |
25729 | PyObject * obj1 = 0 ; | |
25730 | PyObject * obj2 = 0 ; | |
25731 | PyObject * obj3 = 0 ; | |
25732 | char *kwnames[] = { | |
25733 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25734 | }; | |
25735 | ||
25736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25739 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 25740 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25741 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 25742 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25743 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
25744 | if (PyErr_Occurred()) SWIG_fail; |
25745 | { | |
25746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25747 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25748 | ||
25749 | wxPyEndAllowThreads(__tstate); | |
25750 | if (PyErr_Occurred()) SWIG_fail; | |
25751 | } | |
25752 | { | |
25753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25754 | } | |
25755 | return resultobj; | |
25756 | fail: | |
25757 | return NULL; | |
25758 | } | |
25759 | ||
25760 | ||
c32bde28 | 25761 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25762 | PyObject *resultobj; |
25763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25764 | int arg2 ; | |
25765 | bool result; | |
25766 | PyObject * obj0 = 0 ; | |
25767 | PyObject * obj1 = 0 ; | |
25768 | char *kwnames[] = { | |
25769 | (char *) "self",(char *) "hotkeyId", NULL | |
25770 | }; | |
25771 | ||
25772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25775 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25776 | if (PyErr_Occurred()) SWIG_fail; |
25777 | { | |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25779 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25780 | ||
25781 | wxPyEndAllowThreads(__tstate); | |
25782 | if (PyErr_Occurred()) SWIG_fail; | |
25783 | } | |
25784 | { | |
25785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25786 | } | |
25787 | return resultobj; | |
25788 | fail: | |
25789 | return NULL; | |
25790 | } | |
25791 | ||
25792 | ||
c32bde28 | 25793 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25794 | PyObject *resultobj; |
25795 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25796 | wxPoint *arg2 = 0 ; | |
25797 | wxPoint result; | |
25798 | wxPoint temp2 ; | |
25799 | PyObject * obj0 = 0 ; | |
25800 | PyObject * obj1 = 0 ; | |
25801 | char *kwnames[] = { | |
25802 | (char *) "self",(char *) "pt", NULL | |
25803 | }; | |
25804 | ||
25805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25808 | { | |
25809 | arg2 = &temp2; | |
25810 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25811 | } | |
25812 | { | |
25813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25814 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25815 | ||
25816 | wxPyEndAllowThreads(__tstate); | |
25817 | if (PyErr_Occurred()) SWIG_fail; | |
25818 | } | |
25819 | { | |
25820 | wxPoint * resultptr; | |
25821 | resultptr = new wxPoint((wxPoint &) result); | |
25822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25823 | } | |
25824 | return resultobj; | |
25825 | fail: | |
25826 | return NULL; | |
25827 | } | |
25828 | ||
25829 | ||
c32bde28 | 25830 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25831 | PyObject *resultobj; |
25832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25833 | wxSize *arg2 = 0 ; | |
25834 | wxSize result; | |
25835 | wxSize temp2 ; | |
25836 | PyObject * obj0 = 0 ; | |
25837 | PyObject * obj1 = 0 ; | |
25838 | char *kwnames[] = { | |
25839 | (char *) "self",(char *) "sz", NULL | |
25840 | }; | |
25841 | ||
25842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25845 | { | |
25846 | arg2 = &temp2; | |
25847 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25848 | } | |
25849 | { | |
25850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25851 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25852 | ||
25853 | wxPyEndAllowThreads(__tstate); | |
25854 | if (PyErr_Occurred()) SWIG_fail; | |
25855 | } | |
25856 | { | |
25857 | wxSize * resultptr; | |
25858 | resultptr = new wxSize((wxSize &) result); | |
25859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25860 | } | |
25861 | return resultobj; | |
25862 | fail: | |
25863 | return NULL; | |
25864 | } | |
25865 | ||
25866 | ||
c32bde28 | 25867 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25868 | PyObject *resultobj; |
25869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25870 | wxPoint *arg2 = 0 ; | |
25871 | wxPoint result; | |
25872 | wxPoint temp2 ; | |
25873 | PyObject * obj0 = 0 ; | |
25874 | PyObject * obj1 = 0 ; | |
25875 | char *kwnames[] = { | |
25876 | (char *) "self",(char *) "pt", NULL | |
25877 | }; | |
25878 | ||
25879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25882 | { | |
25883 | arg2 = &temp2; | |
25884 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25885 | } | |
25886 | { | |
25887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25888 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25889 | ||
25890 | wxPyEndAllowThreads(__tstate); | |
25891 | if (PyErr_Occurred()) SWIG_fail; | |
25892 | } | |
25893 | { | |
25894 | wxPoint * resultptr; | |
25895 | resultptr = new wxPoint((wxPoint &) result); | |
25896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25897 | } | |
25898 | return resultobj; | |
25899 | fail: | |
25900 | return NULL; | |
25901 | } | |
25902 | ||
25903 | ||
c32bde28 | 25904 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25905 | PyObject *resultobj; |
25906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25907 | wxSize *arg2 = 0 ; | |
25908 | wxSize result; | |
25909 | wxSize temp2 ; | |
25910 | PyObject * obj0 = 0 ; | |
25911 | PyObject * obj1 = 0 ; | |
25912 | char *kwnames[] = { | |
25913 | (char *) "self",(char *) "sz", NULL | |
25914 | }; | |
25915 | ||
25916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25919 | { | |
25920 | arg2 = &temp2; | |
25921 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25922 | } | |
25923 | { | |
25924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25925 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25926 | ||
25927 | wxPyEndAllowThreads(__tstate); | |
25928 | if (PyErr_Occurred()) SWIG_fail; | |
25929 | } | |
25930 | { | |
25931 | wxSize * resultptr; | |
25932 | resultptr = new wxSize((wxSize &) result); | |
25933 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25934 | } | |
25935 | return resultobj; | |
25936 | fail: | |
25937 | return NULL; | |
25938 | } | |
25939 | ||
25940 | ||
c32bde28 | 25941 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25942 | PyObject *resultobj; |
25943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25944 | wxPoint *arg2 = 0 ; | |
25945 | wxPoint result; | |
25946 | wxPoint temp2 ; | |
25947 | PyObject * obj0 = 0 ; | |
25948 | PyObject * obj1 = 0 ; | |
25949 | char *kwnames[] = { | |
25950 | (char *) "self",(char *) "pt", NULL | |
25951 | }; | |
25952 | ||
25953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25956 | { | |
25957 | arg2 = &temp2; | |
25958 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25959 | } | |
25960 | { | |
25961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25962 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25963 | ||
25964 | wxPyEndAllowThreads(__tstate); | |
25965 | if (PyErr_Occurred()) SWIG_fail; | |
25966 | } | |
25967 | { | |
25968 | wxPoint * resultptr; | |
25969 | resultptr = new wxPoint((wxPoint &) result); | |
25970 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25971 | } | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
25975 | } | |
25976 | ||
25977 | ||
c32bde28 | 25978 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25979 | PyObject *resultobj; |
25980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25981 | wxSize *arg2 = 0 ; | |
25982 | wxSize result; | |
25983 | wxSize temp2 ; | |
25984 | PyObject * obj0 = 0 ; | |
25985 | PyObject * obj1 = 0 ; | |
25986 | char *kwnames[] = { | |
25987 | (char *) "self",(char *) "sz", NULL | |
25988 | }; | |
25989 | ||
25990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25993 | { | |
25994 | arg2 = &temp2; | |
25995 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25996 | } | |
25997 | { | |
25998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25999 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26000 | ||
26001 | wxPyEndAllowThreads(__tstate); | |
26002 | if (PyErr_Occurred()) SWIG_fail; | |
26003 | } | |
26004 | { | |
26005 | wxSize * resultptr; | |
26006 | resultptr = new wxSize((wxSize &) result); | |
26007 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26008 | } | |
26009 | return resultobj; | |
26010 | fail: | |
26011 | return NULL; | |
26012 | } | |
26013 | ||
26014 | ||
c32bde28 | 26015 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26016 | PyObject *resultobj; |
26017 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26018 | int arg2 ; | |
26019 | int arg3 ; | |
26020 | PyObject * obj0 = 0 ; | |
26021 | PyObject * obj1 = 0 ; | |
26022 | PyObject * obj2 = 0 ; | |
26023 | char *kwnames[] = { | |
26024 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26025 | }; | |
26026 | ||
26027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26030 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26031 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26032 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26033 | if (PyErr_Occurred()) SWIG_fail; |
26034 | { | |
26035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26036 | (arg1)->WarpPointer(arg2,arg3); | |
26037 | ||
26038 | wxPyEndAllowThreads(__tstate); | |
26039 | if (PyErr_Occurred()) SWIG_fail; | |
26040 | } | |
26041 | Py_INCREF(Py_None); resultobj = Py_None; | |
26042 | return resultobj; | |
26043 | fail: | |
26044 | return NULL; | |
26045 | } | |
26046 | ||
26047 | ||
c32bde28 | 26048 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26049 | PyObject *resultobj; |
26050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26051 | PyObject * obj0 = 0 ; | |
26052 | char *kwnames[] = { | |
26053 | (char *) "self", NULL | |
26054 | }; | |
26055 | ||
26056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26059 | { | |
26060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26061 | (arg1)->CaptureMouse(); | |
26062 | ||
26063 | wxPyEndAllowThreads(__tstate); | |
26064 | if (PyErr_Occurred()) SWIG_fail; | |
26065 | } | |
26066 | Py_INCREF(Py_None); resultobj = Py_None; | |
26067 | return resultobj; | |
26068 | fail: | |
26069 | return NULL; | |
26070 | } | |
26071 | ||
26072 | ||
c32bde28 | 26073 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26074 | PyObject *resultobj; |
26075 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26076 | PyObject * obj0 = 0 ; | |
26077 | char *kwnames[] = { | |
26078 | (char *) "self", NULL | |
26079 | }; | |
26080 | ||
26081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26084 | { | |
26085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26086 | (arg1)->ReleaseMouse(); | |
26087 | ||
26088 | wxPyEndAllowThreads(__tstate); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | } | |
26091 | Py_INCREF(Py_None); resultobj = Py_None; | |
26092 | return resultobj; | |
26093 | fail: | |
26094 | return NULL; | |
26095 | } | |
26096 | ||
26097 | ||
c32bde28 | 26098 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26099 | PyObject *resultobj; |
26100 | wxWindow *result; | |
26101 | char *kwnames[] = { | |
26102 | NULL | |
26103 | }; | |
26104 | ||
26105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26106 | { | |
0439c23b | 26107 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26109 | result = (wxWindow *)wxWindow::GetCapture(); | |
26110 | ||
26111 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26112 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26113 | } |
26114 | { | |
412d302d | 26115 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26116 | } |
26117 | return resultobj; | |
26118 | fail: | |
26119 | return NULL; | |
26120 | } | |
26121 | ||
26122 | ||
c32bde28 | 26123 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26124 | PyObject *resultobj; |
26125 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26126 | bool result; | |
26127 | PyObject * obj0 = 0 ; | |
26128 | char *kwnames[] = { | |
26129 | (char *) "self", NULL | |
26130 | }; | |
26131 | ||
26132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26135 | { | |
26136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26137 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26138 | ||
26139 | wxPyEndAllowThreads(__tstate); | |
26140 | if (PyErr_Occurred()) SWIG_fail; | |
26141 | } | |
26142 | { | |
26143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26144 | } | |
26145 | return resultobj; | |
26146 | fail: | |
26147 | return NULL; | |
26148 | } | |
26149 | ||
26150 | ||
c32bde28 | 26151 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26152 | PyObject *resultobj; |
26153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26154 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26155 | wxRect *arg3 = (wxRect *) NULL ; |
26156 | PyObject * obj0 = 0 ; | |
26157 | PyObject * obj1 = 0 ; | |
26158 | PyObject * obj2 = 0 ; | |
26159 | char *kwnames[] = { | |
26160 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26161 | }; | |
26162 | ||
26163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26166 | if (obj1) { | |
c32bde28 | 26167 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26168 | if (PyErr_Occurred()) SWIG_fail; |
26169 | } | |
26170 | if (obj2) { | |
26171 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26173 | } | |
26174 | { | |
26175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26176 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26177 | ||
26178 | wxPyEndAllowThreads(__tstate); | |
26179 | if (PyErr_Occurred()) SWIG_fail; | |
26180 | } | |
26181 | Py_INCREF(Py_None); resultobj = Py_None; | |
26182 | return resultobj; | |
26183 | fail: | |
26184 | return NULL; | |
26185 | } | |
26186 | ||
26187 | ||
c32bde28 | 26188 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26189 | PyObject *resultobj; |
26190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26191 | wxRect *arg2 = 0 ; | |
26192 | wxRect temp2 ; | |
26193 | PyObject * obj0 = 0 ; | |
26194 | PyObject * obj1 = 0 ; | |
26195 | char *kwnames[] = { | |
26196 | (char *) "self",(char *) "rect", NULL | |
26197 | }; | |
26198 | ||
26199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26202 | { | |
26203 | arg2 = &temp2; | |
26204 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26205 | } | |
26206 | { | |
26207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26208 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26209 | ||
26210 | wxPyEndAllowThreads(__tstate); | |
26211 | if (PyErr_Occurred()) SWIG_fail; | |
26212 | } | |
26213 | Py_INCREF(Py_None); resultobj = Py_None; | |
26214 | return resultobj; | |
26215 | fail: | |
26216 | return NULL; | |
26217 | } | |
26218 | ||
26219 | ||
c32bde28 | 26220 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26221 | PyObject *resultobj; |
26222 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26223 | PyObject * obj0 = 0 ; | |
26224 | char *kwnames[] = { | |
26225 | (char *) "self", NULL | |
26226 | }; | |
26227 | ||
26228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26231 | { | |
26232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26233 | (arg1)->Update(); | |
26234 | ||
26235 | wxPyEndAllowThreads(__tstate); | |
26236 | if (PyErr_Occurred()) SWIG_fail; | |
26237 | } | |
26238 | Py_INCREF(Py_None); resultobj = Py_None; | |
26239 | return resultobj; | |
26240 | fail: | |
26241 | return NULL; | |
26242 | } | |
26243 | ||
26244 | ||
c32bde28 | 26245 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26246 | PyObject *resultobj; |
26247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26248 | PyObject * obj0 = 0 ; | |
26249 | char *kwnames[] = { | |
26250 | (char *) "self", NULL | |
26251 | }; | |
26252 | ||
26253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26256 | { | |
26257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26258 | (arg1)->ClearBackground(); | |
26259 | ||
26260 | wxPyEndAllowThreads(__tstate); | |
26261 | if (PyErr_Occurred()) SWIG_fail; | |
26262 | } | |
26263 | Py_INCREF(Py_None); resultobj = Py_None; | |
26264 | return resultobj; | |
26265 | fail: | |
26266 | return NULL; | |
26267 | } | |
26268 | ||
26269 | ||
c32bde28 | 26270 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26271 | PyObject *resultobj; |
26272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26273 | PyObject * obj0 = 0 ; | |
26274 | char *kwnames[] = { | |
26275 | (char *) "self", NULL | |
26276 | }; | |
26277 | ||
26278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26281 | { | |
26282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26283 | (arg1)->Freeze(); | |
26284 | ||
26285 | wxPyEndAllowThreads(__tstate); | |
26286 | if (PyErr_Occurred()) SWIG_fail; | |
26287 | } | |
26288 | Py_INCREF(Py_None); resultobj = Py_None; | |
26289 | return resultobj; | |
26290 | fail: | |
26291 | return NULL; | |
26292 | } | |
26293 | ||
26294 | ||
c32bde28 | 26295 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26296 | PyObject *resultobj; |
26297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26298 | PyObject * obj0 = 0 ; | |
26299 | char *kwnames[] = { | |
26300 | (char *) "self", NULL | |
26301 | }; | |
26302 | ||
26303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26306 | { | |
26307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26308 | (arg1)->Thaw(); | |
26309 | ||
26310 | wxPyEndAllowThreads(__tstate); | |
26311 | if (PyErr_Occurred()) SWIG_fail; | |
26312 | } | |
26313 | Py_INCREF(Py_None); resultobj = Py_None; | |
26314 | return resultobj; | |
26315 | fail: | |
26316 | return NULL; | |
26317 | } | |
26318 | ||
26319 | ||
c32bde28 | 26320 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26321 | PyObject *resultobj; |
26322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26323 | wxDC *arg2 = 0 ; | |
26324 | PyObject * obj0 = 0 ; | |
26325 | PyObject * obj1 = 0 ; | |
26326 | char *kwnames[] = { | |
26327 | (char *) "self",(char *) "dc", NULL | |
26328 | }; | |
26329 | ||
26330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26334 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26335 | SWIG_fail; | |
26336 | if (arg2 == NULL) { | |
26337 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26338 | SWIG_fail; | |
26339 | } | |
26340 | { | |
26341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26342 | (arg1)->PrepareDC(*arg2); | |
26343 | ||
26344 | wxPyEndAllowThreads(__tstate); | |
26345 | if (PyErr_Occurred()) SWIG_fail; | |
26346 | } | |
26347 | Py_INCREF(Py_None); resultobj = Py_None; | |
26348 | return resultobj; | |
26349 | fail: | |
26350 | return NULL; | |
26351 | } | |
26352 | ||
26353 | ||
c32bde28 | 26354 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26355 | PyObject *resultobj; |
26356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26357 | wxRegion *result; | |
26358 | PyObject * obj0 = 0 ; | |
26359 | char *kwnames[] = { | |
26360 | (char *) "self", NULL | |
26361 | }; | |
26362 | ||
26363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26366 | { | |
26367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26368 | { | |
26369 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26370 | result = (wxRegion *) &_result_ref; | |
26371 | } | |
26372 | ||
26373 | wxPyEndAllowThreads(__tstate); | |
26374 | if (PyErr_Occurred()) SWIG_fail; | |
26375 | } | |
26376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26377 | return resultobj; | |
26378 | fail: | |
26379 | return NULL; | |
26380 | } | |
26381 | ||
26382 | ||
c32bde28 | 26383 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26384 | PyObject *resultobj; |
26385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26386 | wxRect result; | |
26387 | PyObject * obj0 = 0 ; | |
26388 | char *kwnames[] = { | |
26389 | (char *) "self", NULL | |
26390 | }; | |
26391 | ||
26392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26395 | { | |
26396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26397 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26398 | ||
26399 | wxPyEndAllowThreads(__tstate); | |
26400 | if (PyErr_Occurred()) SWIG_fail; | |
26401 | } | |
26402 | { | |
26403 | wxRect * resultptr; | |
26404 | resultptr = new wxRect((wxRect &) result); | |
26405 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26406 | } | |
26407 | return resultobj; | |
26408 | fail: | |
26409 | return NULL; | |
26410 | } | |
26411 | ||
26412 | ||
c32bde28 | 26413 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26414 | PyObject *resultobj; |
26415 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26416 | int arg2 ; | |
26417 | int arg3 ; | |
26418 | int arg4 = (int) 1 ; | |
26419 | int arg5 = (int) 1 ; | |
26420 | bool result; | |
26421 | PyObject * obj0 = 0 ; | |
26422 | PyObject * obj1 = 0 ; | |
26423 | PyObject * obj2 = 0 ; | |
26424 | PyObject * obj3 = 0 ; | |
26425 | PyObject * obj4 = 0 ; | |
26426 | char *kwnames[] = { | |
26427 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26428 | }; | |
26429 | ||
26430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26433 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26434 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26435 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26436 | if (PyErr_Occurred()) SWIG_fail; |
26437 | if (obj3) { | |
c32bde28 | 26438 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26439 | if (PyErr_Occurred()) SWIG_fail; |
26440 | } | |
26441 | if (obj4) { | |
c32bde28 | 26442 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26443 | if (PyErr_Occurred()) SWIG_fail; |
26444 | } | |
26445 | { | |
26446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26447 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26448 | ||
26449 | wxPyEndAllowThreads(__tstate); | |
26450 | if (PyErr_Occurred()) SWIG_fail; | |
26451 | } | |
26452 | { | |
26453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26454 | } | |
26455 | return resultobj; | |
26456 | fail: | |
26457 | return NULL; | |
26458 | } | |
26459 | ||
26460 | ||
c32bde28 | 26461 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26462 | PyObject *resultobj; |
26463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26464 | wxPoint *arg2 = 0 ; | |
26465 | bool result; | |
26466 | wxPoint temp2 ; | |
26467 | PyObject * obj0 = 0 ; | |
26468 | PyObject * obj1 = 0 ; | |
26469 | char *kwnames[] = { | |
26470 | (char *) "self",(char *) "pt", NULL | |
26471 | }; | |
26472 | ||
26473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26476 | { | |
26477 | arg2 = &temp2; | |
26478 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26479 | } | |
26480 | { | |
26481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26482 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26483 | ||
26484 | wxPyEndAllowThreads(__tstate); | |
26485 | if (PyErr_Occurred()) SWIG_fail; | |
26486 | } | |
26487 | { | |
26488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26489 | } | |
26490 | return resultobj; | |
26491 | fail: | |
26492 | return NULL; | |
26493 | } | |
26494 | ||
26495 | ||
c32bde28 | 26496 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26497 | PyObject *resultobj; |
26498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26499 | wxRect *arg2 = 0 ; | |
26500 | bool result; | |
26501 | wxRect temp2 ; | |
26502 | PyObject * obj0 = 0 ; | |
26503 | PyObject * obj1 = 0 ; | |
26504 | char *kwnames[] = { | |
26505 | (char *) "self",(char *) "rect", NULL | |
26506 | }; | |
26507 | ||
26508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26511 | { | |
26512 | arg2 = &temp2; | |
26513 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26514 | } | |
26515 | { | |
26516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26517 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26518 | ||
26519 | wxPyEndAllowThreads(__tstate); | |
26520 | if (PyErr_Occurred()) SWIG_fail; | |
26521 | } | |
26522 | { | |
26523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26524 | } | |
26525 | return resultobj; | |
26526 | fail: | |
26527 | return NULL; | |
26528 | } | |
26529 | ||
26530 | ||
c32bde28 | 26531 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26532 | PyObject *resultobj; |
26533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26534 | wxVisualAttributes result; | |
26535 | PyObject * obj0 = 0 ; | |
26536 | char *kwnames[] = { | |
26537 | (char *) "self", NULL | |
26538 | }; | |
26539 | ||
26540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26543 | { | |
26544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26545 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26546 | ||
26547 | wxPyEndAllowThreads(__tstate); | |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
26549 | } | |
26550 | { | |
26551 | wxVisualAttributes * resultptr; | |
26552 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26554 | } | |
26555 | return resultobj; | |
26556 | fail: | |
26557 | return NULL; | |
26558 | } | |
26559 | ||
26560 | ||
c32bde28 | 26561 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26562 | PyObject *resultobj; |
26563 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26564 | wxVisualAttributes result; | |
26565 | PyObject * obj0 = 0 ; | |
26566 | char *kwnames[] = { | |
26567 | (char *) "variant", NULL | |
26568 | }; | |
26569 | ||
26570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26571 | if (obj0) { | |
c32bde28 | 26572 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26573 | if (PyErr_Occurred()) SWIG_fail; |
26574 | } | |
26575 | { | |
0439c23b | 26576 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26578 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26579 | ||
26580 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26581 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26582 | } |
26583 | { | |
26584 | wxVisualAttributes * resultptr; | |
26585 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26586 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26587 | } | |
26588 | return resultobj; | |
26589 | fail: | |
26590 | return NULL; | |
26591 | } | |
26592 | ||
26593 | ||
c32bde28 | 26594 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26595 | PyObject *resultobj; |
26596 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26597 | wxColour *arg2 = 0 ; | |
26598 | bool result; | |
26599 | wxColour temp2 ; | |
26600 | PyObject * obj0 = 0 ; | |
26601 | PyObject * obj1 = 0 ; | |
26602 | char *kwnames[] = { | |
26603 | (char *) "self",(char *) "colour", NULL | |
26604 | }; | |
26605 | ||
26606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26609 | { | |
26610 | arg2 = &temp2; | |
26611 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26612 | } | |
26613 | { | |
26614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26615 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26616 | ||
26617 | wxPyEndAllowThreads(__tstate); | |
26618 | if (PyErr_Occurred()) SWIG_fail; | |
26619 | } | |
26620 | { | |
26621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26622 | } | |
26623 | return resultobj; | |
26624 | fail: | |
26625 | return NULL; | |
26626 | } | |
26627 | ||
26628 | ||
c32bde28 | 26629 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26630 | PyObject *resultobj; |
26631 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26632 | wxColour *arg2 = 0 ; | |
26633 | wxColour temp2 ; | |
26634 | PyObject * obj0 = 0 ; | |
26635 | PyObject * obj1 = 0 ; | |
26636 | char *kwnames[] = { | |
26637 | (char *) "self",(char *) "colour", NULL | |
26638 | }; | |
26639 | ||
412d302d | 26640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26643 | { | |
26644 | arg2 = &temp2; | |
26645 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26646 | } | |
26647 | { | |
26648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26649 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26650 | |
26651 | wxPyEndAllowThreads(__tstate); | |
26652 | if (PyErr_Occurred()) SWIG_fail; | |
26653 | } | |
26654 | Py_INCREF(Py_None); resultobj = Py_None; | |
26655 | return resultobj; | |
26656 | fail: | |
26657 | return NULL; | |
26658 | } | |
26659 | ||
26660 | ||
c32bde28 | 26661 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26662 | PyObject *resultobj; |
26663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26664 | wxColour *arg2 = 0 ; | |
26665 | bool result; | |
26666 | wxColour temp2 ; | |
26667 | PyObject * obj0 = 0 ; | |
26668 | PyObject * obj1 = 0 ; | |
26669 | char *kwnames[] = { | |
26670 | (char *) "self",(char *) "colour", NULL | |
26671 | }; | |
26672 | ||
26673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26676 | { | |
26677 | arg2 = &temp2; | |
26678 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26679 | } | |
26680 | { | |
26681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26682 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26683 | ||
26684 | wxPyEndAllowThreads(__tstate); | |
26685 | if (PyErr_Occurred()) SWIG_fail; | |
26686 | } | |
26687 | { | |
26688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26689 | } | |
26690 | return resultobj; | |
26691 | fail: | |
26692 | return NULL; | |
26693 | } | |
26694 | ||
26695 | ||
c32bde28 | 26696 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26697 | PyObject *resultobj; |
26698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26699 | wxColour *arg2 = 0 ; | |
26700 | wxColour temp2 ; | |
26701 | PyObject * obj0 = 0 ; | |
26702 | PyObject * obj1 = 0 ; | |
26703 | char *kwnames[] = { | |
26704 | (char *) "self",(char *) "colour", NULL | |
26705 | }; | |
26706 | ||
fa47d7a7 | 26707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26710 | { | |
26711 | arg2 = &temp2; | |
26712 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26713 | } | |
26714 | { | |
26715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26716 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26717 | |
26718 | wxPyEndAllowThreads(__tstate); | |
26719 | if (PyErr_Occurred()) SWIG_fail; | |
26720 | } | |
26721 | Py_INCREF(Py_None); resultobj = Py_None; | |
26722 | return resultobj; | |
26723 | fail: | |
26724 | return NULL; | |
26725 | } | |
26726 | ||
26727 | ||
c32bde28 | 26728 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26729 | PyObject *resultobj; |
26730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26731 | wxColour result; | |
26732 | PyObject * obj0 = 0 ; | |
26733 | char *kwnames[] = { | |
26734 | (char *) "self", NULL | |
26735 | }; | |
26736 | ||
26737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
26738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26740 | { | |
26741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26742 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26743 | ||
26744 | wxPyEndAllowThreads(__tstate); | |
26745 | if (PyErr_Occurred()) SWIG_fail; | |
26746 | } | |
26747 | { | |
26748 | wxColour * resultptr; | |
26749 | resultptr = new wxColour((wxColour &) result); | |
26750 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26751 | } | |
26752 | return resultobj; | |
26753 | fail: | |
26754 | return NULL; | |
26755 | } | |
26756 | ||
26757 | ||
c32bde28 | 26758 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26759 | PyObject *resultobj; |
26760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26761 | wxColour result; | |
26762 | PyObject * obj0 = 0 ; | |
26763 | char *kwnames[] = { | |
26764 | (char *) "self", NULL | |
26765 | }; | |
26766 | ||
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
26768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26770 | { | |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26772 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
26775 | if (PyErr_Occurred()) SWIG_fail; | |
26776 | } | |
26777 | { | |
26778 | wxColour * resultptr; | |
26779 | resultptr = new wxColour((wxColour &) result); | |
26780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26781 | } | |
26782 | return resultobj; | |
26783 | fail: | |
26784 | return NULL; | |
26785 | } | |
26786 | ||
26787 | ||
c32bde28 | 26788 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26789 | PyObject *resultobj; |
26790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26791 | int arg2 ; | |
26792 | bool result; | |
26793 | PyObject * obj0 = 0 ; | |
26794 | PyObject * obj1 = 0 ; | |
26795 | char *kwnames[] = { | |
26796 | (char *) "self",(char *) "style", NULL | |
26797 | }; | |
26798 | ||
26799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
26800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26802 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
26803 | if (PyErr_Occurred()) SWIG_fail; |
26804 | { | |
26805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26806 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
26807 | ||
26808 | wxPyEndAllowThreads(__tstate); | |
26809 | if (PyErr_Occurred()) SWIG_fail; | |
26810 | } | |
26811 | { | |
26812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26813 | } | |
26814 | return resultobj; | |
26815 | fail: | |
26816 | return NULL; | |
26817 | } | |
26818 | ||
26819 | ||
c32bde28 | 26820 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26821 | PyObject *resultobj; |
26822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26823 | int result; | |
26824 | PyObject * obj0 = 0 ; | |
26825 | char *kwnames[] = { | |
26826 | (char *) "self", NULL | |
26827 | }; | |
26828 | ||
26829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
26830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26832 | { | |
26833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26834 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
26835 | ||
26836 | wxPyEndAllowThreads(__tstate); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
26838 | } | |
c32bde28 | 26839 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
26840 | return resultobj; |
26841 | fail: | |
26842 | return NULL; | |
26843 | } | |
26844 | ||
26845 | ||
c32bde28 | 26846 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26847 | PyObject *resultobj; |
26848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26849 | wxCursor *arg2 = 0 ; | |
26850 | bool result; | |
26851 | PyObject * obj0 = 0 ; | |
26852 | PyObject * obj1 = 0 ; | |
26853 | char *kwnames[] = { | |
26854 | (char *) "self",(char *) "cursor", NULL | |
26855 | }; | |
26856 | ||
26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26861 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26862 | SWIG_fail; | |
26863 | if (arg2 == NULL) { | |
26864 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26865 | SWIG_fail; | |
26866 | } | |
26867 | { | |
26868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26869 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26870 | ||
26871 | wxPyEndAllowThreads(__tstate); | |
26872 | if (PyErr_Occurred()) SWIG_fail; | |
26873 | } | |
26874 | { | |
26875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26876 | } | |
26877 | return resultobj; | |
26878 | fail: | |
26879 | return NULL; | |
26880 | } | |
26881 | ||
26882 | ||
c32bde28 | 26883 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26884 | PyObject *resultobj; |
26885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26886 | wxCursor result; |
d55e5bfc RD |
26887 | PyObject * obj0 = 0 ; |
26888 | char *kwnames[] = { | |
26889 | (char *) "self", NULL | |
26890 | }; | |
26891 | ||
26892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26895 | { | |
26896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26897 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
26898 | |
26899 | wxPyEndAllowThreads(__tstate); | |
26900 | if (PyErr_Occurred()) SWIG_fail; | |
26901 | } | |
26902 | { | |
a001823c RD |
26903 | wxCursor * resultptr; |
26904 | resultptr = new wxCursor((wxCursor &) result); | |
26905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
26906 | } |
26907 | return resultobj; | |
26908 | fail: | |
26909 | return NULL; | |
26910 | } | |
26911 | ||
26912 | ||
c32bde28 | 26913 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26914 | PyObject *resultobj; |
26915 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26916 | wxFont *arg2 = 0 ; | |
26917 | bool result; | |
26918 | PyObject * obj0 = 0 ; | |
26919 | PyObject * obj1 = 0 ; | |
26920 | char *kwnames[] = { | |
26921 | (char *) "self",(char *) "font", NULL | |
26922 | }; | |
26923 | ||
26924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26929 | SWIG_fail; | |
26930 | if (arg2 == NULL) { | |
26931 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26932 | SWIG_fail; | |
26933 | } | |
26934 | { | |
26935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26936 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26937 | ||
26938 | wxPyEndAllowThreads(__tstate); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | } | |
26941 | { | |
26942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26943 | } | |
26944 | return resultobj; | |
26945 | fail: | |
26946 | return NULL; | |
26947 | } | |
26948 | ||
26949 | ||
c32bde28 | 26950 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26951 | PyObject *resultobj; |
26952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26953 | wxFont *arg2 = 0 ; | |
26954 | PyObject * obj0 = 0 ; | |
26955 | PyObject * obj1 = 0 ; | |
26956 | char *kwnames[] = { | |
26957 | (char *) "self",(char *) "font", NULL | |
26958 | }; | |
26959 | ||
fa47d7a7 | 26960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26963 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26964 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26965 | SWIG_fail; | |
26966 | if (arg2 == NULL) { | |
26967 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26968 | SWIG_fail; | |
26969 | } | |
26970 | { | |
26971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26972 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
26973 | |
26974 | wxPyEndAllowThreads(__tstate); | |
26975 | if (PyErr_Occurred()) SWIG_fail; | |
26976 | } | |
26977 | Py_INCREF(Py_None); resultobj = Py_None; | |
26978 | return resultobj; | |
26979 | fail: | |
26980 | return NULL; | |
26981 | } | |
26982 | ||
26983 | ||
c32bde28 | 26984 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26985 | PyObject *resultobj; |
26986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26987 | wxFont result; |
d55e5bfc RD |
26988 | PyObject * obj0 = 0 ; |
26989 | char *kwnames[] = { | |
26990 | (char *) "self", NULL | |
26991 | }; | |
26992 | ||
26993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
26994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26996 | { | |
26997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26998 | result = (arg1)->GetFont(); |
d55e5bfc RD |
26999 | |
27000 | wxPyEndAllowThreads(__tstate); | |
27001 | if (PyErr_Occurred()) SWIG_fail; | |
27002 | } | |
27003 | { | |
a001823c RD |
27004 | wxFont * resultptr; |
27005 | resultptr = new wxFont((wxFont &) result); | |
27006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27007 | } |
27008 | return resultobj; | |
27009 | fail: | |
27010 | return NULL; | |
27011 | } | |
27012 | ||
27013 | ||
c32bde28 | 27014 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27015 | PyObject *resultobj; |
27016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27017 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27018 | PyObject * obj0 = 0 ; | |
27019 | PyObject * obj1 = 0 ; | |
27020 | char *kwnames[] = { | |
27021 | (char *) "self",(char *) "caret", NULL | |
27022 | }; | |
27023 | ||
27024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27027 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27029 | { | |
27030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27031 | (arg1)->SetCaret(arg2); | |
27032 | ||
27033 | wxPyEndAllowThreads(__tstate); | |
27034 | if (PyErr_Occurred()) SWIG_fail; | |
27035 | } | |
27036 | Py_INCREF(Py_None); resultobj = Py_None; | |
27037 | return resultobj; | |
27038 | fail: | |
27039 | return NULL; | |
27040 | } | |
27041 | ||
27042 | ||
c32bde28 | 27043 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27044 | PyObject *resultobj; |
27045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27046 | wxCaret *result; | |
27047 | PyObject * obj0 = 0 ; | |
27048 | char *kwnames[] = { | |
27049 | (char *) "self", NULL | |
27050 | }; | |
27051 | ||
27052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27055 | { | |
27056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27057 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27058 | ||
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
27062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
c32bde28 | 27069 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27070 | PyObject *resultobj; |
27071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27072 | int result; | |
27073 | PyObject * obj0 = 0 ; | |
27074 | char *kwnames[] = { | |
27075 | (char *) "self", NULL | |
27076 | }; | |
27077 | ||
27078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27081 | { | |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27084 | ||
27085 | wxPyEndAllowThreads(__tstate); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
c32bde28 | 27088 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27089 | return resultobj; |
27090 | fail: | |
27091 | return NULL; | |
27092 | } | |
27093 | ||
27094 | ||
c32bde28 | 27095 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27096 | PyObject *resultobj; |
27097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27098 | int result; | |
27099 | PyObject * obj0 = 0 ; | |
27100 | char *kwnames[] = { | |
27101 | (char *) "self", NULL | |
27102 | }; | |
27103 | ||
27104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27107 | { | |
27108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27109 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27110 | ||
27111 | wxPyEndAllowThreads(__tstate); | |
27112 | if (PyErr_Occurred()) SWIG_fail; | |
27113 | } | |
c32bde28 | 27114 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27115 | return resultobj; |
27116 | fail: | |
27117 | return NULL; | |
27118 | } | |
27119 | ||
27120 | ||
c32bde28 | 27121 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27122 | PyObject *resultobj; |
27123 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27124 | wxString *arg2 = 0 ; | |
27125 | int *arg3 = (int *) 0 ; | |
27126 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 27127 | bool temp2 = false ; |
d55e5bfc | 27128 | int temp3 ; |
c32bde28 | 27129 | int res3 = 0 ; |
d55e5bfc | 27130 | int temp4 ; |
c32bde28 | 27131 | int res4 = 0 ; |
d55e5bfc RD |
27132 | PyObject * obj0 = 0 ; |
27133 | PyObject * obj1 = 0 ; | |
27134 | char *kwnames[] = { | |
27135 | (char *) "self",(char *) "string", NULL | |
27136 | }; | |
27137 | ||
c32bde28 RD |
27138 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27139 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27143 | { | |
27144 | arg2 = wxString_in_helper(obj1); | |
27145 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27146 | temp2 = true; |
d55e5bfc RD |
27147 | } |
27148 | { | |
27149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27150 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27151 | ||
27152 | wxPyEndAllowThreads(__tstate); | |
27153 | if (PyErr_Occurred()) SWIG_fail; | |
27154 | } | |
27155 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27156 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27157 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27158 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27159 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27160 | { |
27161 | if (temp2) | |
27162 | delete arg2; | |
27163 | } | |
27164 | return resultobj; | |
27165 | fail: | |
27166 | { | |
27167 | if (temp2) | |
27168 | delete arg2; | |
27169 | } | |
27170 | return NULL; | |
27171 | } | |
27172 | ||
27173 | ||
c32bde28 | 27174 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27175 | PyObject *resultobj; |
27176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27177 | wxString *arg2 = 0 ; | |
27178 | int *arg3 = (int *) 0 ; | |
27179 | int *arg4 = (int *) 0 ; | |
27180 | int *arg5 = (int *) 0 ; | |
27181 | int *arg6 = (int *) 0 ; | |
27182 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 27183 | bool temp2 = false ; |
d55e5bfc | 27184 | int temp3 ; |
c32bde28 | 27185 | int res3 = 0 ; |
d55e5bfc | 27186 | int temp4 ; |
c32bde28 | 27187 | int res4 = 0 ; |
d55e5bfc | 27188 | int temp5 ; |
c32bde28 | 27189 | int res5 = 0 ; |
d55e5bfc | 27190 | int temp6 ; |
c32bde28 | 27191 | int res6 = 0 ; |
d55e5bfc RD |
27192 | PyObject * obj0 = 0 ; |
27193 | PyObject * obj1 = 0 ; | |
27194 | PyObject * obj2 = 0 ; | |
27195 | char *kwnames[] = { | |
27196 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27197 | }; | |
27198 | ||
c32bde28 RD |
27199 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27200 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27201 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27202 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27206 | { | |
27207 | arg2 = wxString_in_helper(obj1); | |
27208 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27209 | temp2 = true; |
d55e5bfc RD |
27210 | } |
27211 | if (obj2) { | |
27212 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27214 | } | |
27215 | { | |
27216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27217 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27218 | ||
27219 | wxPyEndAllowThreads(__tstate); | |
27220 | if (PyErr_Occurred()) SWIG_fail; | |
27221 | } | |
27222 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27223 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27224 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27225 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27226 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27227 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27228 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27229 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27230 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27231 | { |
27232 | if (temp2) | |
27233 | delete arg2; | |
27234 | } | |
27235 | return resultobj; | |
27236 | fail: | |
27237 | { | |
27238 | if (temp2) | |
27239 | delete arg2; | |
27240 | } | |
27241 | return NULL; | |
27242 | } | |
27243 | ||
27244 | ||
c32bde28 | 27245 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27246 | PyObject *resultobj; |
27247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27248 | int *arg2 = (int *) 0 ; | |
27249 | int *arg3 = (int *) 0 ; | |
27250 | int temp2 ; | |
c32bde28 | 27251 | int res2 = 0 ; |
d55e5bfc | 27252 | int temp3 ; |
c32bde28 | 27253 | int res3 = 0 ; |
d55e5bfc RD |
27254 | PyObject * obj0 = 0 ; |
27255 | PyObject * obj1 = 0 ; | |
27256 | PyObject * obj2 = 0 ; | |
27257 | char *kwnames[] = { | |
27258 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27259 | }; | |
27260 | ||
27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27264 | { | |
c32bde28 RD |
27265 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27266 | temp2 = SWIG_As_int(obj1); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | arg2 = &temp2; | |
27269 | res2 = SWIG_NEWOBJ; | |
27270 | } | |
d55e5bfc RD |
27271 | } |
27272 | { | |
c32bde28 RD |
27273 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27274 | temp3 = SWIG_As_int(obj2); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | arg3 = &temp3; | |
27277 | res3 = SWIG_NEWOBJ; | |
27278 | } | |
d55e5bfc RD |
27279 | } |
27280 | { | |
27281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27282 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27283 | ||
27284 | wxPyEndAllowThreads(__tstate); | |
27285 | if (PyErr_Occurred()) SWIG_fail; | |
27286 | } | |
27287 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27288 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27289 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27290 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27291 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27292 | return resultobj; |
27293 | fail: | |
27294 | return NULL; | |
27295 | } | |
27296 | ||
27297 | ||
c32bde28 | 27298 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27299 | PyObject *resultobj; |
27300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27301 | int *arg2 = (int *) 0 ; | |
27302 | int *arg3 = (int *) 0 ; | |
27303 | int temp2 ; | |
c32bde28 | 27304 | int res2 = 0 ; |
d55e5bfc | 27305 | int temp3 ; |
c32bde28 | 27306 | int res3 = 0 ; |
d55e5bfc RD |
27307 | PyObject * obj0 = 0 ; |
27308 | PyObject * obj1 = 0 ; | |
27309 | PyObject * obj2 = 0 ; | |
27310 | char *kwnames[] = { | |
27311 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27312 | }; | |
27313 | ||
27314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27317 | { | |
c32bde28 RD |
27318 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27319 | temp2 = SWIG_As_int(obj1); | |
27320 | if (PyErr_Occurred()) SWIG_fail; | |
27321 | arg2 = &temp2; | |
27322 | res2 = SWIG_NEWOBJ; | |
27323 | } | |
d55e5bfc RD |
27324 | } |
27325 | { | |
c32bde28 RD |
27326 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27327 | temp3 = SWIG_As_int(obj2); | |
27328 | if (PyErr_Occurred()) SWIG_fail; | |
27329 | arg3 = &temp3; | |
27330 | res3 = SWIG_NEWOBJ; | |
27331 | } | |
d55e5bfc RD |
27332 | } |
27333 | { | |
27334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27335 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27336 | ||
27337 | wxPyEndAllowThreads(__tstate); | |
27338 | if (PyErr_Occurred()) SWIG_fail; | |
27339 | } | |
27340 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27341 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27342 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27343 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27344 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27345 | return resultobj; |
27346 | fail: | |
27347 | return NULL; | |
27348 | } | |
27349 | ||
27350 | ||
c32bde28 | 27351 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27352 | PyObject *resultobj; |
27353 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27354 | wxPoint *arg2 = 0 ; | |
27355 | wxPoint result; | |
27356 | wxPoint temp2 ; | |
27357 | PyObject * obj0 = 0 ; | |
27358 | PyObject * obj1 = 0 ; | |
27359 | char *kwnames[] = { | |
27360 | (char *) "self",(char *) "pt", NULL | |
27361 | }; | |
27362 | ||
27363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27366 | { | |
27367 | arg2 = &temp2; | |
27368 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27369 | } | |
27370 | { | |
27371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27372 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27373 | ||
27374 | wxPyEndAllowThreads(__tstate); | |
27375 | if (PyErr_Occurred()) SWIG_fail; | |
27376 | } | |
27377 | { | |
27378 | wxPoint * resultptr; | |
27379 | resultptr = new wxPoint((wxPoint &) result); | |
27380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27381 | } | |
27382 | return resultobj; | |
27383 | fail: | |
27384 | return NULL; | |
27385 | } | |
27386 | ||
27387 | ||
c32bde28 | 27388 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27389 | PyObject *resultobj; |
27390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27391 | wxPoint *arg2 = 0 ; | |
27392 | wxPoint result; | |
27393 | wxPoint temp2 ; | |
27394 | PyObject * obj0 = 0 ; | |
27395 | PyObject * obj1 = 0 ; | |
27396 | char *kwnames[] = { | |
27397 | (char *) "self",(char *) "pt", NULL | |
27398 | }; | |
27399 | ||
27400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27403 | { | |
27404 | arg2 = &temp2; | |
27405 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27406 | } | |
27407 | { | |
27408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27409 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27410 | ||
27411 | wxPyEndAllowThreads(__tstate); | |
27412 | if (PyErr_Occurred()) SWIG_fail; | |
27413 | } | |
27414 | { | |
27415 | wxPoint * resultptr; | |
27416 | resultptr = new wxPoint((wxPoint &) result); | |
27417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27418 | } | |
27419 | return resultobj; | |
27420 | fail: | |
27421 | return NULL; | |
27422 | } | |
27423 | ||
27424 | ||
c32bde28 | 27425 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27426 | PyObject *resultobj; |
27427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27428 | int arg2 ; | |
27429 | int arg3 ; | |
27430 | int result; | |
27431 | PyObject * obj0 = 0 ; | |
27432 | PyObject * obj1 = 0 ; | |
27433 | PyObject * obj2 = 0 ; | |
27434 | char *kwnames[] = { | |
27435 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27436 | }; | |
27437 | ||
27438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27441 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27442 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27443 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27444 | if (PyErr_Occurred()) SWIG_fail; |
27445 | { | |
27446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27447 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27448 | ||
27449 | wxPyEndAllowThreads(__tstate); | |
27450 | if (PyErr_Occurred()) SWIG_fail; | |
27451 | } | |
c32bde28 | 27452 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27453 | return resultobj; |
27454 | fail: | |
27455 | return NULL; | |
27456 | } | |
27457 | ||
27458 | ||
c32bde28 | 27459 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27460 | PyObject *resultobj; |
27461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27462 | wxPoint *arg2 = 0 ; | |
27463 | int result; | |
27464 | wxPoint temp2 ; | |
27465 | PyObject * obj0 = 0 ; | |
27466 | PyObject * obj1 = 0 ; | |
27467 | char *kwnames[] = { | |
27468 | (char *) "self",(char *) "pt", NULL | |
27469 | }; | |
27470 | ||
27471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27474 | { | |
27475 | arg2 = &temp2; | |
27476 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27477 | } | |
27478 | { | |
27479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27480 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27481 | ||
27482 | wxPyEndAllowThreads(__tstate); | |
27483 | if (PyErr_Occurred()) SWIG_fail; | |
27484 | } | |
c32bde28 | 27485 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27486 | return resultobj; |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
c32bde28 | 27492 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27493 | PyObject *resultobj; |
27494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27495 | long arg2 ; | |
27496 | int result; | |
27497 | PyObject * obj0 = 0 ; | |
27498 | PyObject * obj1 = 0 ; | |
27499 | ||
27500 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27503 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27504 | if (PyErr_Occurred()) SWIG_fail; |
27505 | { | |
27506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27507 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27508 | ||
27509 | wxPyEndAllowThreads(__tstate); | |
27510 | if (PyErr_Occurred()) SWIG_fail; | |
27511 | } | |
c32bde28 | 27512 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27513 | return resultobj; |
27514 | fail: | |
27515 | return NULL; | |
27516 | } | |
27517 | ||
27518 | ||
c32bde28 | 27519 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27520 | PyObject *resultobj; |
27521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27522 | int result; | |
27523 | PyObject * obj0 = 0 ; | |
27524 | ||
27525 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27528 | { | |
27529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27530 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27531 | ||
27532 | wxPyEndAllowThreads(__tstate); | |
27533 | if (PyErr_Occurred()) SWIG_fail; | |
27534 | } | |
c32bde28 | 27535 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27536 | return resultobj; |
27537 | fail: | |
27538 | return NULL; | |
27539 | } | |
27540 | ||
27541 | ||
27542 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27543 | int argc; | |
27544 | PyObject *argv[3]; | |
27545 | int ii; | |
27546 | ||
27547 | argc = PyObject_Length(args); | |
27548 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27549 | argv[ii] = PyTuple_GetItem(args,ii); | |
27550 | } | |
27551 | if (argc == 1) { | |
27552 | int _v; | |
27553 | { | |
27554 | void *ptr; | |
27555 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27556 | _v = 0; | |
27557 | PyErr_Clear(); | |
27558 | } else { | |
27559 | _v = 1; | |
27560 | } | |
27561 | } | |
27562 | if (_v) { | |
27563 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27564 | } | |
27565 | } | |
27566 | if (argc == 2) { | |
27567 | int _v; | |
27568 | { | |
27569 | void *ptr; | |
27570 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27571 | _v = 0; | |
27572 | PyErr_Clear(); | |
27573 | } else { | |
27574 | _v = 1; | |
27575 | } | |
27576 | } | |
27577 | if (_v) { | |
c32bde28 | 27578 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27579 | if (_v) { |
27580 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27581 | } | |
27582 | } | |
27583 | } | |
27584 | ||
27585 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27586 | return NULL; | |
27587 | } | |
27588 | ||
27589 | ||
c32bde28 | 27590 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27591 | PyObject *resultobj; |
27592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27593 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27594 | PyObject * obj0 = 0 ; | |
27595 | PyObject * obj1 = 0 ; | |
27596 | char *kwnames[] = { | |
27597 | (char *) "self",(char *) "flags", NULL | |
27598 | }; | |
27599 | ||
27600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27603 | if (obj1) { | |
c32bde28 | 27604 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27605 | if (PyErr_Occurred()) SWIG_fail; |
27606 | } | |
27607 | { | |
27608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27609 | (arg1)->UpdateWindowUI(arg2); | |
27610 | ||
27611 | wxPyEndAllowThreads(__tstate); | |
27612 | if (PyErr_Occurred()) SWIG_fail; | |
27613 | } | |
27614 | Py_INCREF(Py_None); resultobj = Py_None; | |
27615 | return resultobj; | |
27616 | fail: | |
27617 | return NULL; | |
27618 | } | |
27619 | ||
27620 | ||
c32bde28 | 27621 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27622 | PyObject *resultobj; |
27623 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27624 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27625 | int arg3 = (int) -1 ; |
27626 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27627 | bool result; |
27628 | PyObject * obj0 = 0 ; | |
27629 | PyObject * obj1 = 0 ; | |
27630 | PyObject * obj2 = 0 ; | |
27631 | PyObject * obj3 = 0 ; | |
27632 | char *kwnames[] = { | |
27633 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27634 | }; | |
27635 | ||
7a0b95b0 | 27636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27639 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 | 27641 | if (obj2) { |
c32bde28 | 27642 | arg3 = (int)SWIG_As_int(obj2); |
7a0b95b0 RD |
27643 | if (PyErr_Occurred()) SWIG_fail; |
27644 | } | |
27645 | if (obj3) { | |
c32bde28 | 27646 | arg4 = (int)SWIG_As_int(obj3); |
7a0b95b0 RD |
27647 | if (PyErr_Occurred()) SWIG_fail; |
27648 | } | |
d55e5bfc RD |
27649 | { |
27650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27651 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27652 | ||
27653 | wxPyEndAllowThreads(__tstate); | |
27654 | if (PyErr_Occurred()) SWIG_fail; | |
27655 | } | |
27656 | { | |
27657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27658 | } | |
27659 | return resultobj; | |
27660 | fail: | |
27661 | return NULL; | |
27662 | } | |
27663 | ||
27664 | ||
c32bde28 | 27665 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27666 | PyObject *resultobj; |
27667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27668 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27669 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27670 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27671 | bool result; |
27672 | wxPoint temp3 ; | |
27673 | PyObject * obj0 = 0 ; | |
27674 | PyObject * obj1 = 0 ; | |
27675 | PyObject * obj2 = 0 ; | |
27676 | char *kwnames[] = { | |
27677 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27678 | }; | |
27679 | ||
7a0b95b0 | 27680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 RD |
27685 | if (obj2) { |
27686 | { | |
27687 | arg3 = &temp3; | |
27688 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27689 | } | |
d55e5bfc RD |
27690 | } |
27691 | { | |
27692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27693 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27694 | ||
27695 | wxPyEndAllowThreads(__tstate); | |
27696 | if (PyErr_Occurred()) SWIG_fail; | |
27697 | } | |
27698 | { | |
27699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27700 | } | |
27701 | return resultobj; | |
27702 | fail: | |
27703 | return NULL; | |
27704 | } | |
27705 | ||
27706 | ||
c32bde28 | 27707 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27708 | PyObject *resultobj; |
27709 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27710 | long result; | |
27711 | PyObject * obj0 = 0 ; | |
27712 | char *kwnames[] = { | |
27713 | (char *) "self", NULL | |
27714 | }; | |
27715 | ||
27716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
27717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27719 | { | |
27720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27721 | result = (long)wxWindow_GetHandle(arg1); | |
27722 | ||
27723 | wxPyEndAllowThreads(__tstate); | |
27724 | if (PyErr_Occurred()) SWIG_fail; | |
27725 | } | |
c32bde28 | 27726 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
27727 | return resultobj; |
27728 | fail: | |
27729 | return NULL; | |
27730 | } | |
27731 | ||
27732 | ||
7e63a440 RD |
27733 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
27734 | PyObject *resultobj; | |
27735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27736 | long arg2 ; | |
27737 | PyObject * obj0 = 0 ; | |
27738 | PyObject * obj1 = 0 ; | |
27739 | char *kwnames[] = { | |
27740 | (char *) "self",(char *) "handle", NULL | |
27741 | }; | |
27742 | ||
27743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
27744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27746 | arg2 = (long)SWIG_As_long(obj1); | |
27747 | if (PyErr_Occurred()) SWIG_fail; | |
27748 | { | |
27749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27750 | wxWindow_AssociateHandle(arg1,arg2); | |
27751 | ||
27752 | wxPyEndAllowThreads(__tstate); | |
27753 | if (PyErr_Occurred()) SWIG_fail; | |
27754 | } | |
27755 | Py_INCREF(Py_None); resultobj = Py_None; | |
27756 | return resultobj; | |
27757 | fail: | |
27758 | return NULL; | |
27759 | } | |
27760 | ||
27761 | ||
27762 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
27763 | PyObject *resultobj; | |
27764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27765 | PyObject * obj0 = 0 ; | |
27766 | char *kwnames[] = { | |
27767 | (char *) "self", NULL | |
27768 | }; | |
27769 | ||
27770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
27771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27773 | { | |
27774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27775 | (arg1)->DissociateHandle(); | |
27776 | ||
27777 | wxPyEndAllowThreads(__tstate); | |
27778 | if (PyErr_Occurred()) SWIG_fail; | |
27779 | } | |
27780 | Py_INCREF(Py_None); resultobj = Py_None; | |
27781 | return resultobj; | |
27782 | fail: | |
27783 | return NULL; | |
27784 | } | |
27785 | ||
27786 | ||
c32bde28 | 27787 | static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27788 | PyObject *resultobj; |
27789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27790 | wxPaintEvent *arg2 = 0 ; | |
27791 | PyObject * obj0 = 0 ; | |
27792 | PyObject * obj1 = 0 ; | |
27793 | char *kwnames[] = { | |
27794 | (char *) "self",(char *) "event", NULL | |
27795 | }; | |
27796 | ||
27797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
27798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
27801 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27802 | SWIG_fail; | |
27803 | if (arg2 == NULL) { | |
27804 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27805 | SWIG_fail; | |
27806 | } | |
27807 | { | |
27808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27809 | (arg1)->OnPaint(*arg2); | |
27810 | ||
27811 | wxPyEndAllowThreads(__tstate); | |
27812 | if (PyErr_Occurred()) SWIG_fail; | |
27813 | } | |
27814 | Py_INCREF(Py_None); resultobj = Py_None; | |
27815 | return resultobj; | |
27816 | fail: | |
27817 | return NULL; | |
27818 | } | |
27819 | ||
27820 | ||
c32bde28 | 27821 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27822 | PyObject *resultobj; |
27823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27824 | int arg2 ; | |
27825 | bool result; | |
27826 | PyObject * obj0 = 0 ; | |
27827 | PyObject * obj1 = 0 ; | |
27828 | char *kwnames[] = { | |
27829 | (char *) "self",(char *) "orient", NULL | |
27830 | }; | |
27831 | ||
27832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
27833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27835 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27836 | if (PyErr_Occurred()) SWIG_fail; |
27837 | { | |
27838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27839 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27840 | ||
27841 | wxPyEndAllowThreads(__tstate); | |
27842 | if (PyErr_Occurred()) SWIG_fail; | |
27843 | } | |
27844 | { | |
27845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27846 | } | |
27847 | return resultobj; | |
27848 | fail: | |
27849 | return NULL; | |
27850 | } | |
27851 | ||
27852 | ||
c32bde28 | 27853 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27854 | PyObject *resultobj; |
27855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27856 | int arg2 ; | |
27857 | int arg3 ; | |
27858 | int arg4 ; | |
27859 | int arg5 ; | |
ae8162c8 | 27860 | bool arg6 = (bool) true ; |
d55e5bfc RD |
27861 | PyObject * obj0 = 0 ; |
27862 | PyObject * obj1 = 0 ; | |
27863 | PyObject * obj2 = 0 ; | |
27864 | PyObject * obj3 = 0 ; | |
27865 | PyObject * obj4 = 0 ; | |
27866 | PyObject * obj5 = 0 ; | |
27867 | char *kwnames[] = { | |
79fccf9d | 27868 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
27869 | }; |
27870 | ||
27871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27874 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27875 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27876 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27877 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27878 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 27879 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27880 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27881 | if (PyErr_Occurred()) SWIG_fail; |
27882 | if (obj5) { | |
c32bde28 | 27883 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
27884 | if (PyErr_Occurred()) SWIG_fail; |
27885 | } | |
27886 | { | |
27887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27888 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27889 | ||
27890 | wxPyEndAllowThreads(__tstate); | |
27891 | if (PyErr_Occurred()) SWIG_fail; | |
27892 | } | |
27893 | Py_INCREF(Py_None); resultobj = Py_None; | |
27894 | return resultobj; | |
27895 | fail: | |
27896 | return NULL; | |
27897 | } | |
27898 | ||
27899 | ||
c32bde28 | 27900 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27901 | PyObject *resultobj; |
27902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27903 | int arg2 ; | |
27904 | int arg3 ; | |
ae8162c8 | 27905 | bool arg4 = (bool) true ; |
d55e5bfc RD |
27906 | PyObject * obj0 = 0 ; |
27907 | PyObject * obj1 = 0 ; | |
27908 | PyObject * obj2 = 0 ; | |
27909 | PyObject * obj3 = 0 ; | |
27910 | char *kwnames[] = { | |
27911 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27912 | }; | |
27913 | ||
27914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27917 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27918 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27919 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27920 | if (PyErr_Occurred()) SWIG_fail; |
27921 | if (obj3) { | |
c32bde28 | 27922 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
27923 | if (PyErr_Occurred()) SWIG_fail; |
27924 | } | |
27925 | { | |
27926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27927 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27928 | ||
27929 | wxPyEndAllowThreads(__tstate); | |
27930 | if (PyErr_Occurred()) SWIG_fail; | |
27931 | } | |
27932 | Py_INCREF(Py_None); resultobj = Py_None; | |
27933 | return resultobj; | |
27934 | fail: | |
27935 | return NULL; | |
27936 | } | |
27937 | ||
27938 | ||
c32bde28 | 27939 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27940 | PyObject *resultobj; |
27941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27942 | int arg2 ; | |
27943 | int result; | |
27944 | PyObject * obj0 = 0 ; | |
27945 | PyObject * obj1 = 0 ; | |
27946 | char *kwnames[] = { | |
27947 | (char *) "self",(char *) "orientation", NULL | |
27948 | }; | |
27949 | ||
27950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27953 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27954 | if (PyErr_Occurred()) SWIG_fail; |
27955 | { | |
27956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27957 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27958 | ||
27959 | wxPyEndAllowThreads(__tstate); | |
27960 | if (PyErr_Occurred()) SWIG_fail; | |
27961 | } | |
c32bde28 | 27962 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27963 | return resultobj; |
27964 | fail: | |
27965 | return NULL; | |
27966 | } | |
27967 | ||
27968 | ||
c32bde28 | 27969 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27970 | PyObject *resultobj; |
27971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27972 | int arg2 ; | |
27973 | int result; | |
27974 | PyObject * obj0 = 0 ; | |
27975 | PyObject * obj1 = 0 ; | |
27976 | char *kwnames[] = { | |
27977 | (char *) "self",(char *) "orientation", NULL | |
27978 | }; | |
27979 | ||
27980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27983 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27984 | if (PyErr_Occurred()) SWIG_fail; |
27985 | { | |
27986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27987 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27988 | ||
27989 | wxPyEndAllowThreads(__tstate); | |
27990 | if (PyErr_Occurred()) SWIG_fail; | |
27991 | } | |
c32bde28 | 27992 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27993 | return resultobj; |
27994 | fail: | |
27995 | return NULL; | |
27996 | } | |
27997 | ||
27998 | ||
c32bde28 | 27999 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28000 | PyObject *resultobj; |
28001 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28002 | int arg2 ; | |
28003 | int result; | |
28004 | PyObject * obj0 = 0 ; | |
28005 | PyObject * obj1 = 0 ; | |
28006 | char *kwnames[] = { | |
28007 | (char *) "self",(char *) "orientation", NULL | |
28008 | }; | |
28009 | ||
28010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
28011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28013 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28014 | if (PyErr_Occurred()) SWIG_fail; |
28015 | { | |
28016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28017 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28018 | ||
28019 | wxPyEndAllowThreads(__tstate); | |
28020 | if (PyErr_Occurred()) SWIG_fail; | |
28021 | } | |
c32bde28 | 28022 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28023 | return resultobj; |
28024 | fail: | |
28025 | return NULL; | |
28026 | } | |
28027 | ||
28028 | ||
c32bde28 | 28029 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28030 | PyObject *resultobj; |
28031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28032 | int arg2 ; | |
28033 | int arg3 ; | |
28034 | wxRect *arg4 = (wxRect *) NULL ; | |
28035 | PyObject * obj0 = 0 ; | |
28036 | PyObject * obj1 = 0 ; | |
28037 | PyObject * obj2 = 0 ; | |
28038 | PyObject * obj3 = 0 ; | |
28039 | char *kwnames[] = { | |
28040 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28041 | }; | |
28042 | ||
28043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28046 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28047 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28048 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28049 | if (PyErr_Occurred()) SWIG_fail; |
28050 | if (obj3) { | |
28051 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28053 | } | |
28054 | { | |
28055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28056 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28057 | ||
28058 | wxPyEndAllowThreads(__tstate); | |
28059 | if (PyErr_Occurred()) SWIG_fail; | |
28060 | } | |
28061 | Py_INCREF(Py_None); resultobj = Py_None; | |
28062 | return resultobj; | |
28063 | fail: | |
28064 | return NULL; | |
28065 | } | |
28066 | ||
28067 | ||
c32bde28 | 28068 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28069 | PyObject *resultobj; |
28070 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28071 | int arg2 ; | |
28072 | bool result; | |
28073 | PyObject * obj0 = 0 ; | |
28074 | PyObject * obj1 = 0 ; | |
28075 | char *kwnames[] = { | |
28076 | (char *) "self",(char *) "lines", NULL | |
28077 | }; | |
28078 | ||
28079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28082 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28083 | if (PyErr_Occurred()) SWIG_fail; |
28084 | { | |
28085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28086 | result = (bool)(arg1)->ScrollLines(arg2); | |
28087 | ||
28088 | wxPyEndAllowThreads(__tstate); | |
28089 | if (PyErr_Occurred()) SWIG_fail; | |
28090 | } | |
28091 | { | |
28092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28093 | } | |
28094 | return resultobj; | |
28095 | fail: | |
28096 | return NULL; | |
28097 | } | |
28098 | ||
28099 | ||
c32bde28 | 28100 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28101 | PyObject *resultobj; |
28102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28103 | int arg2 ; | |
28104 | bool result; | |
28105 | PyObject * obj0 = 0 ; | |
28106 | PyObject * obj1 = 0 ; | |
28107 | char *kwnames[] = { | |
28108 | (char *) "self",(char *) "pages", NULL | |
28109 | }; | |
28110 | ||
28111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
28112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28114 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28115 | if (PyErr_Occurred()) SWIG_fail; |
28116 | { | |
28117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28118 | result = (bool)(arg1)->ScrollPages(arg2); | |
28119 | ||
28120 | wxPyEndAllowThreads(__tstate); | |
28121 | if (PyErr_Occurred()) SWIG_fail; | |
28122 | } | |
28123 | { | |
28124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28125 | } | |
28126 | return resultobj; | |
28127 | fail: | |
28128 | return NULL; | |
28129 | } | |
28130 | ||
28131 | ||
c32bde28 | 28132 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28133 | PyObject *resultobj; |
28134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28135 | bool result; | |
28136 | PyObject * obj0 = 0 ; | |
28137 | char *kwnames[] = { | |
28138 | (char *) "self", NULL | |
28139 | }; | |
28140 | ||
28141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28144 | { | |
28145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28146 | result = (bool)(arg1)->LineUp(); | |
28147 | ||
28148 | wxPyEndAllowThreads(__tstate); | |
28149 | if (PyErr_Occurred()) SWIG_fail; | |
28150 | } | |
28151 | { | |
28152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28153 | } | |
28154 | return resultobj; | |
28155 | fail: | |
28156 | return NULL; | |
28157 | } | |
28158 | ||
28159 | ||
c32bde28 | 28160 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28161 | PyObject *resultobj; |
28162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28163 | bool result; | |
28164 | PyObject * obj0 = 0 ; | |
28165 | char *kwnames[] = { | |
28166 | (char *) "self", NULL | |
28167 | }; | |
28168 | ||
28169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28172 | { | |
28173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28174 | result = (bool)(arg1)->LineDown(); | |
28175 | ||
28176 | wxPyEndAllowThreads(__tstate); | |
28177 | if (PyErr_Occurred()) SWIG_fail; | |
28178 | } | |
28179 | { | |
28180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28181 | } | |
28182 | return resultobj; | |
28183 | fail: | |
28184 | return NULL; | |
28185 | } | |
28186 | ||
28187 | ||
c32bde28 | 28188 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28189 | PyObject *resultobj; |
28190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28191 | bool result; | |
28192 | PyObject * obj0 = 0 ; | |
28193 | char *kwnames[] = { | |
28194 | (char *) "self", NULL | |
28195 | }; | |
28196 | ||
28197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28200 | { | |
28201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28202 | result = (bool)(arg1)->PageUp(); | |
28203 | ||
28204 | wxPyEndAllowThreads(__tstate); | |
28205 | if (PyErr_Occurred()) SWIG_fail; | |
28206 | } | |
28207 | { | |
28208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28209 | } | |
28210 | return resultobj; | |
28211 | fail: | |
28212 | return NULL; | |
28213 | } | |
28214 | ||
28215 | ||
c32bde28 | 28216 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28217 | PyObject *resultobj; |
28218 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28219 | bool result; | |
28220 | PyObject * obj0 = 0 ; | |
28221 | char *kwnames[] = { | |
28222 | (char *) "self", NULL | |
28223 | }; | |
28224 | ||
28225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28228 | { | |
28229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28230 | result = (bool)(arg1)->PageDown(); | |
28231 | ||
28232 | wxPyEndAllowThreads(__tstate); | |
28233 | if (PyErr_Occurred()) SWIG_fail; | |
28234 | } | |
28235 | { | |
28236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28237 | } | |
28238 | return resultobj; | |
28239 | fail: | |
28240 | return NULL; | |
28241 | } | |
28242 | ||
28243 | ||
c32bde28 | 28244 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28245 | PyObject *resultobj; |
28246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28247 | wxString *arg2 = 0 ; | |
ae8162c8 | 28248 | bool temp2 = false ; |
d55e5bfc RD |
28249 | PyObject * obj0 = 0 ; |
28250 | PyObject * obj1 = 0 ; | |
28251 | char *kwnames[] = { | |
28252 | (char *) "self",(char *) "text", NULL | |
28253 | }; | |
28254 | ||
28255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28258 | { | |
28259 | arg2 = wxString_in_helper(obj1); | |
28260 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28261 | temp2 = true; |
d55e5bfc RD |
28262 | } |
28263 | { | |
28264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28265 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28266 | ||
28267 | wxPyEndAllowThreads(__tstate); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | Py_INCREF(Py_None); resultobj = Py_None; | |
28271 | { | |
28272 | if (temp2) | |
28273 | delete arg2; | |
28274 | } | |
28275 | return resultobj; | |
28276 | fail: | |
28277 | { | |
28278 | if (temp2) | |
28279 | delete arg2; | |
28280 | } | |
28281 | return NULL; | |
28282 | } | |
28283 | ||
28284 | ||
c32bde28 | 28285 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28286 | PyObject *resultobj; |
28287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28288 | wxString *arg2 = 0 ; | |
ae8162c8 | 28289 | bool temp2 = false ; |
d55e5bfc RD |
28290 | PyObject * obj0 = 0 ; |
28291 | PyObject * obj1 = 0 ; | |
28292 | char *kwnames[] = { | |
28293 | (char *) "self",(char *) "text", NULL | |
28294 | }; | |
28295 | ||
28296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28299 | { | |
28300 | arg2 = wxString_in_helper(obj1); | |
28301 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28302 | temp2 = true; |
d55e5bfc RD |
28303 | } |
28304 | { | |
28305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28306 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28307 | ||
28308 | wxPyEndAllowThreads(__tstate); | |
28309 | if (PyErr_Occurred()) SWIG_fail; | |
28310 | } | |
28311 | Py_INCREF(Py_None); resultobj = Py_None; | |
28312 | { | |
28313 | if (temp2) | |
28314 | delete arg2; | |
28315 | } | |
28316 | return resultobj; | |
28317 | fail: | |
28318 | { | |
28319 | if (temp2) | |
28320 | delete arg2; | |
28321 | } | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
c32bde28 | 28326 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28327 | PyObject *resultobj; |
28328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28329 | wxString result; | |
28330 | PyObject * obj0 = 0 ; | |
28331 | char *kwnames[] = { | |
28332 | (char *) "self", NULL | |
28333 | }; | |
28334 | ||
28335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28338 | { | |
28339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28340 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28341 | ||
28342 | wxPyEndAllowThreads(__tstate); | |
28343 | if (PyErr_Occurred()) SWIG_fail; | |
28344 | } | |
28345 | { | |
28346 | #if wxUSE_UNICODE | |
28347 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28348 | #else | |
28349 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28350 | #endif | |
28351 | } | |
28352 | return resultobj; | |
28353 | fail: | |
28354 | return NULL; | |
28355 | } | |
28356 | ||
28357 | ||
c32bde28 | 28358 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28359 | PyObject *resultobj; |
28360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28361 | wxString *arg2 = 0 ; | |
ae8162c8 | 28362 | bool temp2 = false ; |
d55e5bfc RD |
28363 | PyObject * obj0 = 0 ; |
28364 | PyObject * obj1 = 0 ; | |
28365 | char *kwnames[] = { | |
28366 | (char *) "self",(char *) "tip", NULL | |
28367 | }; | |
28368 | ||
28369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28372 | { | |
28373 | arg2 = wxString_in_helper(obj1); | |
28374 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28375 | temp2 = true; |
d55e5bfc RD |
28376 | } |
28377 | { | |
28378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28379 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28380 | ||
28381 | wxPyEndAllowThreads(__tstate); | |
28382 | if (PyErr_Occurred()) SWIG_fail; | |
28383 | } | |
28384 | Py_INCREF(Py_None); resultobj = Py_None; | |
28385 | { | |
28386 | if (temp2) | |
28387 | delete arg2; | |
28388 | } | |
28389 | return resultobj; | |
28390 | fail: | |
28391 | { | |
28392 | if (temp2) | |
28393 | delete arg2; | |
28394 | } | |
28395 | return NULL; | |
28396 | } | |
28397 | ||
28398 | ||
c32bde28 | 28399 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28400 | PyObject *resultobj; |
28401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28402 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28403 | PyObject * obj0 = 0 ; | |
28404 | PyObject * obj1 = 0 ; | |
28405 | char *kwnames[] = { | |
28406 | (char *) "self",(char *) "tip", NULL | |
28407 | }; | |
28408 | ||
28409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28414 | { | |
28415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28416 | (arg1)->SetToolTip(arg2); | |
28417 | ||
28418 | wxPyEndAllowThreads(__tstate); | |
28419 | if (PyErr_Occurred()) SWIG_fail; | |
28420 | } | |
28421 | Py_INCREF(Py_None); resultobj = Py_None; | |
28422 | return resultobj; | |
28423 | fail: | |
28424 | return NULL; | |
28425 | } | |
28426 | ||
28427 | ||
c32bde28 | 28428 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28429 | PyObject *resultobj; |
28430 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28431 | wxToolTip *result; | |
28432 | PyObject * obj0 = 0 ; | |
28433 | char *kwnames[] = { | |
28434 | (char *) "self", NULL | |
28435 | }; | |
28436 | ||
28437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
28438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28440 | { | |
28441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28442 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28443 | ||
28444 | wxPyEndAllowThreads(__tstate); | |
28445 | if (PyErr_Occurred()) SWIG_fail; | |
28446 | } | |
28447 | { | |
412d302d | 28448 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28449 | } |
28450 | return resultobj; | |
28451 | fail: | |
28452 | return NULL; | |
28453 | } | |
28454 | ||
28455 | ||
c32bde28 | 28456 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28457 | PyObject *resultobj; |
28458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28459 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28460 | PyObject * obj0 = 0 ; | |
28461 | PyObject * obj1 = 0 ; | |
28462 | char *kwnames[] = { | |
28463 | (char *) "self",(char *) "dropTarget", NULL | |
28464 | }; | |
28465 | ||
28466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28470 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28471 | { | |
28472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28473 | (arg1)->SetDropTarget(arg2); | |
28474 | ||
28475 | wxPyEndAllowThreads(__tstate); | |
28476 | if (PyErr_Occurred()) SWIG_fail; | |
28477 | } | |
28478 | Py_INCREF(Py_None); resultobj = Py_None; | |
28479 | return resultobj; | |
28480 | fail: | |
28481 | return NULL; | |
28482 | } | |
28483 | ||
28484 | ||
c32bde28 | 28485 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28486 | PyObject *resultobj; |
28487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28488 | wxPyDropTarget *result; | |
28489 | PyObject * obj0 = 0 ; | |
28490 | char *kwnames[] = { | |
28491 | (char *) "self", NULL | |
28492 | }; | |
28493 | ||
28494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28497 | { | |
28498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28499 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28500 | ||
28501 | wxPyEndAllowThreads(__tstate); | |
28502 | if (PyErr_Occurred()) SWIG_fail; | |
28503 | } | |
28504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28505 | return resultobj; | |
28506 | fail: | |
28507 | return NULL; | |
28508 | } | |
28509 | ||
28510 | ||
c32bde28 | 28511 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28512 | PyObject *resultobj; |
28513 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28514 | bool arg2 ; | |
28515 | PyObject * obj0 = 0 ; | |
28516 | PyObject * obj1 = 0 ; | |
28517 | char *kwnames[] = { | |
28518 | (char *) "self",(char *) "accept", NULL | |
28519 | }; | |
28520 | ||
28521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
28522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28524 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28525 | if (PyErr_Occurred()) SWIG_fail; |
28526 | { | |
28527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28528 | (arg1)->DragAcceptFiles(arg2); | |
28529 | ||
28530 | wxPyEndAllowThreads(__tstate); | |
28531 | if (PyErr_Occurred()) SWIG_fail; | |
28532 | } | |
28533 | Py_INCREF(Py_None); resultobj = Py_None; | |
28534 | return resultobj; | |
28535 | fail: | |
28536 | return NULL; | |
28537 | } | |
28538 | ||
28539 | ||
c32bde28 | 28540 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28541 | PyObject *resultobj; |
28542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28543 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28544 | PyObject * obj0 = 0 ; | |
28545 | PyObject * obj1 = 0 ; | |
28546 | char *kwnames[] = { | |
28547 | (char *) "self",(char *) "constraints", NULL | |
28548 | }; | |
28549 | ||
28550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28555 | { | |
28556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28557 | (arg1)->SetConstraints(arg2); | |
28558 | ||
28559 | wxPyEndAllowThreads(__tstate); | |
28560 | if (PyErr_Occurred()) SWIG_fail; | |
28561 | } | |
28562 | Py_INCREF(Py_None); resultobj = Py_None; | |
28563 | return resultobj; | |
28564 | fail: | |
28565 | return NULL; | |
28566 | } | |
28567 | ||
28568 | ||
c32bde28 | 28569 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28570 | PyObject *resultobj; |
28571 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28572 | wxLayoutConstraints *result; | |
28573 | PyObject * obj0 = 0 ; | |
28574 | char *kwnames[] = { | |
28575 | (char *) "self", NULL | |
28576 | }; | |
28577 | ||
28578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28581 | { | |
28582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28583 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28584 | ||
28585 | wxPyEndAllowThreads(__tstate); | |
28586 | if (PyErr_Occurred()) SWIG_fail; | |
28587 | } | |
28588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28589 | return resultobj; | |
28590 | fail: | |
28591 | return NULL; | |
28592 | } | |
28593 | ||
28594 | ||
c32bde28 | 28595 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28596 | PyObject *resultobj; |
28597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28598 | bool arg2 ; | |
28599 | PyObject * obj0 = 0 ; | |
28600 | PyObject * obj1 = 0 ; | |
28601 | char *kwnames[] = { | |
28602 | (char *) "self",(char *) "autoLayout", NULL | |
28603 | }; | |
28604 | ||
28605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28608 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28609 | if (PyErr_Occurred()) SWIG_fail; |
28610 | { | |
28611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28612 | (arg1)->SetAutoLayout(arg2); | |
28613 | ||
28614 | wxPyEndAllowThreads(__tstate); | |
28615 | if (PyErr_Occurred()) SWIG_fail; | |
28616 | } | |
28617 | Py_INCREF(Py_None); resultobj = Py_None; | |
28618 | return resultobj; | |
28619 | fail: | |
28620 | return NULL; | |
28621 | } | |
28622 | ||
28623 | ||
c32bde28 | 28624 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28625 | PyObject *resultobj; |
28626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28627 | bool result; | |
28628 | PyObject * obj0 = 0 ; | |
28629 | char *kwnames[] = { | |
28630 | (char *) "self", NULL | |
28631 | }; | |
28632 | ||
28633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28636 | { | |
28637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28638 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28639 | ||
28640 | wxPyEndAllowThreads(__tstate); | |
28641 | if (PyErr_Occurred()) SWIG_fail; | |
28642 | } | |
28643 | { | |
28644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28645 | } | |
28646 | return resultobj; | |
28647 | fail: | |
28648 | return NULL; | |
28649 | } | |
28650 | ||
28651 | ||
c32bde28 | 28652 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28653 | PyObject *resultobj; |
28654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28655 | bool result; | |
28656 | PyObject * obj0 = 0 ; | |
28657 | char *kwnames[] = { | |
28658 | (char *) "self", NULL | |
28659 | }; | |
28660 | ||
28661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28664 | { | |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | result = (bool)(arg1)->Layout(); | |
28667 | ||
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | { | |
28672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28673 | } | |
28674 | return resultobj; | |
28675 | fail: | |
28676 | return NULL; | |
28677 | } | |
28678 | ||
28679 | ||
c32bde28 | 28680 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28681 | PyObject *resultobj; |
28682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28683 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28684 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28685 | PyObject * obj0 = 0 ; |
28686 | PyObject * obj1 = 0 ; | |
28687 | PyObject * obj2 = 0 ; | |
28688 | char *kwnames[] = { | |
28689 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28690 | }; | |
28691 | ||
28692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28697 | if (obj2) { | |
c32bde28 | 28698 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28699 | if (PyErr_Occurred()) SWIG_fail; |
28700 | } | |
28701 | { | |
28702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28703 | (arg1)->SetSizer(arg2,arg3); | |
28704 | ||
28705 | wxPyEndAllowThreads(__tstate); | |
28706 | if (PyErr_Occurred()) SWIG_fail; | |
28707 | } | |
28708 | Py_INCREF(Py_None); resultobj = Py_None; | |
28709 | return resultobj; | |
28710 | fail: | |
28711 | return NULL; | |
28712 | } | |
28713 | ||
28714 | ||
c32bde28 | 28715 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28716 | PyObject *resultobj; |
28717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28718 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28719 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28720 | PyObject * obj0 = 0 ; |
28721 | PyObject * obj1 = 0 ; | |
28722 | PyObject * obj2 = 0 ; | |
28723 | char *kwnames[] = { | |
28724 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28725 | }; | |
28726 | ||
28727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28732 | if (obj2) { | |
c32bde28 | 28733 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28734 | if (PyErr_Occurred()) SWIG_fail; |
28735 | } | |
28736 | { | |
28737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28738 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28739 | ||
28740 | wxPyEndAllowThreads(__tstate); | |
28741 | if (PyErr_Occurred()) SWIG_fail; | |
28742 | } | |
28743 | Py_INCREF(Py_None); resultobj = Py_None; | |
28744 | return resultobj; | |
28745 | fail: | |
28746 | return NULL; | |
28747 | } | |
28748 | ||
28749 | ||
c32bde28 | 28750 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28751 | PyObject *resultobj; |
28752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28753 | wxSizer *result; | |
28754 | PyObject * obj0 = 0 ; | |
28755 | char *kwnames[] = { | |
28756 | (char *) "self", NULL | |
28757 | }; | |
28758 | ||
28759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
28760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28762 | { | |
28763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28764 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28765 | ||
28766 | wxPyEndAllowThreads(__tstate); | |
28767 | if (PyErr_Occurred()) SWIG_fail; | |
28768 | } | |
28769 | { | |
412d302d | 28770 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28771 | } |
28772 | return resultobj; | |
28773 | fail: | |
28774 | return NULL; | |
28775 | } | |
28776 | ||
28777 | ||
c32bde28 | 28778 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28779 | PyObject *resultobj; |
28780 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28781 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28782 | PyObject * obj0 = 0 ; | |
28783 | PyObject * obj1 = 0 ; | |
28784 | char *kwnames[] = { | |
28785 | (char *) "self",(char *) "sizer", NULL | |
28786 | }; | |
28787 | ||
28788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
28789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28793 | { | |
28794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28795 | (arg1)->SetContainingSizer(arg2); | |
28796 | ||
28797 | wxPyEndAllowThreads(__tstate); | |
28798 | if (PyErr_Occurred()) SWIG_fail; | |
28799 | } | |
28800 | Py_INCREF(Py_None); resultobj = Py_None; | |
28801 | return resultobj; | |
28802 | fail: | |
28803 | return NULL; | |
28804 | } | |
28805 | ||
28806 | ||
c32bde28 | 28807 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28808 | PyObject *resultobj; |
28809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28810 | wxSizer *result; | |
28811 | PyObject * obj0 = 0 ; | |
28812 | char *kwnames[] = { | |
28813 | (char *) "self", NULL | |
28814 | }; | |
28815 | ||
28816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
28817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28819 | { | |
28820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28821 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28822 | ||
28823 | wxPyEndAllowThreads(__tstate); | |
28824 | if (PyErr_Occurred()) SWIG_fail; | |
28825 | } | |
28826 | { | |
412d302d | 28827 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28828 | } |
28829 | return resultobj; | |
28830 | fail: | |
28831 | return NULL; | |
28832 | } | |
28833 | ||
28834 | ||
c32bde28 | 28835 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28836 | PyObject *resultobj; |
28837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28838 | PyObject * obj0 = 0 ; | |
28839 | char *kwnames[] = { | |
28840 | (char *) "self", NULL | |
28841 | }; | |
28842 | ||
28843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28846 | { | |
28847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28848 | (arg1)->InheritAttributes(); | |
28849 | ||
28850 | wxPyEndAllowThreads(__tstate); | |
28851 | if (PyErr_Occurred()) SWIG_fail; | |
28852 | } | |
28853 | Py_INCREF(Py_None); resultobj = Py_None; | |
28854 | return resultobj; | |
28855 | fail: | |
28856 | return NULL; | |
28857 | } | |
28858 | ||
28859 | ||
c32bde28 | 28860 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28861 | PyObject *resultobj; |
28862 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28863 | bool result; | |
28864 | PyObject * obj0 = 0 ; | |
28865 | char *kwnames[] = { | |
28866 | (char *) "self", NULL | |
28867 | }; | |
28868 | ||
28869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28872 | { | |
28873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28874 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28875 | ||
28876 | wxPyEndAllowThreads(__tstate); | |
28877 | if (PyErr_Occurred()) SWIG_fail; | |
28878 | } | |
28879 | { | |
28880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28881 | } | |
28882 | return resultobj; | |
28883 | fail: | |
28884 | return NULL; | |
28885 | } | |
28886 | ||
28887 | ||
c32bde28 | 28888 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28889 | PyObject *obj; |
28890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28891 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28892 | Py_INCREF(obj); | |
28893 | return Py_BuildValue((char *)""); | |
28894 | } | |
c32bde28 | 28895 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28896 | PyObject *resultobj; |
28897 | long arg1 ; | |
28898 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28899 | wxWindow *result; | |
28900 | PyObject * obj0 = 0 ; | |
28901 | PyObject * obj1 = 0 ; | |
28902 | char *kwnames[] = { | |
28903 | (char *) "id",(char *) "parent", NULL | |
28904 | }; | |
28905 | ||
28906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 28907 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
28908 | if (PyErr_Occurred()) SWIG_fail; |
28909 | if (obj1) { | |
28910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28912 | } | |
28913 | { | |
0439c23b | 28914 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28916 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28917 | ||
28918 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28919 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28920 | } |
28921 | { | |
412d302d | 28922 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28923 | } |
28924 | return resultobj; | |
28925 | fail: | |
28926 | return NULL; | |
28927 | } | |
28928 | ||
28929 | ||
c32bde28 | 28930 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28931 | PyObject *resultobj; |
28932 | wxString *arg1 = 0 ; | |
28933 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28934 | wxWindow *result; | |
ae8162c8 | 28935 | bool temp1 = false ; |
d55e5bfc RD |
28936 | PyObject * obj0 = 0 ; |
28937 | PyObject * obj1 = 0 ; | |
28938 | char *kwnames[] = { | |
28939 | (char *) "name",(char *) "parent", NULL | |
28940 | }; | |
28941 | ||
28942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28943 | { | |
28944 | arg1 = wxString_in_helper(obj0); | |
28945 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 28946 | temp1 = true; |
d55e5bfc RD |
28947 | } |
28948 | if (obj1) { | |
28949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28951 | } | |
28952 | { | |
0439c23b | 28953 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28955 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28956 | ||
28957 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28958 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28959 | } |
28960 | { | |
412d302d | 28961 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28962 | } |
28963 | { | |
28964 | if (temp1) | |
28965 | delete arg1; | |
28966 | } | |
28967 | return resultobj; | |
28968 | fail: | |
28969 | { | |
28970 | if (temp1) | |
28971 | delete arg1; | |
28972 | } | |
28973 | return NULL; | |
28974 | } | |
28975 | ||
28976 | ||
c32bde28 | 28977 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28978 | PyObject *resultobj; |
28979 | wxString *arg1 = 0 ; | |
28980 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28981 | wxWindow *result; | |
ae8162c8 | 28982 | bool temp1 = false ; |
d55e5bfc RD |
28983 | PyObject * obj0 = 0 ; |
28984 | PyObject * obj1 = 0 ; | |
28985 | char *kwnames[] = { | |
28986 | (char *) "label",(char *) "parent", NULL | |
28987 | }; | |
28988 | ||
28989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28990 | { | |
28991 | arg1 = wxString_in_helper(obj0); | |
28992 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 28993 | temp1 = true; |
d55e5bfc RD |
28994 | } |
28995 | if (obj1) { | |
28996 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28998 | } | |
28999 | { | |
0439c23b | 29000 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29002 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
29003 | ||
29004 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29005 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29006 | } |
29007 | { | |
412d302d | 29008 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29009 | } |
29010 | { | |
29011 | if (temp1) | |
29012 | delete arg1; | |
29013 | } | |
29014 | return resultobj; | |
29015 | fail: | |
29016 | { | |
29017 | if (temp1) | |
29018 | delete arg1; | |
29019 | } | |
29020 | return NULL; | |
29021 | } | |
29022 | ||
29023 | ||
c32bde28 | 29024 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29025 | PyObject *resultobj; |
29026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29027 | unsigned long arg2 ; | |
29028 | wxWindow *result; | |
29029 | PyObject * obj0 = 0 ; | |
29030 | PyObject * obj1 = 0 ; | |
29031 | char *kwnames[] = { | |
29032 | (char *) "parent",(char *) "_hWnd", NULL | |
29033 | }; | |
29034 | ||
29035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
29036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29038 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29039 | if (PyErr_Occurred()) SWIG_fail; |
29040 | { | |
29041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29042 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
29043 | ||
29044 | wxPyEndAllowThreads(__tstate); | |
29045 | if (PyErr_Occurred()) SWIG_fail; | |
29046 | } | |
29047 | { | |
412d302d | 29048 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29049 | } |
29050 | return resultobj; | |
29051 | fail: | |
29052 | return NULL; | |
29053 | } | |
29054 | ||
29055 | ||
c32bde28 | 29056 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29057 | PyObject *resultobj; |
29058 | wxValidator *result; | |
29059 | char *kwnames[] = { | |
29060 | NULL | |
29061 | }; | |
29062 | ||
29063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29064 | { | |
29065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29066 | result = (wxValidator *)new wxValidator(); | |
29067 | ||
29068 | wxPyEndAllowThreads(__tstate); | |
29069 | if (PyErr_Occurred()) SWIG_fail; | |
29070 | } | |
b0f7404b | 29071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29072 | return resultobj; |
29073 | fail: | |
29074 | return NULL; | |
29075 | } | |
29076 | ||
29077 | ||
c32bde28 | 29078 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29079 | PyObject *resultobj; |
29080 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29081 | wxValidator *result; | |
29082 | PyObject * obj0 = 0 ; | |
29083 | char *kwnames[] = { | |
29084 | (char *) "self", NULL | |
29085 | }; | |
29086 | ||
29087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29090 | { | |
29091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29092 | result = (wxValidator *)(arg1)->Clone(); | |
29093 | ||
29094 | wxPyEndAllowThreads(__tstate); | |
29095 | if (PyErr_Occurred()) SWIG_fail; | |
29096 | } | |
29097 | { | |
412d302d | 29098 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29099 | } |
29100 | return resultobj; | |
29101 | fail: | |
29102 | return NULL; | |
29103 | } | |
29104 | ||
29105 | ||
c32bde28 | 29106 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29107 | PyObject *resultobj; |
29108 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29109 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29110 | bool result; | |
29111 | PyObject * obj0 = 0 ; | |
29112 | PyObject * obj1 = 0 ; | |
29113 | char *kwnames[] = { | |
29114 | (char *) "self",(char *) "parent", NULL | |
29115 | }; | |
29116 | ||
29117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29122 | { | |
29123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29124 | result = (bool)(arg1)->Validate(arg2); | |
29125 | ||
29126 | wxPyEndAllowThreads(__tstate); | |
29127 | if (PyErr_Occurred()) SWIG_fail; | |
29128 | } | |
29129 | { | |
29130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29131 | } | |
29132 | return resultobj; | |
29133 | fail: | |
29134 | return NULL; | |
29135 | } | |
29136 | ||
29137 | ||
c32bde28 | 29138 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29139 | PyObject *resultobj; |
29140 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29141 | bool result; | |
29142 | PyObject * obj0 = 0 ; | |
29143 | char *kwnames[] = { | |
29144 | (char *) "self", NULL | |
29145 | }; | |
29146 | ||
29147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29150 | { | |
29151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29152 | result = (bool)(arg1)->TransferToWindow(); | |
29153 | ||
29154 | wxPyEndAllowThreads(__tstate); | |
29155 | if (PyErr_Occurred()) SWIG_fail; | |
29156 | } | |
29157 | { | |
29158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29159 | } | |
29160 | return resultobj; | |
29161 | fail: | |
29162 | return NULL; | |
29163 | } | |
29164 | ||
29165 | ||
c32bde28 | 29166 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29167 | PyObject *resultobj; |
29168 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29169 | bool result; | |
29170 | PyObject * obj0 = 0 ; | |
29171 | char *kwnames[] = { | |
29172 | (char *) "self", NULL | |
29173 | }; | |
29174 | ||
29175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29178 | { | |
29179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29180 | result = (bool)(arg1)->TransferFromWindow(); | |
29181 | ||
29182 | wxPyEndAllowThreads(__tstate); | |
29183 | if (PyErr_Occurred()) SWIG_fail; | |
29184 | } | |
29185 | { | |
29186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29187 | } | |
29188 | return resultobj; | |
29189 | fail: | |
29190 | return NULL; | |
29191 | } | |
29192 | ||
29193 | ||
c32bde28 | 29194 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29195 | PyObject *resultobj; |
29196 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29197 | wxWindow *result; | |
29198 | PyObject * obj0 = 0 ; | |
29199 | char *kwnames[] = { | |
29200 | (char *) "self", NULL | |
29201 | }; | |
29202 | ||
29203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29206 | { | |
29207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29208 | result = (wxWindow *)(arg1)->GetWindow(); | |
29209 | ||
29210 | wxPyEndAllowThreads(__tstate); | |
29211 | if (PyErr_Occurred()) SWIG_fail; | |
29212 | } | |
29213 | { | |
412d302d | 29214 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29215 | } |
29216 | return resultobj; | |
29217 | fail: | |
29218 | return NULL; | |
29219 | } | |
29220 | ||
29221 | ||
c32bde28 | 29222 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29223 | PyObject *resultobj; |
29224 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29225 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29226 | PyObject * obj0 = 0 ; | |
29227 | PyObject * obj1 = 0 ; | |
29228 | char *kwnames[] = { | |
29229 | (char *) "self",(char *) "window", NULL | |
29230 | }; | |
29231 | ||
29232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29237 | { | |
29238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29239 | (arg1)->SetWindow(arg2); | |
29240 | ||
29241 | wxPyEndAllowThreads(__tstate); | |
29242 | if (PyErr_Occurred()) SWIG_fail; | |
29243 | } | |
29244 | Py_INCREF(Py_None); resultobj = Py_None; | |
29245 | return resultobj; | |
29246 | fail: | |
29247 | return NULL; | |
29248 | } | |
29249 | ||
29250 | ||
c32bde28 | 29251 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29252 | PyObject *resultobj; |
29253 | bool result; | |
29254 | char *kwnames[] = { | |
29255 | NULL | |
29256 | }; | |
29257 | ||
29258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29259 | { | |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | result = (bool)wxValidator::IsSilent(); | |
29262 | ||
29263 | wxPyEndAllowThreads(__tstate); | |
29264 | if (PyErr_Occurred()) SWIG_fail; | |
29265 | } | |
29266 | { | |
29267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29268 | } | |
29269 | return resultobj; | |
29270 | fail: | |
29271 | return NULL; | |
29272 | } | |
29273 | ||
29274 | ||
c32bde28 | 29275 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29276 | PyObject *resultobj; |
ae8162c8 | 29277 | int arg1 = (int) true ; |
d55e5bfc RD |
29278 | PyObject * obj0 = 0 ; |
29279 | char *kwnames[] = { | |
29280 | (char *) "doIt", NULL | |
29281 | }; | |
29282 | ||
29283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29284 | if (obj0) { | |
c32bde28 | 29285 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29286 | if (PyErr_Occurred()) SWIG_fail; |
29287 | } | |
29288 | { | |
29289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29290 | wxValidator::SetBellOnError(arg1); | |
29291 | ||
29292 | wxPyEndAllowThreads(__tstate); | |
29293 | if (PyErr_Occurred()) SWIG_fail; | |
29294 | } | |
29295 | Py_INCREF(Py_None); resultobj = Py_None; | |
29296 | return resultobj; | |
29297 | fail: | |
29298 | return NULL; | |
29299 | } | |
29300 | ||
29301 | ||
c32bde28 | 29302 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29303 | PyObject *obj; |
29304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29305 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29306 | Py_INCREF(obj); | |
29307 | return Py_BuildValue((char *)""); | |
29308 | } | |
c32bde28 | 29309 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29310 | PyObject *resultobj; |
29311 | wxPyValidator *result; | |
29312 | char *kwnames[] = { | |
29313 | NULL | |
29314 | }; | |
29315 | ||
29316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29317 | { | |
29318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29319 | result = (wxPyValidator *)new wxPyValidator(); | |
29320 | ||
29321 | wxPyEndAllowThreads(__tstate); | |
29322 | if (PyErr_Occurred()) SWIG_fail; | |
29323 | } | |
29324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29325 | return resultobj; | |
29326 | fail: | |
29327 | return NULL; | |
29328 | } | |
29329 | ||
29330 | ||
c32bde28 | 29331 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29332 | PyObject *resultobj; |
29333 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29334 | PyObject *arg2 = (PyObject *) 0 ; | |
29335 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 29336 | int arg4 = (int) true ; |
d55e5bfc RD |
29337 | PyObject * obj0 = 0 ; |
29338 | PyObject * obj1 = 0 ; | |
29339 | PyObject * obj2 = 0 ; | |
29340 | PyObject * obj3 = 0 ; | |
29341 | char *kwnames[] = { | |
29342 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29343 | }; | |
29344 | ||
29345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29348 | arg2 = obj1; | |
29349 | arg3 = obj2; | |
29350 | if (obj3) { | |
c32bde28 | 29351 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29352 | if (PyErr_Occurred()) SWIG_fail; |
29353 | } | |
29354 | { | |
29355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29356 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29357 | ||
29358 | wxPyEndAllowThreads(__tstate); | |
29359 | if (PyErr_Occurred()) SWIG_fail; | |
29360 | } | |
29361 | Py_INCREF(Py_None); resultobj = Py_None; | |
29362 | return resultobj; | |
29363 | fail: | |
29364 | return NULL; | |
29365 | } | |
29366 | ||
29367 | ||
c32bde28 | 29368 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29369 | PyObject *obj; |
29370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29371 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29372 | Py_INCREF(obj); | |
29373 | return Py_BuildValue((char *)""); | |
29374 | } | |
c32bde28 | 29375 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29376 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29377 | return 1; | |
29378 | } | |
29379 | ||
29380 | ||
29381 | static PyObject *_wrap_DefaultValidator_get() { | |
29382 | PyObject *pyobj; | |
29383 | ||
29384 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29385 | return pyobj; | |
29386 | } | |
29387 | ||
29388 | ||
c32bde28 | 29389 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29390 | PyObject *resultobj; |
29391 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29392 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29393 | long arg2 = (long) 0 ; | |
29394 | wxMenu *result; | |
ae8162c8 | 29395 | bool temp1 = false ; |
d55e5bfc RD |
29396 | PyObject * obj0 = 0 ; |
29397 | PyObject * obj1 = 0 ; | |
29398 | char *kwnames[] = { | |
29399 | (char *) "title",(char *) "style", NULL | |
29400 | }; | |
29401 | ||
29402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29403 | if (obj0) { | |
29404 | { | |
29405 | arg1 = wxString_in_helper(obj0); | |
29406 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29407 | temp1 = true; |
d55e5bfc RD |
29408 | } |
29409 | } | |
29410 | if (obj1) { | |
c32bde28 | 29411 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29412 | if (PyErr_Occurred()) SWIG_fail; |
29413 | } | |
29414 | { | |
0439c23b | 29415 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29417 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29418 | ||
29419 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29420 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29421 | } |
b0f7404b | 29422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29423 | { |
29424 | if (temp1) | |
29425 | delete arg1; | |
29426 | } | |
29427 | return resultobj; | |
29428 | fail: | |
29429 | { | |
29430 | if (temp1) | |
29431 | delete arg1; | |
29432 | } | |
29433 | return NULL; | |
29434 | } | |
29435 | ||
29436 | ||
c32bde28 | 29437 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29438 | PyObject *resultobj; |
29439 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29440 | int arg2 ; | |
29441 | wxString *arg3 = 0 ; | |
29442 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29443 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29444 | int arg5 = (int) wxITEM_NORMAL ; | |
29445 | wxMenuItem *result; | |
ae8162c8 RD |
29446 | bool temp3 = false ; |
29447 | bool temp4 = false ; | |
d55e5bfc RD |
29448 | PyObject * obj0 = 0 ; |
29449 | PyObject * obj1 = 0 ; | |
29450 | PyObject * obj2 = 0 ; | |
29451 | PyObject * obj3 = 0 ; | |
29452 | PyObject * obj4 = 0 ; | |
29453 | char *kwnames[] = { | |
29454 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29455 | }; | |
29456 | ||
29457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29460 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29461 | if (PyErr_Occurred()) SWIG_fail; |
29462 | { | |
29463 | arg3 = wxString_in_helper(obj2); | |
29464 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29465 | temp3 = true; |
d55e5bfc RD |
29466 | } |
29467 | if (obj3) { | |
29468 | { | |
29469 | arg4 = wxString_in_helper(obj3); | |
29470 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29471 | temp4 = true; |
d55e5bfc RD |
29472 | } |
29473 | } | |
29474 | if (obj4) { | |
c32bde28 | 29475 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29476 | if (PyErr_Occurred()) SWIG_fail; |
29477 | } | |
29478 | { | |
29479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29480 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29481 | ||
29482 | wxPyEndAllowThreads(__tstate); | |
29483 | if (PyErr_Occurred()) SWIG_fail; | |
29484 | } | |
29485 | { | |
412d302d | 29486 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29487 | } |
29488 | { | |
29489 | if (temp3) | |
29490 | delete arg3; | |
29491 | } | |
29492 | { | |
29493 | if (temp4) | |
29494 | delete arg4; | |
29495 | } | |
29496 | return resultobj; | |
29497 | fail: | |
29498 | { | |
29499 | if (temp3) | |
29500 | delete arg3; | |
29501 | } | |
29502 | { | |
29503 | if (temp4) | |
29504 | delete arg4; | |
29505 | } | |
29506 | return NULL; | |
29507 | } | |
29508 | ||
29509 | ||
c32bde28 | 29510 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29511 | PyObject *resultobj; |
29512 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29513 | wxMenuItem *result; | |
29514 | PyObject * obj0 = 0 ; | |
29515 | char *kwnames[] = { | |
29516 | (char *) "self", NULL | |
29517 | }; | |
29518 | ||
29519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29522 | { | |
29523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29524 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29525 | ||
29526 | wxPyEndAllowThreads(__tstate); | |
29527 | if (PyErr_Occurred()) SWIG_fail; | |
29528 | } | |
29529 | { | |
412d302d | 29530 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29531 | } |
29532 | return resultobj; | |
29533 | fail: | |
29534 | return NULL; | |
29535 | } | |
29536 | ||
29537 | ||
c32bde28 | 29538 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29539 | PyObject *resultobj; |
29540 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29541 | int arg2 ; | |
29542 | wxString *arg3 = 0 ; | |
29543 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29544 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29545 | wxMenuItem *result; | |
ae8162c8 RD |
29546 | bool temp3 = false ; |
29547 | bool temp4 = false ; | |
d55e5bfc RD |
29548 | PyObject * obj0 = 0 ; |
29549 | PyObject * obj1 = 0 ; | |
29550 | PyObject * obj2 = 0 ; | |
29551 | PyObject * obj3 = 0 ; | |
29552 | char *kwnames[] = { | |
29553 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29554 | }; | |
29555 | ||
29556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29559 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29560 | if (PyErr_Occurred()) SWIG_fail; |
29561 | { | |
29562 | arg3 = wxString_in_helper(obj2); | |
29563 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29564 | temp3 = true; |
d55e5bfc RD |
29565 | } |
29566 | if (obj3) { | |
29567 | { | |
29568 | arg4 = wxString_in_helper(obj3); | |
29569 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29570 | temp4 = true; |
d55e5bfc RD |
29571 | } |
29572 | } | |
29573 | { | |
29574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29575 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29576 | ||
29577 | wxPyEndAllowThreads(__tstate); | |
29578 | if (PyErr_Occurred()) SWIG_fail; | |
29579 | } | |
29580 | { | |
412d302d | 29581 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29582 | } |
29583 | { | |
29584 | if (temp3) | |
29585 | delete arg3; | |
29586 | } | |
29587 | { | |
29588 | if (temp4) | |
29589 | delete arg4; | |
29590 | } | |
29591 | return resultobj; | |
29592 | fail: | |
29593 | { | |
29594 | if (temp3) | |
29595 | delete arg3; | |
29596 | } | |
29597 | { | |
29598 | if (temp4) | |
29599 | delete arg4; | |
29600 | } | |
29601 | return NULL; | |
29602 | } | |
29603 | ||
29604 | ||
c32bde28 | 29605 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29606 | PyObject *resultobj; |
29607 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29608 | int arg2 ; | |
29609 | wxString *arg3 = 0 ; | |
29610 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29611 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29612 | wxMenuItem *result; | |
ae8162c8 RD |
29613 | bool temp3 = false ; |
29614 | bool temp4 = false ; | |
d55e5bfc RD |
29615 | PyObject * obj0 = 0 ; |
29616 | PyObject * obj1 = 0 ; | |
29617 | PyObject * obj2 = 0 ; | |
29618 | PyObject * obj3 = 0 ; | |
29619 | char *kwnames[] = { | |
29620 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29621 | }; | |
29622 | ||
29623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29626 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29627 | if (PyErr_Occurred()) SWIG_fail; |
29628 | { | |
29629 | arg3 = wxString_in_helper(obj2); | |
29630 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29631 | temp3 = true; |
d55e5bfc RD |
29632 | } |
29633 | if (obj3) { | |
29634 | { | |
29635 | arg4 = wxString_in_helper(obj3); | |
29636 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29637 | temp4 = true; |
d55e5bfc RD |
29638 | } |
29639 | } | |
29640 | { | |
29641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29642 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29643 | ||
29644 | wxPyEndAllowThreads(__tstate); | |
29645 | if (PyErr_Occurred()) SWIG_fail; | |
29646 | } | |
29647 | { | |
412d302d | 29648 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29649 | } |
29650 | { | |
29651 | if (temp3) | |
29652 | delete arg3; | |
29653 | } | |
29654 | { | |
29655 | if (temp4) | |
29656 | delete arg4; | |
29657 | } | |
29658 | return resultobj; | |
29659 | fail: | |
29660 | { | |
29661 | if (temp3) | |
29662 | delete arg3; | |
29663 | } | |
29664 | { | |
29665 | if (temp4) | |
29666 | delete arg4; | |
29667 | } | |
29668 | return NULL; | |
29669 | } | |
29670 | ||
29671 | ||
c32bde28 | 29672 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29673 | PyObject *resultobj; |
29674 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29675 | int arg2 ; | |
29676 | wxString *arg3 = 0 ; | |
29677 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29678 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29679 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29680 | wxMenuItem *result; | |
ae8162c8 RD |
29681 | bool temp3 = false ; |
29682 | bool temp5 = false ; | |
d55e5bfc RD |
29683 | PyObject * obj0 = 0 ; |
29684 | PyObject * obj1 = 0 ; | |
29685 | PyObject * obj2 = 0 ; | |
29686 | PyObject * obj3 = 0 ; | |
29687 | PyObject * obj4 = 0 ; | |
29688 | char *kwnames[] = { | |
29689 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29690 | }; | |
29691 | ||
29692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29695 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29696 | if (PyErr_Occurred()) SWIG_fail; |
29697 | { | |
29698 | arg3 = wxString_in_helper(obj2); | |
29699 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29700 | temp3 = true; |
d55e5bfc RD |
29701 | } |
29702 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29704 | if (obj4) { | |
29705 | { | |
29706 | arg5 = wxString_in_helper(obj4); | |
29707 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29708 | temp5 = true; |
d55e5bfc RD |
29709 | } |
29710 | } | |
29711 | { | |
29712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29713 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29714 | ||
29715 | wxPyEndAllowThreads(__tstate); | |
29716 | if (PyErr_Occurred()) SWIG_fail; | |
29717 | } | |
29718 | { | |
412d302d | 29719 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29720 | } |
29721 | { | |
29722 | if (temp3) | |
29723 | delete arg3; | |
29724 | } | |
29725 | { | |
29726 | if (temp5) | |
29727 | delete arg5; | |
29728 | } | |
29729 | return resultobj; | |
29730 | fail: | |
29731 | { | |
29732 | if (temp3) | |
29733 | delete arg3; | |
29734 | } | |
29735 | { | |
29736 | if (temp5) | |
29737 | delete arg5; | |
29738 | } | |
29739 | return NULL; | |
29740 | } | |
29741 | ||
29742 | ||
c32bde28 | 29743 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29744 | PyObject *resultobj; |
29745 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29746 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29747 | wxMenuItem *result; | |
29748 | PyObject * obj0 = 0 ; | |
29749 | PyObject * obj1 = 0 ; | |
29750 | char *kwnames[] = { | |
29751 | (char *) "self",(char *) "item", NULL | |
29752 | }; | |
29753 | ||
29754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
29755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29759 | { | |
29760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29761 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
29762 | ||
29763 | wxPyEndAllowThreads(__tstate); | |
29764 | if (PyErr_Occurred()) SWIG_fail; | |
29765 | } | |
29766 | { | |
412d302d | 29767 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29768 | } |
29769 | return resultobj; | |
29770 | fail: | |
29771 | return NULL; | |
29772 | } | |
29773 | ||
29774 | ||
c32bde28 | 29775 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29776 | PyObject *resultobj; |
29777 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29778 | PyObject * obj0 = 0 ; | |
29779 | char *kwnames[] = { | |
29780 | (char *) "self", NULL | |
29781 | }; | |
29782 | ||
29783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
29784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29786 | { | |
29787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29788 | (arg1)->Break(); | |
29789 | ||
29790 | wxPyEndAllowThreads(__tstate); | |
29791 | if (PyErr_Occurred()) SWIG_fail; | |
29792 | } | |
29793 | Py_INCREF(Py_None); resultobj = Py_None; | |
29794 | return resultobj; | |
29795 | fail: | |
29796 | return NULL; | |
29797 | } | |
29798 | ||
29799 | ||
c32bde28 | 29800 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29801 | PyObject *resultobj; |
29802 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29803 | size_t arg2 ; | |
29804 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
29805 | wxMenuItem *result; | |
29806 | PyObject * obj0 = 0 ; | |
29807 | PyObject * obj1 = 0 ; | |
29808 | PyObject * obj2 = 0 ; | |
29809 | char *kwnames[] = { | |
29810 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29811 | }; | |
29812 | ||
29813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29816 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29817 | if (PyErr_Occurred()) SWIG_fail; |
29818 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29820 | { | |
29821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29822 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
29823 | ||
29824 | wxPyEndAllowThreads(__tstate); | |
29825 | if (PyErr_Occurred()) SWIG_fail; | |
29826 | } | |
29827 | { | |
412d302d | 29828 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29829 | } |
29830 | return resultobj; | |
29831 | fail: | |
29832 | return NULL; | |
29833 | } | |
29834 | ||
29835 | ||
c32bde28 | 29836 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29837 | PyObject *resultobj; |
29838 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29839 | size_t arg2 ; | |
29840 | int arg3 ; | |
29841 | wxString *arg4 = 0 ; | |
29842 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29843 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29844 | int arg6 = (int) wxITEM_NORMAL ; | |
29845 | wxMenuItem *result; | |
ae8162c8 RD |
29846 | bool temp4 = false ; |
29847 | bool temp5 = false ; | |
d55e5bfc RD |
29848 | PyObject * obj0 = 0 ; |
29849 | PyObject * obj1 = 0 ; | |
29850 | PyObject * obj2 = 0 ; | |
29851 | PyObject * obj3 = 0 ; | |
29852 | PyObject * obj4 = 0 ; | |
29853 | PyObject * obj5 = 0 ; | |
29854 | char *kwnames[] = { | |
29855 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29856 | }; | |
29857 | ||
29858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29861 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29862 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29863 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29864 | if (PyErr_Occurred()) SWIG_fail; |
29865 | { | |
29866 | arg4 = wxString_in_helper(obj3); | |
29867 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29868 | temp4 = true; |
d55e5bfc RD |
29869 | } |
29870 | if (obj4) { | |
29871 | { | |
29872 | arg5 = wxString_in_helper(obj4); | |
29873 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29874 | temp5 = true; |
d55e5bfc RD |
29875 | } |
29876 | } | |
29877 | if (obj5) { | |
c32bde28 | 29878 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
29879 | if (PyErr_Occurred()) SWIG_fail; |
29880 | } | |
29881 | { | |
29882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29883 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
29884 | ||
29885 | wxPyEndAllowThreads(__tstate); | |
29886 | if (PyErr_Occurred()) SWIG_fail; | |
29887 | } | |
29888 | { | |
412d302d | 29889 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29890 | } |
29891 | { | |
29892 | if (temp4) | |
29893 | delete arg4; | |
29894 | } | |
29895 | { | |
29896 | if (temp5) | |
29897 | delete arg5; | |
29898 | } | |
29899 | return resultobj; | |
29900 | fail: | |
29901 | { | |
29902 | if (temp4) | |
29903 | delete arg4; | |
29904 | } | |
29905 | { | |
29906 | if (temp5) | |
29907 | delete arg5; | |
29908 | } | |
29909 | return NULL; | |
29910 | } | |
29911 | ||
29912 | ||
c32bde28 | 29913 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29914 | PyObject *resultobj; |
29915 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29916 | size_t arg2 ; | |
29917 | wxMenuItem *result; | |
29918 | PyObject * obj0 = 0 ; | |
29919 | PyObject * obj1 = 0 ; | |
29920 | char *kwnames[] = { | |
29921 | (char *) "self",(char *) "pos", NULL | |
29922 | }; | |
29923 | ||
29924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29927 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29928 | if (PyErr_Occurred()) SWIG_fail; |
29929 | { | |
29930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29931 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
29932 | ||
29933 | wxPyEndAllowThreads(__tstate); | |
29934 | if (PyErr_Occurred()) SWIG_fail; | |
29935 | } | |
29936 | { | |
412d302d | 29937 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29938 | } |
29939 | return resultobj; | |
29940 | fail: | |
29941 | return NULL; | |
29942 | } | |
29943 | ||
29944 | ||
c32bde28 | 29945 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29946 | PyObject *resultobj; |
29947 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29948 | size_t arg2 ; | |
29949 | int arg3 ; | |
29950 | wxString *arg4 = 0 ; | |
29951 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29952 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29953 | wxMenuItem *result; | |
ae8162c8 RD |
29954 | bool temp4 = false ; |
29955 | bool temp5 = false ; | |
d55e5bfc RD |
29956 | PyObject * obj0 = 0 ; |
29957 | PyObject * obj1 = 0 ; | |
29958 | PyObject * obj2 = 0 ; | |
29959 | PyObject * obj3 = 0 ; | |
29960 | PyObject * obj4 = 0 ; | |
29961 | char *kwnames[] = { | |
29962 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29963 | }; | |
29964 | ||
29965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29968 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29969 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29970 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29971 | if (PyErr_Occurred()) SWIG_fail; |
29972 | { | |
29973 | arg4 = wxString_in_helper(obj3); | |
29974 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29975 | temp4 = true; |
d55e5bfc RD |
29976 | } |
29977 | if (obj4) { | |
29978 | { | |
29979 | arg5 = wxString_in_helper(obj4); | |
29980 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29981 | temp5 = true; |
d55e5bfc RD |
29982 | } |
29983 | } | |
29984 | { | |
29985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29986 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29987 | ||
29988 | wxPyEndAllowThreads(__tstate); | |
29989 | if (PyErr_Occurred()) SWIG_fail; | |
29990 | } | |
29991 | { | |
412d302d | 29992 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29993 | } |
29994 | { | |
29995 | if (temp4) | |
29996 | delete arg4; | |
29997 | } | |
29998 | { | |
29999 | if (temp5) | |
30000 | delete arg5; | |
30001 | } | |
30002 | return resultobj; | |
30003 | fail: | |
30004 | { | |
30005 | if (temp4) | |
30006 | delete arg4; | |
30007 | } | |
30008 | { | |
30009 | if (temp5) | |
30010 | delete arg5; | |
30011 | } | |
30012 | return NULL; | |
30013 | } | |
30014 | ||
30015 | ||
c32bde28 | 30016 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30017 | PyObject *resultobj; |
30018 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30019 | size_t arg2 ; | |
30020 | int arg3 ; | |
30021 | wxString *arg4 = 0 ; | |
30022 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30023 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30024 | wxMenuItem *result; | |
ae8162c8 RD |
30025 | bool temp4 = false ; |
30026 | bool temp5 = false ; | |
d55e5bfc RD |
30027 | PyObject * obj0 = 0 ; |
30028 | PyObject * obj1 = 0 ; | |
30029 | PyObject * obj2 = 0 ; | |
30030 | PyObject * obj3 = 0 ; | |
30031 | PyObject * obj4 = 0 ; | |
30032 | char *kwnames[] = { | |
30033 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30034 | }; | |
30035 | ||
30036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30039 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30040 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30041 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30042 | if (PyErr_Occurred()) SWIG_fail; |
30043 | { | |
30044 | arg4 = wxString_in_helper(obj3); | |
30045 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30046 | temp4 = true; |
d55e5bfc RD |
30047 | } |
30048 | if (obj4) { | |
30049 | { | |
30050 | arg5 = wxString_in_helper(obj4); | |
30051 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30052 | temp5 = true; |
d55e5bfc RD |
30053 | } |
30054 | } | |
30055 | { | |
30056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30057 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30058 | ||
30059 | wxPyEndAllowThreads(__tstate); | |
30060 | if (PyErr_Occurred()) SWIG_fail; | |
30061 | } | |
30062 | { | |
412d302d | 30063 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30064 | } |
30065 | { | |
30066 | if (temp4) | |
30067 | delete arg4; | |
30068 | } | |
30069 | { | |
30070 | if (temp5) | |
30071 | delete arg5; | |
30072 | } | |
30073 | return resultobj; | |
30074 | fail: | |
30075 | { | |
30076 | if (temp4) | |
30077 | delete arg4; | |
30078 | } | |
30079 | { | |
30080 | if (temp5) | |
30081 | delete arg5; | |
30082 | } | |
30083 | return NULL; | |
30084 | } | |
30085 | ||
30086 | ||
c32bde28 | 30087 | static PyObject *_wrap_Menu_InsertMenu(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 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30094 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30095 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30096 | wxMenuItem *result; | |
ae8162c8 RD |
30097 | bool temp4 = false ; |
30098 | bool temp6 = 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 *) "submenu",(char *) "help", NULL | |
30107 | }; | |
30108 | ||
30109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",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; | |
c32bde28 | 30112 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30113 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 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; | |
ae8162c8 | 30119 | temp4 = true; |
d55e5bfc RD |
30120 | } |
30121 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30123 | if (obj5) { | |
30124 | { | |
30125 | arg6 = wxString_in_helper(obj5); | |
30126 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 30127 | temp6 = true; |
d55e5bfc RD |
30128 | } |
30129 | } | |
30130 | { | |
30131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30132 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30133 | ||
30134 | wxPyEndAllowThreads(__tstate); | |
30135 | if (PyErr_Occurred()) SWIG_fail; | |
30136 | } | |
30137 | { | |
412d302d | 30138 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30139 | } |
30140 | { | |
30141 | if (temp4) | |
30142 | delete arg4; | |
30143 | } | |
30144 | { | |
30145 | if (temp6) | |
30146 | delete arg6; | |
30147 | } | |
30148 | return resultobj; | |
30149 | fail: | |
30150 | { | |
30151 | if (temp4) | |
30152 | delete arg4; | |
30153 | } | |
30154 | { | |
30155 | if (temp6) | |
30156 | delete arg6; | |
30157 | } | |
30158 | return NULL; | |
30159 | } | |
30160 | ||
30161 | ||
c32bde28 | 30162 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30163 | PyObject *resultobj; |
30164 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30165 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30166 | wxMenuItem *result; | |
30167 | PyObject * obj0 = 0 ; | |
30168 | PyObject * obj1 = 0 ; | |
30169 | char *kwnames[] = { | |
30170 | (char *) "self",(char *) "item", NULL | |
30171 | }; | |
30172 | ||
30173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30178 | { | |
30179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30180 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30181 | ||
30182 | wxPyEndAllowThreads(__tstate); | |
30183 | if (PyErr_Occurred()) SWIG_fail; | |
30184 | } | |
30185 | { | |
412d302d | 30186 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30187 | } |
30188 | return resultobj; | |
30189 | fail: | |
30190 | return NULL; | |
30191 | } | |
30192 | ||
30193 | ||
c32bde28 | 30194 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30195 | PyObject *resultobj; |
30196 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30197 | int arg2 ; | |
30198 | wxString *arg3 = 0 ; | |
30199 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30200 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30201 | int arg5 = (int) wxITEM_NORMAL ; | |
30202 | wxMenuItem *result; | |
ae8162c8 RD |
30203 | bool temp3 = false ; |
30204 | bool temp4 = false ; | |
d55e5bfc RD |
30205 | PyObject * obj0 = 0 ; |
30206 | PyObject * obj1 = 0 ; | |
30207 | PyObject * obj2 = 0 ; | |
30208 | PyObject * obj3 = 0 ; | |
30209 | PyObject * obj4 = 0 ; | |
30210 | char *kwnames[] = { | |
30211 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30212 | }; | |
30213 | ||
30214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30217 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30218 | if (PyErr_Occurred()) SWIG_fail; |
30219 | { | |
30220 | arg3 = wxString_in_helper(obj2); | |
30221 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30222 | temp3 = true; |
d55e5bfc RD |
30223 | } |
30224 | if (obj3) { | |
30225 | { | |
30226 | arg4 = wxString_in_helper(obj3); | |
30227 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30228 | temp4 = true; |
d55e5bfc RD |
30229 | } |
30230 | } | |
30231 | if (obj4) { | |
c32bde28 | 30232 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30233 | if (PyErr_Occurred()) SWIG_fail; |
30234 | } | |
30235 | { | |
30236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30237 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )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 (temp3) | |
30247 | delete arg3; | |
30248 | } | |
30249 | { | |
30250 | if (temp4) | |
30251 | delete arg4; | |
30252 | } | |
30253 | return resultobj; | |
30254 | fail: | |
30255 | { | |
30256 | if (temp3) | |
30257 | delete arg3; | |
30258 | } | |
30259 | { | |
30260 | if (temp4) | |
30261 | delete arg4; | |
30262 | } | |
30263 | return NULL; | |
30264 | } | |
30265 | ||
30266 | ||
c32bde28 | 30267 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30268 | PyObject *resultobj; |
30269 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30270 | wxMenuItem *result; | |
30271 | PyObject * obj0 = 0 ; | |
30272 | char *kwnames[] = { | |
30273 | (char *) "self", NULL | |
30274 | }; | |
30275 | ||
30276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30279 | { | |
30280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30281 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30282 | ||
30283 | wxPyEndAllowThreads(__tstate); | |
30284 | if (PyErr_Occurred()) SWIG_fail; | |
30285 | } | |
30286 | { | |
412d302d | 30287 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30288 | } |
30289 | return resultobj; | |
30290 | fail: | |
30291 | return NULL; | |
30292 | } | |
30293 | ||
30294 | ||
c32bde28 | 30295 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30296 | PyObject *resultobj; |
30297 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30298 | int arg2 ; | |
30299 | wxString *arg3 = 0 ; | |
30300 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30301 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30302 | wxMenuItem *result; | |
ae8162c8 RD |
30303 | bool temp3 = false ; |
30304 | bool temp4 = false ; | |
d55e5bfc RD |
30305 | PyObject * obj0 = 0 ; |
30306 | PyObject * obj1 = 0 ; | |
30307 | PyObject * obj2 = 0 ; | |
30308 | PyObject * obj3 = 0 ; | |
30309 | char *kwnames[] = { | |
30310 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30311 | }; | |
30312 | ||
30313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30316 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30317 | if (PyErr_Occurred()) SWIG_fail; |
30318 | { | |
30319 | arg3 = wxString_in_helper(obj2); | |
30320 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30321 | temp3 = true; |
d55e5bfc RD |
30322 | } |
30323 | if (obj3) { | |
30324 | { | |
30325 | arg4 = wxString_in_helper(obj3); | |
30326 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30327 | temp4 = true; |
d55e5bfc RD |
30328 | } |
30329 | } | |
30330 | { | |
30331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30332 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30333 | ||
30334 | wxPyEndAllowThreads(__tstate); | |
30335 | if (PyErr_Occurred()) SWIG_fail; | |
30336 | } | |
30337 | { | |
412d302d | 30338 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30339 | } |
30340 | { | |
30341 | if (temp3) | |
30342 | delete arg3; | |
30343 | } | |
30344 | { | |
30345 | if (temp4) | |
30346 | delete arg4; | |
30347 | } | |
30348 | return resultobj; | |
30349 | fail: | |
30350 | { | |
30351 | if (temp3) | |
30352 | delete arg3; | |
30353 | } | |
30354 | { | |
30355 | if (temp4) | |
30356 | delete arg4; | |
30357 | } | |
30358 | return NULL; | |
30359 | } | |
30360 | ||
30361 | ||
c32bde28 | 30362 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30363 | PyObject *resultobj; |
30364 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30365 | int arg2 ; | |
30366 | wxString *arg3 = 0 ; | |
30367 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30368 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30369 | wxMenuItem *result; | |
ae8162c8 RD |
30370 | bool temp3 = false ; |
30371 | bool temp4 = false ; | |
d55e5bfc RD |
30372 | PyObject * obj0 = 0 ; |
30373 | PyObject * obj1 = 0 ; | |
30374 | PyObject * obj2 = 0 ; | |
30375 | PyObject * obj3 = 0 ; | |
30376 | char *kwnames[] = { | |
30377 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30378 | }; | |
30379 | ||
30380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30383 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30384 | if (PyErr_Occurred()) SWIG_fail; |
30385 | { | |
30386 | arg3 = wxString_in_helper(obj2); | |
30387 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30388 | temp3 = true; |
d55e5bfc RD |
30389 | } |
30390 | if (obj3) { | |
30391 | { | |
30392 | arg4 = wxString_in_helper(obj3); | |
30393 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30394 | temp4 = true; |
d55e5bfc RD |
30395 | } |
30396 | } | |
30397 | { | |
30398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30399 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30400 | ||
30401 | wxPyEndAllowThreads(__tstate); | |
30402 | if (PyErr_Occurred()) SWIG_fail; | |
30403 | } | |
30404 | { | |
412d302d | 30405 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30406 | } |
30407 | { | |
30408 | if (temp3) | |
30409 | delete arg3; | |
30410 | } | |
30411 | { | |
30412 | if (temp4) | |
30413 | delete arg4; | |
30414 | } | |
30415 | return resultobj; | |
30416 | fail: | |
30417 | { | |
30418 | if (temp3) | |
30419 | delete arg3; | |
30420 | } | |
30421 | { | |
30422 | if (temp4) | |
30423 | delete arg4; | |
30424 | } | |
30425 | return NULL; | |
30426 | } | |
30427 | ||
30428 | ||
c32bde28 | 30429 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30430 | PyObject *resultobj; |
30431 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30432 | int arg2 ; | |
30433 | wxString *arg3 = 0 ; | |
30434 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30435 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30436 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30437 | wxMenuItem *result; | |
ae8162c8 RD |
30438 | bool temp3 = false ; |
30439 | bool temp5 = false ; | |
d55e5bfc RD |
30440 | PyObject * obj0 = 0 ; |
30441 | PyObject * obj1 = 0 ; | |
30442 | PyObject * obj2 = 0 ; | |
30443 | PyObject * obj3 = 0 ; | |
30444 | PyObject * obj4 = 0 ; | |
30445 | char *kwnames[] = { | |
30446 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30447 | }; | |
30448 | ||
30449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30452 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30453 | if (PyErr_Occurred()) SWIG_fail; |
30454 | { | |
30455 | arg3 = wxString_in_helper(obj2); | |
30456 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30457 | temp3 = true; |
d55e5bfc RD |
30458 | } |
30459 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30461 | if (obj4) { | |
30462 | { | |
30463 | arg5 = wxString_in_helper(obj4); | |
30464 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30465 | temp5 = true; |
d55e5bfc RD |
30466 | } |
30467 | } | |
30468 | { | |
30469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30470 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30471 | ||
30472 | wxPyEndAllowThreads(__tstate); | |
30473 | if (PyErr_Occurred()) SWIG_fail; | |
30474 | } | |
30475 | { | |
412d302d | 30476 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30477 | } |
30478 | { | |
30479 | if (temp3) | |
30480 | delete arg3; | |
30481 | } | |
30482 | { | |
30483 | if (temp5) | |
30484 | delete arg5; | |
30485 | } | |
30486 | return resultobj; | |
30487 | fail: | |
30488 | { | |
30489 | if (temp3) | |
30490 | delete arg3; | |
30491 | } | |
30492 | { | |
30493 | if (temp5) | |
30494 | delete arg5; | |
30495 | } | |
30496 | return NULL; | |
30497 | } | |
30498 | ||
30499 | ||
c32bde28 | 30500 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30501 | PyObject *resultobj; |
30502 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30503 | int arg2 ; | |
30504 | wxMenuItem *result; | |
30505 | PyObject * obj0 = 0 ; | |
30506 | PyObject * obj1 = 0 ; | |
30507 | char *kwnames[] = { | |
30508 | (char *) "self",(char *) "id", NULL | |
30509 | }; | |
30510 | ||
30511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30514 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30515 | if (PyErr_Occurred()) SWIG_fail; |
30516 | { | |
30517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30518 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30519 | ||
30520 | wxPyEndAllowThreads(__tstate); | |
30521 | if (PyErr_Occurred()) SWIG_fail; | |
30522 | } | |
30523 | { | |
412d302d | 30524 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30525 | } |
30526 | return resultobj; | |
30527 | fail: | |
30528 | return NULL; | |
30529 | } | |
30530 | ||
30531 | ||
c32bde28 | 30532 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30533 | PyObject *resultobj; |
30534 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30535 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30536 | wxMenuItem *result; | |
30537 | PyObject * obj0 = 0 ; | |
30538 | PyObject * obj1 = 0 ; | |
30539 | char *kwnames[] = { | |
30540 | (char *) "self",(char *) "item", NULL | |
30541 | }; | |
30542 | ||
30543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30546 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30548 | { | |
30549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30550 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30551 | ||
30552 | wxPyEndAllowThreads(__tstate); | |
30553 | if (PyErr_Occurred()) SWIG_fail; | |
30554 | } | |
30555 | { | |
412d302d | 30556 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30557 | } |
30558 | return resultobj; | |
30559 | fail: | |
30560 | return NULL; | |
30561 | } | |
30562 | ||
30563 | ||
c32bde28 | 30564 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30565 | PyObject *resultobj; |
30566 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30567 | int arg2 ; | |
30568 | bool result; | |
30569 | PyObject * obj0 = 0 ; | |
30570 | PyObject * obj1 = 0 ; | |
30571 | char *kwnames[] = { | |
30572 | (char *) "self",(char *) "id", NULL | |
30573 | }; | |
30574 | ||
30575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30578 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30579 | if (PyErr_Occurred()) SWIG_fail; |
30580 | { | |
30581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30582 | result = (bool)(arg1)->Delete(arg2); | |
30583 | ||
30584 | wxPyEndAllowThreads(__tstate); | |
30585 | if (PyErr_Occurred()) SWIG_fail; | |
30586 | } | |
30587 | { | |
30588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30589 | } | |
30590 | return resultobj; | |
30591 | fail: | |
30592 | return NULL; | |
30593 | } | |
30594 | ||
30595 | ||
c32bde28 | 30596 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30597 | PyObject *resultobj; |
30598 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30599 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30600 | bool result; | |
30601 | PyObject * obj0 = 0 ; | |
30602 | PyObject * obj1 = 0 ; | |
30603 | char *kwnames[] = { | |
30604 | (char *) "self",(char *) "item", NULL | |
30605 | }; | |
30606 | ||
30607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30612 | { | |
30613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30614 | result = (bool)(arg1)->Delete(arg2); | |
30615 | ||
30616 | wxPyEndAllowThreads(__tstate); | |
30617 | if (PyErr_Occurred()) SWIG_fail; | |
30618 | } | |
30619 | { | |
30620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30621 | } | |
30622 | return resultobj; | |
30623 | fail: | |
30624 | return NULL; | |
30625 | } | |
30626 | ||
30627 | ||
c32bde28 | 30628 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30629 | PyObject *resultobj; |
30630 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30631 | PyObject * obj0 = 0 ; | |
30632 | char *kwnames[] = { | |
30633 | (char *) "self", NULL | |
30634 | }; | |
30635 | ||
30636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30639 | { | |
30640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30641 | wxMenu_Destroy(arg1); | |
30642 | ||
30643 | wxPyEndAllowThreads(__tstate); | |
30644 | if (PyErr_Occurred()) SWIG_fail; | |
30645 | } | |
30646 | Py_INCREF(Py_None); resultobj = Py_None; | |
30647 | return resultobj; | |
30648 | fail: | |
30649 | return NULL; | |
30650 | } | |
30651 | ||
30652 | ||
c32bde28 | 30653 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30654 | PyObject *resultobj; |
30655 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30656 | int arg2 ; | |
30657 | bool result; | |
30658 | PyObject * obj0 = 0 ; | |
30659 | PyObject * obj1 = 0 ; | |
30660 | char *kwnames[] = { | |
30661 | (char *) "self",(char *) "id", NULL | |
30662 | }; | |
30663 | ||
30664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30667 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30668 | if (PyErr_Occurred()) SWIG_fail; |
30669 | { | |
30670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30671 | result = (bool)(arg1)->Destroy(arg2); | |
30672 | ||
30673 | wxPyEndAllowThreads(__tstate); | |
30674 | if (PyErr_Occurred()) SWIG_fail; | |
30675 | } | |
30676 | { | |
30677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30678 | } | |
30679 | return resultobj; | |
30680 | fail: | |
30681 | return NULL; | |
30682 | } | |
30683 | ||
30684 | ||
c32bde28 | 30685 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30686 | PyObject *resultobj; |
30687 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30688 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30689 | bool result; | |
30690 | PyObject * obj0 = 0 ; | |
30691 | PyObject * obj1 = 0 ; | |
30692 | char *kwnames[] = { | |
30693 | (char *) "self",(char *) "item", NULL | |
30694 | }; | |
30695 | ||
30696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30701 | { | |
30702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30703 | result = (bool)(arg1)->Destroy(arg2); | |
30704 | ||
30705 | wxPyEndAllowThreads(__tstate); | |
30706 | if (PyErr_Occurred()) SWIG_fail; | |
30707 | } | |
30708 | { | |
30709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30710 | } | |
30711 | return resultobj; | |
30712 | fail: | |
30713 | return NULL; | |
30714 | } | |
30715 | ||
30716 | ||
c32bde28 | 30717 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30718 | PyObject *resultobj; |
30719 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30720 | size_t result; | |
30721 | PyObject * obj0 = 0 ; | |
30722 | char *kwnames[] = { | |
30723 | (char *) "self", NULL | |
30724 | }; | |
30725 | ||
30726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30729 | { | |
30730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30731 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30732 | ||
30733 | wxPyEndAllowThreads(__tstate); | |
30734 | if (PyErr_Occurred()) SWIG_fail; | |
30735 | } | |
c32bde28 | 30736 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
30737 | return resultobj; |
30738 | fail: | |
30739 | return NULL; | |
30740 | } | |
30741 | ||
30742 | ||
c32bde28 | 30743 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30744 | PyObject *resultobj; |
30745 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30746 | PyObject *result; | |
30747 | PyObject * obj0 = 0 ; | |
30748 | char *kwnames[] = { | |
30749 | (char *) "self", NULL | |
30750 | }; | |
30751 | ||
30752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
30753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30755 | { | |
30756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30757 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30758 | ||
30759 | wxPyEndAllowThreads(__tstate); | |
30760 | if (PyErr_Occurred()) SWIG_fail; | |
30761 | } | |
30762 | resultobj = result; | |
30763 | return resultobj; | |
30764 | fail: | |
30765 | return NULL; | |
30766 | } | |
30767 | ||
30768 | ||
c32bde28 | 30769 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30770 | PyObject *resultobj; |
30771 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30772 | wxString *arg2 = 0 ; | |
30773 | int result; | |
ae8162c8 | 30774 | bool temp2 = false ; |
d55e5bfc RD |
30775 | PyObject * obj0 = 0 ; |
30776 | PyObject * obj1 = 0 ; | |
30777 | char *kwnames[] = { | |
30778 | (char *) "self",(char *) "item", NULL | |
30779 | }; | |
30780 | ||
30781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
30782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30784 | { | |
30785 | arg2 = wxString_in_helper(obj1); | |
30786 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30787 | temp2 = true; |
d55e5bfc RD |
30788 | } |
30789 | { | |
30790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30791 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30792 | ||
30793 | wxPyEndAllowThreads(__tstate); | |
30794 | if (PyErr_Occurred()) SWIG_fail; | |
30795 | } | |
c32bde28 | 30796 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
30797 | { |
30798 | if (temp2) | |
30799 | delete arg2; | |
30800 | } | |
30801 | return resultobj; | |
30802 | fail: | |
30803 | { | |
30804 | if (temp2) | |
30805 | delete arg2; | |
30806 | } | |
30807 | return NULL; | |
30808 | } | |
30809 | ||
30810 | ||
c32bde28 | 30811 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30812 | PyObject *resultobj; |
30813 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30814 | int arg2 ; | |
30815 | wxMenuItem *result; | |
30816 | PyObject * obj0 = 0 ; | |
30817 | PyObject * obj1 = 0 ; | |
30818 | char *kwnames[] = { | |
30819 | (char *) "self",(char *) "id", NULL | |
30820 | }; | |
30821 | ||
30822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
30823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30825 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30826 | if (PyErr_Occurred()) SWIG_fail; |
30827 | { | |
30828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30829 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30830 | ||
30831 | wxPyEndAllowThreads(__tstate); | |
30832 | if (PyErr_Occurred()) SWIG_fail; | |
30833 | } | |
30834 | { | |
412d302d | 30835 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30836 | } |
30837 | return resultobj; | |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
c32bde28 | 30843 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30844 | PyObject *resultobj; |
30845 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30846 | size_t arg2 ; | |
30847 | wxMenuItem *result; | |
30848 | PyObject * obj0 = 0 ; | |
30849 | PyObject * obj1 = 0 ; | |
30850 | char *kwnames[] = { | |
30851 | (char *) "self",(char *) "position", NULL | |
30852 | }; | |
30853 | ||
30854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
30855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30857 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30858 | if (PyErr_Occurred()) SWIG_fail; |
30859 | { | |
30860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30861 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30862 | ||
30863 | wxPyEndAllowThreads(__tstate); | |
30864 | if (PyErr_Occurred()) SWIG_fail; | |
30865 | } | |
30866 | { | |
412d302d | 30867 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30868 | } |
30869 | return resultobj; | |
30870 | fail: | |
30871 | return NULL; | |
30872 | } | |
30873 | ||
30874 | ||
c32bde28 | 30875 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30876 | PyObject *resultobj; |
30877 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30878 | int arg2 ; | |
30879 | bool arg3 ; | |
30880 | PyObject * obj0 = 0 ; | |
30881 | PyObject * obj1 = 0 ; | |
30882 | PyObject * obj2 = 0 ; | |
30883 | char *kwnames[] = { | |
30884 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
30885 | }; | |
30886 | ||
30887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30890 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30891 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30892 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30893 | if (PyErr_Occurred()) SWIG_fail; |
30894 | { | |
30895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30896 | (arg1)->Enable(arg2,arg3); | |
30897 | ||
30898 | wxPyEndAllowThreads(__tstate); | |
30899 | if (PyErr_Occurred()) SWIG_fail; | |
30900 | } | |
30901 | Py_INCREF(Py_None); resultobj = Py_None; | |
30902 | return resultobj; | |
30903 | fail: | |
30904 | return NULL; | |
30905 | } | |
30906 | ||
30907 | ||
c32bde28 | 30908 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30909 | PyObject *resultobj; |
30910 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30911 | int arg2 ; | |
30912 | bool result; | |
30913 | PyObject * obj0 = 0 ; | |
30914 | PyObject * obj1 = 0 ; | |
30915 | char *kwnames[] = { | |
30916 | (char *) "self",(char *) "id", NULL | |
30917 | }; | |
30918 | ||
30919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30922 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30923 | if (PyErr_Occurred()) SWIG_fail; |
30924 | { | |
30925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30926 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30927 | ||
30928 | wxPyEndAllowThreads(__tstate); | |
30929 | if (PyErr_Occurred()) SWIG_fail; | |
30930 | } | |
30931 | { | |
30932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30933 | } | |
30934 | return resultobj; | |
30935 | fail: | |
30936 | return NULL; | |
30937 | } | |
30938 | ||
30939 | ||
c32bde28 | 30940 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30941 | PyObject *resultobj; |
30942 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30943 | int arg2 ; | |
30944 | bool arg3 ; | |
30945 | PyObject * obj0 = 0 ; | |
30946 | PyObject * obj1 = 0 ; | |
30947 | PyObject * obj2 = 0 ; | |
30948 | char *kwnames[] = { | |
30949 | (char *) "self",(char *) "id",(char *) "check", NULL | |
30950 | }; | |
30951 | ||
30952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30955 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30956 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30957 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30958 | if (PyErr_Occurred()) SWIG_fail; |
30959 | { | |
30960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30961 | (arg1)->Check(arg2,arg3); | |
30962 | ||
30963 | wxPyEndAllowThreads(__tstate); | |
30964 | if (PyErr_Occurred()) SWIG_fail; | |
30965 | } | |
30966 | Py_INCREF(Py_None); resultobj = Py_None; | |
30967 | return resultobj; | |
30968 | fail: | |
30969 | return NULL; | |
30970 | } | |
30971 | ||
30972 | ||
c32bde28 | 30973 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30974 | PyObject *resultobj; |
30975 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30976 | int arg2 ; | |
30977 | bool result; | |
30978 | PyObject * obj0 = 0 ; | |
30979 | PyObject * obj1 = 0 ; | |
30980 | char *kwnames[] = { | |
30981 | (char *) "self",(char *) "id", NULL | |
30982 | }; | |
30983 | ||
30984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30987 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30988 | if (PyErr_Occurred()) SWIG_fail; |
30989 | { | |
30990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30991 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30992 | ||
30993 | wxPyEndAllowThreads(__tstate); | |
30994 | if (PyErr_Occurred()) SWIG_fail; | |
30995 | } | |
30996 | { | |
30997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30998 | } | |
30999 | return resultobj; | |
31000 | fail: | |
31001 | return NULL; | |
31002 | } | |
31003 | ||
31004 | ||
c32bde28 | 31005 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31006 | PyObject *resultobj; |
31007 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31008 | int arg2 ; | |
31009 | wxString *arg3 = 0 ; | |
ae8162c8 | 31010 | bool temp3 = false ; |
d55e5bfc RD |
31011 | PyObject * obj0 = 0 ; |
31012 | PyObject * obj1 = 0 ; | |
31013 | PyObject * obj2 = 0 ; | |
31014 | char *kwnames[] = { | |
31015 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31016 | }; | |
31017 | ||
31018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31021 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31022 | if (PyErr_Occurred()) SWIG_fail; |
31023 | { | |
31024 | arg3 = wxString_in_helper(obj2); | |
31025 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31026 | temp3 = true; |
d55e5bfc RD |
31027 | } |
31028 | { | |
31029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31030 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31031 | ||
31032 | wxPyEndAllowThreads(__tstate); | |
31033 | if (PyErr_Occurred()) SWIG_fail; | |
31034 | } | |
31035 | Py_INCREF(Py_None); resultobj = Py_None; | |
31036 | { | |
31037 | if (temp3) | |
31038 | delete arg3; | |
31039 | } | |
31040 | return resultobj; | |
31041 | fail: | |
31042 | { | |
31043 | if (temp3) | |
31044 | delete arg3; | |
31045 | } | |
31046 | return NULL; | |
31047 | } | |
31048 | ||
31049 | ||
c32bde28 | 31050 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31051 | PyObject *resultobj; |
31052 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31053 | int arg2 ; | |
31054 | wxString result; | |
31055 | PyObject * obj0 = 0 ; | |
31056 | PyObject * obj1 = 0 ; | |
31057 | char *kwnames[] = { | |
31058 | (char *) "self",(char *) "id", NULL | |
31059 | }; | |
31060 | ||
31061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31064 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31065 | if (PyErr_Occurred()) SWIG_fail; |
31066 | { | |
31067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31068 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31069 | ||
31070 | wxPyEndAllowThreads(__tstate); | |
31071 | if (PyErr_Occurred()) SWIG_fail; | |
31072 | } | |
31073 | { | |
31074 | #if wxUSE_UNICODE | |
31075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31076 | #else | |
31077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31078 | #endif | |
31079 | } | |
31080 | return resultobj; | |
31081 | fail: | |
31082 | return NULL; | |
31083 | } | |
31084 | ||
31085 | ||
c32bde28 | 31086 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31087 | PyObject *resultobj; |
31088 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31089 | int arg2 ; | |
31090 | wxString *arg3 = 0 ; | |
ae8162c8 | 31091 | bool temp3 = false ; |
d55e5bfc RD |
31092 | PyObject * obj0 = 0 ; |
31093 | PyObject * obj1 = 0 ; | |
31094 | PyObject * obj2 = 0 ; | |
31095 | char *kwnames[] = { | |
31096 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31097 | }; | |
31098 | ||
31099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31102 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31103 | if (PyErr_Occurred()) SWIG_fail; |
31104 | { | |
31105 | arg3 = wxString_in_helper(obj2); | |
31106 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31107 | temp3 = true; |
d55e5bfc RD |
31108 | } |
31109 | { | |
31110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31111 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31112 | ||
31113 | wxPyEndAllowThreads(__tstate); | |
31114 | if (PyErr_Occurred()) SWIG_fail; | |
31115 | } | |
31116 | Py_INCREF(Py_None); resultobj = Py_None; | |
31117 | { | |
31118 | if (temp3) | |
31119 | delete arg3; | |
31120 | } | |
31121 | return resultobj; | |
31122 | fail: | |
31123 | { | |
31124 | if (temp3) | |
31125 | delete arg3; | |
31126 | } | |
31127 | return NULL; | |
31128 | } | |
31129 | ||
31130 | ||
c32bde28 | 31131 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31132 | PyObject *resultobj; |
31133 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31134 | int arg2 ; | |
31135 | wxString result; | |
31136 | PyObject * obj0 = 0 ; | |
31137 | PyObject * obj1 = 0 ; | |
31138 | char *kwnames[] = { | |
31139 | (char *) "self",(char *) "id", NULL | |
31140 | }; | |
31141 | ||
31142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31145 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31146 | if (PyErr_Occurred()) SWIG_fail; |
31147 | { | |
31148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31149 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31150 | ||
31151 | wxPyEndAllowThreads(__tstate); | |
31152 | if (PyErr_Occurred()) SWIG_fail; | |
31153 | } | |
31154 | { | |
31155 | #if wxUSE_UNICODE | |
31156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31157 | #else | |
31158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31159 | #endif | |
31160 | } | |
31161 | return resultobj; | |
31162 | fail: | |
31163 | return NULL; | |
31164 | } | |
31165 | ||
31166 | ||
c32bde28 | 31167 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31168 | PyObject *resultobj; |
31169 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31170 | wxString *arg2 = 0 ; | |
ae8162c8 | 31171 | bool temp2 = false ; |
d55e5bfc RD |
31172 | PyObject * obj0 = 0 ; |
31173 | PyObject * obj1 = 0 ; | |
31174 | char *kwnames[] = { | |
31175 | (char *) "self",(char *) "title", NULL | |
31176 | }; | |
31177 | ||
31178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31181 | { | |
31182 | arg2 = wxString_in_helper(obj1); | |
31183 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31184 | temp2 = true; |
d55e5bfc RD |
31185 | } |
31186 | { | |
31187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31188 | (arg1)->SetTitle((wxString const &)*arg2); | |
31189 | ||
31190 | wxPyEndAllowThreads(__tstate); | |
31191 | if (PyErr_Occurred()) SWIG_fail; | |
31192 | } | |
31193 | Py_INCREF(Py_None); resultobj = Py_None; | |
31194 | { | |
31195 | if (temp2) | |
31196 | delete arg2; | |
31197 | } | |
31198 | return resultobj; | |
31199 | fail: | |
31200 | { | |
31201 | if (temp2) | |
31202 | delete arg2; | |
31203 | } | |
31204 | return NULL; | |
31205 | } | |
31206 | ||
31207 | ||
c32bde28 | 31208 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31209 | PyObject *resultobj; |
31210 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31211 | wxString result; | |
31212 | PyObject * obj0 = 0 ; | |
31213 | char *kwnames[] = { | |
31214 | (char *) "self", NULL | |
31215 | }; | |
31216 | ||
31217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31220 | { | |
31221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31222 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31223 | ||
31224 | wxPyEndAllowThreads(__tstate); | |
31225 | if (PyErr_Occurred()) SWIG_fail; | |
31226 | } | |
31227 | { | |
31228 | #if wxUSE_UNICODE | |
31229 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31230 | #else | |
31231 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31232 | #endif | |
31233 | } | |
31234 | return resultobj; | |
31235 | fail: | |
31236 | return NULL; | |
31237 | } | |
31238 | ||
31239 | ||
c32bde28 | 31240 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31241 | PyObject *resultobj; |
31242 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31243 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31244 | PyObject * obj0 = 0 ; | |
31245 | PyObject * obj1 = 0 ; | |
31246 | char *kwnames[] = { | |
31247 | (char *) "self",(char *) "handler", NULL | |
31248 | }; | |
31249 | ||
31250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31253 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31255 | { | |
31256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31257 | (arg1)->SetEventHandler(arg2); | |
31258 | ||
31259 | wxPyEndAllowThreads(__tstate); | |
31260 | if (PyErr_Occurred()) SWIG_fail; | |
31261 | } | |
31262 | Py_INCREF(Py_None); resultobj = Py_None; | |
31263 | return resultobj; | |
31264 | fail: | |
31265 | return NULL; | |
31266 | } | |
31267 | ||
31268 | ||
c32bde28 | 31269 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31270 | PyObject *resultobj; |
31271 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31272 | wxEvtHandler *result; | |
31273 | PyObject * obj0 = 0 ; | |
31274 | char *kwnames[] = { | |
31275 | (char *) "self", NULL | |
31276 | }; | |
31277 | ||
31278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31281 | { | |
31282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31283 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31284 | ||
31285 | wxPyEndAllowThreads(__tstate); | |
31286 | if (PyErr_Occurred()) SWIG_fail; | |
31287 | } | |
31288 | { | |
412d302d | 31289 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31290 | } |
31291 | return resultobj; | |
31292 | fail: | |
31293 | return NULL; | |
31294 | } | |
31295 | ||
31296 | ||
c32bde28 | 31297 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31298 | PyObject *resultobj; |
31299 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31300 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31301 | PyObject * obj0 = 0 ; | |
31302 | PyObject * obj1 = 0 ; | |
31303 | char *kwnames[] = { | |
31304 | (char *) "self",(char *) "win", NULL | |
31305 | }; | |
31306 | ||
31307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31312 | { | |
31313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31314 | (arg1)->SetInvokingWindow(arg2); | |
31315 | ||
31316 | wxPyEndAllowThreads(__tstate); | |
31317 | if (PyErr_Occurred()) SWIG_fail; | |
31318 | } | |
31319 | Py_INCREF(Py_None); resultobj = Py_None; | |
31320 | return resultobj; | |
31321 | fail: | |
31322 | return NULL; | |
31323 | } | |
31324 | ||
31325 | ||
c32bde28 | 31326 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31327 | PyObject *resultobj; |
31328 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31329 | wxWindow *result; | |
31330 | PyObject * obj0 = 0 ; | |
31331 | char *kwnames[] = { | |
31332 | (char *) "self", NULL | |
31333 | }; | |
31334 | ||
31335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31338 | { | |
31339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31340 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31341 | ||
31342 | wxPyEndAllowThreads(__tstate); | |
31343 | if (PyErr_Occurred()) SWIG_fail; | |
31344 | } | |
31345 | { | |
412d302d | 31346 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31347 | } |
31348 | return resultobj; | |
31349 | fail: | |
31350 | return NULL; | |
31351 | } | |
31352 | ||
31353 | ||
c32bde28 | 31354 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31355 | PyObject *resultobj; |
31356 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31357 | long result; | |
31358 | PyObject * obj0 = 0 ; | |
31359 | char *kwnames[] = { | |
31360 | (char *) "self", NULL | |
31361 | }; | |
31362 | ||
31363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31366 | { | |
31367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31368 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31369 | ||
31370 | wxPyEndAllowThreads(__tstate); | |
31371 | if (PyErr_Occurred()) SWIG_fail; | |
31372 | } | |
c32bde28 | 31373 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31374 | return resultobj; |
31375 | fail: | |
31376 | return NULL; | |
31377 | } | |
31378 | ||
31379 | ||
c32bde28 | 31380 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31381 | PyObject *resultobj; |
31382 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31383 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31384 | PyObject * obj0 = 0 ; | |
31385 | PyObject * obj1 = 0 ; | |
31386 | char *kwnames[] = { | |
31387 | (char *) "self",(char *) "source", NULL | |
31388 | }; | |
31389 | ||
31390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31393 | if (obj1) { | |
31394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31396 | } | |
31397 | { | |
31398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31399 | (arg1)->UpdateUI(arg2); | |
31400 | ||
31401 | wxPyEndAllowThreads(__tstate); | |
31402 | if (PyErr_Occurred()) SWIG_fail; | |
31403 | } | |
31404 | Py_INCREF(Py_None); resultobj = Py_None; | |
31405 | return resultobj; | |
31406 | fail: | |
31407 | return NULL; | |
31408 | } | |
31409 | ||
31410 | ||
c32bde28 | 31411 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31412 | PyObject *resultobj; |
31413 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31414 | wxMenuBar *result; | |
31415 | PyObject * obj0 = 0 ; | |
31416 | char *kwnames[] = { | |
31417 | (char *) "self", NULL | |
31418 | }; | |
31419 | ||
31420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31423 | { | |
31424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31425 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31426 | ||
31427 | wxPyEndAllowThreads(__tstate); | |
31428 | if (PyErr_Occurred()) SWIG_fail; | |
31429 | } | |
31430 | { | |
412d302d | 31431 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31432 | } |
31433 | return resultobj; | |
31434 | fail: | |
31435 | return NULL; | |
31436 | } | |
31437 | ||
31438 | ||
c32bde28 | 31439 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31440 | PyObject *resultobj; |
31441 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31442 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31443 | PyObject * obj0 = 0 ; | |
31444 | PyObject * obj1 = 0 ; | |
31445 | char *kwnames[] = { | |
31446 | (char *) "self",(char *) "menubar", NULL | |
31447 | }; | |
31448 | ||
31449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31452 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31454 | { | |
31455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31456 | (arg1)->Attach(arg2); | |
31457 | ||
31458 | wxPyEndAllowThreads(__tstate); | |
31459 | if (PyErr_Occurred()) SWIG_fail; | |
31460 | } | |
31461 | Py_INCREF(Py_None); resultobj = Py_None; | |
31462 | return resultobj; | |
31463 | fail: | |
31464 | return NULL; | |
31465 | } | |
31466 | ||
31467 | ||
c32bde28 | 31468 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31469 | PyObject *resultobj; |
31470 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31471 | PyObject * obj0 = 0 ; | |
31472 | char *kwnames[] = { | |
31473 | (char *) "self", NULL | |
31474 | }; | |
31475 | ||
31476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31479 | { | |
31480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31481 | (arg1)->Detach(); | |
31482 | ||
31483 | wxPyEndAllowThreads(__tstate); | |
31484 | if (PyErr_Occurred()) SWIG_fail; | |
31485 | } | |
31486 | Py_INCREF(Py_None); resultobj = Py_None; | |
31487 | return resultobj; | |
31488 | fail: | |
31489 | return NULL; | |
31490 | } | |
31491 | ||
31492 | ||
c32bde28 | 31493 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31494 | PyObject *resultobj; |
31495 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31496 | bool result; | |
31497 | PyObject * obj0 = 0 ; | |
31498 | char *kwnames[] = { | |
31499 | (char *) "self", NULL | |
31500 | }; | |
31501 | ||
31502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31505 | { | |
31506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31507 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31508 | ||
31509 | wxPyEndAllowThreads(__tstate); | |
31510 | if (PyErr_Occurred()) SWIG_fail; | |
31511 | } | |
31512 | { | |
31513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31514 | } | |
31515 | return resultobj; | |
31516 | fail: | |
31517 | return NULL; | |
31518 | } | |
31519 | ||
31520 | ||
c32bde28 | 31521 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31522 | PyObject *resultobj; |
31523 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31524 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31525 | PyObject * obj0 = 0 ; | |
31526 | PyObject * obj1 = 0 ; | |
31527 | char *kwnames[] = { | |
31528 | (char *) "self",(char *) "parent", NULL | |
31529 | }; | |
31530 | ||
31531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31534 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31536 | { | |
31537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31538 | (arg1)->SetParent(arg2); | |
31539 | ||
31540 | wxPyEndAllowThreads(__tstate); | |
31541 | if (PyErr_Occurred()) SWIG_fail; | |
31542 | } | |
31543 | Py_INCREF(Py_None); resultobj = Py_None; | |
31544 | return resultobj; | |
31545 | fail: | |
31546 | return NULL; | |
31547 | } | |
31548 | ||
31549 | ||
c32bde28 | 31550 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31551 | PyObject *resultobj; |
31552 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31553 | wxMenu *result; | |
31554 | PyObject * obj0 = 0 ; | |
31555 | char *kwnames[] = { | |
31556 | (char *) "self", NULL | |
31557 | }; | |
31558 | ||
31559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31562 | { | |
31563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31564 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31565 | ||
31566 | wxPyEndAllowThreads(__tstate); | |
31567 | if (PyErr_Occurred()) SWIG_fail; | |
31568 | } | |
31569 | { | |
412d302d | 31570 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31571 | } |
31572 | return resultobj; | |
31573 | fail: | |
31574 | return NULL; | |
31575 | } | |
31576 | ||
31577 | ||
c32bde28 | 31578 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31579 | PyObject *obj; |
31580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31581 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31582 | Py_INCREF(obj); | |
31583 | return Py_BuildValue((char *)""); | |
31584 | } | |
c32bde28 | 31585 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31586 | PyObject *resultobj; |
31587 | long arg1 = (long) 0 ; | |
31588 | wxMenuBar *result; | |
31589 | PyObject * obj0 = 0 ; | |
31590 | char *kwnames[] = { | |
31591 | (char *) "style", NULL | |
31592 | }; | |
31593 | ||
31594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31595 | if (obj0) { | |
c32bde28 | 31596 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31597 | if (PyErr_Occurred()) SWIG_fail; |
31598 | } | |
31599 | { | |
0439c23b | 31600 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31602 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31603 | ||
31604 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31605 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31606 | } |
b0f7404b | 31607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31608 | return resultobj; |
31609 | fail: | |
31610 | return NULL; | |
31611 | } | |
31612 | ||
31613 | ||
c32bde28 | 31614 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31615 | PyObject *resultobj; |
31616 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31617 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31618 | wxString *arg3 = 0 ; | |
31619 | bool result; | |
ae8162c8 | 31620 | bool temp3 = false ; |
d55e5bfc RD |
31621 | PyObject * obj0 = 0 ; |
31622 | PyObject * obj1 = 0 ; | |
31623 | PyObject * obj2 = 0 ; | |
31624 | char *kwnames[] = { | |
31625 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31626 | }; | |
31627 | ||
31628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31633 | { | |
31634 | arg3 = wxString_in_helper(obj2); | |
31635 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31636 | temp3 = true; |
d55e5bfc RD |
31637 | } |
31638 | { | |
31639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31640 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31641 | ||
31642 | wxPyEndAllowThreads(__tstate); | |
31643 | if (PyErr_Occurred()) SWIG_fail; | |
31644 | } | |
31645 | { | |
31646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31647 | } | |
31648 | { | |
31649 | if (temp3) | |
31650 | delete arg3; | |
31651 | } | |
31652 | return resultobj; | |
31653 | fail: | |
31654 | { | |
31655 | if (temp3) | |
31656 | delete arg3; | |
31657 | } | |
31658 | return NULL; | |
31659 | } | |
31660 | ||
31661 | ||
c32bde28 | 31662 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31663 | PyObject *resultobj; |
31664 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31665 | size_t arg2 ; | |
31666 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31667 | wxString *arg4 = 0 ; | |
31668 | bool result; | |
ae8162c8 | 31669 | bool temp4 = false ; |
d55e5bfc RD |
31670 | PyObject * obj0 = 0 ; |
31671 | PyObject * obj1 = 0 ; | |
31672 | PyObject * obj2 = 0 ; | |
31673 | PyObject * obj3 = 0 ; | |
31674 | char *kwnames[] = { | |
31675 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31676 | }; | |
31677 | ||
31678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31681 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31682 | if (PyErr_Occurred()) SWIG_fail; |
31683 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31685 | { | |
31686 | arg4 = wxString_in_helper(obj3); | |
31687 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31688 | temp4 = true; |
d55e5bfc RD |
31689 | } |
31690 | { | |
31691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31692 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31693 | ||
31694 | wxPyEndAllowThreads(__tstate); | |
31695 | if (PyErr_Occurred()) SWIG_fail; | |
31696 | } | |
31697 | { | |
31698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31699 | } | |
31700 | { | |
31701 | if (temp4) | |
31702 | delete arg4; | |
31703 | } | |
31704 | return resultobj; | |
31705 | fail: | |
31706 | { | |
31707 | if (temp4) | |
31708 | delete arg4; | |
31709 | } | |
31710 | return NULL; | |
31711 | } | |
31712 | ||
31713 | ||
c32bde28 | 31714 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31715 | PyObject *resultobj; |
31716 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31717 | size_t result; | |
31718 | PyObject * obj0 = 0 ; | |
31719 | char *kwnames[] = { | |
31720 | (char *) "self", NULL | |
31721 | }; | |
31722 | ||
31723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31726 | { | |
31727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31728 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31729 | ||
31730 | wxPyEndAllowThreads(__tstate); | |
31731 | if (PyErr_Occurred()) SWIG_fail; | |
31732 | } | |
c32bde28 | 31733 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31734 | return resultobj; |
31735 | fail: | |
31736 | return NULL; | |
31737 | } | |
31738 | ||
31739 | ||
c32bde28 | 31740 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31741 | PyObject *resultobj; |
31742 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31743 | size_t arg2 ; | |
31744 | wxMenu *result; | |
31745 | PyObject * obj0 = 0 ; | |
31746 | PyObject * obj1 = 0 ; | |
31747 | char *kwnames[] = { | |
31748 | (char *) "self",(char *) "pos", NULL | |
31749 | }; | |
31750 | ||
31751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31754 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31755 | if (PyErr_Occurred()) SWIG_fail; |
31756 | { | |
31757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31758 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31759 | ||
31760 | wxPyEndAllowThreads(__tstate); | |
31761 | if (PyErr_Occurred()) SWIG_fail; | |
31762 | } | |
31763 | { | |
412d302d | 31764 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31765 | } |
31766 | return resultobj; | |
31767 | fail: | |
31768 | return NULL; | |
31769 | } | |
31770 | ||
31771 | ||
c32bde28 | 31772 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31773 | PyObject *resultobj; |
31774 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31775 | size_t arg2 ; | |
31776 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31777 | wxString *arg4 = 0 ; | |
31778 | wxMenu *result; | |
ae8162c8 | 31779 | bool temp4 = false ; |
d55e5bfc RD |
31780 | PyObject * obj0 = 0 ; |
31781 | PyObject * obj1 = 0 ; | |
31782 | PyObject * obj2 = 0 ; | |
31783 | PyObject * obj3 = 0 ; | |
31784 | char *kwnames[] = { | |
31785 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31786 | }; | |
31787 | ||
31788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31791 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31792 | if (PyErr_Occurred()) SWIG_fail; |
31793 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31795 | { | |
31796 | arg4 = wxString_in_helper(obj3); | |
31797 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31798 | temp4 = true; |
d55e5bfc RD |
31799 | } |
31800 | { | |
31801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31802 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31803 | ||
31804 | wxPyEndAllowThreads(__tstate); | |
31805 | if (PyErr_Occurred()) SWIG_fail; | |
31806 | } | |
31807 | { | |
412d302d | 31808 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31809 | } |
31810 | { | |
31811 | if (temp4) | |
31812 | delete arg4; | |
31813 | } | |
31814 | return resultobj; | |
31815 | fail: | |
31816 | { | |
31817 | if (temp4) | |
31818 | delete arg4; | |
31819 | } | |
31820 | return NULL; | |
31821 | } | |
31822 | ||
31823 | ||
c32bde28 | 31824 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31825 | PyObject *resultobj; |
31826 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31827 | size_t arg2 ; | |
31828 | wxMenu *result; | |
31829 | PyObject * obj0 = 0 ; | |
31830 | PyObject * obj1 = 0 ; | |
31831 | char *kwnames[] = { | |
31832 | (char *) "self",(char *) "pos", NULL | |
31833 | }; | |
31834 | ||
31835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31838 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31839 | if (PyErr_Occurred()) SWIG_fail; |
31840 | { | |
31841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31842 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31843 | ||
31844 | wxPyEndAllowThreads(__tstate); | |
31845 | if (PyErr_Occurred()) SWIG_fail; | |
31846 | } | |
31847 | { | |
412d302d | 31848 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31849 | } |
31850 | return resultobj; | |
31851 | fail: | |
31852 | return NULL; | |
31853 | } | |
31854 | ||
31855 | ||
c32bde28 | 31856 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31857 | PyObject *resultobj; |
31858 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31859 | size_t arg2 ; | |
31860 | bool arg3 ; | |
31861 | PyObject * obj0 = 0 ; | |
31862 | PyObject * obj1 = 0 ; | |
31863 | PyObject * obj2 = 0 ; | |
31864 | char *kwnames[] = { | |
31865 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31866 | }; | |
31867 | ||
31868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31871 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 31872 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31873 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31874 | if (PyErr_Occurred()) SWIG_fail; |
31875 | { | |
31876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31877 | (arg1)->EnableTop(arg2,arg3); | |
31878 | ||
31879 | wxPyEndAllowThreads(__tstate); | |
31880 | if (PyErr_Occurred()) SWIG_fail; | |
31881 | } | |
31882 | Py_INCREF(Py_None); resultobj = Py_None; | |
31883 | return resultobj; | |
31884 | fail: | |
31885 | return NULL; | |
31886 | } | |
31887 | ||
31888 | ||
c32bde28 | 31889 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31890 | PyObject *resultobj; |
31891 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31892 | size_t arg2 ; | |
31893 | bool result; | |
31894 | PyObject * obj0 = 0 ; | |
31895 | PyObject * obj1 = 0 ; | |
31896 | char *kwnames[] = { | |
31897 | (char *) "self",(char *) "pos", NULL | |
31898 | }; | |
31899 | ||
31900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31903 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31904 | if (PyErr_Occurred()) SWIG_fail; |
31905 | { | |
31906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31907 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31908 | ||
31909 | wxPyEndAllowThreads(__tstate); | |
31910 | if (PyErr_Occurred()) SWIG_fail; | |
31911 | } | |
31912 | { | |
31913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31914 | } | |
31915 | return resultobj; | |
31916 | fail: | |
31917 | return NULL; | |
31918 | } | |
31919 | ||
31920 | ||
c32bde28 | 31921 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31922 | PyObject *resultobj; |
31923 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31924 | size_t arg2 ; | |
31925 | wxString *arg3 = 0 ; | |
ae8162c8 | 31926 | bool temp3 = false ; |
d55e5bfc RD |
31927 | PyObject * obj0 = 0 ; |
31928 | PyObject * obj1 = 0 ; | |
31929 | PyObject * obj2 = 0 ; | |
31930 | char *kwnames[] = { | |
31931 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31932 | }; | |
31933 | ||
31934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31937 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31938 | if (PyErr_Occurred()) SWIG_fail; |
31939 | { | |
31940 | arg3 = wxString_in_helper(obj2); | |
31941 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31942 | temp3 = true; |
d55e5bfc RD |
31943 | } |
31944 | { | |
31945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31946 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31947 | ||
31948 | wxPyEndAllowThreads(__tstate); | |
31949 | if (PyErr_Occurred()) SWIG_fail; | |
31950 | } | |
31951 | Py_INCREF(Py_None); resultobj = Py_None; | |
31952 | { | |
31953 | if (temp3) | |
31954 | delete arg3; | |
31955 | } | |
31956 | return resultobj; | |
31957 | fail: | |
31958 | { | |
31959 | if (temp3) | |
31960 | delete arg3; | |
31961 | } | |
31962 | return NULL; | |
31963 | } | |
31964 | ||
31965 | ||
c32bde28 | 31966 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31967 | PyObject *resultobj; |
31968 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31969 | size_t arg2 ; | |
31970 | wxString result; | |
31971 | PyObject * obj0 = 0 ; | |
31972 | PyObject * obj1 = 0 ; | |
31973 | char *kwnames[] = { | |
31974 | (char *) "self",(char *) "pos", NULL | |
31975 | }; | |
31976 | ||
31977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31980 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31981 | if (PyErr_Occurred()) SWIG_fail; |
31982 | { | |
31983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31984 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31985 | ||
31986 | wxPyEndAllowThreads(__tstate); | |
31987 | if (PyErr_Occurred()) SWIG_fail; | |
31988 | } | |
31989 | { | |
31990 | #if wxUSE_UNICODE | |
31991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31992 | #else | |
31993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31994 | #endif | |
31995 | } | |
31996 | return resultobj; | |
31997 | fail: | |
31998 | return NULL; | |
31999 | } | |
32000 | ||
32001 | ||
c32bde28 | 32002 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32003 | PyObject *resultobj; |
32004 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32005 | wxString *arg2 = 0 ; | |
32006 | wxString *arg3 = 0 ; | |
32007 | int result; | |
ae8162c8 RD |
32008 | bool temp2 = false ; |
32009 | bool temp3 = false ; | |
d55e5bfc RD |
32010 | PyObject * obj0 = 0 ; |
32011 | PyObject * obj1 = 0 ; | |
32012 | PyObject * obj2 = 0 ; | |
32013 | char *kwnames[] = { | |
32014 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
32015 | }; | |
32016 | ||
32017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32020 | { | |
32021 | arg2 = wxString_in_helper(obj1); | |
32022 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32023 | temp2 = true; |
d55e5bfc RD |
32024 | } |
32025 | { | |
32026 | arg3 = wxString_in_helper(obj2); | |
32027 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32028 | temp3 = true; |
d55e5bfc RD |
32029 | } |
32030 | { | |
32031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32032 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
32033 | ||
32034 | wxPyEndAllowThreads(__tstate); | |
32035 | if (PyErr_Occurred()) SWIG_fail; | |
32036 | } | |
c32bde28 | 32037 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32038 | { |
32039 | if (temp2) | |
32040 | delete arg2; | |
32041 | } | |
32042 | { | |
32043 | if (temp3) | |
32044 | delete arg3; | |
32045 | } | |
32046 | return resultobj; | |
32047 | fail: | |
32048 | { | |
32049 | if (temp2) | |
32050 | delete arg2; | |
32051 | } | |
32052 | { | |
32053 | if (temp3) | |
32054 | delete arg3; | |
32055 | } | |
32056 | return NULL; | |
32057 | } | |
32058 | ||
32059 | ||
c32bde28 | 32060 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32061 | PyObject *resultobj; |
32062 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32063 | int arg2 ; | |
32064 | wxMenuItem *result; | |
32065 | PyObject * obj0 = 0 ; | |
32066 | PyObject * obj1 = 0 ; | |
32067 | char *kwnames[] = { | |
32068 | (char *) "self",(char *) "id", NULL | |
32069 | }; | |
32070 | ||
32071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32074 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32075 | if (PyErr_Occurred()) SWIG_fail; |
32076 | { | |
32077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32078 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32079 | ||
32080 | wxPyEndAllowThreads(__tstate); | |
32081 | if (PyErr_Occurred()) SWIG_fail; | |
32082 | } | |
32083 | { | |
412d302d | 32084 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32085 | } |
32086 | return resultobj; | |
32087 | fail: | |
32088 | return NULL; | |
32089 | } | |
32090 | ||
32091 | ||
c32bde28 | 32092 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32093 | PyObject *resultobj; |
32094 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32095 | wxString *arg2 = 0 ; | |
32096 | int result; | |
ae8162c8 | 32097 | bool temp2 = false ; |
d55e5bfc RD |
32098 | PyObject * obj0 = 0 ; |
32099 | PyObject * obj1 = 0 ; | |
32100 | char *kwnames[] = { | |
32101 | (char *) "self",(char *) "title", NULL | |
32102 | }; | |
32103 | ||
32104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32107 | { | |
32108 | arg2 = wxString_in_helper(obj1); | |
32109 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32110 | temp2 = true; |
d55e5bfc RD |
32111 | } |
32112 | { | |
32113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32114 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32115 | ||
32116 | wxPyEndAllowThreads(__tstate); | |
32117 | if (PyErr_Occurred()) SWIG_fail; | |
32118 | } | |
c32bde28 | 32119 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32120 | { |
32121 | if (temp2) | |
32122 | delete arg2; | |
32123 | } | |
32124 | return resultobj; | |
32125 | fail: | |
32126 | { | |
32127 | if (temp2) | |
32128 | delete arg2; | |
32129 | } | |
32130 | return NULL; | |
32131 | } | |
32132 | ||
32133 | ||
c32bde28 | 32134 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32135 | PyObject *resultobj; |
32136 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32137 | int arg2 ; | |
32138 | bool arg3 ; | |
32139 | PyObject * obj0 = 0 ; | |
32140 | PyObject * obj1 = 0 ; | |
32141 | PyObject * obj2 = 0 ; | |
32142 | char *kwnames[] = { | |
32143 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32144 | }; | |
32145 | ||
32146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32149 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32150 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32151 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32152 | if (PyErr_Occurred()) SWIG_fail; |
32153 | { | |
32154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32155 | (arg1)->Enable(arg2,arg3); | |
32156 | ||
32157 | wxPyEndAllowThreads(__tstate); | |
32158 | if (PyErr_Occurred()) SWIG_fail; | |
32159 | } | |
32160 | Py_INCREF(Py_None); resultobj = Py_None; | |
32161 | return resultobj; | |
32162 | fail: | |
32163 | return NULL; | |
32164 | } | |
32165 | ||
32166 | ||
c32bde28 | 32167 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32168 | PyObject *resultobj; |
32169 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32170 | int arg2 ; | |
32171 | bool arg3 ; | |
32172 | PyObject * obj0 = 0 ; | |
32173 | PyObject * obj1 = 0 ; | |
32174 | PyObject * obj2 = 0 ; | |
32175 | char *kwnames[] = { | |
32176 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32177 | }; | |
32178 | ||
32179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32182 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32183 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32184 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32185 | if (PyErr_Occurred()) SWIG_fail; |
32186 | { | |
32187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32188 | (arg1)->Check(arg2,arg3); | |
32189 | ||
32190 | wxPyEndAllowThreads(__tstate); | |
32191 | if (PyErr_Occurred()) SWIG_fail; | |
32192 | } | |
32193 | Py_INCREF(Py_None); resultobj = Py_None; | |
32194 | return resultobj; | |
32195 | fail: | |
32196 | return NULL; | |
32197 | } | |
32198 | ||
32199 | ||
c32bde28 | 32200 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32201 | PyObject *resultobj; |
32202 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32203 | int arg2 ; | |
32204 | bool result; | |
32205 | PyObject * obj0 = 0 ; | |
32206 | PyObject * obj1 = 0 ; | |
32207 | char *kwnames[] = { | |
32208 | (char *) "self",(char *) "id", NULL | |
32209 | }; | |
32210 | ||
32211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32214 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32215 | if (PyErr_Occurred()) SWIG_fail; |
32216 | { | |
32217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32218 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32219 | ||
32220 | wxPyEndAllowThreads(__tstate); | |
32221 | if (PyErr_Occurred()) SWIG_fail; | |
32222 | } | |
32223 | { | |
32224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32225 | } | |
32226 | return resultobj; | |
32227 | fail: | |
32228 | return NULL; | |
32229 | } | |
32230 | ||
32231 | ||
c32bde28 | 32232 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32233 | PyObject *resultobj; |
32234 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32235 | int arg2 ; | |
32236 | bool result; | |
32237 | PyObject * obj0 = 0 ; | |
32238 | PyObject * obj1 = 0 ; | |
32239 | char *kwnames[] = { | |
32240 | (char *) "self",(char *) "id", NULL | |
32241 | }; | |
32242 | ||
32243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32246 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32247 | if (PyErr_Occurred()) SWIG_fail; |
32248 | { | |
32249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32250 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32251 | ||
32252 | wxPyEndAllowThreads(__tstate); | |
32253 | if (PyErr_Occurred()) SWIG_fail; | |
32254 | } | |
32255 | { | |
32256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32257 | } | |
32258 | return resultobj; | |
32259 | fail: | |
32260 | return NULL; | |
32261 | } | |
32262 | ||
32263 | ||
c32bde28 | 32264 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32265 | PyObject *resultobj; |
32266 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32267 | int arg2 ; | |
32268 | wxString *arg3 = 0 ; | |
ae8162c8 | 32269 | bool temp3 = false ; |
d55e5bfc RD |
32270 | PyObject * obj0 = 0 ; |
32271 | PyObject * obj1 = 0 ; | |
32272 | PyObject * obj2 = 0 ; | |
32273 | char *kwnames[] = { | |
32274 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32275 | }; | |
32276 | ||
32277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32280 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32281 | if (PyErr_Occurred()) SWIG_fail; |
32282 | { | |
32283 | arg3 = wxString_in_helper(obj2); | |
32284 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32285 | temp3 = true; |
d55e5bfc RD |
32286 | } |
32287 | { | |
32288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32289 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32290 | ||
32291 | wxPyEndAllowThreads(__tstate); | |
32292 | if (PyErr_Occurred()) SWIG_fail; | |
32293 | } | |
32294 | Py_INCREF(Py_None); resultobj = Py_None; | |
32295 | { | |
32296 | if (temp3) | |
32297 | delete arg3; | |
32298 | } | |
32299 | return resultobj; | |
32300 | fail: | |
32301 | { | |
32302 | if (temp3) | |
32303 | delete arg3; | |
32304 | } | |
32305 | return NULL; | |
32306 | } | |
32307 | ||
32308 | ||
c32bde28 | 32309 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32310 | PyObject *resultobj; |
32311 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32312 | int arg2 ; | |
32313 | wxString result; | |
32314 | PyObject * obj0 = 0 ; | |
32315 | PyObject * obj1 = 0 ; | |
32316 | char *kwnames[] = { | |
32317 | (char *) "self",(char *) "id", NULL | |
32318 | }; | |
32319 | ||
32320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32323 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32324 | if (PyErr_Occurred()) SWIG_fail; |
32325 | { | |
32326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32327 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32328 | ||
32329 | wxPyEndAllowThreads(__tstate); | |
32330 | if (PyErr_Occurred()) SWIG_fail; | |
32331 | } | |
32332 | { | |
32333 | #if wxUSE_UNICODE | |
32334 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32335 | #else | |
32336 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32337 | #endif | |
32338 | } | |
32339 | return resultobj; | |
32340 | fail: | |
32341 | return NULL; | |
32342 | } | |
32343 | ||
32344 | ||
c32bde28 | 32345 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32346 | PyObject *resultobj; |
32347 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32348 | int arg2 ; | |
32349 | wxString *arg3 = 0 ; | |
ae8162c8 | 32350 | bool temp3 = false ; |
d55e5bfc RD |
32351 | PyObject * obj0 = 0 ; |
32352 | PyObject * obj1 = 0 ; | |
32353 | PyObject * obj2 = 0 ; | |
32354 | char *kwnames[] = { | |
32355 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32356 | }; | |
32357 | ||
32358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32361 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32362 | if (PyErr_Occurred()) SWIG_fail; |
32363 | { | |
32364 | arg3 = wxString_in_helper(obj2); | |
32365 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32366 | temp3 = true; |
d55e5bfc RD |
32367 | } |
32368 | { | |
32369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32370 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32371 | ||
32372 | wxPyEndAllowThreads(__tstate); | |
32373 | if (PyErr_Occurred()) SWIG_fail; | |
32374 | } | |
32375 | Py_INCREF(Py_None); resultobj = Py_None; | |
32376 | { | |
32377 | if (temp3) | |
32378 | delete arg3; | |
32379 | } | |
32380 | return resultobj; | |
32381 | fail: | |
32382 | { | |
32383 | if (temp3) | |
32384 | delete arg3; | |
32385 | } | |
32386 | return NULL; | |
32387 | } | |
32388 | ||
32389 | ||
c32bde28 | 32390 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32391 | PyObject *resultobj; |
32392 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32393 | int arg2 ; | |
32394 | wxString result; | |
32395 | PyObject * obj0 = 0 ; | |
32396 | PyObject * obj1 = 0 ; | |
32397 | char *kwnames[] = { | |
32398 | (char *) "self",(char *) "id", NULL | |
32399 | }; | |
32400 | ||
32401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32404 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32405 | if (PyErr_Occurred()) SWIG_fail; |
32406 | { | |
32407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32408 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32409 | ||
32410 | wxPyEndAllowThreads(__tstate); | |
32411 | if (PyErr_Occurred()) SWIG_fail; | |
32412 | } | |
32413 | { | |
32414 | #if wxUSE_UNICODE | |
32415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32416 | #else | |
32417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32418 | #endif | |
32419 | } | |
32420 | return resultobj; | |
32421 | fail: | |
32422 | return NULL; | |
32423 | } | |
32424 | ||
32425 | ||
c32bde28 | 32426 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32427 | PyObject *resultobj; |
32428 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32429 | wxFrame *result; | |
32430 | PyObject * obj0 = 0 ; | |
32431 | char *kwnames[] = { | |
32432 | (char *) "self", NULL | |
32433 | }; | |
32434 | ||
32435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32438 | { | |
32439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32440 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32441 | ||
32442 | wxPyEndAllowThreads(__tstate); | |
32443 | if (PyErr_Occurred()) SWIG_fail; | |
32444 | } | |
32445 | { | |
412d302d | 32446 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32447 | } |
32448 | return resultobj; | |
32449 | fail: | |
32450 | return NULL; | |
32451 | } | |
32452 | ||
32453 | ||
c32bde28 | 32454 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32455 | PyObject *resultobj; |
32456 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32457 | bool result; | |
32458 | PyObject * obj0 = 0 ; | |
32459 | char *kwnames[] = { | |
32460 | (char *) "self", NULL | |
32461 | }; | |
32462 | ||
32463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32466 | { | |
32467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32468 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32469 | ||
32470 | wxPyEndAllowThreads(__tstate); | |
32471 | if (PyErr_Occurred()) SWIG_fail; | |
32472 | } | |
32473 | { | |
32474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32475 | } | |
32476 | return resultobj; | |
32477 | fail: | |
32478 | return NULL; | |
32479 | } | |
32480 | ||
32481 | ||
c32bde28 | 32482 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32483 | PyObject *resultobj; |
32484 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32485 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32486 | PyObject * obj0 = 0 ; | |
32487 | PyObject * obj1 = 0 ; | |
32488 | char *kwnames[] = { | |
32489 | (char *) "self",(char *) "frame", NULL | |
32490 | }; | |
32491 | ||
32492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32497 | { | |
32498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32499 | (arg1)->Attach(arg2); | |
32500 | ||
32501 | wxPyEndAllowThreads(__tstate); | |
32502 | if (PyErr_Occurred()) SWIG_fail; | |
32503 | } | |
32504 | Py_INCREF(Py_None); resultobj = Py_None; | |
32505 | return resultobj; | |
32506 | fail: | |
32507 | return NULL; | |
32508 | } | |
32509 | ||
32510 | ||
c32bde28 | 32511 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32512 | PyObject *resultobj; |
32513 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32514 | PyObject * obj0 = 0 ; | |
32515 | char *kwnames[] = { | |
32516 | (char *) "self", NULL | |
32517 | }; | |
32518 | ||
32519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32522 | { | |
32523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32524 | (arg1)->Detach(); | |
32525 | ||
32526 | wxPyEndAllowThreads(__tstate); | |
32527 | if (PyErr_Occurred()) SWIG_fail; | |
32528 | } | |
32529 | Py_INCREF(Py_None); resultobj = Py_None; | |
32530 | return resultobj; | |
32531 | fail: | |
32532 | return NULL; | |
32533 | } | |
32534 | ||
32535 | ||
c32bde28 | 32536 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32537 | PyObject *obj; |
32538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32539 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32540 | Py_INCREF(obj); | |
32541 | return Py_BuildValue((char *)""); | |
32542 | } | |
c32bde28 | 32543 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32544 | PyObject *resultobj; |
32545 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32546 | int arg2 = (int) wxID_ANY ; | |
32547 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32548 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32549 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32550 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32551 | int arg5 = (int) wxITEM_NORMAL ; | |
32552 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32553 | wxMenuItem *result; | |
ae8162c8 RD |
32554 | bool temp3 = false ; |
32555 | bool temp4 = false ; | |
d55e5bfc RD |
32556 | PyObject * obj0 = 0 ; |
32557 | PyObject * obj1 = 0 ; | |
32558 | PyObject * obj2 = 0 ; | |
32559 | PyObject * obj3 = 0 ; | |
32560 | PyObject * obj4 = 0 ; | |
32561 | PyObject * obj5 = 0 ; | |
32562 | char *kwnames[] = { | |
32563 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32564 | }; | |
32565 | ||
32566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32567 | if (obj0) { | |
32568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32570 | } | |
32571 | if (obj1) { | |
c32bde28 | 32572 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32573 | if (PyErr_Occurred()) SWIG_fail; |
32574 | } | |
32575 | if (obj2) { | |
32576 | { | |
32577 | arg3 = wxString_in_helper(obj2); | |
32578 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32579 | temp3 = true; |
d55e5bfc RD |
32580 | } |
32581 | } | |
32582 | if (obj3) { | |
32583 | { | |
32584 | arg4 = wxString_in_helper(obj3); | |
32585 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32586 | temp4 = true; |
d55e5bfc RD |
32587 | } |
32588 | } | |
32589 | if (obj4) { | |
c32bde28 | 32590 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32591 | if (PyErr_Occurred()) SWIG_fail; |
32592 | } | |
32593 | if (obj5) { | |
32594 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32596 | } | |
32597 | { | |
32598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32599 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32600 | ||
32601 | wxPyEndAllowThreads(__tstate); | |
32602 | if (PyErr_Occurred()) SWIG_fail; | |
32603 | } | |
32604 | { | |
412d302d | 32605 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32606 | } |
32607 | { | |
32608 | if (temp3) | |
32609 | delete arg3; | |
32610 | } | |
32611 | { | |
32612 | if (temp4) | |
32613 | delete arg4; | |
32614 | } | |
32615 | return resultobj; | |
32616 | fail: | |
32617 | { | |
32618 | if (temp3) | |
32619 | delete arg3; | |
32620 | } | |
32621 | { | |
32622 | if (temp4) | |
32623 | delete arg4; | |
32624 | } | |
32625 | return NULL; | |
32626 | } | |
32627 | ||
32628 | ||
c32bde28 | 32629 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32630 | PyObject *resultobj; |
32631 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32632 | wxMenu *result; | |
32633 | PyObject * obj0 = 0 ; | |
32634 | char *kwnames[] = { | |
32635 | (char *) "self", NULL | |
32636 | }; | |
32637 | ||
32638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32641 | { | |
32642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32643 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32644 | ||
32645 | wxPyEndAllowThreads(__tstate); | |
32646 | if (PyErr_Occurred()) SWIG_fail; | |
32647 | } | |
32648 | { | |
412d302d | 32649 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32650 | } |
32651 | return resultobj; | |
32652 | fail: | |
32653 | return NULL; | |
32654 | } | |
32655 | ||
32656 | ||
c32bde28 | 32657 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32658 | PyObject *resultobj; |
32659 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32660 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32661 | PyObject * obj0 = 0 ; | |
32662 | PyObject * obj1 = 0 ; | |
32663 | char *kwnames[] = { | |
32664 | (char *) "self",(char *) "menu", NULL | |
32665 | }; | |
32666 | ||
32667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32672 | { | |
32673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32674 | (arg1)->SetMenu(arg2); | |
32675 | ||
32676 | wxPyEndAllowThreads(__tstate); | |
32677 | if (PyErr_Occurred()) SWIG_fail; | |
32678 | } | |
32679 | Py_INCREF(Py_None); resultobj = Py_None; | |
32680 | return resultobj; | |
32681 | fail: | |
32682 | return NULL; | |
32683 | } | |
32684 | ||
32685 | ||
c32bde28 | 32686 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32687 | PyObject *resultobj; |
32688 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32689 | int arg2 ; | |
32690 | PyObject * obj0 = 0 ; | |
32691 | PyObject * obj1 = 0 ; | |
32692 | char *kwnames[] = { | |
32693 | (char *) "self",(char *) "id", NULL | |
32694 | }; | |
32695 | ||
32696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32700 | if (PyErr_Occurred()) SWIG_fail; |
32701 | { | |
32702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32703 | (arg1)->SetId(arg2); | |
32704 | ||
32705 | wxPyEndAllowThreads(__tstate); | |
32706 | if (PyErr_Occurred()) SWIG_fail; | |
32707 | } | |
32708 | Py_INCREF(Py_None); resultobj = Py_None; | |
32709 | return resultobj; | |
32710 | fail: | |
32711 | return NULL; | |
32712 | } | |
32713 | ||
32714 | ||
c32bde28 | 32715 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32716 | PyObject *resultobj; |
32717 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32718 | int result; | |
32719 | PyObject * obj0 = 0 ; | |
32720 | char *kwnames[] = { | |
32721 | (char *) "self", NULL | |
32722 | }; | |
32723 | ||
32724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32727 | { | |
32728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32729 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32730 | ||
32731 | wxPyEndAllowThreads(__tstate); | |
32732 | if (PyErr_Occurred()) SWIG_fail; | |
32733 | } | |
c32bde28 | 32734 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32735 | return resultobj; |
32736 | fail: | |
32737 | return NULL; | |
32738 | } | |
32739 | ||
32740 | ||
c32bde28 | 32741 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32742 | PyObject *resultobj; |
32743 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32744 | bool result; | |
32745 | PyObject * obj0 = 0 ; | |
32746 | char *kwnames[] = { | |
32747 | (char *) "self", NULL | |
32748 | }; | |
32749 | ||
32750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
32751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32753 | { | |
32754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32755 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32756 | ||
32757 | wxPyEndAllowThreads(__tstate); | |
32758 | if (PyErr_Occurred()) SWIG_fail; | |
32759 | } | |
32760 | { | |
32761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32762 | } | |
32763 | return resultobj; | |
32764 | fail: | |
32765 | return NULL; | |
32766 | } | |
32767 | ||
32768 | ||
c32bde28 | 32769 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32770 | PyObject *resultobj; |
32771 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32772 | wxString *arg2 = 0 ; | |
ae8162c8 | 32773 | bool temp2 = false ; |
d55e5bfc RD |
32774 | PyObject * obj0 = 0 ; |
32775 | PyObject * obj1 = 0 ; | |
32776 | char *kwnames[] = { | |
32777 | (char *) "self",(char *) "str", NULL | |
32778 | }; | |
32779 | ||
32780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
32781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32783 | { | |
32784 | arg2 = wxString_in_helper(obj1); | |
32785 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32786 | temp2 = true; |
d55e5bfc RD |
32787 | } |
32788 | { | |
32789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32790 | (arg1)->SetText((wxString const &)*arg2); | |
32791 | ||
32792 | wxPyEndAllowThreads(__tstate); | |
32793 | if (PyErr_Occurred()) SWIG_fail; | |
32794 | } | |
32795 | Py_INCREF(Py_None); resultobj = Py_None; | |
32796 | { | |
32797 | if (temp2) | |
32798 | delete arg2; | |
32799 | } | |
32800 | return resultobj; | |
32801 | fail: | |
32802 | { | |
32803 | if (temp2) | |
32804 | delete arg2; | |
32805 | } | |
32806 | return NULL; | |
32807 | } | |
32808 | ||
32809 | ||
c32bde28 | 32810 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32811 | PyObject *resultobj; |
32812 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32813 | wxString result; | |
32814 | PyObject * obj0 = 0 ; | |
32815 | char *kwnames[] = { | |
32816 | (char *) "self", NULL | |
32817 | }; | |
32818 | ||
32819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
32820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32822 | { | |
32823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32824 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32825 | ||
32826 | wxPyEndAllowThreads(__tstate); | |
32827 | if (PyErr_Occurred()) SWIG_fail; | |
32828 | } | |
32829 | { | |
32830 | #if wxUSE_UNICODE | |
32831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32832 | #else | |
32833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32834 | #endif | |
32835 | } | |
32836 | return resultobj; | |
32837 | fail: | |
32838 | return NULL; | |
32839 | } | |
32840 | ||
32841 | ||
c32bde28 | 32842 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32843 | PyObject *resultobj; |
32844 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32845 | wxString *result; | |
32846 | PyObject * obj0 = 0 ; | |
32847 | char *kwnames[] = { | |
32848 | (char *) "self", NULL | |
32849 | }; | |
32850 | ||
32851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
32852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32854 | { | |
32855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32856 | { | |
32857 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32858 | result = (wxString *) &_result_ref; | |
32859 | } | |
32860 | ||
32861 | wxPyEndAllowThreads(__tstate); | |
32862 | if (PyErr_Occurred()) SWIG_fail; | |
32863 | } | |
32864 | { | |
32865 | #if wxUSE_UNICODE | |
32866 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32867 | #else | |
32868 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32869 | #endif | |
32870 | } | |
32871 | return resultobj; | |
32872 | fail: | |
32873 | return NULL; | |
32874 | } | |
32875 | ||
32876 | ||
c32bde28 | 32877 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32878 | PyObject *resultobj; |
32879 | wxString *arg1 = 0 ; | |
32880 | wxString result; | |
ae8162c8 | 32881 | bool temp1 = false ; |
d55e5bfc RD |
32882 | PyObject * obj0 = 0 ; |
32883 | char *kwnames[] = { | |
32884 | (char *) "text", NULL | |
32885 | }; | |
32886 | ||
32887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32888 | { | |
32889 | arg1 = wxString_in_helper(obj0); | |
32890 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32891 | temp1 = true; |
d55e5bfc RD |
32892 | } |
32893 | { | |
32894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32895 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32896 | ||
32897 | wxPyEndAllowThreads(__tstate); | |
32898 | if (PyErr_Occurred()) SWIG_fail; | |
32899 | } | |
32900 | { | |
32901 | #if wxUSE_UNICODE | |
32902 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32903 | #else | |
32904 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32905 | #endif | |
32906 | } | |
32907 | { | |
32908 | if (temp1) | |
32909 | delete arg1; | |
32910 | } | |
32911 | return resultobj; | |
32912 | fail: | |
32913 | { | |
32914 | if (temp1) | |
32915 | delete arg1; | |
32916 | } | |
32917 | return NULL; | |
32918 | } | |
32919 | ||
32920 | ||
c32bde28 | 32921 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32922 | PyObject *resultobj; |
32923 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32924 | int result; | |
32925 | PyObject * obj0 = 0 ; | |
32926 | char *kwnames[] = { | |
32927 | (char *) "self", NULL | |
32928 | }; | |
32929 | ||
32930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
32931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32933 | { | |
32934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32935 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32936 | ||
32937 | wxPyEndAllowThreads(__tstate); | |
32938 | if (PyErr_Occurred()) SWIG_fail; | |
32939 | } | |
c32bde28 | 32940 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32941 | return resultobj; |
32942 | fail: | |
32943 | return NULL; | |
32944 | } | |
32945 | ||
32946 | ||
c32bde28 | 32947 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32948 | PyObject *resultobj; |
32949 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32950 | int arg2 ; | |
32951 | PyObject * obj0 = 0 ; | |
32952 | PyObject * obj1 = 0 ; | |
32953 | char *kwnames[] = { | |
32954 | (char *) "self",(char *) "kind", NULL | |
32955 | }; | |
32956 | ||
32957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32960 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32961 | if (PyErr_Occurred()) SWIG_fail; |
32962 | { | |
32963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32964 | (arg1)->SetKind((wxItemKind )arg2); | |
32965 | ||
32966 | wxPyEndAllowThreads(__tstate); | |
32967 | if (PyErr_Occurred()) SWIG_fail; | |
32968 | } | |
32969 | Py_INCREF(Py_None); resultobj = Py_None; | |
32970 | return resultobj; | |
32971 | fail: | |
32972 | return NULL; | |
32973 | } | |
32974 | ||
32975 | ||
c32bde28 | 32976 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32977 | PyObject *resultobj; |
32978 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32979 | bool arg2 ; | |
32980 | PyObject * obj0 = 0 ; | |
32981 | PyObject * obj1 = 0 ; | |
32982 | char *kwnames[] = { | |
32983 | (char *) "self",(char *) "checkable", NULL | |
32984 | }; | |
32985 | ||
32986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32989 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
32990 | if (PyErr_Occurred()) SWIG_fail; |
32991 | { | |
32992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32993 | (arg1)->SetCheckable(arg2); | |
32994 | ||
32995 | wxPyEndAllowThreads(__tstate); | |
32996 | if (PyErr_Occurred()) SWIG_fail; | |
32997 | } | |
32998 | Py_INCREF(Py_None); resultobj = Py_None; | |
32999 | return resultobj; | |
33000 | fail: | |
33001 | return NULL; | |
33002 | } | |
33003 | ||
33004 | ||
c32bde28 | 33005 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33006 | PyObject *resultobj; |
33007 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33008 | bool result; | |
33009 | PyObject * obj0 = 0 ; | |
33010 | char *kwnames[] = { | |
33011 | (char *) "self", NULL | |
33012 | }; | |
33013 | ||
33014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
33015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33017 | { | |
33018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33019 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
33020 | ||
33021 | wxPyEndAllowThreads(__tstate); | |
33022 | if (PyErr_Occurred()) SWIG_fail; | |
33023 | } | |
33024 | { | |
33025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33026 | } | |
33027 | return resultobj; | |
33028 | fail: | |
33029 | return NULL; | |
33030 | } | |
33031 | ||
33032 | ||
c32bde28 | 33033 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33034 | PyObject *resultobj; |
33035 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33036 | bool result; | |
33037 | PyObject * obj0 = 0 ; | |
33038 | char *kwnames[] = { | |
33039 | (char *) "self", NULL | |
33040 | }; | |
33041 | ||
33042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
33043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33045 | { | |
33046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33047 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
33048 | ||
33049 | wxPyEndAllowThreads(__tstate); | |
33050 | if (PyErr_Occurred()) SWIG_fail; | |
33051 | } | |
33052 | { | |
33053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33054 | } | |
33055 | return resultobj; | |
33056 | fail: | |
33057 | return NULL; | |
33058 | } | |
33059 | ||
33060 | ||
c32bde28 | 33061 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33062 | PyObject *resultobj; |
33063 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33064 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33065 | PyObject * obj0 = 0 ; | |
33066 | PyObject * obj1 = 0 ; | |
33067 | char *kwnames[] = { | |
33068 | (char *) "self",(char *) "menu", NULL | |
33069 | }; | |
33070 | ||
33071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33076 | { | |
33077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33078 | (arg1)->SetSubMenu(arg2); | |
33079 | ||
33080 | wxPyEndAllowThreads(__tstate); | |
33081 | if (PyErr_Occurred()) SWIG_fail; | |
33082 | } | |
33083 | Py_INCREF(Py_None); resultobj = Py_None; | |
33084 | return resultobj; | |
33085 | fail: | |
33086 | return NULL; | |
33087 | } | |
33088 | ||
33089 | ||
c32bde28 | 33090 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33091 | PyObject *resultobj; |
33092 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33093 | wxMenu *result; | |
33094 | PyObject * obj0 = 0 ; | |
33095 | char *kwnames[] = { | |
33096 | (char *) "self", NULL | |
33097 | }; | |
33098 | ||
33099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33102 | { | |
33103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33104 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33105 | ||
33106 | wxPyEndAllowThreads(__tstate); | |
33107 | if (PyErr_Occurred()) SWIG_fail; | |
33108 | } | |
33109 | { | |
412d302d | 33110 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33111 | } |
33112 | return resultobj; | |
33113 | fail: | |
33114 | return NULL; | |
33115 | } | |
33116 | ||
33117 | ||
c32bde28 | 33118 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33119 | PyObject *resultobj; |
33120 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33121 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33122 | PyObject * obj0 = 0 ; |
33123 | PyObject * obj1 = 0 ; | |
33124 | char *kwnames[] = { | |
33125 | (char *) "self",(char *) "enable", NULL | |
33126 | }; | |
33127 | ||
33128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33131 | if (obj1) { | |
c32bde28 | 33132 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33133 | if (PyErr_Occurred()) SWIG_fail; |
33134 | } | |
33135 | { | |
33136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33137 | (arg1)->Enable(arg2); | |
33138 | ||
33139 | wxPyEndAllowThreads(__tstate); | |
33140 | if (PyErr_Occurred()) SWIG_fail; | |
33141 | } | |
33142 | Py_INCREF(Py_None); resultobj = Py_None; | |
33143 | return resultobj; | |
33144 | fail: | |
33145 | return NULL; | |
33146 | } | |
33147 | ||
33148 | ||
c32bde28 | 33149 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33150 | PyObject *resultobj; |
33151 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33152 | bool result; | |
33153 | PyObject * obj0 = 0 ; | |
33154 | char *kwnames[] = { | |
33155 | (char *) "self", NULL | |
33156 | }; | |
33157 | ||
33158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33161 | { | |
33162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33163 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33164 | ||
33165 | wxPyEndAllowThreads(__tstate); | |
33166 | if (PyErr_Occurred()) SWIG_fail; | |
33167 | } | |
33168 | { | |
33169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33170 | } | |
33171 | return resultobj; | |
33172 | fail: | |
33173 | return NULL; | |
33174 | } | |
33175 | ||
33176 | ||
c32bde28 | 33177 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33178 | PyObject *resultobj; |
33179 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33180 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33181 | PyObject * obj0 = 0 ; |
33182 | PyObject * obj1 = 0 ; | |
33183 | char *kwnames[] = { | |
33184 | (char *) "self",(char *) "check", NULL | |
33185 | }; | |
33186 | ||
33187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33190 | if (obj1) { | |
c32bde28 | 33191 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33192 | if (PyErr_Occurred()) SWIG_fail; |
33193 | } | |
33194 | { | |
33195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33196 | (arg1)->Check(arg2); | |
33197 | ||
33198 | wxPyEndAllowThreads(__tstate); | |
33199 | if (PyErr_Occurred()) SWIG_fail; | |
33200 | } | |
33201 | Py_INCREF(Py_None); resultobj = Py_None; | |
33202 | return resultobj; | |
33203 | fail: | |
33204 | return NULL; | |
33205 | } | |
33206 | ||
33207 | ||
c32bde28 | 33208 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33209 | PyObject *resultobj; |
33210 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33211 | bool result; | |
33212 | PyObject * obj0 = 0 ; | |
33213 | char *kwnames[] = { | |
33214 | (char *) "self", NULL | |
33215 | }; | |
33216 | ||
33217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33220 | { | |
33221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33222 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33223 | ||
33224 | wxPyEndAllowThreads(__tstate); | |
33225 | if (PyErr_Occurred()) SWIG_fail; | |
33226 | } | |
33227 | { | |
33228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33229 | } | |
33230 | return resultobj; | |
33231 | fail: | |
33232 | return NULL; | |
33233 | } | |
33234 | ||
33235 | ||
c32bde28 | 33236 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33237 | PyObject *resultobj; |
33238 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33239 | PyObject * obj0 = 0 ; | |
33240 | char *kwnames[] = { | |
33241 | (char *) "self", NULL | |
33242 | }; | |
33243 | ||
33244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33247 | { | |
33248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33249 | (arg1)->Toggle(); | |
33250 | ||
33251 | wxPyEndAllowThreads(__tstate); | |
33252 | if (PyErr_Occurred()) SWIG_fail; | |
33253 | } | |
33254 | Py_INCREF(Py_None); resultobj = Py_None; | |
33255 | return resultobj; | |
33256 | fail: | |
33257 | return NULL; | |
33258 | } | |
33259 | ||
33260 | ||
c32bde28 | 33261 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33262 | PyObject *resultobj; |
33263 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33264 | wxString *arg2 = 0 ; | |
ae8162c8 | 33265 | bool temp2 = false ; |
d55e5bfc RD |
33266 | PyObject * obj0 = 0 ; |
33267 | PyObject * obj1 = 0 ; | |
33268 | char *kwnames[] = { | |
33269 | (char *) "self",(char *) "str", NULL | |
33270 | }; | |
33271 | ||
33272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33275 | { | |
33276 | arg2 = wxString_in_helper(obj1); | |
33277 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33278 | temp2 = true; |
d55e5bfc RD |
33279 | } |
33280 | { | |
33281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33282 | (arg1)->SetHelp((wxString const &)*arg2); | |
33283 | ||
33284 | wxPyEndAllowThreads(__tstate); | |
33285 | if (PyErr_Occurred()) SWIG_fail; | |
33286 | } | |
33287 | Py_INCREF(Py_None); resultobj = Py_None; | |
33288 | { | |
33289 | if (temp2) | |
33290 | delete arg2; | |
33291 | } | |
33292 | return resultobj; | |
33293 | fail: | |
33294 | { | |
33295 | if (temp2) | |
33296 | delete arg2; | |
33297 | } | |
33298 | return NULL; | |
33299 | } | |
33300 | ||
33301 | ||
c32bde28 | 33302 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33303 | PyObject *resultobj; |
33304 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33305 | wxString *result; | |
33306 | PyObject * obj0 = 0 ; | |
33307 | char *kwnames[] = { | |
33308 | (char *) "self", NULL | |
33309 | }; | |
33310 | ||
33311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33314 | { | |
33315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33316 | { | |
33317 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33318 | result = (wxString *) &_result_ref; | |
33319 | } | |
33320 | ||
33321 | wxPyEndAllowThreads(__tstate); | |
33322 | if (PyErr_Occurred()) SWIG_fail; | |
33323 | } | |
33324 | { | |
33325 | #if wxUSE_UNICODE | |
33326 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33327 | #else | |
33328 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33329 | #endif | |
33330 | } | |
33331 | return resultobj; | |
33332 | fail: | |
33333 | return NULL; | |
33334 | } | |
33335 | ||
33336 | ||
c32bde28 | 33337 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33338 | PyObject *resultobj; |
33339 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33340 | wxAcceleratorEntry *result; | |
33341 | PyObject * obj0 = 0 ; | |
33342 | char *kwnames[] = { | |
33343 | (char *) "self", NULL | |
33344 | }; | |
33345 | ||
33346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33349 | { | |
33350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33351 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33352 | ||
33353 | wxPyEndAllowThreads(__tstate); | |
33354 | if (PyErr_Occurred()) SWIG_fail; | |
33355 | } | |
33356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33357 | return resultobj; | |
33358 | fail: | |
33359 | return NULL; | |
33360 | } | |
33361 | ||
33362 | ||
c32bde28 | 33363 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33364 | PyObject *resultobj; |
33365 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33366 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33367 | PyObject * obj0 = 0 ; | |
33368 | PyObject * obj1 = 0 ; | |
33369 | char *kwnames[] = { | |
33370 | (char *) "self",(char *) "accel", NULL | |
33371 | }; | |
33372 | ||
33373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33378 | { | |
33379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33380 | (arg1)->SetAccel(arg2); | |
33381 | ||
33382 | wxPyEndAllowThreads(__tstate); | |
33383 | if (PyErr_Occurred()) SWIG_fail; | |
33384 | } | |
33385 | Py_INCREF(Py_None); resultobj = Py_None; | |
33386 | return resultobj; | |
33387 | fail: | |
33388 | return NULL; | |
33389 | } | |
33390 | ||
33391 | ||
c32bde28 | 33392 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33393 | PyObject *resultobj; |
33394 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33395 | wxFont *arg2 = 0 ; | |
33396 | PyObject * obj0 = 0 ; | |
33397 | PyObject * obj1 = 0 ; | |
33398 | char *kwnames[] = { | |
33399 | (char *) "self",(char *) "font", NULL | |
33400 | }; | |
33401 | ||
33402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
33403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
33406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33407 | SWIG_fail; | |
33408 | if (arg2 == NULL) { | |
33409 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33410 | SWIG_fail; | |
33411 | } | |
33412 | { | |
33413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33414 | (arg1)->SetFont((wxFont const &)*arg2); | |
33415 | ||
33416 | wxPyEndAllowThreads(__tstate); | |
33417 | if (PyErr_Occurred()) SWIG_fail; | |
33418 | } | |
33419 | Py_INCREF(Py_None); resultobj = Py_None; | |
33420 | return resultobj; | |
33421 | fail: | |
33422 | return NULL; | |
33423 | } | |
33424 | ||
33425 | ||
c32bde28 | 33426 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33427 | PyObject *resultobj; |
33428 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33429 | wxFont result; | |
33430 | PyObject * obj0 = 0 ; | |
33431 | char *kwnames[] = { | |
33432 | (char *) "self", NULL | |
33433 | }; | |
33434 | ||
33435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
33436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33438 | { | |
33439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33440 | result = (arg1)->GetFont(); | |
33441 | ||
33442 | wxPyEndAllowThreads(__tstate); | |
33443 | if (PyErr_Occurred()) SWIG_fail; | |
33444 | } | |
33445 | { | |
33446 | wxFont * resultptr; | |
33447 | resultptr = new wxFont((wxFont &) result); | |
33448 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
33449 | } | |
33450 | return resultobj; | |
33451 | fail: | |
33452 | return NULL; | |
33453 | } | |
33454 | ||
33455 | ||
c32bde28 | 33456 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33457 | PyObject *resultobj; |
33458 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33459 | wxColour *arg2 = 0 ; | |
33460 | wxColour temp2 ; | |
33461 | PyObject * obj0 = 0 ; | |
33462 | PyObject * obj1 = 0 ; | |
33463 | char *kwnames[] = { | |
33464 | (char *) "self",(char *) "colText", NULL | |
33465 | }; | |
33466 | ||
33467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
33468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33470 | { | |
33471 | arg2 = &temp2; | |
33472 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33473 | } | |
33474 | { | |
33475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33476 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
33477 | ||
33478 | wxPyEndAllowThreads(__tstate); | |
33479 | if (PyErr_Occurred()) SWIG_fail; | |
33480 | } | |
33481 | Py_INCREF(Py_None); resultobj = Py_None; | |
33482 | return resultobj; | |
33483 | fail: | |
33484 | return NULL; | |
33485 | } | |
33486 | ||
33487 | ||
c32bde28 | 33488 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33489 | PyObject *resultobj; |
33490 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33491 | wxColour result; | |
33492 | PyObject * obj0 = 0 ; | |
33493 | char *kwnames[] = { | |
33494 | (char *) "self", NULL | |
33495 | }; | |
33496 | ||
33497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
33498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33500 | { | |
33501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33502 | result = (arg1)->GetTextColour(); | |
33503 | ||
33504 | wxPyEndAllowThreads(__tstate); | |
33505 | if (PyErr_Occurred()) SWIG_fail; | |
33506 | } | |
33507 | { | |
33508 | wxColour * resultptr; | |
33509 | resultptr = new wxColour((wxColour &) result); | |
33510 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33511 | } | |
33512 | return resultobj; | |
33513 | fail: | |
33514 | return NULL; | |
33515 | } | |
33516 | ||
33517 | ||
c32bde28 | 33518 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33519 | PyObject *resultobj; |
33520 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33521 | wxColour *arg2 = 0 ; | |
33522 | wxColour temp2 ; | |
33523 | PyObject * obj0 = 0 ; | |
33524 | PyObject * obj1 = 0 ; | |
33525 | char *kwnames[] = { | |
33526 | (char *) "self",(char *) "colBack", NULL | |
33527 | }; | |
33528 | ||
33529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
33530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33532 | { | |
33533 | arg2 = &temp2; | |
33534 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33535 | } | |
33536 | { | |
33537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33538 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
33539 | ||
33540 | wxPyEndAllowThreads(__tstate); | |
33541 | if (PyErr_Occurred()) SWIG_fail; | |
33542 | } | |
33543 | Py_INCREF(Py_None); resultobj = Py_None; | |
33544 | return resultobj; | |
33545 | fail: | |
33546 | return NULL; | |
33547 | } | |
33548 | ||
33549 | ||
c32bde28 | 33550 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33551 | PyObject *resultobj; |
33552 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33553 | wxColour result; | |
33554 | PyObject * obj0 = 0 ; | |
33555 | char *kwnames[] = { | |
33556 | (char *) "self", NULL | |
33557 | }; | |
33558 | ||
33559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
33560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33562 | { | |
33563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33564 | result = (arg1)->GetBackgroundColour(); | |
33565 | ||
33566 | wxPyEndAllowThreads(__tstate); | |
33567 | if (PyErr_Occurred()) SWIG_fail; | |
33568 | } | |
33569 | { | |
33570 | wxColour * resultptr; | |
33571 | resultptr = new wxColour((wxColour &) result); | |
33572 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33573 | } | |
33574 | return resultobj; | |
33575 | fail: | |
33576 | return NULL; | |
33577 | } | |
33578 | ||
33579 | ||
c32bde28 | 33580 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33581 | PyObject *resultobj; |
33582 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33583 | wxBitmap *arg2 = 0 ; | |
33584 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
33585 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
33586 | PyObject * obj0 = 0 ; | |
33587 | PyObject * obj1 = 0 ; | |
33588 | PyObject * obj2 = 0 ; | |
33589 | char *kwnames[] = { | |
33590 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
33591 | }; | |
33592 | ||
33593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33597 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33598 | SWIG_fail; | |
33599 | if (arg2 == NULL) { | |
33600 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33601 | SWIG_fail; | |
33602 | } | |
33603 | if (obj2) { | |
33604 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
33605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33606 | SWIG_fail; | |
33607 | if (arg3 == NULL) { | |
33608 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33609 | SWIG_fail; | |
33610 | } | |
33611 | } | |
33612 | { | |
33613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33614 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
33615 | ||
33616 | wxPyEndAllowThreads(__tstate); | |
33617 | if (PyErr_Occurred()) SWIG_fail; | |
33618 | } | |
33619 | Py_INCREF(Py_None); resultobj = Py_None; | |
33620 | return resultobj; | |
33621 | fail: | |
33622 | return NULL; | |
33623 | } | |
33624 | ||
33625 | ||
c32bde28 | 33626 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33627 | PyObject *resultobj; |
33628 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33629 | wxBitmap *arg2 = 0 ; | |
33630 | PyObject * obj0 = 0 ; | |
33631 | PyObject * obj1 = 0 ; | |
33632 | char *kwnames[] = { | |
33633 | (char *) "self",(char *) "bmpDisabled", NULL | |
33634 | }; | |
33635 | ||
33636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33639 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33640 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33641 | SWIG_fail; | |
33642 | if (arg2 == NULL) { | |
33643 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33644 | SWIG_fail; | |
33645 | } | |
33646 | { | |
33647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33648 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
33649 | ||
33650 | wxPyEndAllowThreads(__tstate); | |
33651 | if (PyErr_Occurred()) SWIG_fail; | |
33652 | } | |
33653 | Py_INCREF(Py_None); resultobj = Py_None; | |
33654 | return resultobj; | |
33655 | fail: | |
33656 | return NULL; | |
33657 | } | |
33658 | ||
33659 | ||
c32bde28 | 33660 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33661 | PyObject *resultobj; |
33662 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33663 | wxBitmap *result; | |
33664 | PyObject * obj0 = 0 ; | |
33665 | char *kwnames[] = { | |
33666 | (char *) "self", NULL | |
33667 | }; | |
33668 | ||
33669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
33670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33672 | { | |
33673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33674 | { | |
33675 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
33676 | result = (wxBitmap *) &_result_ref; | |
33677 | } | |
33678 | ||
33679 | wxPyEndAllowThreads(__tstate); | |
33680 | if (PyErr_Occurred()) SWIG_fail; | |
33681 | } | |
33682 | { | |
33683 | wxBitmap* resultptr = new wxBitmap(*result); | |
33684 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33685 | } | |
33686 | return resultobj; | |
33687 | fail: | |
33688 | return NULL; | |
33689 | } | |
33690 | ||
33691 | ||
c32bde28 | 33692 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33693 | PyObject *resultobj; |
33694 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33695 | int arg2 ; | |
33696 | PyObject * obj0 = 0 ; | |
33697 | PyObject * obj1 = 0 ; | |
33698 | char *kwnames[] = { | |
33699 | (char *) "self",(char *) "nWidth", NULL | |
33700 | }; | |
33701 | ||
33702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
33703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33705 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33706 | if (PyErr_Occurred()) SWIG_fail; |
33707 | { | |
33708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33709 | (arg1)->SetMarginWidth(arg2); | |
33710 | ||
33711 | wxPyEndAllowThreads(__tstate); | |
33712 | if (PyErr_Occurred()) SWIG_fail; | |
33713 | } | |
33714 | Py_INCREF(Py_None); resultobj = Py_None; | |
33715 | return resultobj; | |
33716 | fail: | |
33717 | return NULL; | |
33718 | } | |
33719 | ||
33720 | ||
c32bde28 | 33721 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33722 | PyObject *resultobj; |
33723 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33724 | int result; | |
33725 | PyObject * obj0 = 0 ; | |
33726 | char *kwnames[] = { | |
33727 | (char *) "self", NULL | |
33728 | }; | |
33729 | ||
33730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
33731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33733 | { | |
33734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33735 | result = (int)(arg1)->GetMarginWidth(); | |
33736 | ||
33737 | wxPyEndAllowThreads(__tstate); | |
33738 | if (PyErr_Occurred()) SWIG_fail; | |
33739 | } | |
c32bde28 | 33740 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33741 | return resultobj; |
33742 | fail: | |
33743 | return NULL; | |
33744 | } | |
33745 | ||
33746 | ||
c32bde28 | 33747 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33748 | PyObject *resultobj; |
33749 | int result; | |
33750 | char *kwnames[] = { | |
33751 | NULL | |
33752 | }; | |
33753 | ||
33754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33755 | { | |
33756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33757 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
33758 | ||
33759 | wxPyEndAllowThreads(__tstate); | |
33760 | if (PyErr_Occurred()) SWIG_fail; | |
33761 | } | |
c32bde28 | 33762 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33763 | return resultobj; |
33764 | fail: | |
33765 | return NULL; | |
33766 | } | |
33767 | ||
33768 | ||
c32bde28 | 33769 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33770 | PyObject *resultobj; |
33771 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33772 | bool result; | |
33773 | PyObject * obj0 = 0 ; | |
33774 | char *kwnames[] = { | |
33775 | (char *) "self", NULL | |
33776 | }; | |
33777 | ||
33778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
33779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33781 | { | |
33782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33783 | result = (bool)(arg1)->IsOwnerDrawn(); | |
33784 | ||
33785 | wxPyEndAllowThreads(__tstate); | |
33786 | if (PyErr_Occurred()) SWIG_fail; | |
33787 | } | |
33788 | { | |
33789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33790 | } | |
33791 | return resultobj; | |
33792 | fail: | |
33793 | return NULL; | |
33794 | } | |
33795 | ||
33796 | ||
c32bde28 | 33797 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33798 | PyObject *resultobj; |
33799 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33800 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33801 | PyObject * obj0 = 0 ; |
33802 | PyObject * obj1 = 0 ; | |
33803 | char *kwnames[] = { | |
33804 | (char *) "self",(char *) "ownerDrawn", NULL | |
33805 | }; | |
33806 | ||
33807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
33808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33810 | if (obj1) { | |
c32bde28 | 33811 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33812 | if (PyErr_Occurred()) SWIG_fail; |
33813 | } | |
33814 | { | |
33815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33816 | (arg1)->SetOwnerDrawn(arg2); | |
33817 | ||
33818 | wxPyEndAllowThreads(__tstate); | |
33819 | if (PyErr_Occurred()) SWIG_fail; | |
33820 | } | |
33821 | Py_INCREF(Py_None); resultobj = Py_None; | |
33822 | return resultobj; | |
33823 | fail: | |
33824 | return NULL; | |
33825 | } | |
33826 | ||
33827 | ||
c32bde28 | 33828 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33829 | PyObject *resultobj; |
33830 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33831 | PyObject * obj0 = 0 ; | |
33832 | char *kwnames[] = { | |
33833 | (char *) "self", NULL | |
33834 | }; | |
33835 | ||
33836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
33837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33839 | { | |
33840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33841 | (arg1)->ResetOwnerDrawn(); | |
33842 | ||
33843 | wxPyEndAllowThreads(__tstate); | |
33844 | if (PyErr_Occurred()) SWIG_fail; | |
33845 | } | |
33846 | Py_INCREF(Py_None); resultobj = Py_None; | |
33847 | return resultobj; | |
33848 | fail: | |
33849 | return NULL; | |
33850 | } | |
33851 | ||
33852 | ||
c32bde28 | 33853 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33854 | PyObject *resultobj; |
33855 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33856 | wxBitmap *arg2 = 0 ; | |
33857 | PyObject * obj0 = 0 ; | |
33858 | PyObject * obj1 = 0 ; | |
33859 | char *kwnames[] = { | |
33860 | (char *) "self",(char *) "bitmap", NULL | |
33861 | }; | |
33862 | ||
33863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33868 | SWIG_fail; | |
33869 | if (arg2 == NULL) { | |
33870 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33871 | SWIG_fail; | |
33872 | } | |
33873 | { | |
33874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33875 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33876 | ||
33877 | wxPyEndAllowThreads(__tstate); | |
33878 | if (PyErr_Occurred()) SWIG_fail; | |
33879 | } | |
33880 | Py_INCREF(Py_None); resultobj = Py_None; | |
33881 | return resultobj; | |
33882 | fail: | |
33883 | return NULL; | |
33884 | } | |
33885 | ||
33886 | ||
c32bde28 | 33887 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33888 | PyObject *resultobj; |
33889 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33890 | wxBitmap *result; | |
33891 | PyObject * obj0 = 0 ; | |
33892 | char *kwnames[] = { | |
33893 | (char *) "self", NULL | |
33894 | }; | |
33895 | ||
33896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33899 | { | |
33900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33901 | { | |
33902 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33903 | result = (wxBitmap *) &_result_ref; | |
33904 | } | |
33905 | ||
33906 | wxPyEndAllowThreads(__tstate); | |
33907 | if (PyErr_Occurred()) SWIG_fail; | |
33908 | } | |
33909 | { | |
33910 | wxBitmap* resultptr = new wxBitmap(*result); | |
33911 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33912 | } | |
33913 | return resultobj; | |
33914 | fail: | |
33915 | return NULL; | |
33916 | } | |
33917 | ||
33918 | ||
c32bde28 | 33919 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33920 | PyObject *obj; |
33921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33922 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33923 | Py_INCREF(obj); | |
33924 | return Py_BuildValue((char *)""); | |
33925 | } | |
c32bde28 | 33926 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
33927 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
33928 | return 1; | |
33929 | } | |
33930 | ||
33931 | ||
33932 | static PyObject *_wrap_ControlNameStr_get() { | |
33933 | PyObject *pyobj; | |
33934 | ||
33935 | { | |
33936 | #if wxUSE_UNICODE | |
33937 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33938 | #else | |
33939 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33940 | #endif | |
33941 | } | |
33942 | return pyobj; | |
33943 | } | |
33944 | ||
33945 | ||
c32bde28 | 33946 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33947 | PyObject *resultobj; |
33948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 33949 | int arg2 = (int) -1 ; |
d55e5bfc RD |
33950 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33951 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33952 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33953 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33954 | long arg5 = (long) 0 ; | |
33955 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33956 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33957 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33958 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33959 | wxControl *result; | |
33960 | wxPoint temp3 ; | |
33961 | wxSize temp4 ; | |
ae8162c8 | 33962 | bool temp7 = false ; |
d55e5bfc RD |
33963 | PyObject * obj0 = 0 ; |
33964 | PyObject * obj1 = 0 ; | |
33965 | PyObject * obj2 = 0 ; | |
33966 | PyObject * obj3 = 0 ; | |
33967 | PyObject * obj4 = 0 ; | |
33968 | PyObject * obj5 = 0 ; | |
33969 | PyObject * obj6 = 0 ; | |
33970 | char *kwnames[] = { | |
33971 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33972 | }; | |
33973 | ||
248ed943 | 33974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
33975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 33977 | if (obj1) { |
c32bde28 | 33978 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
33979 | if (PyErr_Occurred()) SWIG_fail; |
33980 | } | |
d55e5bfc RD |
33981 | if (obj2) { |
33982 | { | |
33983 | arg3 = &temp3; | |
33984 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33985 | } | |
33986 | } | |
33987 | if (obj3) { | |
33988 | { | |
33989 | arg4 = &temp4; | |
33990 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33991 | } | |
33992 | } | |
33993 | if (obj4) { | |
c32bde28 | 33994 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
33995 | if (PyErr_Occurred()) SWIG_fail; |
33996 | } | |
33997 | if (obj5) { | |
33998 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33999 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34000 | SWIG_fail; | |
34001 | if (arg6 == NULL) { | |
34002 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34003 | SWIG_fail; | |
34004 | } | |
34005 | } | |
34006 | if (obj6) { | |
34007 | { | |
34008 | arg7 = wxString_in_helper(obj6); | |
34009 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 34010 | temp7 = true; |
d55e5bfc RD |
34011 | } |
34012 | } | |
34013 | { | |
0439c23b | 34014 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34016 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
34017 | ||
34018 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34019 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34020 | } |
b0f7404b | 34021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34022 | { |
34023 | if (temp7) | |
34024 | delete arg7; | |
34025 | } | |
34026 | return resultobj; | |
34027 | fail: | |
34028 | { | |
34029 | if (temp7) | |
34030 | delete arg7; | |
34031 | } | |
34032 | return NULL; | |
34033 | } | |
34034 | ||
34035 | ||
c32bde28 | 34036 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34037 | PyObject *resultobj; |
34038 | wxControl *result; | |
34039 | char *kwnames[] = { | |
34040 | NULL | |
34041 | }; | |
34042 | ||
34043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
34044 | { | |
0439c23b | 34045 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34047 | result = (wxControl *)new wxControl(); | |
34048 | ||
34049 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34050 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34051 | } |
b0f7404b | 34052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34053 | return resultobj; |
34054 | fail: | |
34055 | return NULL; | |
34056 | } | |
34057 | ||
34058 | ||
c32bde28 | 34059 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34060 | PyObject *resultobj; |
34061 | wxControl *arg1 = (wxControl *) 0 ; | |
34062 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 34063 | int arg3 = (int) -1 ; |
d55e5bfc RD |
34064 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
34065 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34066 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34067 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34068 | long arg6 = (long) 0 ; | |
34069 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34070 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34071 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
34072 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34073 | bool result; | |
34074 | wxPoint temp4 ; | |
34075 | wxSize temp5 ; | |
ae8162c8 | 34076 | bool temp8 = false ; |
d55e5bfc RD |
34077 | PyObject * obj0 = 0 ; |
34078 | PyObject * obj1 = 0 ; | |
34079 | PyObject * obj2 = 0 ; | |
34080 | PyObject * obj3 = 0 ; | |
34081 | PyObject * obj4 = 0 ; | |
34082 | PyObject * obj5 = 0 ; | |
34083 | PyObject * obj6 = 0 ; | |
34084 | PyObject * obj7 = 0 ; | |
34085 | char *kwnames[] = { | |
34086 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34087 | }; | |
34088 | ||
248ed943 | 34089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
34090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
34091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34094 | if (obj2) { |
c32bde28 | 34095 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
34096 | if (PyErr_Occurred()) SWIG_fail; |
34097 | } | |
d55e5bfc RD |
34098 | if (obj3) { |
34099 | { | |
34100 | arg4 = &temp4; | |
34101 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34102 | } | |
34103 | } | |
34104 | if (obj4) { | |
34105 | { | |
34106 | arg5 = &temp5; | |
34107 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34108 | } | |
34109 | } | |
34110 | if (obj5) { | |
c32bde28 | 34111 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
34112 | if (PyErr_Occurred()) SWIG_fail; |
34113 | } | |
34114 | if (obj6) { | |
34115 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
34116 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34117 | SWIG_fail; | |
34118 | if (arg7 == NULL) { | |
34119 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34120 | SWIG_fail; | |
34121 | } | |
34122 | } | |
34123 | if (obj7) { | |
34124 | { | |
34125 | arg8 = wxString_in_helper(obj7); | |
34126 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 34127 | temp8 = true; |
d55e5bfc RD |
34128 | } |
34129 | } | |
34130 | { | |
34131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34132 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34133 | ||
34134 | wxPyEndAllowThreads(__tstate); | |
34135 | if (PyErr_Occurred()) SWIG_fail; | |
34136 | } | |
34137 | { | |
34138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34139 | } | |
34140 | { | |
34141 | if (temp8) | |
34142 | delete arg8; | |
34143 | } | |
34144 | return resultobj; | |
34145 | fail: | |
34146 | { | |
34147 | if (temp8) | |
34148 | delete arg8; | |
34149 | } | |
34150 | return NULL; | |
34151 | } | |
34152 | ||
34153 | ||
c32bde28 | 34154 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34155 | PyObject *resultobj; |
34156 | wxControl *arg1 = (wxControl *) 0 ; | |
34157 | wxCommandEvent *arg2 = 0 ; | |
34158 | PyObject * obj0 = 0 ; | |
34159 | PyObject * obj1 = 0 ; | |
34160 | char *kwnames[] = { | |
34161 | (char *) "self",(char *) "event", NULL | |
34162 | }; | |
34163 | ||
34164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
34165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
34168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34169 | SWIG_fail; | |
34170 | if (arg2 == NULL) { | |
34171 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34172 | SWIG_fail; | |
34173 | } | |
34174 | { | |
34175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34176 | (arg1)->Command(*arg2); | |
34177 | ||
34178 | wxPyEndAllowThreads(__tstate); | |
34179 | if (PyErr_Occurred()) SWIG_fail; | |
34180 | } | |
34181 | Py_INCREF(Py_None); resultobj = Py_None; | |
34182 | return resultobj; | |
34183 | fail: | |
34184 | return NULL; | |
34185 | } | |
34186 | ||
34187 | ||
c32bde28 | 34188 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34189 | PyObject *resultobj; |
34190 | wxControl *arg1 = (wxControl *) 0 ; | |
34191 | wxString result; | |
34192 | PyObject * obj0 = 0 ; | |
34193 | char *kwnames[] = { | |
34194 | (char *) "self", NULL | |
34195 | }; | |
34196 | ||
34197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
34198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34200 | { | |
34201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34202 | result = (arg1)->GetLabel(); | |
34203 | ||
34204 | wxPyEndAllowThreads(__tstate); | |
34205 | if (PyErr_Occurred()) SWIG_fail; | |
34206 | } | |
34207 | { | |
34208 | #if wxUSE_UNICODE | |
34209 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34210 | #else | |
34211 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34212 | #endif | |
34213 | } | |
34214 | return resultobj; | |
34215 | fail: | |
34216 | return NULL; | |
34217 | } | |
34218 | ||
34219 | ||
c32bde28 | 34220 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34221 | PyObject *resultobj; |
34222 | wxControl *arg1 = (wxControl *) 0 ; | |
34223 | wxString *arg2 = 0 ; | |
ae8162c8 | 34224 | bool temp2 = false ; |
d55e5bfc RD |
34225 | PyObject * obj0 = 0 ; |
34226 | PyObject * obj1 = 0 ; | |
34227 | char *kwnames[] = { | |
34228 | (char *) "self",(char *) "label", NULL | |
34229 | }; | |
34230 | ||
34231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
34232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34234 | { | |
34235 | arg2 = wxString_in_helper(obj1); | |
34236 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34237 | temp2 = true; |
d55e5bfc RD |
34238 | } |
34239 | { | |
34240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34241 | (arg1)->SetLabel((wxString const &)*arg2); | |
34242 | ||
34243 | wxPyEndAllowThreads(__tstate); | |
34244 | if (PyErr_Occurred()) SWIG_fail; | |
34245 | } | |
34246 | Py_INCREF(Py_None); resultobj = Py_None; | |
34247 | { | |
34248 | if (temp2) | |
34249 | delete arg2; | |
34250 | } | |
34251 | return resultobj; | |
34252 | fail: | |
34253 | { | |
34254 | if (temp2) | |
34255 | delete arg2; | |
34256 | } | |
34257 | return NULL; | |
34258 | } | |
34259 | ||
34260 | ||
c32bde28 | 34261 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34262 | PyObject *resultobj; |
34263 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
34264 | wxVisualAttributes result; | |
34265 | PyObject * obj0 = 0 ; | |
34266 | char *kwnames[] = { | |
34267 | (char *) "variant", NULL | |
34268 | }; | |
34269 | ||
34270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
34271 | if (obj0) { | |
c32bde28 | 34272 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
34273 | if (PyErr_Occurred()) SWIG_fail; |
34274 | } | |
34275 | { | |
a001823c | 34276 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34278 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
34279 | ||
34280 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34281 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34282 | } |
34283 | { | |
34284 | wxVisualAttributes * resultptr; | |
34285 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
34286 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
34287 | } | |
34288 | return resultobj; | |
34289 | fail: | |
34290 | return NULL; | |
34291 | } | |
34292 | ||
34293 | ||
c32bde28 | 34294 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34295 | PyObject *obj; |
34296 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34297 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
34298 | Py_INCREF(obj); | |
34299 | return Py_BuildValue((char *)""); | |
34300 | } | |
c32bde28 | 34301 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34302 | PyObject *resultobj; |
34303 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34304 | wxString *arg2 = 0 ; | |
34305 | PyObject *arg3 = (PyObject *) NULL ; | |
34306 | int result; | |
ae8162c8 | 34307 | bool temp2 = false ; |
d55e5bfc RD |
34308 | PyObject * obj0 = 0 ; |
34309 | PyObject * obj1 = 0 ; | |
34310 | PyObject * obj2 = 0 ; | |
34311 | char *kwnames[] = { | |
34312 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
34313 | }; | |
34314 | ||
34315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34318 | { | |
34319 | arg2 = wxString_in_helper(obj1); | |
34320 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34321 | temp2 = true; |
d55e5bfc RD |
34322 | } |
34323 | if (obj2) { | |
34324 | arg3 = obj2; | |
34325 | } | |
34326 | { | |
34327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34328 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
34329 | ||
34330 | wxPyEndAllowThreads(__tstate); | |
34331 | if (PyErr_Occurred()) SWIG_fail; | |
34332 | } | |
c32bde28 | 34333 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34334 | { |
34335 | if (temp2) | |
34336 | delete arg2; | |
34337 | } | |
34338 | return resultobj; | |
34339 | fail: | |
34340 | { | |
34341 | if (temp2) | |
34342 | delete arg2; | |
34343 | } | |
34344 | return NULL; | |
34345 | } | |
34346 | ||
34347 | ||
c32bde28 | 34348 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34349 | PyObject *resultobj; |
34350 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34351 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 34352 | bool temp2 = false ; |
d55e5bfc RD |
34353 | PyObject * obj0 = 0 ; |
34354 | PyObject * obj1 = 0 ; | |
34355 | char *kwnames[] = { | |
34356 | (char *) "self",(char *) "strings", NULL | |
34357 | }; | |
34358 | ||
34359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
34360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34362 | { | |
34363 | if (! PySequence_Check(obj1)) { | |
34364 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
34365 | SWIG_fail; | |
34366 | } | |
34367 | arg2 = new wxArrayString; | |
ae8162c8 | 34368 | temp2 = true; |
d55e5bfc RD |
34369 | int i, len=PySequence_Length(obj1); |
34370 | for (i=0; i<len; i++) { | |
34371 | PyObject* item = PySequence_GetItem(obj1, i); | |
34372 | #if wxUSE_UNICODE | |
34373 | PyObject* str = PyObject_Unicode(item); | |
34374 | #else | |
34375 | PyObject* str = PyObject_Str(item); | |
34376 | #endif | |
34377 | if (PyErr_Occurred()) SWIG_fail; | |
34378 | arg2->Add(Py2wxString(str)); | |
34379 | Py_DECREF(item); | |
34380 | Py_DECREF(str); | |
34381 | } | |
34382 | } | |
34383 | { | |
34384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34385 | (arg1)->Append((wxArrayString const &)*arg2); | |
34386 | ||
34387 | wxPyEndAllowThreads(__tstate); | |
34388 | if (PyErr_Occurred()) SWIG_fail; | |
34389 | } | |
34390 | Py_INCREF(Py_None); resultobj = Py_None; | |
34391 | { | |
34392 | if (temp2) delete arg2; | |
34393 | } | |
34394 | return resultobj; | |
34395 | fail: | |
34396 | { | |
34397 | if (temp2) delete arg2; | |
34398 | } | |
34399 | return NULL; | |
34400 | } | |
34401 | ||
34402 | ||
c32bde28 | 34403 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34404 | PyObject *resultobj; |
34405 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34406 | wxString *arg2 = 0 ; | |
34407 | int arg3 ; | |
34408 | PyObject *arg4 = (PyObject *) NULL ; | |
34409 | int result; | |
ae8162c8 | 34410 | bool temp2 = false ; |
d55e5bfc RD |
34411 | PyObject * obj0 = 0 ; |
34412 | PyObject * obj1 = 0 ; | |
34413 | PyObject * obj2 = 0 ; | |
34414 | PyObject * obj3 = 0 ; | |
34415 | char *kwnames[] = { | |
34416 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
34417 | }; | |
34418 | ||
34419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34422 | { | |
34423 | arg2 = wxString_in_helper(obj1); | |
34424 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34425 | temp2 = true; |
d55e5bfc | 34426 | } |
c32bde28 | 34427 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34428 | if (PyErr_Occurred()) SWIG_fail; |
34429 | if (obj3) { | |
34430 | arg4 = obj3; | |
34431 | } | |
34432 | { | |
34433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34434 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
34435 | ||
34436 | wxPyEndAllowThreads(__tstate); | |
34437 | if (PyErr_Occurred()) SWIG_fail; | |
34438 | } | |
c32bde28 | 34439 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34440 | { |
34441 | if (temp2) | |
34442 | delete arg2; | |
34443 | } | |
34444 | return resultobj; | |
34445 | fail: | |
34446 | { | |
34447 | if (temp2) | |
34448 | delete arg2; | |
34449 | } | |
34450 | return NULL; | |
34451 | } | |
34452 | ||
34453 | ||
c32bde28 | 34454 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34455 | PyObject *resultobj; |
34456 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34457 | PyObject * obj0 = 0 ; | |
34458 | char *kwnames[] = { | |
34459 | (char *) "self", NULL | |
34460 | }; | |
34461 | ||
34462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
34463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34465 | { | |
34466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34467 | (arg1)->Clear(); | |
34468 | ||
34469 | wxPyEndAllowThreads(__tstate); | |
34470 | if (PyErr_Occurred()) SWIG_fail; | |
34471 | } | |
34472 | Py_INCREF(Py_None); resultobj = Py_None; | |
34473 | return resultobj; | |
34474 | fail: | |
34475 | return NULL; | |
34476 | } | |
34477 | ||
34478 | ||
c32bde28 | 34479 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34480 | PyObject *resultobj; |
34481 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34482 | int arg2 ; | |
34483 | PyObject * obj0 = 0 ; | |
34484 | PyObject * obj1 = 0 ; | |
34485 | char *kwnames[] = { | |
34486 | (char *) "self",(char *) "n", NULL | |
34487 | }; | |
34488 | ||
34489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
34490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34492 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34493 | if (PyErr_Occurred()) SWIG_fail; |
34494 | { | |
34495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34496 | (arg1)->Delete(arg2); | |
34497 | ||
34498 | wxPyEndAllowThreads(__tstate); | |
34499 | if (PyErr_Occurred()) SWIG_fail; | |
34500 | } | |
34501 | Py_INCREF(Py_None); resultobj = Py_None; | |
34502 | return resultobj; | |
34503 | fail: | |
34504 | return NULL; | |
34505 | } | |
34506 | ||
34507 | ||
c32bde28 | 34508 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34509 | PyObject *resultobj; |
34510 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34511 | int result; | |
34512 | PyObject * obj0 = 0 ; | |
34513 | char *kwnames[] = { | |
34514 | (char *) "self", NULL | |
34515 | }; | |
34516 | ||
34517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34520 | { | |
34521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34522 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34523 | ||
34524 | wxPyEndAllowThreads(__tstate); | |
34525 | if (PyErr_Occurred()) SWIG_fail; | |
34526 | } | |
c32bde28 | 34527 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34528 | return resultobj; |
34529 | fail: | |
34530 | return NULL; | |
34531 | } | |
34532 | ||
34533 | ||
c32bde28 | 34534 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34535 | PyObject *resultobj; |
34536 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34537 | bool result; | |
34538 | PyObject * obj0 = 0 ; | |
34539 | char *kwnames[] = { | |
34540 | (char *) "self", NULL | |
34541 | }; | |
34542 | ||
34543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34546 | { | |
34547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34548 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34549 | ||
34550 | wxPyEndAllowThreads(__tstate); | |
34551 | if (PyErr_Occurred()) SWIG_fail; | |
34552 | } | |
34553 | { | |
34554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34555 | } | |
34556 | return resultobj; | |
34557 | fail: | |
34558 | return NULL; | |
34559 | } | |
34560 | ||
34561 | ||
c32bde28 | 34562 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34563 | PyObject *resultobj; |
34564 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34565 | int arg2 ; | |
34566 | wxString result; | |
34567 | PyObject * obj0 = 0 ; | |
34568 | PyObject * obj1 = 0 ; | |
34569 | char *kwnames[] = { | |
34570 | (char *) "self",(char *) "n", NULL | |
34571 | }; | |
34572 | ||
34573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34576 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34577 | if (PyErr_Occurred()) SWIG_fail; |
34578 | { | |
34579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34580 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34581 | ||
34582 | wxPyEndAllowThreads(__tstate); | |
34583 | if (PyErr_Occurred()) SWIG_fail; | |
34584 | } | |
34585 | { | |
34586 | #if wxUSE_UNICODE | |
34587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34588 | #else | |
34589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34590 | #endif | |
34591 | } | |
34592 | return resultobj; | |
34593 | fail: | |
34594 | return NULL; | |
34595 | } | |
34596 | ||
34597 | ||
c32bde28 | 34598 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34599 | PyObject *resultobj; |
34600 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34601 | wxArrayString result; | |
34602 | PyObject * obj0 = 0 ; | |
34603 | char *kwnames[] = { | |
34604 | (char *) "self", NULL | |
34605 | }; | |
34606 | ||
34607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34610 | { | |
34611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34612 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34613 | ||
34614 | wxPyEndAllowThreads(__tstate); | |
34615 | if (PyErr_Occurred()) SWIG_fail; | |
34616 | } | |
34617 | { | |
34618 | resultobj = wxArrayString2PyList_helper(result); | |
34619 | } | |
34620 | return resultobj; | |
34621 | fail: | |
34622 | return NULL; | |
34623 | } | |
34624 | ||
34625 | ||
c32bde28 | 34626 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34627 | PyObject *resultobj; |
34628 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34629 | int arg2 ; | |
34630 | wxString *arg3 = 0 ; | |
ae8162c8 | 34631 | bool temp3 = false ; |
d55e5bfc RD |
34632 | PyObject * obj0 = 0 ; |
34633 | PyObject * obj1 = 0 ; | |
34634 | PyObject * obj2 = 0 ; | |
34635 | char *kwnames[] = { | |
34636 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34637 | }; | |
34638 | ||
34639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34642 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34643 | if (PyErr_Occurred()) SWIG_fail; |
34644 | { | |
34645 | arg3 = wxString_in_helper(obj2); | |
34646 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34647 | temp3 = true; |
d55e5bfc RD |
34648 | } |
34649 | { | |
34650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34651 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34652 | ||
34653 | wxPyEndAllowThreads(__tstate); | |
34654 | if (PyErr_Occurred()) SWIG_fail; | |
34655 | } | |
34656 | Py_INCREF(Py_None); resultobj = Py_None; | |
34657 | { | |
34658 | if (temp3) | |
34659 | delete arg3; | |
34660 | } | |
34661 | return resultobj; | |
34662 | fail: | |
34663 | { | |
34664 | if (temp3) | |
34665 | delete arg3; | |
34666 | } | |
34667 | return NULL; | |
34668 | } | |
34669 | ||
34670 | ||
c32bde28 | 34671 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34672 | PyObject *resultobj; |
34673 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34674 | wxString *arg2 = 0 ; | |
34675 | int result; | |
ae8162c8 | 34676 | bool temp2 = false ; |
d55e5bfc RD |
34677 | PyObject * obj0 = 0 ; |
34678 | PyObject * obj1 = 0 ; | |
34679 | char *kwnames[] = { | |
34680 | (char *) "self",(char *) "s", NULL | |
34681 | }; | |
34682 | ||
34683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34686 | { | |
34687 | arg2 = wxString_in_helper(obj1); | |
34688 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34689 | temp2 = true; |
d55e5bfc RD |
34690 | } |
34691 | { | |
34692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34693 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34694 | ||
34695 | wxPyEndAllowThreads(__tstate); | |
34696 | if (PyErr_Occurred()) SWIG_fail; | |
34697 | } | |
c32bde28 | 34698 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34699 | { |
34700 | if (temp2) | |
34701 | delete arg2; | |
34702 | } | |
34703 | return resultobj; | |
34704 | fail: | |
34705 | { | |
34706 | if (temp2) | |
34707 | delete arg2; | |
34708 | } | |
34709 | return NULL; | |
34710 | } | |
34711 | ||
34712 | ||
c32bde28 | 34713 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34714 | PyObject *resultobj; |
34715 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34716 | int arg2 ; | |
34717 | PyObject * obj0 = 0 ; | |
34718 | PyObject * obj1 = 0 ; | |
34719 | char *kwnames[] = { | |
34720 | (char *) "self",(char *) "n", NULL | |
34721 | }; | |
34722 | ||
34723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34726 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34727 | if (PyErr_Occurred()) SWIG_fail; |
34728 | { | |
34729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34730 | (arg1)->Select(arg2); | |
34731 | ||
34732 | wxPyEndAllowThreads(__tstate); | |
34733 | if (PyErr_Occurred()) SWIG_fail; | |
34734 | } | |
34735 | Py_INCREF(Py_None); resultobj = Py_None; | |
34736 | return resultobj; | |
34737 | fail: | |
34738 | return NULL; | |
34739 | } | |
34740 | ||
34741 | ||
c32bde28 | 34742 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34743 | PyObject *resultobj; |
34744 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34745 | int result; | |
34746 | PyObject * obj0 = 0 ; | |
34747 | char *kwnames[] = { | |
34748 | (char *) "self", NULL | |
34749 | }; | |
34750 | ||
34751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34754 | { | |
34755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34756 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34757 | ||
34758 | wxPyEndAllowThreads(__tstate); | |
34759 | if (PyErr_Occurred()) SWIG_fail; | |
34760 | } | |
c32bde28 | 34761 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34762 | return resultobj; |
34763 | fail: | |
34764 | return NULL; | |
34765 | } | |
34766 | ||
34767 | ||
c32bde28 | 34768 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34769 | PyObject *resultobj; |
34770 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34771 | wxString result; | |
34772 | PyObject * obj0 = 0 ; | |
34773 | char *kwnames[] = { | |
34774 | (char *) "self", NULL | |
34775 | }; | |
34776 | ||
34777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34780 | { | |
34781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34782 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34783 | ||
34784 | wxPyEndAllowThreads(__tstate); | |
34785 | if (PyErr_Occurred()) SWIG_fail; | |
34786 | } | |
34787 | { | |
34788 | #if wxUSE_UNICODE | |
34789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34790 | #else | |
34791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34792 | #endif | |
34793 | } | |
34794 | return resultobj; | |
34795 | fail: | |
34796 | return NULL; | |
34797 | } | |
34798 | ||
34799 | ||
c32bde28 | 34800 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34801 | PyObject *resultobj; |
34802 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34803 | int arg2 ; | |
34804 | PyObject *result; | |
34805 | PyObject * obj0 = 0 ; | |
34806 | PyObject * obj1 = 0 ; | |
34807 | char *kwnames[] = { | |
34808 | (char *) "self",(char *) "n", NULL | |
34809 | }; | |
34810 | ||
34811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34814 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34815 | if (PyErr_Occurred()) SWIG_fail; |
34816 | { | |
34817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34818 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34819 | ||
34820 | wxPyEndAllowThreads(__tstate); | |
34821 | if (PyErr_Occurred()) SWIG_fail; | |
34822 | } | |
34823 | resultobj = result; | |
34824 | return resultobj; | |
34825 | fail: | |
34826 | return NULL; | |
34827 | } | |
34828 | ||
34829 | ||
c32bde28 | 34830 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34831 | PyObject *resultobj; |
34832 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34833 | int arg2 ; | |
34834 | PyObject *arg3 = (PyObject *) 0 ; | |
34835 | PyObject * obj0 = 0 ; | |
34836 | PyObject * obj1 = 0 ; | |
34837 | PyObject * obj2 = 0 ; | |
34838 | char *kwnames[] = { | |
34839 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34840 | }; | |
34841 | ||
34842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34845 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34846 | if (PyErr_Occurred()) SWIG_fail; |
34847 | arg3 = obj2; | |
34848 | { | |
34849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34850 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34851 | ||
34852 | wxPyEndAllowThreads(__tstate); | |
34853 | if (PyErr_Occurred()) SWIG_fail; | |
34854 | } | |
34855 | Py_INCREF(Py_None); resultobj = Py_None; | |
34856 | return resultobj; | |
34857 | fail: | |
34858 | return NULL; | |
34859 | } | |
34860 | ||
34861 | ||
c32bde28 | 34862 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34863 | PyObject *obj; |
34864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34865 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34866 | Py_INCREF(obj); | |
34867 | return Py_BuildValue((char *)""); | |
34868 | } | |
c32bde28 | 34869 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34870 | PyObject *obj; |
34871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34872 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34873 | Py_INCREF(obj); | |
34874 | return Py_BuildValue((char *)""); | |
34875 | } | |
c32bde28 | 34876 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34877 | PyObject *resultobj; |
34878 | wxSizerItem *result; | |
34879 | char *kwnames[] = { | |
34880 | NULL | |
34881 | }; | |
34882 | ||
34883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34884 | { | |
34885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34886 | result = (wxSizerItem *)new wxSizerItem(); | |
34887 | ||
34888 | wxPyEndAllowThreads(__tstate); | |
34889 | if (PyErr_Occurred()) SWIG_fail; | |
34890 | } | |
34891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34892 | return resultobj; | |
34893 | fail: | |
34894 | return NULL; | |
34895 | } | |
34896 | ||
34897 | ||
c32bde28 | 34898 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34899 | PyObject *resultobj; |
248ed943 | 34900 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
34901 | int arg2 ; |
34902 | int arg3 ; | |
34903 | int arg4 ; | |
248ed943 | 34904 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34905 | wxSizerItem *result; |
34906 | PyObject * obj0 = 0 ; | |
34907 | PyObject * obj1 = 0 ; | |
34908 | PyObject * obj2 = 0 ; | |
34909 | PyObject * obj3 = 0 ; | |
34910 | PyObject * obj4 = 0 ; | |
d55e5bfc | 34911 | char *kwnames[] = { |
248ed943 | 34912 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34913 | }; |
34914 | ||
248ed943 RD |
34915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34918 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34919 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34920 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34921 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34922 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34923 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
34924 | if (obj4) { |
34925 | arg5 = obj4; | |
34926 | } | |
d55e5bfc RD |
34927 | { |
34928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34929 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34930 | |
34931 | wxPyEndAllowThreads(__tstate); | |
34932 | if (PyErr_Occurred()) SWIG_fail; | |
34933 | } | |
34934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34935 | return resultobj; | |
34936 | fail: | |
34937 | return NULL; | |
34938 | } | |
34939 | ||
34940 | ||
c32bde28 | 34941 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34942 | PyObject *resultobj; |
248ed943 | 34943 | int arg1 ; |
d55e5bfc RD |
34944 | int arg2 ; |
34945 | int arg3 ; | |
34946 | int arg4 ; | |
248ed943 RD |
34947 | int arg5 ; |
34948 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
34949 | wxSizerItem *result; |
34950 | PyObject * obj0 = 0 ; | |
34951 | PyObject * obj1 = 0 ; | |
34952 | PyObject * obj2 = 0 ; | |
34953 | PyObject * obj3 = 0 ; | |
34954 | PyObject * obj4 = 0 ; | |
248ed943 | 34955 | PyObject * obj5 = 0 ; |
d55e5bfc | 34956 | char *kwnames[] = { |
248ed943 | 34957 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34958 | }; |
34959 | ||
248ed943 | 34960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c32bde28 | 34961 | arg1 = (int)SWIG_As_int(obj0); |
248ed943 | 34962 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34963 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34964 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34965 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34966 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34967 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34968 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34969 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
34970 | if (PyErr_Occurred()) SWIG_fail; |
34971 | if (obj5) { | |
34972 | arg6 = obj5; | |
34973 | } | |
d55e5bfc RD |
34974 | { |
34975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34976 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
34977 | |
34978 | wxPyEndAllowThreads(__tstate); | |
34979 | if (PyErr_Occurred()) SWIG_fail; | |
34980 | } | |
34981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34982 | return resultobj; | |
34983 | fail: | |
34984 | return NULL; | |
34985 | } | |
34986 | ||
34987 | ||
c32bde28 | 34988 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34989 | PyObject *resultobj; |
34990 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34991 | int arg2 ; | |
34992 | int arg3 ; | |
34993 | int arg4 ; | |
248ed943 | 34994 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34995 | wxSizerItem *result; |
34996 | PyObject * obj0 = 0 ; | |
34997 | PyObject * obj1 = 0 ; | |
34998 | PyObject * obj2 = 0 ; | |
34999 | PyObject * obj3 = 0 ; | |
35000 | PyObject * obj4 = 0 ; | |
35001 | char *kwnames[] = { | |
35002 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35003 | }; | |
35004 | ||
248ed943 | 35005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
35006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35008 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35009 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35010 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35011 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35012 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35013 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
35014 | if (obj4) { |
35015 | arg5 = obj4; | |
35016 | } | |
d55e5bfc RD |
35017 | { |
35018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35019 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35020 | |
35021 | wxPyEndAllowThreads(__tstate); | |
35022 | if (PyErr_Occurred()) SWIG_fail; | |
35023 | } | |
35024 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35025 | return resultobj; | |
35026 | fail: | |
35027 | return NULL; | |
35028 | } | |
35029 | ||
35030 | ||
c32bde28 | 35031 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35032 | PyObject *resultobj; |
35033 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35034 | PyObject * obj0 = 0 ; | |
35035 | char *kwnames[] = { | |
35036 | (char *) "self", NULL | |
35037 | }; | |
35038 | ||
35039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
35040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35042 | { | |
35043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35044 | (arg1)->DeleteWindows(); | |
35045 | ||
35046 | wxPyEndAllowThreads(__tstate); | |
35047 | if (PyErr_Occurred()) SWIG_fail; | |
35048 | } | |
35049 | Py_INCREF(Py_None); resultobj = Py_None; | |
35050 | return resultobj; | |
35051 | fail: | |
35052 | return NULL; | |
35053 | } | |
35054 | ||
35055 | ||
c32bde28 | 35056 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35057 | PyObject *resultobj; |
35058 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35059 | PyObject * obj0 = 0 ; | |
35060 | char *kwnames[] = { | |
35061 | (char *) "self", NULL | |
35062 | }; | |
35063 | ||
35064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
35065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35067 | { | |
35068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35069 | (arg1)->DetachSizer(); | |
35070 | ||
35071 | wxPyEndAllowThreads(__tstate); | |
35072 | if (PyErr_Occurred()) SWIG_fail; | |
35073 | } | |
35074 | Py_INCREF(Py_None); resultobj = Py_None; | |
35075 | return resultobj; | |
35076 | fail: | |
35077 | return NULL; | |
35078 | } | |
35079 | ||
35080 | ||
c32bde28 | 35081 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35082 | PyObject *resultobj; |
35083 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35084 | wxSize result; | |
35085 | PyObject * obj0 = 0 ; | |
35086 | char *kwnames[] = { | |
35087 | (char *) "self", NULL | |
35088 | }; | |
35089 | ||
35090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
35091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35093 | { | |
35094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35095 | result = (arg1)->GetSize(); | |
35096 | ||
35097 | wxPyEndAllowThreads(__tstate); | |
35098 | if (PyErr_Occurred()) SWIG_fail; | |
35099 | } | |
35100 | { | |
35101 | wxSize * resultptr; | |
35102 | resultptr = new wxSize((wxSize &) result); | |
35103 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35104 | } | |
35105 | return resultobj; | |
35106 | fail: | |
35107 | return NULL; | |
35108 | } | |
35109 | ||
35110 | ||
c32bde28 | 35111 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35112 | PyObject *resultobj; |
35113 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35114 | wxSize result; | |
35115 | PyObject * obj0 = 0 ; | |
35116 | char *kwnames[] = { | |
35117 | (char *) "self", NULL | |
35118 | }; | |
35119 | ||
35120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
35121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35123 | { | |
35124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35125 | result = (arg1)->CalcMin(); | |
35126 | ||
35127 | wxPyEndAllowThreads(__tstate); | |
35128 | if (PyErr_Occurred()) SWIG_fail; | |
35129 | } | |
35130 | { | |
35131 | wxSize * resultptr; | |
35132 | resultptr = new wxSize((wxSize &) result); | |
35133 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35134 | } | |
35135 | return resultobj; | |
35136 | fail: | |
35137 | return NULL; | |
35138 | } | |
35139 | ||
35140 | ||
c32bde28 | 35141 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35142 | PyObject *resultobj; |
35143 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35144 | wxPoint arg2 ; | |
35145 | wxSize arg3 ; | |
35146 | wxPoint *argp2 ; | |
35147 | wxSize *argp3 ; | |
35148 | PyObject * obj0 = 0 ; | |
35149 | PyObject * obj1 = 0 ; | |
35150 | PyObject * obj2 = 0 ; | |
35151 | char *kwnames[] = { | |
35152 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
35153 | }; | |
35154 | ||
35155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35158 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
35159 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35160 | arg2 = *argp2; | |
35161 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
35162 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35163 | arg3 = *argp3; | |
35164 | { | |
35165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35166 | (arg1)->SetDimension(arg2,arg3); | |
35167 | ||
35168 | wxPyEndAllowThreads(__tstate); | |
35169 | if (PyErr_Occurred()) SWIG_fail; | |
35170 | } | |
35171 | Py_INCREF(Py_None); resultobj = Py_None; | |
35172 | return resultobj; | |
35173 | fail: | |
35174 | return NULL; | |
35175 | } | |
35176 | ||
35177 | ||
c32bde28 | 35178 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35179 | PyObject *resultobj; |
35180 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35181 | wxSize result; | |
35182 | PyObject * obj0 = 0 ; | |
35183 | char *kwnames[] = { | |
35184 | (char *) "self", NULL | |
35185 | }; | |
35186 | ||
35187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
35188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35190 | { | |
35191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35192 | result = (arg1)->GetMinSize(); | |
35193 | ||
35194 | wxPyEndAllowThreads(__tstate); | |
35195 | if (PyErr_Occurred()) SWIG_fail; | |
35196 | } | |
35197 | { | |
35198 | wxSize * resultptr; | |
35199 | resultptr = new wxSize((wxSize &) result); | |
35200 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35201 | } | |
35202 | return resultobj; | |
35203 | fail: | |
35204 | return NULL; | |
35205 | } | |
35206 | ||
35207 | ||
c32bde28 | 35208 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
35209 | PyObject *resultobj; |
35210 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35211 | wxSize result; | |
35212 | PyObject * obj0 = 0 ; | |
35213 | char *kwnames[] = { | |
35214 | (char *) "self", NULL | |
35215 | }; | |
35216 | ||
35217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
35218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35220 | { | |
35221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35222 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
35223 | ||
35224 | wxPyEndAllowThreads(__tstate); | |
35225 | if (PyErr_Occurred()) SWIG_fail; | |
35226 | } | |
35227 | { | |
35228 | wxSize * resultptr; | |
35229 | resultptr = new wxSize((wxSize &) result); | |
35230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35231 | } | |
35232 | return resultobj; | |
35233 | fail: | |
35234 | return NULL; | |
35235 | } | |
35236 | ||
35237 | ||
c32bde28 | 35238 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35239 | PyObject *resultobj; |
35240 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35241 | int arg2 ; | |
35242 | int arg3 ; | |
35243 | PyObject * obj0 = 0 ; | |
35244 | PyObject * obj1 = 0 ; | |
35245 | PyObject * obj2 = 0 ; | |
35246 | char *kwnames[] = { | |
35247 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35248 | }; | |
35249 | ||
35250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35253 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35254 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35255 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35256 | if (PyErr_Occurred()) SWIG_fail; |
35257 | { | |
35258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35259 | (arg1)->SetInitSize(arg2,arg3); | |
35260 | ||
35261 | wxPyEndAllowThreads(__tstate); | |
35262 | if (PyErr_Occurred()) SWIG_fail; | |
35263 | } | |
35264 | Py_INCREF(Py_None); resultobj = Py_None; | |
35265 | return resultobj; | |
35266 | fail: | |
35267 | return NULL; | |
35268 | } | |
35269 | ||
35270 | ||
c32bde28 | 35271 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35272 | PyObject *resultobj; |
35273 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35274 | int arg2 ; | |
35275 | int arg3 ; | |
35276 | PyObject * obj0 = 0 ; | |
35277 | PyObject * obj1 = 0 ; | |
35278 | PyObject * obj2 = 0 ; | |
35279 | char *kwnames[] = { | |
35280 | (char *) "self",(char *) "width",(char *) "height", NULL | |
35281 | }; | |
35282 | ||
35283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35287 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35288 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35289 | if (PyErr_Occurred()) SWIG_fail; |
35290 | { | |
35291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35292 | (arg1)->SetRatio(arg2,arg3); | |
35293 | ||
35294 | wxPyEndAllowThreads(__tstate); | |
35295 | if (PyErr_Occurred()) SWIG_fail; | |
35296 | } | |
35297 | Py_INCREF(Py_None); resultobj = Py_None; | |
35298 | return resultobj; | |
35299 | fail: | |
35300 | return NULL; | |
35301 | } | |
35302 | ||
35303 | ||
c32bde28 | 35304 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35305 | PyObject *resultobj; |
35306 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35307 | wxSize arg2 ; | |
35308 | wxSize *argp2 ; | |
35309 | PyObject * obj0 = 0 ; | |
35310 | PyObject * obj1 = 0 ; | |
35311 | char *kwnames[] = { | |
35312 | (char *) "self",(char *) "size", NULL | |
35313 | }; | |
35314 | ||
35315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
35316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35318 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
35319 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35320 | arg2 = *argp2; | |
35321 | { | |
35322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35323 | (arg1)->SetRatio(arg2); | |
35324 | ||
35325 | wxPyEndAllowThreads(__tstate); | |
35326 | if (PyErr_Occurred()) SWIG_fail; | |
35327 | } | |
35328 | Py_INCREF(Py_None); resultobj = Py_None; | |
35329 | return resultobj; | |
35330 | fail: | |
35331 | return NULL; | |
35332 | } | |
35333 | ||
35334 | ||
c32bde28 | 35335 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35336 | PyObject *resultobj; |
35337 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35338 | float arg2 ; | |
35339 | PyObject * obj0 = 0 ; | |
35340 | PyObject * obj1 = 0 ; | |
35341 | char *kwnames[] = { | |
35342 | (char *) "self",(char *) "ratio", NULL | |
35343 | }; | |
35344 | ||
35345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
35346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35348 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
35349 | if (PyErr_Occurred()) SWIG_fail; |
35350 | { | |
35351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35352 | (arg1)->SetRatio(arg2); | |
35353 | ||
35354 | wxPyEndAllowThreads(__tstate); | |
35355 | if (PyErr_Occurred()) SWIG_fail; | |
35356 | } | |
35357 | Py_INCREF(Py_None); resultobj = Py_None; | |
35358 | return resultobj; | |
35359 | fail: | |
35360 | return NULL; | |
35361 | } | |
35362 | ||
35363 | ||
c32bde28 | 35364 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35365 | PyObject *resultobj; |
35366 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35367 | float result; | |
35368 | PyObject * obj0 = 0 ; | |
35369 | char *kwnames[] = { | |
35370 | (char *) "self", NULL | |
35371 | }; | |
35372 | ||
35373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
35374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35376 | { | |
35377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35378 | result = (float)(arg1)->GetRatio(); | |
35379 | ||
35380 | wxPyEndAllowThreads(__tstate); | |
35381 | if (PyErr_Occurred()) SWIG_fail; | |
35382 | } | |
c32bde28 | 35383 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
35384 | return resultobj; |
35385 | fail: | |
35386 | return NULL; | |
35387 | } | |
35388 | ||
35389 | ||
c32bde28 | 35390 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35391 | PyObject *resultobj; |
35392 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35393 | bool result; | |
35394 | PyObject * obj0 = 0 ; | |
35395 | char *kwnames[] = { | |
35396 | (char *) "self", NULL | |
35397 | }; | |
35398 | ||
35399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
35400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35402 | { | |
35403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35404 | result = (bool)(arg1)->IsWindow(); | |
35405 | ||
35406 | wxPyEndAllowThreads(__tstate); | |
35407 | if (PyErr_Occurred()) SWIG_fail; | |
35408 | } | |
35409 | { | |
35410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35411 | } | |
35412 | return resultobj; | |
35413 | fail: | |
35414 | return NULL; | |
35415 | } | |
35416 | ||
35417 | ||
c32bde28 | 35418 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35419 | PyObject *resultobj; |
35420 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35421 | bool result; | |
35422 | PyObject * obj0 = 0 ; | |
35423 | char *kwnames[] = { | |
35424 | (char *) "self", NULL | |
35425 | }; | |
35426 | ||
35427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
35428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35430 | { | |
35431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35432 | result = (bool)(arg1)->IsSizer(); | |
35433 | ||
35434 | wxPyEndAllowThreads(__tstate); | |
35435 | if (PyErr_Occurred()) SWIG_fail; | |
35436 | } | |
35437 | { | |
35438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35439 | } | |
35440 | return resultobj; | |
35441 | fail: | |
35442 | return NULL; | |
35443 | } | |
35444 | ||
35445 | ||
c32bde28 | 35446 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35447 | PyObject *resultobj; |
35448 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35449 | bool result; | |
35450 | PyObject * obj0 = 0 ; | |
35451 | char *kwnames[] = { | |
35452 | (char *) "self", NULL | |
35453 | }; | |
35454 | ||
35455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
35456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35458 | { | |
35459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35460 | result = (bool)(arg1)->IsSpacer(); | |
35461 | ||
35462 | wxPyEndAllowThreads(__tstate); | |
35463 | if (PyErr_Occurred()) SWIG_fail; | |
35464 | } | |
35465 | { | |
35466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35467 | } | |
35468 | return resultobj; | |
35469 | fail: | |
35470 | return NULL; | |
35471 | } | |
35472 | ||
35473 | ||
c32bde28 | 35474 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35475 | PyObject *resultobj; |
35476 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35477 | int arg2 ; | |
35478 | PyObject * obj0 = 0 ; | |
35479 | PyObject * obj1 = 0 ; | |
35480 | char *kwnames[] = { | |
35481 | (char *) "self",(char *) "proportion", NULL | |
35482 | }; | |
35483 | ||
35484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
35485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35487 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35488 | if (PyErr_Occurred()) SWIG_fail; |
35489 | { | |
35490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35491 | (arg1)->SetProportion(arg2); | |
35492 | ||
35493 | wxPyEndAllowThreads(__tstate); | |
35494 | if (PyErr_Occurred()) SWIG_fail; | |
35495 | } | |
35496 | Py_INCREF(Py_None); resultobj = Py_None; | |
35497 | return resultobj; | |
35498 | fail: | |
35499 | return NULL; | |
35500 | } | |
35501 | ||
35502 | ||
c32bde28 | 35503 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35504 | PyObject *resultobj; |
35505 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35506 | int result; | |
35507 | PyObject * obj0 = 0 ; | |
35508 | char *kwnames[] = { | |
35509 | (char *) "self", NULL | |
35510 | }; | |
35511 | ||
35512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35515 | { | |
35516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35517 | result = (int)(arg1)->GetProportion(); | |
35518 | ||
35519 | wxPyEndAllowThreads(__tstate); | |
35520 | if (PyErr_Occurred()) SWIG_fail; | |
35521 | } | |
c32bde28 | 35522 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35523 | return resultobj; |
35524 | fail: | |
35525 | return NULL; | |
35526 | } | |
35527 | ||
35528 | ||
c32bde28 | 35529 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35530 | PyObject *resultobj; |
35531 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35532 | int arg2 ; | |
35533 | PyObject * obj0 = 0 ; | |
35534 | PyObject * obj1 = 0 ; | |
35535 | char *kwnames[] = { | |
35536 | (char *) "self",(char *) "flag", NULL | |
35537 | }; | |
35538 | ||
35539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35542 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35543 | if (PyErr_Occurred()) SWIG_fail; |
35544 | { | |
35545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35546 | (arg1)->SetFlag(arg2); | |
35547 | ||
35548 | wxPyEndAllowThreads(__tstate); | |
35549 | if (PyErr_Occurred()) SWIG_fail; | |
35550 | } | |
35551 | Py_INCREF(Py_None); resultobj = Py_None; | |
35552 | return resultobj; | |
35553 | fail: | |
35554 | return NULL; | |
35555 | } | |
35556 | ||
35557 | ||
c32bde28 | 35558 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35559 | PyObject *resultobj; |
35560 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35561 | int result; | |
35562 | PyObject * obj0 = 0 ; | |
35563 | char *kwnames[] = { | |
35564 | (char *) "self", NULL | |
35565 | }; | |
35566 | ||
35567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35570 | { | |
35571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35572 | result = (int)(arg1)->GetFlag(); | |
35573 | ||
35574 | wxPyEndAllowThreads(__tstate); | |
35575 | if (PyErr_Occurred()) SWIG_fail; | |
35576 | } | |
c32bde28 | 35577 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35578 | return resultobj; |
35579 | fail: | |
35580 | return NULL; | |
35581 | } | |
35582 | ||
35583 | ||
c32bde28 | 35584 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35585 | PyObject *resultobj; |
35586 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35587 | int arg2 ; | |
35588 | PyObject * obj0 = 0 ; | |
35589 | PyObject * obj1 = 0 ; | |
35590 | char *kwnames[] = { | |
35591 | (char *) "self",(char *) "border", NULL | |
35592 | }; | |
35593 | ||
35594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35597 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35598 | if (PyErr_Occurred()) SWIG_fail; |
35599 | { | |
35600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35601 | (arg1)->SetBorder(arg2); | |
35602 | ||
35603 | wxPyEndAllowThreads(__tstate); | |
35604 | if (PyErr_Occurred()) SWIG_fail; | |
35605 | } | |
35606 | Py_INCREF(Py_None); resultobj = Py_None; | |
35607 | return resultobj; | |
35608 | fail: | |
35609 | return NULL; | |
35610 | } | |
35611 | ||
35612 | ||
c32bde28 | 35613 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35614 | PyObject *resultobj; |
35615 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35616 | int result; | |
35617 | PyObject * obj0 = 0 ; | |
35618 | char *kwnames[] = { | |
35619 | (char *) "self", NULL | |
35620 | }; | |
35621 | ||
35622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35625 | { | |
35626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35627 | result = (int)(arg1)->GetBorder(); | |
35628 | ||
35629 | wxPyEndAllowThreads(__tstate); | |
35630 | if (PyErr_Occurred()) SWIG_fail; | |
35631 | } | |
c32bde28 | 35632 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35633 | return resultobj; |
35634 | fail: | |
35635 | return NULL; | |
35636 | } | |
35637 | ||
35638 | ||
c32bde28 | 35639 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35640 | PyObject *resultobj; |
35641 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35642 | wxWindow *result; | |
35643 | PyObject * obj0 = 0 ; | |
35644 | char *kwnames[] = { | |
35645 | (char *) "self", NULL | |
35646 | }; | |
35647 | ||
35648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35651 | { | |
35652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35653 | result = (wxWindow *)(arg1)->GetWindow(); | |
35654 | ||
35655 | wxPyEndAllowThreads(__tstate); | |
35656 | if (PyErr_Occurred()) SWIG_fail; | |
35657 | } | |
35658 | { | |
412d302d | 35659 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35660 | } |
35661 | return resultobj; | |
35662 | fail: | |
35663 | return NULL; | |
35664 | } | |
35665 | ||
35666 | ||
c32bde28 | 35667 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35668 | PyObject *resultobj; |
35669 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35670 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35671 | PyObject * obj0 = 0 ; | |
35672 | PyObject * obj1 = 0 ; | |
35673 | char *kwnames[] = { | |
35674 | (char *) "self",(char *) "window", NULL | |
35675 | }; | |
35676 | ||
35677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35682 | { | |
35683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35684 | (arg1)->SetWindow(arg2); | |
35685 | ||
35686 | wxPyEndAllowThreads(__tstate); | |
35687 | if (PyErr_Occurred()) SWIG_fail; | |
35688 | } | |
35689 | Py_INCREF(Py_None); resultobj = Py_None; | |
35690 | return resultobj; | |
35691 | fail: | |
35692 | return NULL; | |
35693 | } | |
35694 | ||
35695 | ||
c32bde28 | 35696 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35697 | PyObject *resultobj; |
35698 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35699 | wxSizer *result; | |
35700 | PyObject * obj0 = 0 ; | |
35701 | char *kwnames[] = { | |
35702 | (char *) "self", NULL | |
35703 | }; | |
35704 | ||
35705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35708 | { | |
35709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35710 | result = (wxSizer *)(arg1)->GetSizer(); | |
35711 | ||
35712 | wxPyEndAllowThreads(__tstate); | |
35713 | if (PyErr_Occurred()) SWIG_fail; | |
35714 | } | |
35715 | { | |
412d302d | 35716 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35717 | } |
35718 | return resultobj; | |
35719 | fail: | |
35720 | return NULL; | |
35721 | } | |
35722 | ||
35723 | ||
c32bde28 | 35724 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35725 | PyObject *resultobj; |
35726 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35727 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35728 | PyObject * obj0 = 0 ; | |
35729 | PyObject * obj1 = 0 ; | |
35730 | char *kwnames[] = { | |
35731 | (char *) "self",(char *) "sizer", NULL | |
35732 | }; | |
35733 | ||
35734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35739 | { | |
35740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35741 | (arg1)->SetSizer(arg2); | |
35742 | ||
35743 | wxPyEndAllowThreads(__tstate); | |
35744 | if (PyErr_Occurred()) SWIG_fail; | |
35745 | } | |
35746 | Py_INCREF(Py_None); resultobj = Py_None; | |
35747 | return resultobj; | |
35748 | fail: | |
35749 | return NULL; | |
35750 | } | |
35751 | ||
35752 | ||
c32bde28 | 35753 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35754 | PyObject *resultobj; |
35755 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35756 | wxSize *result; | |
35757 | PyObject * obj0 = 0 ; | |
35758 | char *kwnames[] = { | |
35759 | (char *) "self", NULL | |
35760 | }; | |
35761 | ||
35762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35765 | { | |
35766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35767 | { | |
35768 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35769 | result = (wxSize *) &_result_ref; | |
35770 | } | |
35771 | ||
35772 | wxPyEndAllowThreads(__tstate); | |
35773 | if (PyErr_Occurred()) SWIG_fail; | |
35774 | } | |
35775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35776 | return resultobj; | |
35777 | fail: | |
35778 | return NULL; | |
35779 | } | |
35780 | ||
35781 | ||
c32bde28 | 35782 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35783 | PyObject *resultobj; |
35784 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35785 | wxSize *arg2 = 0 ; | |
35786 | wxSize temp2 ; | |
35787 | PyObject * obj0 = 0 ; | |
35788 | PyObject * obj1 = 0 ; | |
35789 | char *kwnames[] = { | |
35790 | (char *) "self",(char *) "size", NULL | |
35791 | }; | |
35792 | ||
35793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35796 | { | |
35797 | arg2 = &temp2; | |
35798 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35799 | } | |
35800 | { | |
35801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35802 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35803 | ||
35804 | wxPyEndAllowThreads(__tstate); | |
35805 | if (PyErr_Occurred()) SWIG_fail; | |
35806 | } | |
35807 | Py_INCREF(Py_None); resultobj = Py_None; | |
35808 | return resultobj; | |
35809 | fail: | |
35810 | return NULL; | |
35811 | } | |
35812 | ||
35813 | ||
c32bde28 | 35814 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35815 | PyObject *resultobj; |
35816 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35817 | bool arg2 ; | |
35818 | PyObject * obj0 = 0 ; | |
35819 | PyObject * obj1 = 0 ; | |
35820 | char *kwnames[] = { | |
35821 | (char *) "self",(char *) "show", NULL | |
35822 | }; | |
35823 | ||
35824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35827 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
35828 | if (PyErr_Occurred()) SWIG_fail; |
35829 | { | |
35830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35831 | (arg1)->Show(arg2); | |
35832 | ||
35833 | wxPyEndAllowThreads(__tstate); | |
35834 | if (PyErr_Occurred()) SWIG_fail; | |
35835 | } | |
35836 | Py_INCREF(Py_None); resultobj = Py_None; | |
35837 | return resultobj; | |
35838 | fail: | |
35839 | return NULL; | |
35840 | } | |
35841 | ||
35842 | ||
c32bde28 | 35843 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35844 | PyObject *resultobj; |
35845 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35846 | bool result; | |
35847 | PyObject * obj0 = 0 ; | |
35848 | char *kwnames[] = { | |
35849 | (char *) "self", NULL | |
35850 | }; | |
35851 | ||
35852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
35853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35855 | { | |
35856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35857 | result = (bool)(arg1)->IsShown(); | |
35858 | ||
35859 | wxPyEndAllowThreads(__tstate); | |
35860 | if (PyErr_Occurred()) SWIG_fail; | |
35861 | } | |
35862 | { | |
35863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35864 | } | |
35865 | return resultobj; | |
35866 | fail: | |
35867 | return NULL; | |
35868 | } | |
35869 | ||
35870 | ||
c32bde28 | 35871 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35872 | PyObject *resultobj; |
35873 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35874 | wxPoint result; | |
35875 | PyObject * obj0 = 0 ; | |
35876 | char *kwnames[] = { | |
35877 | (char *) "self", NULL | |
35878 | }; | |
35879 | ||
35880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
35881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35883 | { | |
35884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35885 | result = (arg1)->GetPosition(); | |
35886 | ||
35887 | wxPyEndAllowThreads(__tstate); | |
35888 | if (PyErr_Occurred()) SWIG_fail; | |
35889 | } | |
35890 | { | |
35891 | wxPoint * resultptr; | |
35892 | resultptr = new wxPoint((wxPoint &) result); | |
35893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35894 | } | |
35895 | return resultobj; | |
35896 | fail: | |
35897 | return NULL; | |
35898 | } | |
35899 | ||
35900 | ||
c32bde28 | 35901 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35902 | PyObject *resultobj; |
35903 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35904 | PyObject *result; | |
35905 | PyObject * obj0 = 0 ; | |
35906 | char *kwnames[] = { | |
35907 | (char *) "self", NULL | |
35908 | }; | |
35909 | ||
35910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
35911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35913 | { | |
35914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35915 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
35916 | ||
35917 | wxPyEndAllowThreads(__tstate); | |
35918 | if (PyErr_Occurred()) SWIG_fail; | |
35919 | } | |
35920 | resultobj = result; | |
35921 | return resultobj; | |
35922 | fail: | |
35923 | return NULL; | |
35924 | } | |
35925 | ||
35926 | ||
c32bde28 | 35927 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35928 | PyObject *obj; |
35929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35930 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35931 | Py_INCREF(obj); | |
35932 | return Py_BuildValue((char *)""); | |
35933 | } | |
c32bde28 | 35934 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35935 | PyObject *resultobj; |
35936 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35937 | PyObject *arg2 = (PyObject *) 0 ; | |
35938 | PyObject * obj0 = 0 ; | |
35939 | PyObject * obj1 = 0 ; | |
35940 | char *kwnames[] = { | |
35941 | (char *) "self",(char *) "_self", NULL | |
35942 | }; | |
35943 | ||
35944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35947 | arg2 = obj1; | |
35948 | { | |
35949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35950 | wxSizer__setOORInfo(arg1,arg2); | |
35951 | ||
35952 | wxPyEndAllowThreads(__tstate); | |
35953 | if (PyErr_Occurred()) SWIG_fail; | |
35954 | } | |
35955 | Py_INCREF(Py_None); resultobj = Py_None; | |
35956 | return resultobj; | |
35957 | fail: | |
35958 | return NULL; | |
35959 | } | |
35960 | ||
35961 | ||
c32bde28 | 35962 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35963 | PyObject *resultobj; |
35964 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35965 | PyObject *arg2 = (PyObject *) 0 ; | |
35966 | int arg3 = (int) 0 ; | |
35967 | int arg4 = (int) 0 ; | |
35968 | int arg5 = (int) 0 ; | |
35969 | PyObject *arg6 = (PyObject *) NULL ; | |
35970 | PyObject * obj0 = 0 ; | |
35971 | PyObject * obj1 = 0 ; | |
35972 | PyObject * obj2 = 0 ; | |
35973 | PyObject * obj3 = 0 ; | |
35974 | PyObject * obj4 = 0 ; | |
35975 | PyObject * obj5 = 0 ; | |
35976 | char *kwnames[] = { | |
35977 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35978 | }; | |
35979 | ||
35980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35983 | arg2 = obj1; | |
35984 | if (obj2) { | |
c32bde28 | 35985 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35986 | if (PyErr_Occurred()) SWIG_fail; |
35987 | } | |
35988 | if (obj3) { | |
c32bde28 | 35989 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35990 | if (PyErr_Occurred()) SWIG_fail; |
35991 | } | |
35992 | if (obj4) { | |
c32bde28 | 35993 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35994 | if (PyErr_Occurred()) SWIG_fail; |
35995 | } | |
35996 | if (obj5) { | |
35997 | arg6 = obj5; | |
35998 | } | |
35999 | { | |
36000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36001 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
36002 | ||
36003 | wxPyEndAllowThreads(__tstate); | |
36004 | if (PyErr_Occurred()) SWIG_fail; | |
36005 | } | |
36006 | Py_INCREF(Py_None); resultobj = Py_None; | |
36007 | return resultobj; | |
36008 | fail: | |
36009 | return NULL; | |
36010 | } | |
36011 | ||
36012 | ||
c32bde28 | 36013 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36014 | PyObject *resultobj; |
36015 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36016 | int arg2 ; | |
36017 | PyObject *arg3 = (PyObject *) 0 ; | |
36018 | int arg4 = (int) 0 ; | |
36019 | int arg5 = (int) 0 ; | |
36020 | int arg6 = (int) 0 ; | |
36021 | PyObject *arg7 = (PyObject *) NULL ; | |
36022 | PyObject * obj0 = 0 ; | |
36023 | PyObject * obj1 = 0 ; | |
36024 | PyObject * obj2 = 0 ; | |
36025 | PyObject * obj3 = 0 ; | |
36026 | PyObject * obj4 = 0 ; | |
36027 | PyObject * obj5 = 0 ; | |
36028 | PyObject * obj6 = 0 ; | |
36029 | char *kwnames[] = { | |
36030 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36031 | }; | |
36032 | ||
36033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36036 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36037 | if (PyErr_Occurred()) SWIG_fail; |
36038 | arg3 = obj2; | |
36039 | if (obj3) { | |
c32bde28 | 36040 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36041 | if (PyErr_Occurred()) SWIG_fail; |
36042 | } | |
36043 | if (obj4) { | |
c32bde28 | 36044 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36045 | if (PyErr_Occurred()) SWIG_fail; |
36046 | } | |
36047 | if (obj5) { | |
c32bde28 | 36048 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
36049 | if (PyErr_Occurred()) SWIG_fail; |
36050 | } | |
36051 | if (obj6) { | |
36052 | arg7 = obj6; | |
36053 | } | |
36054 | { | |
36055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36056 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
36057 | ||
36058 | wxPyEndAllowThreads(__tstate); | |
36059 | if (PyErr_Occurred()) SWIG_fail; | |
36060 | } | |
36061 | Py_INCREF(Py_None); resultobj = Py_None; | |
36062 | return resultobj; | |
36063 | fail: | |
36064 | return NULL; | |
36065 | } | |
36066 | ||
36067 | ||
c32bde28 | 36068 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36069 | PyObject *resultobj; |
36070 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36071 | PyObject *arg2 = (PyObject *) 0 ; | |
36072 | int arg3 = (int) 0 ; | |
36073 | int arg4 = (int) 0 ; | |
36074 | int arg5 = (int) 0 ; | |
36075 | PyObject *arg6 = (PyObject *) NULL ; | |
36076 | PyObject * obj0 = 0 ; | |
36077 | PyObject * obj1 = 0 ; | |
36078 | PyObject * obj2 = 0 ; | |
36079 | PyObject * obj3 = 0 ; | |
36080 | PyObject * obj4 = 0 ; | |
36081 | PyObject * obj5 = 0 ; | |
36082 | char *kwnames[] = { | |
36083 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36084 | }; | |
36085 | ||
36086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36089 | arg2 = obj1; | |
36090 | if (obj2) { | |
c32bde28 | 36091 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36092 | if (PyErr_Occurred()) SWIG_fail; |
36093 | } | |
36094 | if (obj3) { | |
c32bde28 | 36095 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36096 | if (PyErr_Occurred()) SWIG_fail; |
36097 | } | |
36098 | if (obj4) { | |
c32bde28 | 36099 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36100 | if (PyErr_Occurred()) SWIG_fail; |
36101 | } | |
36102 | if (obj5) { | |
36103 | arg6 = obj5; | |
36104 | } | |
36105 | { | |
36106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36107 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
36108 | ||
36109 | wxPyEndAllowThreads(__tstate); | |
36110 | if (PyErr_Occurred()) SWIG_fail; | |
36111 | } | |
36112 | Py_INCREF(Py_None); resultobj = Py_None; | |
36113 | return resultobj; | |
36114 | fail: | |
36115 | return NULL; | |
36116 | } | |
36117 | ||
36118 | ||
c32bde28 | 36119 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36120 | PyObject *resultobj; |
36121 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36122 | PyObject *arg2 = (PyObject *) 0 ; | |
36123 | bool result; | |
36124 | PyObject * obj0 = 0 ; | |
36125 | PyObject * obj1 = 0 ; | |
36126 | char *kwnames[] = { | |
36127 | (char *) "self",(char *) "item", NULL | |
36128 | }; | |
36129 | ||
36130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
36131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36133 | arg2 = obj1; | |
36134 | { | |
36135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36136 | result = (bool)wxSizer_Remove(arg1,arg2); | |
36137 | ||
36138 | wxPyEndAllowThreads(__tstate); | |
36139 | if (PyErr_Occurred()) SWIG_fail; | |
36140 | } | |
36141 | { | |
36142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36143 | } | |
36144 | return resultobj; | |
36145 | fail: | |
36146 | return NULL; | |
36147 | } | |
36148 | ||
36149 | ||
c32bde28 | 36150 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
36151 | PyObject *resultobj; |
36152 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36153 | PyObject *arg2 = (PyObject *) 0 ; | |
36154 | bool result; | |
36155 | PyObject * obj0 = 0 ; | |
36156 | PyObject * obj1 = 0 ; | |
36157 | char *kwnames[] = { | |
36158 | (char *) "self",(char *) "item", NULL | |
36159 | }; | |
36160 | ||
36161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
36162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36164 | arg2 = obj1; | |
36165 | { | |
36166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36167 | result = (bool)wxSizer_Detach(arg1,arg2); | |
36168 | ||
36169 | wxPyEndAllowThreads(__tstate); | |
36170 | if (PyErr_Occurred()) SWIG_fail; | |
36171 | } | |
36172 | { | |
36173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36174 | } | |
36175 | return resultobj; | |
36176 | fail: | |
36177 | return NULL; | |
36178 | } | |
36179 | ||
36180 | ||
c32bde28 | 36181 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36182 | PyObject *resultobj; |
36183 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36184 | PyObject *arg2 = (PyObject *) 0 ; | |
36185 | wxSize *arg3 = 0 ; | |
36186 | wxSize temp3 ; | |
36187 | PyObject * obj0 = 0 ; | |
36188 | PyObject * obj1 = 0 ; | |
36189 | PyObject * obj2 = 0 ; | |
36190 | char *kwnames[] = { | |
36191 | (char *) "self",(char *) "item",(char *) "size", NULL | |
36192 | }; | |
36193 | ||
36194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36197 | arg2 = obj1; | |
36198 | { | |
36199 | arg3 = &temp3; | |
36200 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36201 | } | |
36202 | { | |
36203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36204 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
36205 | ||
36206 | wxPyEndAllowThreads(__tstate); | |
36207 | if (PyErr_Occurred()) SWIG_fail; | |
36208 | } | |
36209 | Py_INCREF(Py_None); resultobj = Py_None; | |
36210 | return resultobj; | |
36211 | fail: | |
36212 | return NULL; | |
36213 | } | |
36214 | ||
36215 | ||
c32bde28 | 36216 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36217 | PyObject *resultobj; |
36218 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36219 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
36220 | PyObject * obj0 = 0 ; | |
36221 | PyObject * obj1 = 0 ; | |
36222 | char *kwnames[] = { | |
36223 | (char *) "self",(char *) "item", NULL | |
36224 | }; | |
36225 | ||
36226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36229 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36231 | { | |
36232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36233 | (arg1)->Add(arg2); | |
36234 | ||
36235 | wxPyEndAllowThreads(__tstate); | |
36236 | if (PyErr_Occurred()) SWIG_fail; | |
36237 | } | |
36238 | Py_INCREF(Py_None); resultobj = Py_None; | |
36239 | return resultobj; | |
36240 | fail: | |
36241 | return NULL; | |
36242 | } | |
36243 | ||
36244 | ||
c32bde28 | 36245 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36246 | PyObject *resultobj; |
36247 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36248 | size_t arg2 ; | |
36249 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
36250 | PyObject * obj0 = 0 ; | |
36251 | PyObject * obj1 = 0 ; | |
36252 | PyObject * obj2 = 0 ; | |
36253 | char *kwnames[] = { | |
36254 | (char *) "self",(char *) "index",(char *) "item", NULL | |
36255 | }; | |
36256 | ||
36257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36260 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36261 | if (PyErr_Occurred()) SWIG_fail; |
36262 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
36263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36264 | { | |
36265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36266 | (arg1)->Insert(arg2,arg3); | |
36267 | ||
36268 | wxPyEndAllowThreads(__tstate); | |
36269 | if (PyErr_Occurred()) SWIG_fail; | |
36270 | } | |
36271 | Py_INCREF(Py_None); resultobj = Py_None; | |
36272 | return resultobj; | |
36273 | fail: | |
36274 | return NULL; | |
36275 | } | |
36276 | ||
36277 | ||
c32bde28 | 36278 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36279 | PyObject *resultobj; |
36280 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36281 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
36282 | PyObject * obj0 = 0 ; | |
36283 | PyObject * obj1 = 0 ; | |
36284 | char *kwnames[] = { | |
36285 | (char *) "self",(char *) "item", NULL | |
36286 | }; | |
36287 | ||
36288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
36289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36293 | { | |
36294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36295 | (arg1)->Prepend(arg2); | |
36296 | ||
36297 | wxPyEndAllowThreads(__tstate); | |
36298 | if (PyErr_Occurred()) SWIG_fail; | |
36299 | } | |
36300 | Py_INCREF(Py_None); resultobj = Py_None; | |
36301 | return resultobj; | |
36302 | fail: | |
36303 | return NULL; | |
36304 | } | |
36305 | ||
36306 | ||
c32bde28 | 36307 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36308 | PyObject *resultobj; |
36309 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36310 | int arg2 ; | |
36311 | int arg3 ; | |
36312 | int arg4 ; | |
36313 | int arg5 ; | |
36314 | PyObject * obj0 = 0 ; | |
36315 | PyObject * obj1 = 0 ; | |
36316 | PyObject * obj2 = 0 ; | |
36317 | PyObject * obj3 = 0 ; | |
36318 | PyObject * obj4 = 0 ; | |
36319 | char *kwnames[] = { | |
36320 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36321 | }; | |
36322 | ||
36323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36326 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 36327 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36328 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 36329 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36330 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 36331 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36332 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36333 | if (PyErr_Occurred()) SWIG_fail; |
36334 | { | |
36335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36336 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
36337 | ||
36338 | wxPyEndAllowThreads(__tstate); | |
36339 | if (PyErr_Occurred()) SWIG_fail; | |
36340 | } | |
36341 | Py_INCREF(Py_None); resultobj = Py_None; | |
36342 | return resultobj; | |
36343 | fail: | |
36344 | return NULL; | |
36345 | } | |
36346 | ||
36347 | ||
c32bde28 | 36348 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36349 | PyObject *resultobj; |
36350 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36351 | wxSize *arg2 = 0 ; | |
36352 | wxSize temp2 ; | |
36353 | PyObject * obj0 = 0 ; | |
36354 | PyObject * obj1 = 0 ; | |
36355 | char *kwnames[] = { | |
36356 | (char *) "self",(char *) "size", NULL | |
36357 | }; | |
36358 | ||
36359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
36360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36362 | { | |
36363 | arg2 = &temp2; | |
36364 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36365 | } | |
36366 | { | |
36367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36368 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
36369 | ||
36370 | wxPyEndAllowThreads(__tstate); | |
36371 | if (PyErr_Occurred()) SWIG_fail; | |
36372 | } | |
36373 | Py_INCREF(Py_None); resultobj = Py_None; | |
36374 | return resultobj; | |
36375 | fail: | |
36376 | return NULL; | |
36377 | } | |
36378 | ||
36379 | ||
c32bde28 | 36380 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36381 | PyObject *resultobj; |
36382 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36383 | wxSize result; | |
36384 | PyObject * obj0 = 0 ; | |
36385 | char *kwnames[] = { | |
36386 | (char *) "self", NULL | |
36387 | }; | |
36388 | ||
36389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
36390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36392 | { | |
36393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36394 | result = (arg1)->GetSize(); | |
36395 | ||
36396 | wxPyEndAllowThreads(__tstate); | |
36397 | if (PyErr_Occurred()) SWIG_fail; | |
36398 | } | |
36399 | { | |
36400 | wxSize * resultptr; | |
36401 | resultptr = new wxSize((wxSize &) result); | |
36402 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36403 | } | |
36404 | return resultobj; | |
36405 | fail: | |
36406 | return NULL; | |
36407 | } | |
36408 | ||
36409 | ||
c32bde28 | 36410 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36411 | PyObject *resultobj; |
36412 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36413 | wxPoint result; | |
36414 | PyObject * obj0 = 0 ; | |
36415 | char *kwnames[] = { | |
36416 | (char *) "self", NULL | |
36417 | }; | |
36418 | ||
36419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
36420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36422 | { | |
36423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36424 | result = (arg1)->GetPosition(); | |
36425 | ||
36426 | wxPyEndAllowThreads(__tstate); | |
36427 | if (PyErr_Occurred()) SWIG_fail; | |
36428 | } | |
36429 | { | |
36430 | wxPoint * resultptr; | |
36431 | resultptr = new wxPoint((wxPoint &) result); | |
36432 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36433 | } | |
36434 | return resultobj; | |
36435 | fail: | |
36436 | return NULL; | |
36437 | } | |
36438 | ||
36439 | ||
c32bde28 | 36440 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36441 | PyObject *resultobj; |
36442 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36443 | wxSize result; | |
36444 | PyObject * obj0 = 0 ; | |
36445 | char *kwnames[] = { | |
36446 | (char *) "self", NULL | |
36447 | }; | |
36448 | ||
36449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
36450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36452 | { | |
36453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36454 | result = (arg1)->GetMinSize(); | |
36455 | ||
36456 | wxPyEndAllowThreads(__tstate); | |
36457 | if (PyErr_Occurred()) SWIG_fail; | |
36458 | } | |
36459 | { | |
36460 | wxSize * resultptr; | |
36461 | resultptr = new wxSize((wxSize &) result); | |
36462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36463 | } | |
36464 | return resultobj; | |
36465 | fail: | |
36466 | return NULL; | |
36467 | } | |
36468 | ||
36469 | ||
c32bde28 | 36470 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36471 | PyObject *resultobj; |
36472 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36473 | PyObject * obj0 = 0 ; | |
36474 | char *kwnames[] = { | |
36475 | (char *) "self", NULL | |
36476 | }; | |
36477 | ||
36478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36481 | { | |
36482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36483 | (arg1)->RecalcSizes(); | |
36484 | ||
36485 | wxPyEndAllowThreads(__tstate); | |
36486 | if (PyErr_Occurred()) SWIG_fail; | |
36487 | } | |
36488 | Py_INCREF(Py_None); resultobj = Py_None; | |
36489 | return resultobj; | |
36490 | fail: | |
36491 | return NULL; | |
36492 | } | |
36493 | ||
36494 | ||
c32bde28 | 36495 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36496 | PyObject *resultobj; |
36497 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36498 | wxSize result; | |
36499 | PyObject * obj0 = 0 ; | |
36500 | char *kwnames[] = { | |
36501 | (char *) "self", NULL | |
36502 | }; | |
36503 | ||
36504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36507 | { | |
36508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36509 | result = (arg1)->CalcMin(); | |
36510 | ||
36511 | wxPyEndAllowThreads(__tstate); | |
36512 | if (PyErr_Occurred()) SWIG_fail; | |
36513 | } | |
36514 | { | |
36515 | wxSize * resultptr; | |
36516 | resultptr = new wxSize((wxSize &) result); | |
36517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36518 | } | |
36519 | return resultobj; | |
36520 | fail: | |
36521 | return NULL; | |
36522 | } | |
36523 | ||
36524 | ||
c32bde28 | 36525 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36526 | PyObject *resultobj; |
36527 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36528 | PyObject * obj0 = 0 ; | |
36529 | char *kwnames[] = { | |
36530 | (char *) "self", NULL | |
36531 | }; | |
36532 | ||
36533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36536 | { | |
36537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36538 | (arg1)->Layout(); | |
36539 | ||
36540 | wxPyEndAllowThreads(__tstate); | |
36541 | if (PyErr_Occurred()) SWIG_fail; | |
36542 | } | |
36543 | Py_INCREF(Py_None); resultobj = Py_None; | |
36544 | return resultobj; | |
36545 | fail: | |
36546 | return NULL; | |
36547 | } | |
36548 | ||
36549 | ||
c32bde28 | 36550 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36551 | PyObject *resultobj; |
36552 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36553 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36554 | wxSize result; | |
36555 | PyObject * obj0 = 0 ; | |
36556 | PyObject * obj1 = 0 ; | |
36557 | char *kwnames[] = { | |
36558 | (char *) "self",(char *) "window", NULL | |
36559 | }; | |
36560 | ||
36561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36564 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36566 | { | |
36567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36568 | result = (arg1)->Fit(arg2); | |
36569 | ||
36570 | wxPyEndAllowThreads(__tstate); | |
36571 | if (PyErr_Occurred()) SWIG_fail; | |
36572 | } | |
36573 | { | |
36574 | wxSize * resultptr; | |
36575 | resultptr = new wxSize((wxSize &) result); | |
36576 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36577 | } | |
36578 | return resultobj; | |
36579 | fail: | |
36580 | return NULL; | |
36581 | } | |
36582 | ||
36583 | ||
c32bde28 | 36584 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36585 | PyObject *resultobj; |
36586 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36587 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36588 | PyObject * obj0 = 0 ; | |
36589 | PyObject * obj1 = 0 ; | |
36590 | char *kwnames[] = { | |
36591 | (char *) "self",(char *) "window", NULL | |
36592 | }; | |
36593 | ||
36594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36599 | { | |
36600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36601 | (arg1)->FitInside(arg2); | |
36602 | ||
36603 | wxPyEndAllowThreads(__tstate); | |
36604 | if (PyErr_Occurred()) SWIG_fail; | |
36605 | } | |
36606 | Py_INCREF(Py_None); resultobj = Py_None; | |
36607 | return resultobj; | |
36608 | fail: | |
36609 | return NULL; | |
36610 | } | |
36611 | ||
36612 | ||
c32bde28 | 36613 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36614 | PyObject *resultobj; |
36615 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36616 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36617 | PyObject * obj0 = 0 ; | |
36618 | PyObject * obj1 = 0 ; | |
36619 | char *kwnames[] = { | |
36620 | (char *) "self",(char *) "window", NULL | |
36621 | }; | |
36622 | ||
36623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36628 | { | |
36629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36630 | (arg1)->SetSizeHints(arg2); | |
36631 | ||
36632 | wxPyEndAllowThreads(__tstate); | |
36633 | if (PyErr_Occurred()) SWIG_fail; | |
36634 | } | |
36635 | Py_INCREF(Py_None); resultobj = Py_None; | |
36636 | return resultobj; | |
36637 | fail: | |
36638 | return NULL; | |
36639 | } | |
36640 | ||
36641 | ||
c32bde28 | 36642 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36643 | PyObject *resultobj; |
36644 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36646 | PyObject * obj0 = 0 ; | |
36647 | PyObject * obj1 = 0 ; | |
36648 | char *kwnames[] = { | |
36649 | (char *) "self",(char *) "window", NULL | |
36650 | }; | |
36651 | ||
36652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36655 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36657 | { | |
36658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36659 | (arg1)->SetVirtualSizeHints(arg2); | |
36660 | ||
36661 | wxPyEndAllowThreads(__tstate); | |
36662 | if (PyErr_Occurred()) SWIG_fail; | |
36663 | } | |
36664 | Py_INCREF(Py_None); resultobj = Py_None; | |
36665 | return resultobj; | |
36666 | fail: | |
36667 | return NULL; | |
36668 | } | |
36669 | ||
36670 | ||
c32bde28 | 36671 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36672 | PyObject *resultobj; |
36673 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 36674 | bool arg2 = (bool) false ; |
d55e5bfc RD |
36675 | PyObject * obj0 = 0 ; |
36676 | PyObject * obj1 = 0 ; | |
36677 | char *kwnames[] = { | |
248ed943 | 36678 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36679 | }; |
36680 | ||
36681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36684 | if (obj1) { | |
c32bde28 | 36685 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36686 | if (PyErr_Occurred()) SWIG_fail; |
36687 | } | |
36688 | { | |
36689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36690 | (arg1)->Clear(arg2); | |
36691 | ||
36692 | wxPyEndAllowThreads(__tstate); | |
36693 | if (PyErr_Occurred()) SWIG_fail; | |
36694 | } | |
36695 | Py_INCREF(Py_None); resultobj = Py_None; | |
36696 | return resultobj; | |
36697 | fail: | |
36698 | return NULL; | |
36699 | } | |
36700 | ||
36701 | ||
c32bde28 | 36702 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36703 | PyObject *resultobj; |
36704 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36705 | PyObject * obj0 = 0 ; | |
36706 | char *kwnames[] = { | |
36707 | (char *) "self", NULL | |
36708 | }; | |
36709 | ||
36710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36713 | { | |
36714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36715 | (arg1)->DeleteWindows(); | |
36716 | ||
36717 | wxPyEndAllowThreads(__tstate); | |
36718 | if (PyErr_Occurred()) SWIG_fail; | |
36719 | } | |
36720 | Py_INCREF(Py_None); resultobj = Py_None; | |
36721 | return resultobj; | |
36722 | fail: | |
36723 | return NULL; | |
36724 | } | |
36725 | ||
36726 | ||
c32bde28 | 36727 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36728 | PyObject *resultobj; |
36729 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36730 | PyObject *result; | |
36731 | PyObject * obj0 = 0 ; | |
36732 | char *kwnames[] = { | |
36733 | (char *) "self", NULL | |
36734 | }; | |
36735 | ||
36736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36739 | { | |
36740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36741 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36742 | ||
36743 | wxPyEndAllowThreads(__tstate); | |
36744 | if (PyErr_Occurred()) SWIG_fail; | |
36745 | } | |
36746 | resultobj = result; | |
36747 | return resultobj; | |
36748 | fail: | |
36749 | return NULL; | |
36750 | } | |
36751 | ||
36752 | ||
c32bde28 | 36753 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36754 | PyObject *resultobj; |
36755 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36756 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
36757 | bool arg3 = (bool) true ; |
36758 | bool arg4 = (bool) false ; | |
7e63a440 | 36759 | bool result; |
d55e5bfc RD |
36760 | PyObject * obj0 = 0 ; |
36761 | PyObject * obj1 = 0 ; | |
36762 | PyObject * obj2 = 0 ; | |
7e63a440 | 36763 | PyObject * obj3 = 0 ; |
d55e5bfc | 36764 | char *kwnames[] = { |
7e63a440 | 36765 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
36766 | }; |
36767 | ||
7e63a440 | 36768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
36769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36771 | arg2 = obj1; | |
36772 | if (obj2) { | |
c32bde28 | 36773 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
36774 | if (PyErr_Occurred()) SWIG_fail; |
36775 | } | |
7e63a440 RD |
36776 | if (obj3) { |
36777 | arg4 = (bool)SWIG_As_bool(obj3); | |
36778 | if (PyErr_Occurred()) SWIG_fail; | |
36779 | } | |
d55e5bfc RD |
36780 | { |
36781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 36782 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
36783 | |
36784 | wxPyEndAllowThreads(__tstate); | |
36785 | if (PyErr_Occurred()) SWIG_fail; | |
36786 | } | |
7e63a440 RD |
36787 | { |
36788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36789 | } | |
d55e5bfc RD |
36790 | return resultobj; |
36791 | fail: | |
36792 | return NULL; | |
36793 | } | |
36794 | ||
36795 | ||
c32bde28 | 36796 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36797 | PyObject *resultobj; |
36798 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36799 | PyObject *arg2 = (PyObject *) 0 ; | |
36800 | bool result; | |
36801 | PyObject * obj0 = 0 ; | |
36802 | PyObject * obj1 = 0 ; | |
36803 | char *kwnames[] = { | |
36804 | (char *) "self",(char *) "item", NULL | |
36805 | }; | |
36806 | ||
36807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
36808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36810 | arg2 = obj1; | |
36811 | { | |
36812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36813 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36814 | ||
36815 | wxPyEndAllowThreads(__tstate); | |
36816 | if (PyErr_Occurred()) SWIG_fail; | |
36817 | } | |
36818 | { | |
36819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36820 | } | |
36821 | return resultobj; | |
36822 | fail: | |
36823 | return NULL; | |
36824 | } | |
36825 | ||
36826 | ||
c32bde28 | 36827 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36828 | PyObject *resultobj; |
36829 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36830 | bool arg2 ; | |
36831 | PyObject * obj0 = 0 ; | |
36832 | PyObject * obj1 = 0 ; | |
36833 | char *kwnames[] = { | |
36834 | (char *) "self",(char *) "show", NULL | |
36835 | }; | |
36836 | ||
36837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
36838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36840 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36841 | if (PyErr_Occurred()) SWIG_fail; |
36842 | { | |
36843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36844 | (arg1)->ShowItems(arg2); | |
36845 | ||
36846 | wxPyEndAllowThreads(__tstate); | |
36847 | if (PyErr_Occurred()) SWIG_fail; | |
36848 | } | |
36849 | Py_INCREF(Py_None); resultobj = Py_None; | |
36850 | return resultobj; | |
36851 | fail: | |
36852 | return NULL; | |
36853 | } | |
36854 | ||
36855 | ||
c32bde28 | 36856 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36857 | PyObject *obj; |
36858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36859 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36860 | Py_INCREF(obj); | |
36861 | return Py_BuildValue((char *)""); | |
36862 | } | |
c32bde28 | 36863 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36864 | PyObject *resultobj; |
36865 | wxPySizer *result; | |
36866 | char *kwnames[] = { | |
36867 | NULL | |
36868 | }; | |
36869 | ||
36870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
36871 | { | |
36872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36873 | result = (wxPySizer *)new wxPySizer(); | |
36874 | ||
36875 | wxPyEndAllowThreads(__tstate); | |
36876 | if (PyErr_Occurred()) SWIG_fail; | |
36877 | } | |
36878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
36879 | return resultobj; | |
36880 | fail: | |
36881 | return NULL; | |
36882 | } | |
36883 | ||
36884 | ||
c32bde28 | 36885 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36886 | PyObject *resultobj; |
36887 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
36888 | PyObject *arg2 = (PyObject *) 0 ; | |
36889 | PyObject *arg3 = (PyObject *) 0 ; | |
36890 | PyObject * obj0 = 0 ; | |
36891 | PyObject * obj1 = 0 ; | |
36892 | PyObject * obj2 = 0 ; | |
36893 | char *kwnames[] = { | |
36894 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
36895 | }; | |
36896 | ||
36897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
36899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36900 | arg2 = obj1; | |
36901 | arg3 = obj2; | |
36902 | { | |
36903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36904 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36905 | ||
36906 | wxPyEndAllowThreads(__tstate); | |
36907 | if (PyErr_Occurred()) SWIG_fail; | |
36908 | } | |
36909 | Py_INCREF(Py_None); resultobj = Py_None; | |
36910 | return resultobj; | |
36911 | fail: | |
36912 | return NULL; | |
36913 | } | |
36914 | ||
36915 | ||
c32bde28 | 36916 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36917 | PyObject *obj; |
36918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36919 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36920 | Py_INCREF(obj); | |
36921 | return Py_BuildValue((char *)""); | |
36922 | } | |
c32bde28 | 36923 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36924 | PyObject *resultobj; |
36925 | int arg1 = (int) wxHORIZONTAL ; | |
36926 | wxBoxSizer *result; | |
36927 | PyObject * obj0 = 0 ; | |
36928 | char *kwnames[] = { | |
36929 | (char *) "orient", NULL | |
36930 | }; | |
36931 | ||
36932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
36933 | if (obj0) { | |
c32bde28 | 36934 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36935 | if (PyErr_Occurred()) SWIG_fail; |
36936 | } | |
36937 | { | |
36938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36939 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36940 | ||
36941 | wxPyEndAllowThreads(__tstate); | |
36942 | if (PyErr_Occurred()) SWIG_fail; | |
36943 | } | |
36944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36945 | return resultobj; | |
36946 | fail: | |
36947 | return NULL; | |
36948 | } | |
36949 | ||
36950 | ||
c32bde28 | 36951 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36952 | PyObject *resultobj; |
36953 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36954 | int result; | |
36955 | PyObject * obj0 = 0 ; | |
36956 | char *kwnames[] = { | |
36957 | (char *) "self", NULL | |
36958 | }; | |
36959 | ||
36960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36963 | { | |
36964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36965 | result = (int)(arg1)->GetOrientation(); | |
36966 | ||
36967 | wxPyEndAllowThreads(__tstate); | |
36968 | if (PyErr_Occurred()) SWIG_fail; | |
36969 | } | |
c32bde28 | 36970 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36971 | return resultobj; |
36972 | fail: | |
36973 | return NULL; | |
36974 | } | |
36975 | ||
36976 | ||
c32bde28 | 36977 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36978 | PyObject *resultobj; |
36979 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36980 | int arg2 ; | |
36981 | PyObject * obj0 = 0 ; | |
36982 | PyObject * obj1 = 0 ; | |
36983 | char *kwnames[] = { | |
36984 | (char *) "self",(char *) "orient", NULL | |
36985 | }; | |
36986 | ||
36987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36990 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36991 | if (PyErr_Occurred()) SWIG_fail; |
36992 | { | |
36993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36994 | (arg1)->SetOrientation(arg2); | |
36995 | ||
36996 | wxPyEndAllowThreads(__tstate); | |
36997 | if (PyErr_Occurred()) SWIG_fail; | |
36998 | } | |
36999 | Py_INCREF(Py_None); resultobj = Py_None; | |
37000 | return resultobj; | |
37001 | fail: | |
37002 | return NULL; | |
37003 | } | |
37004 | ||
37005 | ||
c32bde28 | 37006 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37007 | PyObject *obj; |
37008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37009 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
37010 | Py_INCREF(obj); | |
37011 | return Py_BuildValue((char *)""); | |
37012 | } | |
c32bde28 | 37013 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37014 | PyObject *resultobj; |
37015 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
37016 | int arg2 = (int) wxHORIZONTAL ; | |
37017 | wxStaticBoxSizer *result; | |
37018 | PyObject * obj0 = 0 ; | |
37019 | PyObject * obj1 = 0 ; | |
37020 | char *kwnames[] = { | |
37021 | (char *) "box",(char *) "orient", NULL | |
37022 | }; | |
37023 | ||
37024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
37025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
37026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37027 | if (obj1) { | |
c32bde28 | 37028 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37029 | if (PyErr_Occurred()) SWIG_fail; |
37030 | } | |
37031 | { | |
37032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37033 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
37034 | ||
37035 | wxPyEndAllowThreads(__tstate); | |
37036 | if (PyErr_Occurred()) SWIG_fail; | |
37037 | } | |
37038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
37039 | return resultobj; | |
37040 | fail: | |
37041 | return NULL; | |
37042 | } | |
37043 | ||
37044 | ||
c32bde28 | 37045 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37046 | PyObject *resultobj; |
37047 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
37048 | wxStaticBox *result; | |
37049 | PyObject * obj0 = 0 ; | |
37050 | char *kwnames[] = { | |
37051 | (char *) "self", NULL | |
37052 | }; | |
37053 | ||
37054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
37055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
37056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37057 | { | |
37058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37059 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
37060 | ||
37061 | wxPyEndAllowThreads(__tstate); | |
37062 | if (PyErr_Occurred()) SWIG_fail; | |
37063 | } | |
37064 | { | |
412d302d | 37065 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
37066 | } |
37067 | return resultobj; | |
37068 | fail: | |
37069 | return NULL; | |
37070 | } | |
37071 | ||
37072 | ||
c32bde28 | 37073 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37074 | PyObject *obj; |
37075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37076 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
37077 | Py_INCREF(obj); | |
37078 | return Py_BuildValue((char *)""); | |
37079 | } | |
c32bde28 | 37080 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37081 | PyObject *resultobj; |
37082 | int arg1 = (int) 1 ; | |
37083 | int arg2 = (int) 0 ; | |
37084 | int arg3 = (int) 0 ; | |
37085 | int arg4 = (int) 0 ; | |
37086 | wxGridSizer *result; | |
37087 | PyObject * obj0 = 0 ; | |
37088 | PyObject * obj1 = 0 ; | |
37089 | PyObject * obj2 = 0 ; | |
37090 | PyObject * obj3 = 0 ; | |
37091 | char *kwnames[] = { | |
37092 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37093 | }; | |
37094 | ||
37095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37096 | if (obj0) { | |
c32bde28 | 37097 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37098 | if (PyErr_Occurred()) SWIG_fail; |
37099 | } | |
37100 | if (obj1) { | |
c32bde28 | 37101 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37102 | if (PyErr_Occurred()) SWIG_fail; |
37103 | } | |
37104 | if (obj2) { | |
c32bde28 | 37105 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37106 | if (PyErr_Occurred()) SWIG_fail; |
37107 | } | |
37108 | if (obj3) { | |
c32bde28 | 37109 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37110 | if (PyErr_Occurred()) SWIG_fail; |
37111 | } | |
37112 | { | |
37113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37114 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
37115 | ||
37116 | wxPyEndAllowThreads(__tstate); | |
37117 | if (PyErr_Occurred()) SWIG_fail; | |
37118 | } | |
37119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
37120 | return resultobj; | |
37121 | fail: | |
37122 | return NULL; | |
37123 | } | |
37124 | ||
37125 | ||
c32bde28 | 37126 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37127 | PyObject *resultobj; |
37128 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37129 | int arg2 ; | |
37130 | PyObject * obj0 = 0 ; | |
37131 | PyObject * obj1 = 0 ; | |
37132 | char *kwnames[] = { | |
37133 | (char *) "self",(char *) "cols", NULL | |
37134 | }; | |
37135 | ||
37136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
37137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37139 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37140 | if (PyErr_Occurred()) SWIG_fail; |
37141 | { | |
37142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37143 | (arg1)->SetCols(arg2); | |
37144 | ||
37145 | wxPyEndAllowThreads(__tstate); | |
37146 | if (PyErr_Occurred()) SWIG_fail; | |
37147 | } | |
37148 | Py_INCREF(Py_None); resultobj = Py_None; | |
37149 | return resultobj; | |
37150 | fail: | |
37151 | return NULL; | |
37152 | } | |
37153 | ||
37154 | ||
c32bde28 | 37155 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37156 | PyObject *resultobj; |
37157 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37158 | int arg2 ; | |
37159 | PyObject * obj0 = 0 ; | |
37160 | PyObject * obj1 = 0 ; | |
37161 | char *kwnames[] = { | |
37162 | (char *) "self",(char *) "rows", NULL | |
37163 | }; | |
37164 | ||
37165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
37166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37168 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37169 | if (PyErr_Occurred()) SWIG_fail; |
37170 | { | |
37171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37172 | (arg1)->SetRows(arg2); | |
37173 | ||
37174 | wxPyEndAllowThreads(__tstate); | |
37175 | if (PyErr_Occurred()) SWIG_fail; | |
37176 | } | |
37177 | Py_INCREF(Py_None); resultobj = Py_None; | |
37178 | return resultobj; | |
37179 | fail: | |
37180 | return NULL; | |
37181 | } | |
37182 | ||
37183 | ||
c32bde28 | 37184 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37185 | PyObject *resultobj; |
37186 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37187 | int arg2 ; | |
37188 | PyObject * obj0 = 0 ; | |
37189 | PyObject * obj1 = 0 ; | |
37190 | char *kwnames[] = { | |
37191 | (char *) "self",(char *) "gap", NULL | |
37192 | }; | |
37193 | ||
37194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
37195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37197 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37198 | if (PyErr_Occurred()) SWIG_fail; |
37199 | { | |
37200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37201 | (arg1)->SetVGap(arg2); | |
37202 | ||
37203 | wxPyEndAllowThreads(__tstate); | |
37204 | if (PyErr_Occurred()) SWIG_fail; | |
37205 | } | |
37206 | Py_INCREF(Py_None); resultobj = Py_None; | |
37207 | return resultobj; | |
37208 | fail: | |
37209 | return NULL; | |
37210 | } | |
37211 | ||
37212 | ||
c32bde28 | 37213 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37214 | PyObject *resultobj; |
37215 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37216 | int arg2 ; | |
37217 | PyObject * obj0 = 0 ; | |
37218 | PyObject * obj1 = 0 ; | |
37219 | char *kwnames[] = { | |
37220 | (char *) "self",(char *) "gap", NULL | |
37221 | }; | |
37222 | ||
37223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
37224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37226 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37227 | if (PyErr_Occurred()) SWIG_fail; |
37228 | { | |
37229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37230 | (arg1)->SetHGap(arg2); | |
37231 | ||
37232 | wxPyEndAllowThreads(__tstate); | |
37233 | if (PyErr_Occurred()) SWIG_fail; | |
37234 | } | |
37235 | Py_INCREF(Py_None); resultobj = Py_None; | |
37236 | return resultobj; | |
37237 | fail: | |
37238 | return NULL; | |
37239 | } | |
37240 | ||
37241 | ||
c32bde28 | 37242 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37243 | PyObject *resultobj; |
37244 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37245 | int result; | |
37246 | PyObject * obj0 = 0 ; | |
37247 | char *kwnames[] = { | |
37248 | (char *) "self", NULL | |
37249 | }; | |
37250 | ||
37251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
37252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37254 | { | |
37255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37256 | result = (int)(arg1)->GetCols(); | |
37257 | ||
37258 | wxPyEndAllowThreads(__tstate); | |
37259 | if (PyErr_Occurred()) SWIG_fail; | |
37260 | } | |
c32bde28 | 37261 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37262 | return resultobj; |
37263 | fail: | |
37264 | return NULL; | |
37265 | } | |
37266 | ||
37267 | ||
c32bde28 | 37268 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37269 | PyObject *resultobj; |
37270 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37271 | int result; | |
37272 | PyObject * obj0 = 0 ; | |
37273 | char *kwnames[] = { | |
37274 | (char *) "self", NULL | |
37275 | }; | |
37276 | ||
37277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
37278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37280 | { | |
37281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37282 | result = (int)(arg1)->GetRows(); | |
37283 | ||
37284 | wxPyEndAllowThreads(__tstate); | |
37285 | if (PyErr_Occurred()) SWIG_fail; | |
37286 | } | |
c32bde28 | 37287 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37288 | return resultobj; |
37289 | fail: | |
37290 | return NULL; | |
37291 | } | |
37292 | ||
37293 | ||
c32bde28 | 37294 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37295 | PyObject *resultobj; |
37296 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37297 | int result; | |
37298 | PyObject * obj0 = 0 ; | |
37299 | char *kwnames[] = { | |
37300 | (char *) "self", NULL | |
37301 | }; | |
37302 | ||
37303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
37304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37306 | { | |
37307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37308 | result = (int)(arg1)->GetVGap(); | |
37309 | ||
37310 | wxPyEndAllowThreads(__tstate); | |
37311 | if (PyErr_Occurred()) SWIG_fail; | |
37312 | } | |
c32bde28 | 37313 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37314 | return resultobj; |
37315 | fail: | |
37316 | return NULL; | |
37317 | } | |
37318 | ||
37319 | ||
c32bde28 | 37320 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37321 | PyObject *resultobj; |
37322 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37323 | int result; | |
37324 | PyObject * obj0 = 0 ; | |
37325 | char *kwnames[] = { | |
37326 | (char *) "self", NULL | |
37327 | }; | |
37328 | ||
37329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
37330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37332 | { | |
37333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37334 | result = (int)(arg1)->GetHGap(); | |
37335 | ||
37336 | wxPyEndAllowThreads(__tstate); | |
37337 | if (PyErr_Occurred()) SWIG_fail; | |
37338 | } | |
c32bde28 | 37339 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37340 | return resultobj; |
37341 | fail: | |
37342 | return NULL; | |
37343 | } | |
37344 | ||
37345 | ||
c32bde28 | 37346 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37347 | PyObject *obj; |
37348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37349 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
37350 | Py_INCREF(obj); | |
37351 | return Py_BuildValue((char *)""); | |
37352 | } | |
c32bde28 | 37353 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37354 | PyObject *resultobj; |
37355 | int arg1 = (int) 1 ; | |
37356 | int arg2 = (int) 0 ; | |
37357 | int arg3 = (int) 0 ; | |
37358 | int arg4 = (int) 0 ; | |
37359 | wxFlexGridSizer *result; | |
37360 | PyObject * obj0 = 0 ; | |
37361 | PyObject * obj1 = 0 ; | |
37362 | PyObject * obj2 = 0 ; | |
37363 | PyObject * obj3 = 0 ; | |
37364 | char *kwnames[] = { | |
37365 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37366 | }; | |
37367 | ||
37368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37369 | if (obj0) { | |
c32bde28 | 37370 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37371 | if (PyErr_Occurred()) SWIG_fail; |
37372 | } | |
37373 | if (obj1) { | |
c32bde28 | 37374 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37375 | if (PyErr_Occurred()) SWIG_fail; |
37376 | } | |
37377 | if (obj2) { | |
c32bde28 | 37378 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37379 | if (PyErr_Occurred()) SWIG_fail; |
37380 | } | |
37381 | if (obj3) { | |
c32bde28 | 37382 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37383 | if (PyErr_Occurred()) SWIG_fail; |
37384 | } | |
37385 | { | |
37386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37387 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
37388 | ||
37389 | wxPyEndAllowThreads(__tstate); | |
37390 | if (PyErr_Occurred()) SWIG_fail; | |
37391 | } | |
37392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
37393 | return resultobj; | |
37394 | fail: | |
37395 | return NULL; | |
37396 | } | |
37397 | ||
37398 | ||
c32bde28 | 37399 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37400 | PyObject *resultobj; |
37401 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37402 | size_t arg2 ; | |
37403 | int arg3 = (int) 0 ; | |
37404 | PyObject * obj0 = 0 ; | |
37405 | PyObject * obj1 = 0 ; | |
37406 | PyObject * obj2 = 0 ; | |
37407 | char *kwnames[] = { | |
37408 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37409 | }; | |
37410 | ||
37411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37414 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37415 | if (PyErr_Occurred()) SWIG_fail; |
37416 | if (obj2) { | |
c32bde28 | 37417 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37418 | if (PyErr_Occurred()) SWIG_fail; |
37419 | } | |
37420 | { | |
37421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37422 | (arg1)->AddGrowableRow(arg2,arg3); | |
37423 | ||
37424 | wxPyEndAllowThreads(__tstate); | |
37425 | if (PyErr_Occurred()) SWIG_fail; | |
37426 | } | |
37427 | Py_INCREF(Py_None); resultobj = Py_None; | |
37428 | return resultobj; | |
37429 | fail: | |
37430 | return NULL; | |
37431 | } | |
37432 | ||
37433 | ||
c32bde28 | 37434 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37435 | PyObject *resultobj; |
37436 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37437 | size_t arg2 ; | |
37438 | PyObject * obj0 = 0 ; | |
37439 | PyObject * obj1 = 0 ; | |
37440 | char *kwnames[] = { | |
37441 | (char *) "self",(char *) "idx", NULL | |
37442 | }; | |
37443 | ||
37444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
37445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37447 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37448 | if (PyErr_Occurred()) SWIG_fail; |
37449 | { | |
37450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37451 | (arg1)->RemoveGrowableRow(arg2); | |
37452 | ||
37453 | wxPyEndAllowThreads(__tstate); | |
37454 | if (PyErr_Occurred()) SWIG_fail; | |
37455 | } | |
37456 | Py_INCREF(Py_None); resultobj = Py_None; | |
37457 | return resultobj; | |
37458 | fail: | |
37459 | return NULL; | |
37460 | } | |
37461 | ||
37462 | ||
c32bde28 | 37463 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37464 | PyObject *resultobj; |
37465 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37466 | size_t arg2 ; | |
37467 | int arg3 = (int) 0 ; | |
37468 | PyObject * obj0 = 0 ; | |
37469 | PyObject * obj1 = 0 ; | |
37470 | PyObject * obj2 = 0 ; | |
37471 | char *kwnames[] = { | |
37472 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37473 | }; | |
37474 | ||
37475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37478 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37479 | if (PyErr_Occurred()) SWIG_fail; |
37480 | if (obj2) { | |
c32bde28 | 37481 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37482 | if (PyErr_Occurred()) SWIG_fail; |
37483 | } | |
37484 | { | |
37485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37486 | (arg1)->AddGrowableCol(arg2,arg3); | |
37487 | ||
37488 | wxPyEndAllowThreads(__tstate); | |
37489 | if (PyErr_Occurred()) SWIG_fail; | |
37490 | } | |
37491 | Py_INCREF(Py_None); resultobj = Py_None; | |
37492 | return resultobj; | |
37493 | fail: | |
37494 | return NULL; | |
37495 | } | |
37496 | ||
37497 | ||
c32bde28 | 37498 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37499 | PyObject *resultobj; |
37500 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37501 | size_t arg2 ; | |
37502 | PyObject * obj0 = 0 ; | |
37503 | PyObject * obj1 = 0 ; | |
37504 | char *kwnames[] = { | |
37505 | (char *) "self",(char *) "idx", NULL | |
37506 | }; | |
37507 | ||
37508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37511 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37512 | if (PyErr_Occurred()) SWIG_fail; |
37513 | { | |
37514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37515 | (arg1)->RemoveGrowableCol(arg2); | |
37516 | ||
37517 | wxPyEndAllowThreads(__tstate); | |
37518 | if (PyErr_Occurred()) SWIG_fail; | |
37519 | } | |
37520 | Py_INCREF(Py_None); resultobj = Py_None; | |
37521 | return resultobj; | |
37522 | fail: | |
37523 | return NULL; | |
37524 | } | |
37525 | ||
37526 | ||
c32bde28 | 37527 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37528 | PyObject *resultobj; |
37529 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37530 | int arg2 ; | |
37531 | PyObject * obj0 = 0 ; | |
37532 | PyObject * obj1 = 0 ; | |
37533 | char *kwnames[] = { | |
37534 | (char *) "self",(char *) "direction", NULL | |
37535 | }; | |
37536 | ||
37537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37540 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37541 | if (PyErr_Occurred()) SWIG_fail; |
37542 | { | |
37543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37544 | (arg1)->SetFlexibleDirection(arg2); | |
37545 | ||
37546 | wxPyEndAllowThreads(__tstate); | |
37547 | if (PyErr_Occurred()) SWIG_fail; | |
37548 | } | |
37549 | Py_INCREF(Py_None); resultobj = Py_None; | |
37550 | return resultobj; | |
37551 | fail: | |
37552 | return NULL; | |
37553 | } | |
37554 | ||
37555 | ||
c32bde28 | 37556 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37557 | PyObject *resultobj; |
37558 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37559 | int result; | |
37560 | PyObject * obj0 = 0 ; | |
37561 | char *kwnames[] = { | |
37562 | (char *) "self", NULL | |
37563 | }; | |
37564 | ||
37565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37568 | { | |
37569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37570 | result = (int)(arg1)->GetFlexibleDirection(); | |
37571 | ||
37572 | wxPyEndAllowThreads(__tstate); | |
37573 | if (PyErr_Occurred()) SWIG_fail; | |
37574 | } | |
c32bde28 | 37575 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37576 | return resultobj; |
37577 | fail: | |
37578 | return NULL; | |
37579 | } | |
37580 | ||
37581 | ||
c32bde28 | 37582 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37583 | PyObject *resultobj; |
37584 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37585 | int arg2 ; | |
37586 | PyObject * obj0 = 0 ; | |
37587 | PyObject * obj1 = 0 ; | |
37588 | char *kwnames[] = { | |
37589 | (char *) "self",(char *) "mode", NULL | |
37590 | }; | |
37591 | ||
37592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37595 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37596 | if (PyErr_Occurred()) SWIG_fail; |
37597 | { | |
37598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37599 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37600 | ||
37601 | wxPyEndAllowThreads(__tstate); | |
37602 | if (PyErr_Occurred()) SWIG_fail; | |
37603 | } | |
37604 | Py_INCREF(Py_None); resultobj = Py_None; | |
37605 | return resultobj; | |
37606 | fail: | |
37607 | return NULL; | |
37608 | } | |
37609 | ||
37610 | ||
c32bde28 | 37611 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37612 | PyObject *resultobj; |
37613 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37614 | int result; | |
37615 | PyObject * obj0 = 0 ; | |
37616 | char *kwnames[] = { | |
37617 | (char *) "self", NULL | |
37618 | }; | |
37619 | ||
37620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37623 | { | |
37624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37625 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37626 | ||
37627 | wxPyEndAllowThreads(__tstate); | |
37628 | if (PyErr_Occurred()) SWIG_fail; | |
37629 | } | |
c32bde28 | 37630 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37631 | return resultobj; |
37632 | fail: | |
37633 | return NULL; | |
37634 | } | |
37635 | ||
37636 | ||
c32bde28 | 37637 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37638 | PyObject *resultobj; |
37639 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37640 | wxArrayInt *result; | |
37641 | PyObject * obj0 = 0 ; | |
37642 | char *kwnames[] = { | |
37643 | (char *) "self", NULL | |
37644 | }; | |
37645 | ||
37646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37649 | { | |
37650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37651 | { | |
37652 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37653 | result = (wxArrayInt *) &_result_ref; | |
37654 | } | |
37655 | ||
37656 | wxPyEndAllowThreads(__tstate); | |
37657 | if (PyErr_Occurred()) SWIG_fail; | |
37658 | } | |
37659 | { | |
37660 | resultobj = PyList_New(0); | |
37661 | size_t idx; | |
37662 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37663 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37664 | PyList_Append(resultobj, val); | |
37665 | Py_DECREF(val); | |
37666 | } | |
37667 | } | |
37668 | return resultobj; | |
37669 | fail: | |
37670 | return NULL; | |
37671 | } | |
37672 | ||
37673 | ||
c32bde28 | 37674 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37675 | PyObject *resultobj; |
37676 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37677 | wxArrayInt *result; | |
37678 | PyObject * obj0 = 0 ; | |
37679 | char *kwnames[] = { | |
37680 | (char *) "self", NULL | |
37681 | }; | |
37682 | ||
37683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37686 | { | |
37687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37688 | { | |
37689 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37690 | result = (wxArrayInt *) &_result_ref; | |
37691 | } | |
37692 | ||
37693 | wxPyEndAllowThreads(__tstate); | |
37694 | if (PyErr_Occurred()) SWIG_fail; | |
37695 | } | |
37696 | { | |
37697 | resultobj = PyList_New(0); | |
37698 | size_t idx; | |
37699 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37700 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37701 | PyList_Append(resultobj, val); | |
37702 | Py_DECREF(val); | |
37703 | } | |
37704 | } | |
37705 | return resultobj; | |
37706 | fail: | |
37707 | return NULL; | |
37708 | } | |
37709 | ||
37710 | ||
c32bde28 | 37711 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37712 | PyObject *obj; |
37713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37714 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37715 | Py_INCREF(obj); | |
37716 | return Py_BuildValue((char *)""); | |
37717 | } | |
c32bde28 | 37718 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37719 | PyObject *resultobj; |
37720 | int arg1 = (int) 0 ; | |
37721 | int arg2 = (int) 0 ; | |
37722 | wxGBPosition *result; | |
37723 | PyObject * obj0 = 0 ; | |
37724 | PyObject * obj1 = 0 ; | |
37725 | char *kwnames[] = { | |
37726 | (char *) "row",(char *) "col", NULL | |
37727 | }; | |
37728 | ||
37729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37730 | if (obj0) { | |
c32bde28 | 37731 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37732 | if (PyErr_Occurred()) SWIG_fail; |
37733 | } | |
37734 | if (obj1) { | |
c32bde28 | 37735 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37736 | if (PyErr_Occurred()) SWIG_fail; |
37737 | } | |
37738 | { | |
37739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37740 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37741 | ||
37742 | wxPyEndAllowThreads(__tstate); | |
37743 | if (PyErr_Occurred()) SWIG_fail; | |
37744 | } | |
37745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37746 | return resultobj; | |
37747 | fail: | |
37748 | return NULL; | |
37749 | } | |
37750 | ||
37751 | ||
c32bde28 | 37752 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37753 | PyObject *resultobj; |
37754 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37755 | int result; | |
37756 | PyObject * obj0 = 0 ; | |
37757 | char *kwnames[] = { | |
37758 | (char *) "self", NULL | |
37759 | }; | |
37760 | ||
37761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37764 | { | |
37765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37766 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37767 | ||
37768 | wxPyEndAllowThreads(__tstate); | |
37769 | if (PyErr_Occurred()) SWIG_fail; | |
37770 | } | |
c32bde28 | 37771 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37772 | return resultobj; |
37773 | fail: | |
37774 | return NULL; | |
37775 | } | |
37776 | ||
37777 | ||
c32bde28 | 37778 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37779 | PyObject *resultobj; |
37780 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37781 | int result; | |
37782 | PyObject * obj0 = 0 ; | |
37783 | char *kwnames[] = { | |
37784 | (char *) "self", NULL | |
37785 | }; | |
37786 | ||
37787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37790 | { | |
37791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37792 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37793 | ||
37794 | wxPyEndAllowThreads(__tstate); | |
37795 | if (PyErr_Occurred()) SWIG_fail; | |
37796 | } | |
c32bde28 | 37797 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37798 | return resultobj; |
37799 | fail: | |
37800 | return NULL; | |
37801 | } | |
37802 | ||
37803 | ||
c32bde28 | 37804 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37805 | PyObject *resultobj; |
37806 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37807 | int arg2 ; | |
37808 | PyObject * obj0 = 0 ; | |
37809 | PyObject * obj1 = 0 ; | |
37810 | char *kwnames[] = { | |
37811 | (char *) "self",(char *) "row", NULL | |
37812 | }; | |
37813 | ||
37814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37817 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37818 | if (PyErr_Occurred()) SWIG_fail; |
37819 | { | |
37820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37821 | (arg1)->SetRow(arg2); | |
37822 | ||
37823 | wxPyEndAllowThreads(__tstate); | |
37824 | if (PyErr_Occurred()) SWIG_fail; | |
37825 | } | |
37826 | Py_INCREF(Py_None); resultobj = Py_None; | |
37827 | return resultobj; | |
37828 | fail: | |
37829 | return NULL; | |
37830 | } | |
37831 | ||
37832 | ||
c32bde28 | 37833 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37834 | PyObject *resultobj; |
37835 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37836 | int arg2 ; | |
37837 | PyObject * obj0 = 0 ; | |
37838 | PyObject * obj1 = 0 ; | |
37839 | char *kwnames[] = { | |
37840 | (char *) "self",(char *) "col", NULL | |
37841 | }; | |
37842 | ||
37843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37846 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37847 | if (PyErr_Occurred()) SWIG_fail; |
37848 | { | |
37849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37850 | (arg1)->SetCol(arg2); | |
37851 | ||
37852 | wxPyEndAllowThreads(__tstate); | |
37853 | if (PyErr_Occurred()) SWIG_fail; | |
37854 | } | |
37855 | Py_INCREF(Py_None); resultobj = Py_None; | |
37856 | return resultobj; | |
37857 | fail: | |
37858 | return NULL; | |
37859 | } | |
37860 | ||
37861 | ||
c32bde28 | 37862 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37863 | PyObject *resultobj; |
37864 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37865 | wxGBPosition *arg2 = 0 ; | |
37866 | bool result; | |
37867 | wxGBPosition temp2 ; | |
37868 | PyObject * obj0 = 0 ; | |
37869 | PyObject * obj1 = 0 ; | |
37870 | char *kwnames[] = { | |
37871 | (char *) "self",(char *) "other", NULL | |
37872 | }; | |
37873 | ||
37874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37877 | { | |
37878 | arg2 = &temp2; | |
37879 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37880 | } | |
37881 | { | |
37882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37883 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37884 | ||
37885 | wxPyEndAllowThreads(__tstate); | |
37886 | if (PyErr_Occurred()) SWIG_fail; | |
37887 | } | |
37888 | { | |
37889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37890 | } | |
37891 | return resultobj; | |
37892 | fail: | |
37893 | return NULL; | |
37894 | } | |
37895 | ||
37896 | ||
c32bde28 | 37897 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37898 | PyObject *resultobj; |
37899 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37900 | wxGBPosition *arg2 = 0 ; | |
37901 | bool result; | |
37902 | wxGBPosition temp2 ; | |
37903 | PyObject * obj0 = 0 ; | |
37904 | PyObject * obj1 = 0 ; | |
37905 | char *kwnames[] = { | |
37906 | (char *) "self",(char *) "other", NULL | |
37907 | }; | |
37908 | ||
37909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37912 | { | |
37913 | arg2 = &temp2; | |
37914 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37915 | } | |
37916 | { | |
37917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37918 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37919 | ||
37920 | wxPyEndAllowThreads(__tstate); | |
37921 | if (PyErr_Occurred()) SWIG_fail; | |
37922 | } | |
37923 | { | |
37924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37925 | } | |
37926 | return resultobj; | |
37927 | fail: | |
37928 | return NULL; | |
37929 | } | |
37930 | ||
37931 | ||
c32bde28 | 37932 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37933 | PyObject *resultobj; |
37934 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37935 | int arg2 = (int) 0 ; | |
37936 | int arg3 = (int) 0 ; | |
37937 | PyObject * obj0 = 0 ; | |
37938 | PyObject * obj1 = 0 ; | |
37939 | PyObject * obj2 = 0 ; | |
37940 | char *kwnames[] = { | |
37941 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37942 | }; | |
37943 | ||
37944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37947 | if (obj1) { | |
c32bde28 | 37948 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37949 | if (PyErr_Occurred()) SWIG_fail; |
37950 | } | |
37951 | if (obj2) { | |
c32bde28 | 37952 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37953 | if (PyErr_Occurred()) SWIG_fail; |
37954 | } | |
37955 | { | |
37956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37957 | wxGBPosition_Set(arg1,arg2,arg3); | |
37958 | ||
37959 | wxPyEndAllowThreads(__tstate); | |
37960 | if (PyErr_Occurred()) SWIG_fail; | |
37961 | } | |
37962 | Py_INCREF(Py_None); resultobj = Py_None; | |
37963 | return resultobj; | |
37964 | fail: | |
37965 | return NULL; | |
37966 | } | |
37967 | ||
37968 | ||
c32bde28 | 37969 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37970 | PyObject *resultobj; |
37971 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37972 | PyObject *result; | |
37973 | PyObject * obj0 = 0 ; | |
37974 | char *kwnames[] = { | |
37975 | (char *) "self", NULL | |
37976 | }; | |
37977 | ||
37978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37981 | { | |
37982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37983 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37984 | ||
37985 | wxPyEndAllowThreads(__tstate); | |
37986 | if (PyErr_Occurred()) SWIG_fail; | |
37987 | } | |
37988 | resultobj = result; | |
37989 | return resultobj; | |
37990 | fail: | |
37991 | return NULL; | |
37992 | } | |
37993 | ||
37994 | ||
c32bde28 | 37995 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37996 | PyObject *obj; |
37997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37998 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37999 | Py_INCREF(obj); | |
38000 | return Py_BuildValue((char *)""); | |
38001 | } | |
c32bde28 | 38002 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38003 | PyObject *resultobj; |
38004 | int arg1 = (int) 1 ; | |
38005 | int arg2 = (int) 1 ; | |
38006 | wxGBSpan *result; | |
38007 | PyObject * obj0 = 0 ; | |
38008 | PyObject * obj1 = 0 ; | |
38009 | char *kwnames[] = { | |
38010 | (char *) "rowspan",(char *) "colspan", NULL | |
38011 | }; | |
38012 | ||
38013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
38014 | if (obj0) { | |
c32bde28 | 38015 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38016 | if (PyErr_Occurred()) SWIG_fail; |
38017 | } | |
38018 | if (obj1) { | |
c32bde28 | 38019 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38020 | if (PyErr_Occurred()) SWIG_fail; |
38021 | } | |
38022 | { | |
38023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38024 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
38025 | ||
38026 | wxPyEndAllowThreads(__tstate); | |
38027 | if (PyErr_Occurred()) SWIG_fail; | |
38028 | } | |
38029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
38030 | return resultobj; | |
38031 | fail: | |
38032 | return NULL; | |
38033 | } | |
38034 | ||
38035 | ||
c32bde28 | 38036 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38037 | PyObject *resultobj; |
38038 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38039 | int result; | |
38040 | PyObject * obj0 = 0 ; | |
38041 | char *kwnames[] = { | |
38042 | (char *) "self", NULL | |
38043 | }; | |
38044 | ||
38045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
38046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38048 | { | |
38049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38050 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
38051 | ||
38052 | wxPyEndAllowThreads(__tstate); | |
38053 | if (PyErr_Occurred()) SWIG_fail; | |
38054 | } | |
c32bde28 | 38055 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38056 | return resultobj; |
38057 | fail: | |
38058 | return NULL; | |
38059 | } | |
38060 | ||
38061 | ||
c32bde28 | 38062 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38063 | PyObject *resultobj; |
38064 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38065 | int result; | |
38066 | PyObject * obj0 = 0 ; | |
38067 | char *kwnames[] = { | |
38068 | (char *) "self", NULL | |
38069 | }; | |
38070 | ||
38071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
38072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38074 | { | |
38075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38076 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
38077 | ||
38078 | wxPyEndAllowThreads(__tstate); | |
38079 | if (PyErr_Occurred()) SWIG_fail; | |
38080 | } | |
c32bde28 | 38081 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38082 | return resultobj; |
38083 | fail: | |
38084 | return NULL; | |
38085 | } | |
38086 | ||
38087 | ||
c32bde28 | 38088 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38089 | PyObject *resultobj; |
38090 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38091 | int arg2 ; | |
38092 | PyObject * obj0 = 0 ; | |
38093 | PyObject * obj1 = 0 ; | |
38094 | char *kwnames[] = { | |
38095 | (char *) "self",(char *) "rowspan", NULL | |
38096 | }; | |
38097 | ||
38098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
38099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38101 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38102 | if (PyErr_Occurred()) SWIG_fail; |
38103 | { | |
38104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38105 | (arg1)->SetRowspan(arg2); | |
38106 | ||
38107 | wxPyEndAllowThreads(__tstate); | |
38108 | if (PyErr_Occurred()) SWIG_fail; | |
38109 | } | |
38110 | Py_INCREF(Py_None); resultobj = Py_None; | |
38111 | return resultobj; | |
38112 | fail: | |
38113 | return NULL; | |
38114 | } | |
38115 | ||
38116 | ||
c32bde28 | 38117 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38118 | PyObject *resultobj; |
38119 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38120 | int arg2 ; | |
38121 | PyObject * obj0 = 0 ; | |
38122 | PyObject * obj1 = 0 ; | |
38123 | char *kwnames[] = { | |
38124 | (char *) "self",(char *) "colspan", NULL | |
38125 | }; | |
38126 | ||
38127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
38128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38130 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38131 | if (PyErr_Occurred()) SWIG_fail; |
38132 | { | |
38133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38134 | (arg1)->SetColspan(arg2); | |
38135 | ||
38136 | wxPyEndAllowThreads(__tstate); | |
38137 | if (PyErr_Occurred()) SWIG_fail; | |
38138 | } | |
38139 | Py_INCREF(Py_None); resultobj = Py_None; | |
38140 | return resultobj; | |
38141 | fail: | |
38142 | return NULL; | |
38143 | } | |
38144 | ||
38145 | ||
c32bde28 | 38146 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38147 | PyObject *resultobj; |
38148 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38149 | wxGBSpan *arg2 = 0 ; | |
38150 | bool result; | |
38151 | wxGBSpan temp2 ; | |
38152 | PyObject * obj0 = 0 ; | |
38153 | PyObject * obj1 = 0 ; | |
38154 | char *kwnames[] = { | |
38155 | (char *) "self",(char *) "other", NULL | |
38156 | }; | |
38157 | ||
38158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38161 | { | |
38162 | arg2 = &temp2; | |
38163 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38164 | } | |
38165 | { | |
38166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38167 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
38168 | ||
38169 | wxPyEndAllowThreads(__tstate); | |
38170 | if (PyErr_Occurred()) SWIG_fail; | |
38171 | } | |
38172 | { | |
38173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38174 | } | |
38175 | return resultobj; | |
38176 | fail: | |
38177 | return NULL; | |
38178 | } | |
38179 | ||
38180 | ||
c32bde28 | 38181 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38182 | PyObject *resultobj; |
38183 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38184 | wxGBSpan *arg2 = 0 ; | |
38185 | bool result; | |
38186 | wxGBSpan temp2 ; | |
38187 | PyObject * obj0 = 0 ; | |
38188 | PyObject * obj1 = 0 ; | |
38189 | char *kwnames[] = { | |
38190 | (char *) "self",(char *) "other", NULL | |
38191 | }; | |
38192 | ||
38193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38196 | { | |
38197 | arg2 = &temp2; | |
38198 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38199 | } | |
38200 | { | |
38201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38202 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
38203 | ||
38204 | wxPyEndAllowThreads(__tstate); | |
38205 | if (PyErr_Occurred()) SWIG_fail; | |
38206 | } | |
38207 | { | |
38208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38209 | } | |
38210 | return resultobj; | |
38211 | fail: | |
38212 | return NULL; | |
38213 | } | |
38214 | ||
38215 | ||
c32bde28 | 38216 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38217 | PyObject *resultobj; |
38218 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38219 | int arg2 = (int) 1 ; | |
38220 | int arg3 = (int) 1 ; | |
38221 | PyObject * obj0 = 0 ; | |
38222 | PyObject * obj1 = 0 ; | |
38223 | PyObject * obj2 = 0 ; | |
38224 | char *kwnames[] = { | |
38225 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
38226 | }; | |
38227 | ||
38228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38231 | if (obj1) { | |
c32bde28 | 38232 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38233 | if (PyErr_Occurred()) SWIG_fail; |
38234 | } | |
38235 | if (obj2) { | |
c32bde28 | 38236 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38237 | if (PyErr_Occurred()) SWIG_fail; |
38238 | } | |
38239 | { | |
38240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38241 | wxGBSpan_Set(arg1,arg2,arg3); | |
38242 | ||
38243 | wxPyEndAllowThreads(__tstate); | |
38244 | if (PyErr_Occurred()) SWIG_fail; | |
38245 | } | |
38246 | Py_INCREF(Py_None); resultobj = Py_None; | |
38247 | return resultobj; | |
38248 | fail: | |
38249 | return NULL; | |
38250 | } | |
38251 | ||
38252 | ||
c32bde28 | 38253 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38254 | PyObject *resultobj; |
38255 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38256 | PyObject *result; | |
38257 | PyObject * obj0 = 0 ; | |
38258 | char *kwnames[] = { | |
38259 | (char *) "self", NULL | |
38260 | }; | |
38261 | ||
38262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
38263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38265 | { | |
38266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38267 | result = (PyObject *)wxGBSpan_Get(arg1); | |
38268 | ||
38269 | wxPyEndAllowThreads(__tstate); | |
38270 | if (PyErr_Occurred()) SWIG_fail; | |
38271 | } | |
38272 | resultobj = result; | |
38273 | return resultobj; | |
38274 | fail: | |
38275 | return NULL; | |
38276 | } | |
38277 | ||
38278 | ||
c32bde28 | 38279 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38280 | PyObject *obj; |
38281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38282 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
38283 | Py_INCREF(obj); | |
38284 | return Py_BuildValue((char *)""); | |
38285 | } | |
c32bde28 | 38286 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
38287 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
38288 | return 1; | |
38289 | } | |
38290 | ||
38291 | ||
38292 | static PyObject *_wrap_DefaultSpan_get() { | |
38293 | PyObject *pyobj; | |
38294 | ||
38295 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
38296 | return pyobj; | |
38297 | } | |
38298 | ||
38299 | ||
c32bde28 | 38300 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38301 | PyObject *resultobj; |
38302 | wxGBSizerItem *result; | |
38303 | char *kwnames[] = { | |
38304 | NULL | |
38305 | }; | |
38306 | ||
38307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
38308 | { | |
38309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38310 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
38311 | ||
38312 | wxPyEndAllowThreads(__tstate); | |
38313 | if (PyErr_Occurred()) SWIG_fail; | |
38314 | } | |
38315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38316 | return resultobj; | |
38317 | fail: | |
38318 | return NULL; | |
38319 | } | |
38320 | ||
38321 | ||
c32bde28 | 38322 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38323 | PyObject *resultobj; |
38324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38325 | wxGBPosition *arg2 = 0 ; | |
38326 | wxGBSpan *arg3 = 0 ; | |
38327 | int arg4 ; | |
38328 | int arg5 ; | |
248ed943 | 38329 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38330 | wxGBSizerItem *result; |
38331 | wxGBPosition temp2 ; | |
38332 | wxGBSpan temp3 ; | |
38333 | PyObject * obj0 = 0 ; | |
38334 | PyObject * obj1 = 0 ; | |
38335 | PyObject * obj2 = 0 ; | |
38336 | PyObject * obj3 = 0 ; | |
38337 | PyObject * obj4 = 0 ; | |
38338 | PyObject * obj5 = 0 ; | |
38339 | char *kwnames[] = { | |
38340 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38341 | }; | |
38342 | ||
248ed943 | 38343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
38345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38346 | { | |
38347 | arg2 = &temp2; | |
38348 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38349 | } | |
38350 | { | |
38351 | arg3 = &temp3; | |
38352 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38353 | } | |
c32bde28 | 38354 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38355 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38356 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38357 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38358 | if (obj5) { |
38359 | arg6 = obj5; | |
38360 | } | |
d55e5bfc RD |
38361 | { |
38362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38363 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38364 | |
38365 | wxPyEndAllowThreads(__tstate); | |
38366 | if (PyErr_Occurred()) SWIG_fail; | |
38367 | } | |
38368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38369 | return resultobj; | |
38370 | fail: | |
38371 | return NULL; | |
38372 | } | |
38373 | ||
38374 | ||
c32bde28 | 38375 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38376 | PyObject *resultobj; |
38377 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38378 | wxGBPosition *arg2 = 0 ; | |
38379 | wxGBSpan *arg3 = 0 ; | |
38380 | int arg4 ; | |
38381 | int arg5 ; | |
248ed943 | 38382 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38383 | wxGBSizerItem *result; |
38384 | wxGBPosition temp2 ; | |
38385 | wxGBSpan temp3 ; | |
38386 | PyObject * obj0 = 0 ; | |
38387 | PyObject * obj1 = 0 ; | |
38388 | PyObject * obj2 = 0 ; | |
38389 | PyObject * obj3 = 0 ; | |
38390 | PyObject * obj4 = 0 ; | |
38391 | PyObject * obj5 = 0 ; | |
38392 | char *kwnames[] = { | |
38393 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38394 | }; | |
38395 | ||
248ed943 | 38396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
38398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38399 | { | |
38400 | arg2 = &temp2; | |
38401 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38402 | } | |
38403 | { | |
38404 | arg3 = &temp3; | |
38405 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38406 | } | |
c32bde28 | 38407 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38408 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38409 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38410 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38411 | if (obj5) { |
38412 | arg6 = obj5; | |
38413 | } | |
d55e5bfc RD |
38414 | { |
38415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38416 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38417 | |
38418 | wxPyEndAllowThreads(__tstate); | |
38419 | if (PyErr_Occurred()) SWIG_fail; | |
38420 | } | |
38421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38422 | return resultobj; | |
38423 | fail: | |
38424 | return NULL; | |
38425 | } | |
38426 | ||
38427 | ||
c32bde28 | 38428 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38429 | PyObject *resultobj; |
38430 | int arg1 ; | |
38431 | int arg2 ; | |
38432 | wxGBPosition *arg3 = 0 ; | |
38433 | wxGBSpan *arg4 = 0 ; | |
38434 | int arg5 ; | |
38435 | int arg6 ; | |
248ed943 | 38436 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
38437 | wxGBSizerItem *result; |
38438 | wxGBPosition temp3 ; | |
38439 | wxGBSpan temp4 ; | |
38440 | PyObject * obj0 = 0 ; | |
38441 | PyObject * obj1 = 0 ; | |
38442 | PyObject * obj2 = 0 ; | |
38443 | PyObject * obj3 = 0 ; | |
38444 | PyObject * obj4 = 0 ; | |
38445 | PyObject * obj5 = 0 ; | |
38446 | PyObject * obj6 = 0 ; | |
38447 | char *kwnames[] = { | |
38448 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38449 | }; | |
38450 | ||
248ed943 | 38451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 38452 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 38453 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38454 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38455 | if (PyErr_Occurred()) SWIG_fail; |
38456 | { | |
38457 | arg3 = &temp3; | |
38458 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38459 | } | |
38460 | { | |
38461 | arg4 = &temp4; | |
38462 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38463 | } | |
c32bde28 | 38464 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38465 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38466 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 38467 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38468 | if (obj6) { |
38469 | arg7 = obj6; | |
38470 | } | |
d55e5bfc RD |
38471 | { |
38472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38473 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38474 | |
38475 | wxPyEndAllowThreads(__tstate); | |
38476 | if (PyErr_Occurred()) SWIG_fail; | |
38477 | } | |
38478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38479 | return resultobj; | |
38480 | fail: | |
38481 | return NULL; | |
38482 | } | |
38483 | ||
38484 | ||
c32bde28 | 38485 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38486 | PyObject *resultobj; |
38487 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38488 | wxGBPosition result; | |
38489 | PyObject * obj0 = 0 ; | |
38490 | char *kwnames[] = { | |
38491 | (char *) "self", NULL | |
38492 | }; | |
38493 | ||
38494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
38495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38497 | { | |
38498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38499 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38500 | ||
38501 | wxPyEndAllowThreads(__tstate); | |
38502 | if (PyErr_Occurred()) SWIG_fail; | |
38503 | } | |
38504 | { | |
38505 | wxGBPosition * resultptr; | |
38506 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38507 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38508 | } | |
38509 | return resultobj; | |
38510 | fail: | |
38511 | return NULL; | |
38512 | } | |
38513 | ||
38514 | ||
c32bde28 | 38515 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38516 | PyObject *resultobj; |
38517 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38518 | wxGBSpan result; | |
38519 | PyObject * obj0 = 0 ; | |
38520 | char *kwnames[] = { | |
38521 | (char *) "self", NULL | |
38522 | }; | |
38523 | ||
38524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38527 | { | |
38528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38529 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38530 | ||
38531 | wxPyEndAllowThreads(__tstate); | |
38532 | if (PyErr_Occurred()) SWIG_fail; | |
38533 | } | |
38534 | { | |
38535 | wxGBSpan * resultptr; | |
38536 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38537 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38538 | } | |
38539 | return resultobj; | |
38540 | fail: | |
38541 | return NULL; | |
38542 | } | |
38543 | ||
38544 | ||
c32bde28 | 38545 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38546 | PyObject *resultobj; |
38547 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38548 | wxGBPosition *arg2 = 0 ; | |
38549 | bool result; | |
38550 | wxGBPosition temp2 ; | |
38551 | PyObject * obj0 = 0 ; | |
38552 | PyObject * obj1 = 0 ; | |
38553 | char *kwnames[] = { | |
38554 | (char *) "self",(char *) "pos", NULL | |
38555 | }; | |
38556 | ||
38557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38560 | { | |
38561 | arg2 = &temp2; | |
38562 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38563 | } | |
38564 | { | |
38565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38566 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38567 | ||
38568 | wxPyEndAllowThreads(__tstate); | |
38569 | if (PyErr_Occurred()) SWIG_fail; | |
38570 | } | |
38571 | { | |
38572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38573 | } | |
38574 | return resultobj; | |
38575 | fail: | |
38576 | return NULL; | |
38577 | } | |
38578 | ||
38579 | ||
c32bde28 | 38580 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38581 | PyObject *resultobj; |
38582 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38583 | wxGBSpan *arg2 = 0 ; | |
38584 | bool result; | |
38585 | wxGBSpan temp2 ; | |
38586 | PyObject * obj0 = 0 ; | |
38587 | PyObject * obj1 = 0 ; | |
38588 | char *kwnames[] = { | |
38589 | (char *) "self",(char *) "span", NULL | |
38590 | }; | |
38591 | ||
38592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38595 | { | |
38596 | arg2 = &temp2; | |
38597 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38598 | } | |
38599 | { | |
38600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38601 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38602 | ||
38603 | wxPyEndAllowThreads(__tstate); | |
38604 | if (PyErr_Occurred()) SWIG_fail; | |
38605 | } | |
38606 | { | |
38607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38608 | } | |
38609 | return resultobj; | |
38610 | fail: | |
38611 | return NULL; | |
38612 | } | |
38613 | ||
38614 | ||
c32bde28 | 38615 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38616 | PyObject *resultobj; |
38617 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38618 | wxGBSizerItem *arg2 = 0 ; | |
38619 | bool result; | |
38620 | PyObject * obj0 = 0 ; | |
38621 | PyObject * obj1 = 0 ; | |
248ed943 RD |
38622 | char *kwnames[] = { |
38623 | (char *) "self",(char *) "other", NULL | |
38624 | }; | |
d55e5bfc | 38625 | |
248ed943 | 38626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38631 | SWIG_fail; | |
38632 | if (arg2 == NULL) { | |
38633 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38634 | SWIG_fail; | |
38635 | } | |
38636 | { | |
38637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38638 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38639 | ||
38640 | wxPyEndAllowThreads(__tstate); | |
38641 | if (PyErr_Occurred()) SWIG_fail; | |
38642 | } | |
38643 | { | |
38644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38645 | } | |
38646 | return resultobj; | |
38647 | fail: | |
38648 | return NULL; | |
38649 | } | |
38650 | ||
38651 | ||
c32bde28 | 38652 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38653 | PyObject *resultobj; |
38654 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38655 | wxGBPosition *arg2 = 0 ; | |
38656 | wxGBSpan *arg3 = 0 ; | |
38657 | bool result; | |
38658 | wxGBPosition temp2 ; | |
38659 | wxGBSpan temp3 ; | |
38660 | PyObject * obj0 = 0 ; | |
38661 | PyObject * obj1 = 0 ; | |
38662 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38663 | char *kwnames[] = { |
38664 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38665 | }; | |
d55e5bfc | 38666 | |
248ed943 | 38667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38670 | { | |
38671 | arg2 = &temp2; | |
38672 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38673 | } | |
38674 | { | |
38675 | arg3 = &temp3; | |
38676 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38677 | } | |
38678 | { | |
38679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38680 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38681 | ||
38682 | wxPyEndAllowThreads(__tstate); | |
38683 | if (PyErr_Occurred()) SWIG_fail; | |
38684 | } | |
38685 | { | |
38686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38687 | } | |
38688 | return resultobj; | |
38689 | fail: | |
38690 | return NULL; | |
38691 | } | |
38692 | ||
38693 | ||
c32bde28 | 38694 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38695 | PyObject *resultobj; |
38696 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 38697 | wxGBPosition result; |
d55e5bfc | 38698 | PyObject * obj0 = 0 ; |
d55e5bfc | 38699 | char *kwnames[] = { |
248ed943 | 38700 | (char *) "self", NULL |
d55e5bfc RD |
38701 | }; |
38702 | ||
248ed943 | 38703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38706 | { |
38707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38708 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38709 | |
38710 | wxPyEndAllowThreads(__tstate); | |
38711 | if (PyErr_Occurred()) SWIG_fail; | |
38712 | } | |
248ed943 RD |
38713 | { |
38714 | wxGBPosition * resultptr; | |
38715 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38717 | } | |
d55e5bfc RD |
38718 | return resultobj; |
38719 | fail: | |
38720 | return NULL; | |
38721 | } | |
38722 | ||
38723 | ||
c32bde28 | 38724 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38725 | PyObject *resultobj; |
38726 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38727 | wxGridBagSizer *result; | |
38728 | PyObject * obj0 = 0 ; | |
38729 | char *kwnames[] = { | |
38730 | (char *) "self", NULL | |
38731 | }; | |
38732 | ||
38733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38736 | { | |
38737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38738 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38739 | ||
38740 | wxPyEndAllowThreads(__tstate); | |
38741 | if (PyErr_Occurred()) SWIG_fail; | |
38742 | } | |
38743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38744 | return resultobj; | |
38745 | fail: | |
38746 | return NULL; | |
38747 | } | |
38748 | ||
38749 | ||
c32bde28 | 38750 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38751 | PyObject *resultobj; |
38752 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38753 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38754 | PyObject * obj0 = 0 ; | |
38755 | PyObject * obj1 = 0 ; | |
38756 | char *kwnames[] = { | |
38757 | (char *) "self",(char *) "sizer", NULL | |
38758 | }; | |
38759 | ||
38760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38765 | { | |
38766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38767 | (arg1)->SetGBSizer(arg2); | |
38768 | ||
38769 | wxPyEndAllowThreads(__tstate); | |
38770 | if (PyErr_Occurred()) SWIG_fail; | |
38771 | } | |
38772 | Py_INCREF(Py_None); resultobj = Py_None; | |
38773 | return resultobj; | |
38774 | fail: | |
38775 | return NULL; | |
38776 | } | |
38777 | ||
38778 | ||
c32bde28 | 38779 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38780 | PyObject *obj; |
38781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38782 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38783 | Py_INCREF(obj); | |
38784 | return Py_BuildValue((char *)""); | |
38785 | } | |
c32bde28 | 38786 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38787 | PyObject *resultobj; |
38788 | int arg1 = (int) 0 ; | |
38789 | int arg2 = (int) 0 ; | |
38790 | wxGridBagSizer *result; | |
38791 | PyObject * obj0 = 0 ; | |
38792 | PyObject * obj1 = 0 ; | |
38793 | char *kwnames[] = { | |
38794 | (char *) "vgap",(char *) "hgap", NULL | |
38795 | }; | |
38796 | ||
38797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38798 | if (obj0) { | |
c32bde28 | 38799 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38800 | if (PyErr_Occurred()) SWIG_fail; |
38801 | } | |
38802 | if (obj1) { | |
c32bde28 | 38803 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38804 | if (PyErr_Occurred()) SWIG_fail; |
38805 | } | |
38806 | { | |
38807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38808 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38809 | ||
38810 | wxPyEndAllowThreads(__tstate); | |
38811 | if (PyErr_Occurred()) SWIG_fail; | |
38812 | } | |
38813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38814 | return resultobj; | |
38815 | fail: | |
38816 | return NULL; | |
38817 | } | |
38818 | ||
38819 | ||
c32bde28 | 38820 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38821 | PyObject *resultobj; |
38822 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38823 | PyObject *arg2 = (PyObject *) 0 ; | |
38824 | wxGBPosition *arg3 = 0 ; | |
38825 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38826 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38827 | int arg5 = (int) 0 ; | |
38828 | int arg6 = (int) 0 ; | |
38829 | PyObject *arg7 = (PyObject *) NULL ; | |
38830 | bool result; | |
38831 | wxGBPosition temp3 ; | |
38832 | wxGBSpan temp4 ; | |
38833 | PyObject * obj0 = 0 ; | |
38834 | PyObject * obj1 = 0 ; | |
38835 | PyObject * obj2 = 0 ; | |
38836 | PyObject * obj3 = 0 ; | |
38837 | PyObject * obj4 = 0 ; | |
38838 | PyObject * obj5 = 0 ; | |
38839 | PyObject * obj6 = 0 ; | |
38840 | char *kwnames[] = { | |
38841 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38842 | }; | |
38843 | ||
38844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38847 | arg2 = obj1; | |
38848 | { | |
38849 | arg3 = &temp3; | |
38850 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38851 | } | |
38852 | if (obj3) { | |
38853 | { | |
38854 | arg4 = &temp4; | |
38855 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38856 | } | |
38857 | } | |
38858 | if (obj4) { | |
c32bde28 | 38859 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
38860 | if (PyErr_Occurred()) SWIG_fail; |
38861 | } | |
38862 | if (obj5) { | |
c32bde28 | 38863 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
38864 | if (PyErr_Occurred()) SWIG_fail; |
38865 | } | |
38866 | if (obj6) { | |
38867 | arg7 = obj6; | |
38868 | } | |
38869 | { | |
38870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38871 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
38872 | ||
38873 | wxPyEndAllowThreads(__tstate); | |
38874 | if (PyErr_Occurred()) SWIG_fail; | |
38875 | } | |
38876 | { | |
38877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38878 | } | |
38879 | return resultobj; | |
38880 | fail: | |
38881 | return NULL; | |
38882 | } | |
38883 | ||
38884 | ||
c32bde28 | 38885 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38886 | PyObject *resultobj; |
38887 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38888 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38889 | bool result; | |
38890 | PyObject * obj0 = 0 ; | |
38891 | PyObject * obj1 = 0 ; | |
38892 | char *kwnames[] = { | |
38893 | (char *) "self",(char *) "item", NULL | |
38894 | }; | |
38895 | ||
38896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38901 | { | |
38902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38903 | result = (bool)(arg1)->Add(arg2); | |
38904 | ||
38905 | wxPyEndAllowThreads(__tstate); | |
38906 | if (PyErr_Occurred()) SWIG_fail; | |
38907 | } | |
38908 | { | |
38909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38910 | } | |
38911 | return resultobj; | |
38912 | fail: | |
38913 | return NULL; | |
38914 | } | |
38915 | ||
38916 | ||
c32bde28 | 38917 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38918 | PyObject *resultobj; |
38919 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38920 | wxSize result; | |
38921 | PyObject * obj0 = 0 ; | |
38922 | char *kwnames[] = { | |
38923 | (char *) "self", NULL | |
38924 | }; | |
38925 | ||
38926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38929 | { | |
38930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38931 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38932 | ||
38933 | wxPyEndAllowThreads(__tstate); | |
38934 | if (PyErr_Occurred()) SWIG_fail; | |
38935 | } | |
38936 | { | |
38937 | wxSize * resultptr; | |
38938 | resultptr = new wxSize((wxSize &) result); | |
38939 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38940 | } | |
38941 | return resultobj; | |
38942 | fail: | |
38943 | return NULL; | |
38944 | } | |
38945 | ||
38946 | ||
c32bde28 | 38947 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38948 | PyObject *resultobj; |
38949 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38950 | wxSize *arg2 = 0 ; | |
38951 | wxSize temp2 ; | |
38952 | PyObject * obj0 = 0 ; | |
38953 | PyObject * obj1 = 0 ; | |
38954 | char *kwnames[] = { | |
38955 | (char *) "self",(char *) "sz", NULL | |
38956 | }; | |
38957 | ||
38958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38961 | { | |
38962 | arg2 = &temp2; | |
38963 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38964 | } | |
38965 | { | |
38966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38967 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38968 | ||
38969 | wxPyEndAllowThreads(__tstate); | |
38970 | if (PyErr_Occurred()) SWIG_fail; | |
38971 | } | |
38972 | Py_INCREF(Py_None); resultobj = Py_None; | |
38973 | return resultobj; | |
38974 | fail: | |
38975 | return NULL; | |
38976 | } | |
38977 | ||
38978 | ||
c32bde28 | 38979 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38980 | PyObject *resultobj; |
38981 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38982 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38983 | wxGBPosition result; | |
38984 | PyObject * obj0 = 0 ; | |
38985 | PyObject * obj1 = 0 ; | |
38986 | ||
38987 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38992 | { | |
38993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38994 | result = (arg1)->GetItemPosition(arg2); | |
38995 | ||
38996 | wxPyEndAllowThreads(__tstate); | |
38997 | if (PyErr_Occurred()) SWIG_fail; | |
38998 | } | |
38999 | { | |
39000 | wxGBPosition * resultptr; | |
39001 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39003 | } | |
39004 | return resultobj; | |
39005 | fail: | |
39006 | return NULL; | |
39007 | } | |
39008 | ||
39009 | ||
c32bde28 | 39010 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39011 | PyObject *resultobj; |
39012 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39013 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39014 | wxGBPosition result; | |
39015 | PyObject * obj0 = 0 ; | |
39016 | PyObject * obj1 = 0 ; | |
39017 | ||
39018 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39021 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39023 | { | |
39024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39025 | result = (arg1)->GetItemPosition(arg2); | |
39026 | ||
39027 | wxPyEndAllowThreads(__tstate); | |
39028 | if (PyErr_Occurred()) SWIG_fail; | |
39029 | } | |
39030 | { | |
39031 | wxGBPosition * resultptr; | |
39032 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39033 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39034 | } | |
39035 | return resultobj; | |
39036 | fail: | |
39037 | return NULL; | |
39038 | } | |
39039 | ||
39040 | ||
c32bde28 | 39041 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39042 | PyObject *resultobj; |
39043 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39044 | size_t arg2 ; | |
39045 | wxGBPosition result; | |
39046 | PyObject * obj0 = 0 ; | |
39047 | PyObject * obj1 = 0 ; | |
39048 | ||
39049 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39052 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39053 | if (PyErr_Occurred()) SWIG_fail; |
39054 | { | |
39055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39056 | result = (arg1)->GetItemPosition(arg2); | |
39057 | ||
39058 | wxPyEndAllowThreads(__tstate); | |
39059 | if (PyErr_Occurred()) SWIG_fail; | |
39060 | } | |
39061 | { | |
39062 | wxGBPosition * resultptr; | |
39063 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39064 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39065 | } | |
39066 | return resultobj; | |
39067 | fail: | |
39068 | return NULL; | |
39069 | } | |
39070 | ||
39071 | ||
39072 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
39073 | int argc; | |
39074 | PyObject *argv[3]; | |
39075 | int ii; | |
39076 | ||
39077 | argc = PyObject_Length(args); | |
39078 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39079 | argv[ii] = PyTuple_GetItem(args,ii); | |
39080 | } | |
39081 | if (argc == 2) { | |
39082 | int _v; | |
39083 | { | |
39084 | void *ptr; | |
39085 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39086 | _v = 0; | |
39087 | PyErr_Clear(); | |
39088 | } else { | |
39089 | _v = 1; | |
39090 | } | |
39091 | } | |
39092 | if (_v) { | |
39093 | { | |
39094 | void *ptr; | |
39095 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39096 | _v = 0; | |
39097 | PyErr_Clear(); | |
39098 | } else { | |
39099 | _v = 1; | |
39100 | } | |
39101 | } | |
39102 | if (_v) { | |
39103 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
39104 | } | |
39105 | } | |
39106 | } | |
39107 | if (argc == 2) { | |
39108 | int _v; | |
39109 | { | |
39110 | void *ptr; | |
39111 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39112 | _v = 0; | |
39113 | PyErr_Clear(); | |
39114 | } else { | |
39115 | _v = 1; | |
39116 | } | |
39117 | } | |
39118 | if (_v) { | |
39119 | { | |
39120 | void *ptr; | |
39121 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39122 | _v = 0; | |
39123 | PyErr_Clear(); | |
39124 | } else { | |
39125 | _v = 1; | |
39126 | } | |
39127 | } | |
39128 | if (_v) { | |
39129 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
39130 | } | |
39131 | } | |
39132 | } | |
39133 | if (argc == 2) { | |
39134 | int _v; | |
39135 | { | |
39136 | void *ptr; | |
39137 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39138 | _v = 0; | |
39139 | PyErr_Clear(); | |
39140 | } else { | |
39141 | _v = 1; | |
39142 | } | |
39143 | } | |
39144 | if (_v) { | |
c32bde28 | 39145 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39146 | if (_v) { |
39147 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
39148 | } | |
39149 | } | |
39150 | } | |
39151 | ||
39152 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
39153 | return NULL; | |
39154 | } | |
39155 | ||
39156 | ||
c32bde28 | 39157 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39158 | PyObject *resultobj; |
39159 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39160 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39161 | wxGBPosition *arg3 = 0 ; | |
39162 | bool result; | |
39163 | wxGBPosition temp3 ; | |
39164 | PyObject * obj0 = 0 ; | |
39165 | PyObject * obj1 = 0 ; | |
39166 | PyObject * obj2 = 0 ; | |
39167 | ||
39168 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39171 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39173 | { | |
39174 | arg3 = &temp3; | |
39175 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39176 | } | |
39177 | { | |
39178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39179 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39180 | ||
39181 | wxPyEndAllowThreads(__tstate); | |
39182 | if (PyErr_Occurred()) SWIG_fail; | |
39183 | } | |
39184 | { | |
39185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39186 | } | |
39187 | return resultobj; | |
39188 | fail: | |
39189 | return NULL; | |
39190 | } | |
39191 | ||
39192 | ||
c32bde28 | 39193 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39194 | PyObject *resultobj; |
39195 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39196 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39197 | wxGBPosition *arg3 = 0 ; | |
39198 | bool result; | |
39199 | wxGBPosition temp3 ; | |
39200 | PyObject * obj0 = 0 ; | |
39201 | PyObject * obj1 = 0 ; | |
39202 | PyObject * obj2 = 0 ; | |
39203 | ||
39204 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39209 | { | |
39210 | arg3 = &temp3; | |
39211 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39212 | } | |
39213 | { | |
39214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39215 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39216 | ||
39217 | wxPyEndAllowThreads(__tstate); | |
39218 | if (PyErr_Occurred()) SWIG_fail; | |
39219 | } | |
39220 | { | |
39221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39222 | } | |
39223 | return resultobj; | |
39224 | fail: | |
39225 | return NULL; | |
39226 | } | |
39227 | ||
39228 | ||
c32bde28 | 39229 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39230 | PyObject *resultobj; |
39231 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39232 | size_t arg2 ; | |
39233 | wxGBPosition *arg3 = 0 ; | |
39234 | bool result; | |
39235 | wxGBPosition temp3 ; | |
39236 | PyObject * obj0 = 0 ; | |
39237 | PyObject * obj1 = 0 ; | |
39238 | PyObject * obj2 = 0 ; | |
39239 | ||
39240 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39243 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39244 | if (PyErr_Occurred()) SWIG_fail; |
39245 | { | |
39246 | arg3 = &temp3; | |
39247 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39248 | } | |
39249 | { | |
39250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39251 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39252 | ||
39253 | wxPyEndAllowThreads(__tstate); | |
39254 | if (PyErr_Occurred()) SWIG_fail; | |
39255 | } | |
39256 | { | |
39257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39258 | } | |
39259 | return resultobj; | |
39260 | fail: | |
39261 | return NULL; | |
39262 | } | |
39263 | ||
39264 | ||
39265 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
39266 | int argc; | |
39267 | PyObject *argv[4]; | |
39268 | int ii; | |
39269 | ||
39270 | argc = PyObject_Length(args); | |
39271 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39272 | argv[ii] = PyTuple_GetItem(args,ii); | |
39273 | } | |
39274 | if (argc == 3) { | |
39275 | int _v; | |
39276 | { | |
39277 | void *ptr; | |
39278 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39279 | _v = 0; | |
39280 | PyErr_Clear(); | |
39281 | } else { | |
39282 | _v = 1; | |
39283 | } | |
39284 | } | |
39285 | if (_v) { | |
39286 | { | |
39287 | void *ptr; | |
39288 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39289 | _v = 0; | |
39290 | PyErr_Clear(); | |
39291 | } else { | |
39292 | _v = 1; | |
39293 | } | |
39294 | } | |
39295 | if (_v) { | |
39296 | { | |
39297 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39298 | } | |
39299 | if (_v) { | |
39300 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
39301 | } | |
39302 | } | |
39303 | } | |
39304 | } | |
39305 | if (argc == 3) { | |
39306 | int _v; | |
39307 | { | |
39308 | void *ptr; | |
39309 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39310 | _v = 0; | |
39311 | PyErr_Clear(); | |
39312 | } else { | |
39313 | _v = 1; | |
39314 | } | |
39315 | } | |
39316 | if (_v) { | |
39317 | { | |
39318 | void *ptr; | |
39319 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39320 | _v = 0; | |
39321 | PyErr_Clear(); | |
39322 | } else { | |
39323 | _v = 1; | |
39324 | } | |
39325 | } | |
39326 | if (_v) { | |
39327 | { | |
39328 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39329 | } | |
39330 | if (_v) { | |
39331 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
39332 | } | |
39333 | } | |
39334 | } | |
39335 | } | |
39336 | if (argc == 3) { | |
39337 | int _v; | |
39338 | { | |
39339 | void *ptr; | |
39340 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39341 | _v = 0; | |
39342 | PyErr_Clear(); | |
39343 | } else { | |
39344 | _v = 1; | |
39345 | } | |
39346 | } | |
39347 | if (_v) { | |
c32bde28 | 39348 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39349 | if (_v) { |
39350 | { | |
39351 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39352 | } | |
39353 | if (_v) { | |
39354 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
39355 | } | |
39356 | } | |
39357 | } | |
39358 | } | |
39359 | ||
39360 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
39361 | return NULL; | |
39362 | } | |
39363 | ||
39364 | ||
c32bde28 | 39365 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39366 | PyObject *resultobj; |
39367 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39368 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39369 | wxGBSpan result; | |
39370 | PyObject * obj0 = 0 ; | |
39371 | PyObject * obj1 = 0 ; | |
39372 | ||
39373 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39378 | { | |
39379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39380 | result = (arg1)->GetItemSpan(arg2); | |
39381 | ||
39382 | wxPyEndAllowThreads(__tstate); | |
39383 | if (PyErr_Occurred()) SWIG_fail; | |
39384 | } | |
39385 | { | |
39386 | wxGBSpan * resultptr; | |
39387 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39388 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39389 | } | |
39390 | return resultobj; | |
39391 | fail: | |
39392 | return NULL; | |
39393 | } | |
39394 | ||
39395 | ||
c32bde28 | 39396 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39397 | PyObject *resultobj; |
39398 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39399 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39400 | wxGBSpan result; | |
39401 | PyObject * obj0 = 0 ; | |
39402 | PyObject * obj1 = 0 ; | |
39403 | ||
39404 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39407 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39409 | { | |
39410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39411 | result = (arg1)->GetItemSpan(arg2); | |
39412 | ||
39413 | wxPyEndAllowThreads(__tstate); | |
39414 | if (PyErr_Occurred()) SWIG_fail; | |
39415 | } | |
39416 | { | |
39417 | wxGBSpan * resultptr; | |
39418 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39420 | } | |
39421 | return resultobj; | |
39422 | fail: | |
39423 | return NULL; | |
39424 | } | |
39425 | ||
39426 | ||
c32bde28 | 39427 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39428 | PyObject *resultobj; |
39429 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39430 | size_t arg2 ; | |
39431 | wxGBSpan result; | |
39432 | PyObject * obj0 = 0 ; | |
39433 | PyObject * obj1 = 0 ; | |
39434 | ||
39435 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39438 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39439 | if (PyErr_Occurred()) SWIG_fail; |
39440 | { | |
39441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39442 | result = (arg1)->GetItemSpan(arg2); | |
39443 | ||
39444 | wxPyEndAllowThreads(__tstate); | |
39445 | if (PyErr_Occurred()) SWIG_fail; | |
39446 | } | |
39447 | { | |
39448 | wxGBSpan * resultptr; | |
39449 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39450 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39451 | } | |
39452 | return resultobj; | |
39453 | fail: | |
39454 | return NULL; | |
39455 | } | |
39456 | ||
39457 | ||
39458 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39459 | int argc; | |
39460 | PyObject *argv[3]; | |
39461 | int ii; | |
39462 | ||
39463 | argc = PyObject_Length(args); | |
39464 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39465 | argv[ii] = PyTuple_GetItem(args,ii); | |
39466 | } | |
39467 | if (argc == 2) { | |
39468 | int _v; | |
39469 | { | |
39470 | void *ptr; | |
39471 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39472 | _v = 0; | |
39473 | PyErr_Clear(); | |
39474 | } else { | |
39475 | _v = 1; | |
39476 | } | |
39477 | } | |
39478 | if (_v) { | |
39479 | { | |
39480 | void *ptr; | |
39481 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39482 | _v = 0; | |
39483 | PyErr_Clear(); | |
39484 | } else { | |
39485 | _v = 1; | |
39486 | } | |
39487 | } | |
39488 | if (_v) { | |
39489 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39490 | } | |
39491 | } | |
39492 | } | |
39493 | if (argc == 2) { | |
39494 | int _v; | |
39495 | { | |
39496 | void *ptr; | |
39497 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39498 | _v = 0; | |
39499 | PyErr_Clear(); | |
39500 | } else { | |
39501 | _v = 1; | |
39502 | } | |
39503 | } | |
39504 | if (_v) { | |
39505 | { | |
39506 | void *ptr; | |
39507 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39508 | _v = 0; | |
39509 | PyErr_Clear(); | |
39510 | } else { | |
39511 | _v = 1; | |
39512 | } | |
39513 | } | |
39514 | if (_v) { | |
39515 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39516 | } | |
39517 | } | |
39518 | } | |
39519 | if (argc == 2) { | |
39520 | int _v; | |
39521 | { | |
39522 | void *ptr; | |
39523 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39524 | _v = 0; | |
39525 | PyErr_Clear(); | |
39526 | } else { | |
39527 | _v = 1; | |
39528 | } | |
39529 | } | |
39530 | if (_v) { | |
c32bde28 | 39531 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39532 | if (_v) { |
39533 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39534 | } | |
39535 | } | |
39536 | } | |
39537 | ||
39538 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39539 | return NULL; | |
39540 | } | |
39541 | ||
39542 | ||
c32bde28 | 39543 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39544 | PyObject *resultobj; |
39545 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39546 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39547 | wxGBSpan *arg3 = 0 ; | |
39548 | bool result; | |
39549 | wxGBSpan temp3 ; | |
39550 | PyObject * obj0 = 0 ; | |
39551 | PyObject * obj1 = 0 ; | |
39552 | PyObject * obj2 = 0 ; | |
39553 | ||
39554 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39559 | { | |
39560 | arg3 = &temp3; | |
39561 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39562 | } | |
39563 | { | |
39564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39565 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39566 | ||
39567 | wxPyEndAllowThreads(__tstate); | |
39568 | if (PyErr_Occurred()) SWIG_fail; | |
39569 | } | |
39570 | { | |
39571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39572 | } | |
39573 | return resultobj; | |
39574 | fail: | |
39575 | return NULL; | |
39576 | } | |
39577 | ||
39578 | ||
c32bde28 | 39579 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39580 | PyObject *resultobj; |
39581 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39582 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39583 | wxGBSpan *arg3 = 0 ; | |
39584 | bool result; | |
39585 | wxGBSpan temp3 ; | |
39586 | PyObject * obj0 = 0 ; | |
39587 | PyObject * obj1 = 0 ; | |
39588 | PyObject * obj2 = 0 ; | |
39589 | ||
39590 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39595 | { | |
39596 | arg3 = &temp3; | |
39597 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39598 | } | |
39599 | { | |
39600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39601 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39602 | ||
39603 | wxPyEndAllowThreads(__tstate); | |
39604 | if (PyErr_Occurred()) SWIG_fail; | |
39605 | } | |
39606 | { | |
39607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39608 | } | |
39609 | return resultobj; | |
39610 | fail: | |
39611 | return NULL; | |
39612 | } | |
39613 | ||
39614 | ||
c32bde28 | 39615 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39616 | PyObject *resultobj; |
39617 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39618 | size_t arg2 ; | |
39619 | wxGBSpan *arg3 = 0 ; | |
39620 | bool result; | |
39621 | wxGBSpan temp3 ; | |
39622 | PyObject * obj0 = 0 ; | |
39623 | PyObject * obj1 = 0 ; | |
39624 | PyObject * obj2 = 0 ; | |
39625 | ||
39626 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39629 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39630 | if (PyErr_Occurred()) SWIG_fail; |
39631 | { | |
39632 | arg3 = &temp3; | |
39633 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39634 | } | |
39635 | { | |
39636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39637 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39638 | ||
39639 | wxPyEndAllowThreads(__tstate); | |
39640 | if (PyErr_Occurred()) SWIG_fail; | |
39641 | } | |
39642 | { | |
39643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39644 | } | |
39645 | return resultobj; | |
39646 | fail: | |
39647 | return NULL; | |
39648 | } | |
39649 | ||
39650 | ||
39651 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39652 | int argc; | |
39653 | PyObject *argv[4]; | |
39654 | int ii; | |
39655 | ||
39656 | argc = PyObject_Length(args); | |
39657 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39658 | argv[ii] = PyTuple_GetItem(args,ii); | |
39659 | } | |
39660 | if (argc == 3) { | |
39661 | int _v; | |
39662 | { | |
39663 | void *ptr; | |
39664 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39665 | _v = 0; | |
39666 | PyErr_Clear(); | |
39667 | } else { | |
39668 | _v = 1; | |
39669 | } | |
39670 | } | |
39671 | if (_v) { | |
39672 | { | |
39673 | void *ptr; | |
39674 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39675 | _v = 0; | |
39676 | PyErr_Clear(); | |
39677 | } else { | |
39678 | _v = 1; | |
39679 | } | |
39680 | } | |
39681 | if (_v) { | |
39682 | { | |
39683 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39684 | } | |
39685 | if (_v) { | |
39686 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39687 | } | |
39688 | } | |
39689 | } | |
39690 | } | |
39691 | if (argc == 3) { | |
39692 | int _v; | |
39693 | { | |
39694 | void *ptr; | |
39695 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39696 | _v = 0; | |
39697 | PyErr_Clear(); | |
39698 | } else { | |
39699 | _v = 1; | |
39700 | } | |
39701 | } | |
39702 | if (_v) { | |
39703 | { | |
39704 | void *ptr; | |
39705 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39706 | _v = 0; | |
39707 | PyErr_Clear(); | |
39708 | } else { | |
39709 | _v = 1; | |
39710 | } | |
39711 | } | |
39712 | if (_v) { | |
39713 | { | |
39714 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39715 | } | |
39716 | if (_v) { | |
39717 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39718 | } | |
39719 | } | |
39720 | } | |
39721 | } | |
39722 | if (argc == 3) { | |
39723 | int _v; | |
39724 | { | |
39725 | void *ptr; | |
39726 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39727 | _v = 0; | |
39728 | PyErr_Clear(); | |
39729 | } else { | |
39730 | _v = 1; | |
39731 | } | |
39732 | } | |
39733 | if (_v) { | |
c32bde28 | 39734 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39735 | if (_v) { |
39736 | { | |
39737 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39738 | } | |
39739 | if (_v) { | |
39740 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39741 | } | |
39742 | } | |
39743 | } | |
39744 | } | |
39745 | ||
39746 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39747 | return NULL; | |
39748 | } | |
39749 | ||
39750 | ||
c32bde28 | 39751 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39752 | PyObject *resultobj; |
39753 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39754 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39755 | wxGBSizerItem *result; | |
39756 | PyObject * obj0 = 0 ; | |
39757 | PyObject * obj1 = 0 ; | |
39758 | ||
39759 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39764 | { | |
39765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39766 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39767 | ||
39768 | wxPyEndAllowThreads(__tstate); | |
39769 | if (PyErr_Occurred()) SWIG_fail; | |
39770 | } | |
39771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39772 | return resultobj; | |
39773 | fail: | |
39774 | return NULL; | |
39775 | } | |
39776 | ||
39777 | ||
c32bde28 | 39778 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39779 | PyObject *resultobj; |
39780 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39781 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39782 | wxGBSizerItem *result; | |
39783 | PyObject * obj0 = 0 ; | |
39784 | PyObject * obj1 = 0 ; | |
39785 | ||
39786 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39789 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39791 | { | |
39792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39793 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39794 | ||
39795 | wxPyEndAllowThreads(__tstate); | |
39796 | if (PyErr_Occurred()) SWIG_fail; | |
39797 | } | |
39798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39799 | return resultobj; | |
39800 | fail: | |
39801 | return NULL; | |
39802 | } | |
39803 | ||
39804 | ||
39805 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39806 | int argc; | |
39807 | PyObject *argv[3]; | |
39808 | int ii; | |
39809 | ||
39810 | argc = PyObject_Length(args); | |
39811 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39812 | argv[ii] = PyTuple_GetItem(args,ii); | |
39813 | } | |
39814 | if (argc == 2) { | |
39815 | int _v; | |
39816 | { | |
39817 | void *ptr; | |
39818 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39819 | _v = 0; | |
39820 | PyErr_Clear(); | |
39821 | } else { | |
39822 | _v = 1; | |
39823 | } | |
39824 | } | |
39825 | if (_v) { | |
39826 | { | |
39827 | void *ptr; | |
39828 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39829 | _v = 0; | |
39830 | PyErr_Clear(); | |
39831 | } else { | |
39832 | _v = 1; | |
39833 | } | |
39834 | } | |
39835 | if (_v) { | |
39836 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39837 | } | |
39838 | } | |
39839 | } | |
39840 | if (argc == 2) { | |
39841 | int _v; | |
39842 | { | |
39843 | void *ptr; | |
39844 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39845 | _v = 0; | |
39846 | PyErr_Clear(); | |
39847 | } else { | |
39848 | _v = 1; | |
39849 | } | |
39850 | } | |
39851 | if (_v) { | |
39852 | { | |
39853 | void *ptr; | |
39854 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39855 | _v = 0; | |
39856 | PyErr_Clear(); | |
39857 | } else { | |
39858 | _v = 1; | |
39859 | } | |
39860 | } | |
39861 | if (_v) { | |
39862 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39863 | } | |
39864 | } | |
39865 | } | |
39866 | ||
39867 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39868 | return NULL; | |
39869 | } | |
39870 | ||
39871 | ||
c32bde28 | 39872 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39873 | PyObject *resultobj; |
39874 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39875 | wxGBPosition *arg2 = 0 ; | |
39876 | wxGBSizerItem *result; | |
39877 | wxGBPosition temp2 ; | |
39878 | PyObject * obj0 = 0 ; | |
39879 | PyObject * obj1 = 0 ; | |
39880 | char *kwnames[] = { | |
39881 | (char *) "self",(char *) "pos", NULL | |
39882 | }; | |
39883 | ||
39884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39887 | { | |
39888 | arg2 = &temp2; | |
39889 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39890 | } | |
39891 | { | |
39892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39893 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39894 | ||
39895 | wxPyEndAllowThreads(__tstate); | |
39896 | if (PyErr_Occurred()) SWIG_fail; | |
39897 | } | |
39898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39899 | return resultobj; | |
39900 | fail: | |
39901 | return NULL; | |
39902 | } | |
39903 | ||
39904 | ||
c32bde28 | 39905 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39906 | PyObject *resultobj; |
39907 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39908 | wxPoint *arg2 = 0 ; | |
39909 | wxGBSizerItem *result; | |
39910 | wxPoint temp2 ; | |
39911 | PyObject * obj0 = 0 ; | |
39912 | PyObject * obj1 = 0 ; | |
39913 | char *kwnames[] = { | |
39914 | (char *) "self",(char *) "pt", NULL | |
39915 | }; | |
39916 | ||
39917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39920 | { | |
39921 | arg2 = &temp2; | |
39922 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39923 | } | |
39924 | { | |
39925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39926 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39927 | ||
39928 | wxPyEndAllowThreads(__tstate); | |
39929 | if (PyErr_Occurred()) SWIG_fail; | |
39930 | } | |
39931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39932 | return resultobj; | |
39933 | fail: | |
39934 | return NULL; | |
39935 | } | |
39936 | ||
39937 | ||
c32bde28 | 39938 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39939 | PyObject *resultobj; |
39940 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39941 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39942 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39943 | bool result; | |
39944 | PyObject * obj0 = 0 ; | |
39945 | PyObject * obj1 = 0 ; | |
39946 | PyObject * obj2 = 0 ; | |
248ed943 RD |
39947 | char *kwnames[] = { |
39948 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
39949 | }; | |
d55e5bfc | 39950 | |
248ed943 | 39951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
39952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39954 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39956 | if (obj2) { | |
39957 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39959 | } | |
39960 | { | |
39961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39962 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39963 | ||
39964 | wxPyEndAllowThreads(__tstate); | |
39965 | if (PyErr_Occurred()) SWIG_fail; | |
39966 | } | |
39967 | { | |
39968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39969 | } | |
39970 | return resultobj; | |
39971 | fail: | |
39972 | return NULL; | |
39973 | } | |
39974 | ||
39975 | ||
c32bde28 | 39976 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39977 | PyObject *resultobj; |
39978 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39979 | wxGBPosition *arg2 = 0 ; | |
39980 | wxGBSpan *arg3 = 0 ; | |
39981 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39982 | bool result; | |
39983 | wxGBPosition temp2 ; | |
39984 | wxGBSpan temp3 ; | |
39985 | PyObject * obj0 = 0 ; | |
39986 | PyObject * obj1 = 0 ; | |
39987 | PyObject * obj2 = 0 ; | |
39988 | PyObject * obj3 = 0 ; | |
248ed943 RD |
39989 | char *kwnames[] = { |
39990 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
39991 | }; | |
d55e5bfc | 39992 | |
248ed943 | 39993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
39994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39996 | { | |
39997 | arg2 = &temp2; | |
39998 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39999 | } | |
40000 | { | |
40001 | arg3 = &temp3; | |
40002 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
40003 | } | |
40004 | if (obj3) { | |
40005 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
40006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40007 | } | |
40008 | { | |
40009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40010 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
40011 | ||
40012 | wxPyEndAllowThreads(__tstate); | |
40013 | if (PyErr_Occurred()) SWIG_fail; | |
40014 | } | |
40015 | { | |
40016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40017 | } | |
40018 | return resultobj; | |
40019 | fail: | |
40020 | return NULL; | |
40021 | } | |
40022 | ||
40023 | ||
c32bde28 | 40024 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40025 | PyObject *obj; |
40026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40027 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
40028 | Py_INCREF(obj); | |
40029 | return Py_BuildValue((char *)""); | |
40030 | } | |
c32bde28 | 40031 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40032 | PyObject *resultobj; |
40033 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40034 | int arg2 ; | |
40035 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40036 | int arg4 ; | |
40037 | int arg5 = (int) 0 ; | |
40038 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
40039 | PyObject * obj0 = 0 ; | |
40040 | PyObject * obj1 = 0 ; | |
40041 | PyObject * obj2 = 0 ; | |
40042 | PyObject * obj3 = 0 ; | |
40043 | PyObject * obj4 = 0 ; | |
40044 | PyObject * obj5 = 0 ; | |
40045 | char *kwnames[] = { | |
40046 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
40047 | }; | |
40048 | ||
40049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
40050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40052 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40053 | if (PyErr_Occurred()) SWIG_fail; |
40054 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40056 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40057 | if (PyErr_Occurred()) SWIG_fail; |
40058 | if (obj4) { | |
c32bde28 | 40059 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
40060 | if (PyErr_Occurred()) SWIG_fail; |
40061 | } | |
40062 | if (obj5) { | |
c32bde28 | 40063 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
40064 | if (PyErr_Occurred()) SWIG_fail; |
40065 | } | |
40066 | { | |
40067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40068 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
40069 | ||
40070 | wxPyEndAllowThreads(__tstate); | |
40071 | if (PyErr_Occurred()) SWIG_fail; | |
40072 | } | |
40073 | Py_INCREF(Py_None); resultobj = Py_None; | |
40074 | return resultobj; | |
40075 | fail: | |
40076 | return NULL; | |
40077 | } | |
40078 | ||
40079 | ||
c32bde28 | 40080 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40081 | PyObject *resultobj; |
40082 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40083 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40084 | int arg3 = (int) 0 ; | |
40085 | PyObject * obj0 = 0 ; | |
40086 | PyObject * obj1 = 0 ; | |
40087 | PyObject * obj2 = 0 ; | |
40088 | char *kwnames[] = { | |
40089 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40090 | }; | |
40091 | ||
40092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40097 | if (obj2) { | |
c32bde28 | 40098 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40099 | if (PyErr_Occurred()) SWIG_fail; |
40100 | } | |
40101 | { | |
40102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40103 | (arg1)->LeftOf(arg2,arg3); | |
40104 | ||
40105 | wxPyEndAllowThreads(__tstate); | |
40106 | if (PyErr_Occurred()) SWIG_fail; | |
40107 | } | |
40108 | Py_INCREF(Py_None); resultobj = Py_None; | |
40109 | return resultobj; | |
40110 | fail: | |
40111 | return NULL; | |
40112 | } | |
40113 | ||
40114 | ||
c32bde28 | 40115 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40116 | PyObject *resultobj; |
40117 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40118 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40119 | int arg3 = (int) 0 ; | |
40120 | PyObject * obj0 = 0 ; | |
40121 | PyObject * obj1 = 0 ; | |
40122 | PyObject * obj2 = 0 ; | |
40123 | char *kwnames[] = { | |
40124 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40125 | }; | |
40126 | ||
40127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40132 | if (obj2) { | |
c32bde28 | 40133 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40134 | if (PyErr_Occurred()) SWIG_fail; |
40135 | } | |
40136 | { | |
40137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40138 | (arg1)->RightOf(arg2,arg3); | |
40139 | ||
40140 | wxPyEndAllowThreads(__tstate); | |
40141 | if (PyErr_Occurred()) SWIG_fail; | |
40142 | } | |
40143 | Py_INCREF(Py_None); resultobj = Py_None; | |
40144 | return resultobj; | |
40145 | fail: | |
40146 | return NULL; | |
40147 | } | |
40148 | ||
40149 | ||
c32bde28 | 40150 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40151 | PyObject *resultobj; |
40152 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40154 | int arg3 = (int) 0 ; | |
40155 | PyObject * obj0 = 0 ; | |
40156 | PyObject * obj1 = 0 ; | |
40157 | PyObject * obj2 = 0 ; | |
40158 | char *kwnames[] = { | |
40159 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40160 | }; | |
40161 | ||
40162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40167 | if (obj2) { | |
c32bde28 | 40168 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40169 | if (PyErr_Occurred()) SWIG_fail; |
40170 | } | |
40171 | { | |
40172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40173 | (arg1)->Above(arg2,arg3); | |
40174 | ||
40175 | wxPyEndAllowThreads(__tstate); | |
40176 | if (PyErr_Occurred()) SWIG_fail; | |
40177 | } | |
40178 | Py_INCREF(Py_None); resultobj = Py_None; | |
40179 | return resultobj; | |
40180 | fail: | |
40181 | return NULL; | |
40182 | } | |
40183 | ||
40184 | ||
c32bde28 | 40185 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40186 | PyObject *resultobj; |
40187 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40188 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40189 | int arg3 = (int) 0 ; | |
40190 | PyObject * obj0 = 0 ; | |
40191 | PyObject * obj1 = 0 ; | |
40192 | PyObject * obj2 = 0 ; | |
40193 | char *kwnames[] = { | |
40194 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40195 | }; | |
40196 | ||
40197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40202 | if (obj2) { | |
c32bde28 | 40203 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40204 | if (PyErr_Occurred()) SWIG_fail; |
40205 | } | |
40206 | { | |
40207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40208 | (arg1)->Below(arg2,arg3); | |
40209 | ||
40210 | wxPyEndAllowThreads(__tstate); | |
40211 | if (PyErr_Occurred()) SWIG_fail; | |
40212 | } | |
40213 | Py_INCREF(Py_None); resultobj = Py_None; | |
40214 | return resultobj; | |
40215 | fail: | |
40216 | return NULL; | |
40217 | } | |
40218 | ||
40219 | ||
c32bde28 | 40220 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40221 | PyObject *resultobj; |
40222 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40223 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40224 | int arg3 ; | |
40225 | int arg4 = (int) 0 ; | |
40226 | PyObject * obj0 = 0 ; | |
40227 | PyObject * obj1 = 0 ; | |
40228 | PyObject * obj2 = 0 ; | |
40229 | PyObject * obj3 = 0 ; | |
40230 | char *kwnames[] = { | |
40231 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
40232 | }; | |
40233 | ||
40234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40239 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40240 | if (PyErr_Occurred()) SWIG_fail; |
40241 | if (obj3) { | |
c32bde28 | 40242 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40243 | if (PyErr_Occurred()) SWIG_fail; |
40244 | } | |
40245 | { | |
40246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40247 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
40248 | ||
40249 | wxPyEndAllowThreads(__tstate); | |
40250 | if (PyErr_Occurred()) SWIG_fail; | |
40251 | } | |
40252 | Py_INCREF(Py_None); resultobj = Py_None; | |
40253 | return resultobj; | |
40254 | fail: | |
40255 | return NULL; | |
40256 | } | |
40257 | ||
40258 | ||
c32bde28 | 40259 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40260 | PyObject *resultobj; |
40261 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40262 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40263 | int arg3 ; | |
40264 | int arg4 ; | |
40265 | PyObject * obj0 = 0 ; | |
40266 | PyObject * obj1 = 0 ; | |
40267 | PyObject * obj2 = 0 ; | |
40268 | PyObject * obj3 = 0 ; | |
40269 | char *kwnames[] = { | |
40270 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
40271 | }; | |
40272 | ||
40273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40278 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 40279 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 40280 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40281 | if (PyErr_Occurred()) SWIG_fail; |
40282 | { | |
40283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40284 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
40285 | ||
40286 | wxPyEndAllowThreads(__tstate); | |
40287 | if (PyErr_Occurred()) SWIG_fail; | |
40288 | } | |
40289 | Py_INCREF(Py_None); resultobj = Py_None; | |
40290 | return resultobj; | |
40291 | fail: | |
40292 | return NULL; | |
40293 | } | |
40294 | ||
40295 | ||
c32bde28 | 40296 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40297 | PyObject *resultobj; |
40298 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40299 | int arg2 ; | |
40300 | PyObject * obj0 = 0 ; | |
40301 | PyObject * obj1 = 0 ; | |
40302 | char *kwnames[] = { | |
40303 | (char *) "self",(char *) "val", NULL | |
40304 | }; | |
40305 | ||
40306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
40307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40309 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40310 | if (PyErr_Occurred()) SWIG_fail; |
40311 | { | |
40312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40313 | (arg1)->Absolute(arg2); | |
40314 | ||
40315 | wxPyEndAllowThreads(__tstate); | |
40316 | if (PyErr_Occurred()) SWIG_fail; | |
40317 | } | |
40318 | Py_INCREF(Py_None); resultobj = Py_None; | |
40319 | return resultobj; | |
40320 | fail: | |
40321 | return NULL; | |
40322 | } | |
40323 | ||
40324 | ||
c32bde28 | 40325 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40326 | PyObject *resultobj; |
40327 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40328 | PyObject * obj0 = 0 ; | |
40329 | char *kwnames[] = { | |
40330 | (char *) "self", NULL | |
40331 | }; | |
40332 | ||
40333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
40334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40336 | { | |
40337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40338 | (arg1)->Unconstrained(); | |
40339 | ||
40340 | wxPyEndAllowThreads(__tstate); | |
40341 | if (PyErr_Occurred()) SWIG_fail; | |
40342 | } | |
40343 | Py_INCREF(Py_None); resultobj = Py_None; | |
40344 | return resultobj; | |
40345 | fail: | |
40346 | return NULL; | |
40347 | } | |
40348 | ||
40349 | ||
c32bde28 | 40350 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40351 | PyObject *resultobj; |
40352 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40353 | PyObject * obj0 = 0 ; | |
40354 | char *kwnames[] = { | |
40355 | (char *) "self", NULL | |
40356 | }; | |
40357 | ||
40358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
40359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40361 | { | |
40362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40363 | (arg1)->AsIs(); | |
40364 | ||
40365 | wxPyEndAllowThreads(__tstate); | |
40366 | if (PyErr_Occurred()) SWIG_fail; | |
40367 | } | |
40368 | Py_INCREF(Py_None); resultobj = Py_None; | |
40369 | return resultobj; | |
40370 | fail: | |
40371 | return NULL; | |
40372 | } | |
40373 | ||
40374 | ||
c32bde28 | 40375 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40376 | PyObject *resultobj; |
40377 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40378 | wxWindow *result; | |
40379 | PyObject * obj0 = 0 ; | |
40380 | char *kwnames[] = { | |
40381 | (char *) "self", NULL | |
40382 | }; | |
40383 | ||
40384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
40385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40387 | { | |
40388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40389 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
40390 | ||
40391 | wxPyEndAllowThreads(__tstate); | |
40392 | if (PyErr_Occurred()) SWIG_fail; | |
40393 | } | |
40394 | { | |
412d302d | 40395 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
40396 | } |
40397 | return resultobj; | |
40398 | fail: | |
40399 | return NULL; | |
40400 | } | |
40401 | ||
40402 | ||
c32bde28 | 40403 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40404 | PyObject *resultobj; |
40405 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40406 | int result; | |
40407 | PyObject * obj0 = 0 ; | |
40408 | char *kwnames[] = { | |
40409 | (char *) "self", NULL | |
40410 | }; | |
40411 | ||
40412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
40413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40415 | { | |
40416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40417 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
40418 | ||
40419 | wxPyEndAllowThreads(__tstate); | |
40420 | if (PyErr_Occurred()) SWIG_fail; | |
40421 | } | |
c32bde28 | 40422 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40423 | return resultobj; |
40424 | fail: | |
40425 | return NULL; | |
40426 | } | |
40427 | ||
40428 | ||
c32bde28 | 40429 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40430 | PyObject *resultobj; |
40431 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40432 | int arg2 ; | |
40433 | PyObject * obj0 = 0 ; | |
40434 | PyObject * obj1 = 0 ; | |
40435 | char *kwnames[] = { | |
40436 | (char *) "self",(char *) "which", NULL | |
40437 | }; | |
40438 | ||
40439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40442 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40443 | if (PyErr_Occurred()) SWIG_fail; |
40444 | { | |
40445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40446 | (arg1)->SetEdge((wxEdge )arg2); | |
40447 | ||
40448 | wxPyEndAllowThreads(__tstate); | |
40449 | if (PyErr_Occurred()) SWIG_fail; | |
40450 | } | |
40451 | Py_INCREF(Py_None); resultobj = Py_None; | |
40452 | return resultobj; | |
40453 | fail: | |
40454 | return NULL; | |
40455 | } | |
40456 | ||
40457 | ||
c32bde28 | 40458 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40459 | PyObject *resultobj; |
40460 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40461 | int arg2 ; | |
40462 | PyObject * obj0 = 0 ; | |
40463 | PyObject * obj1 = 0 ; | |
40464 | char *kwnames[] = { | |
40465 | (char *) "self",(char *) "v", NULL | |
40466 | }; | |
40467 | ||
40468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40471 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40472 | if (PyErr_Occurred()) SWIG_fail; |
40473 | { | |
40474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40475 | (arg1)->SetValue(arg2); | |
40476 | ||
40477 | wxPyEndAllowThreads(__tstate); | |
40478 | if (PyErr_Occurred()) SWIG_fail; | |
40479 | } | |
40480 | Py_INCREF(Py_None); resultobj = Py_None; | |
40481 | return resultobj; | |
40482 | fail: | |
40483 | return NULL; | |
40484 | } | |
40485 | ||
40486 | ||
c32bde28 | 40487 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40488 | PyObject *resultobj; |
40489 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40490 | int result; | |
40491 | PyObject * obj0 = 0 ; | |
40492 | char *kwnames[] = { | |
40493 | (char *) "self", NULL | |
40494 | }; | |
40495 | ||
40496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40499 | { | |
40500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40501 | result = (int)(arg1)->GetMargin(); | |
40502 | ||
40503 | wxPyEndAllowThreads(__tstate); | |
40504 | if (PyErr_Occurred()) SWIG_fail; | |
40505 | } | |
c32bde28 | 40506 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40507 | return resultobj; |
40508 | fail: | |
40509 | return NULL; | |
40510 | } | |
40511 | ||
40512 | ||
c32bde28 | 40513 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40514 | PyObject *resultobj; |
40515 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40516 | int arg2 ; | |
40517 | PyObject * obj0 = 0 ; | |
40518 | PyObject * obj1 = 0 ; | |
40519 | char *kwnames[] = { | |
40520 | (char *) "self",(char *) "m", NULL | |
40521 | }; | |
40522 | ||
40523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40526 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40527 | if (PyErr_Occurred()) SWIG_fail; |
40528 | { | |
40529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40530 | (arg1)->SetMargin(arg2); | |
40531 | ||
40532 | wxPyEndAllowThreads(__tstate); | |
40533 | if (PyErr_Occurred()) SWIG_fail; | |
40534 | } | |
40535 | Py_INCREF(Py_None); resultobj = Py_None; | |
40536 | return resultobj; | |
40537 | fail: | |
40538 | return NULL; | |
40539 | } | |
40540 | ||
40541 | ||
c32bde28 | 40542 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40543 | PyObject *resultobj; |
40544 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40545 | int result; | |
40546 | PyObject * obj0 = 0 ; | |
40547 | char *kwnames[] = { | |
40548 | (char *) "self", NULL | |
40549 | }; | |
40550 | ||
40551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40554 | { | |
40555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40556 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40557 | ||
40558 | wxPyEndAllowThreads(__tstate); | |
40559 | if (PyErr_Occurred()) SWIG_fail; | |
40560 | } | |
c32bde28 | 40561 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40562 | return resultobj; |
40563 | fail: | |
40564 | return NULL; | |
40565 | } | |
40566 | ||
40567 | ||
c32bde28 | 40568 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40569 | PyObject *resultobj; |
40570 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40571 | int result; | |
40572 | PyObject * obj0 = 0 ; | |
40573 | char *kwnames[] = { | |
40574 | (char *) "self", NULL | |
40575 | }; | |
40576 | ||
40577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40580 | { | |
40581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40582 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40583 | ||
40584 | wxPyEndAllowThreads(__tstate); | |
40585 | if (PyErr_Occurred()) SWIG_fail; | |
40586 | } | |
c32bde28 | 40587 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40588 | return resultobj; |
40589 | fail: | |
40590 | return NULL; | |
40591 | } | |
40592 | ||
40593 | ||
c32bde28 | 40594 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40595 | PyObject *resultobj; |
40596 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40597 | int result; | |
40598 | PyObject * obj0 = 0 ; | |
40599 | char *kwnames[] = { | |
40600 | (char *) "self", NULL | |
40601 | }; | |
40602 | ||
40603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40606 | { | |
40607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40608 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40609 | ||
40610 | wxPyEndAllowThreads(__tstate); | |
40611 | if (PyErr_Occurred()) SWIG_fail; | |
40612 | } | |
c32bde28 | 40613 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40614 | return resultobj; |
40615 | fail: | |
40616 | return NULL; | |
40617 | } | |
40618 | ||
40619 | ||
c32bde28 | 40620 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40621 | PyObject *resultobj; |
40622 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40623 | bool result; | |
40624 | PyObject * obj0 = 0 ; | |
40625 | char *kwnames[] = { | |
40626 | (char *) "self", NULL | |
40627 | }; | |
40628 | ||
40629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40632 | { | |
40633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40634 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40635 | ||
40636 | wxPyEndAllowThreads(__tstate); | |
40637 | if (PyErr_Occurred()) SWIG_fail; | |
40638 | } | |
40639 | { | |
40640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40641 | } | |
40642 | return resultobj; | |
40643 | fail: | |
40644 | return NULL; | |
40645 | } | |
40646 | ||
40647 | ||
c32bde28 | 40648 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40649 | PyObject *resultobj; |
40650 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40651 | bool arg2 ; | |
40652 | PyObject * obj0 = 0 ; | |
40653 | PyObject * obj1 = 0 ; | |
40654 | char *kwnames[] = { | |
40655 | (char *) "self",(char *) "d", NULL | |
40656 | }; | |
40657 | ||
40658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40661 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
40662 | if (PyErr_Occurred()) SWIG_fail; |
40663 | { | |
40664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40665 | (arg1)->SetDone(arg2); | |
40666 | ||
40667 | wxPyEndAllowThreads(__tstate); | |
40668 | if (PyErr_Occurred()) SWIG_fail; | |
40669 | } | |
40670 | Py_INCREF(Py_None); resultobj = Py_None; | |
40671 | return resultobj; | |
40672 | fail: | |
40673 | return NULL; | |
40674 | } | |
40675 | ||
40676 | ||
c32bde28 | 40677 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40678 | PyObject *resultobj; |
40679 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40680 | int result; | |
40681 | PyObject * obj0 = 0 ; | |
40682 | char *kwnames[] = { | |
40683 | (char *) "self", NULL | |
40684 | }; | |
40685 | ||
40686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40689 | { | |
40690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40691 | result = (int)(arg1)->GetRelationship(); | |
40692 | ||
40693 | wxPyEndAllowThreads(__tstate); | |
40694 | if (PyErr_Occurred()) SWIG_fail; | |
40695 | } | |
c32bde28 | 40696 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40697 | return resultobj; |
40698 | fail: | |
40699 | return NULL; | |
40700 | } | |
40701 | ||
40702 | ||
c32bde28 | 40703 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40704 | PyObject *resultobj; |
40705 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40706 | int arg2 ; | |
40707 | PyObject * obj0 = 0 ; | |
40708 | PyObject * obj1 = 0 ; | |
40709 | char *kwnames[] = { | |
40710 | (char *) "self",(char *) "r", NULL | |
40711 | }; | |
40712 | ||
40713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40716 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40717 | if (PyErr_Occurred()) SWIG_fail; |
40718 | { | |
40719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40720 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40721 | ||
40722 | wxPyEndAllowThreads(__tstate); | |
40723 | if (PyErr_Occurred()) SWIG_fail; | |
40724 | } | |
40725 | Py_INCREF(Py_None); resultobj = Py_None; | |
40726 | return resultobj; | |
40727 | fail: | |
40728 | return NULL; | |
40729 | } | |
40730 | ||
40731 | ||
c32bde28 | 40732 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40733 | PyObject *resultobj; |
40734 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40735 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40736 | bool result; | |
40737 | PyObject * obj0 = 0 ; | |
40738 | PyObject * obj1 = 0 ; | |
40739 | char *kwnames[] = { | |
40740 | (char *) "self",(char *) "otherW", NULL | |
40741 | }; | |
40742 | ||
40743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40748 | { | |
40749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40750 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40751 | ||
40752 | wxPyEndAllowThreads(__tstate); | |
40753 | if (PyErr_Occurred()) SWIG_fail; | |
40754 | } | |
40755 | { | |
40756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40757 | } | |
40758 | return resultobj; | |
40759 | fail: | |
40760 | return NULL; | |
40761 | } | |
40762 | ||
40763 | ||
c32bde28 | 40764 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40765 | PyObject *resultobj; |
40766 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40767 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40768 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40769 | bool result; | |
40770 | PyObject * obj0 = 0 ; | |
40771 | PyObject * obj1 = 0 ; | |
40772 | PyObject * obj2 = 0 ; | |
40773 | char *kwnames[] = { | |
40774 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40775 | }; | |
40776 | ||
40777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40782 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40784 | { | |
40785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40786 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40787 | ||
40788 | wxPyEndAllowThreads(__tstate); | |
40789 | if (PyErr_Occurred()) SWIG_fail; | |
40790 | } | |
40791 | { | |
40792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40793 | } | |
40794 | return resultobj; | |
40795 | fail: | |
40796 | return NULL; | |
40797 | } | |
40798 | ||
40799 | ||
c32bde28 | 40800 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40801 | PyObject *resultobj; |
40802 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40803 | int arg2 ; | |
40804 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40805 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40806 | int result; | |
40807 | PyObject * obj0 = 0 ; | |
40808 | PyObject * obj1 = 0 ; | |
40809 | PyObject * obj2 = 0 ; | |
40810 | PyObject * obj3 = 0 ; | |
40811 | char *kwnames[] = { | |
40812 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40813 | }; | |
40814 | ||
40815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40818 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40819 | if (PyErr_Occurred()) SWIG_fail; |
40820 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40822 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40824 | { | |
40825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40826 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40827 | ||
40828 | wxPyEndAllowThreads(__tstate); | |
40829 | if (PyErr_Occurred()) SWIG_fail; | |
40830 | } | |
c32bde28 | 40831 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40832 | return resultobj; |
40833 | fail: | |
40834 | return NULL; | |
40835 | } | |
40836 | ||
40837 | ||
c32bde28 | 40838 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40839 | PyObject *obj; |
40840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40841 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40842 | Py_INCREF(obj); | |
40843 | return Py_BuildValue((char *)""); | |
40844 | } | |
c32bde28 | 40845 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40846 | PyObject *resultobj; |
40847 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40848 | wxIndividualLayoutConstraint *result; | |
40849 | PyObject * obj0 = 0 ; | |
40850 | char *kwnames[] = { | |
40851 | (char *) "self", NULL | |
40852 | }; | |
40853 | ||
40854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40857 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40858 | ||
40859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40860 | return resultobj; | |
40861 | fail: | |
40862 | return NULL; | |
40863 | } | |
40864 | ||
40865 | ||
c32bde28 | 40866 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40867 | PyObject *resultobj; |
40868 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40869 | wxIndividualLayoutConstraint *result; | |
40870 | PyObject * obj0 = 0 ; | |
40871 | char *kwnames[] = { | |
40872 | (char *) "self", NULL | |
40873 | }; | |
40874 | ||
40875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40878 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40879 | ||
40880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40881 | return resultobj; | |
40882 | fail: | |
40883 | return NULL; | |
40884 | } | |
40885 | ||
40886 | ||
c32bde28 | 40887 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40888 | PyObject *resultobj; |
40889 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40890 | wxIndividualLayoutConstraint *result; | |
40891 | PyObject * obj0 = 0 ; | |
40892 | char *kwnames[] = { | |
40893 | (char *) "self", NULL | |
40894 | }; | |
40895 | ||
40896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
40897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40899 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
40900 | ||
40901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40902 | return resultobj; | |
40903 | fail: | |
40904 | return NULL; | |
40905 | } | |
40906 | ||
40907 | ||
c32bde28 | 40908 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40909 | PyObject *resultobj; |
40910 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40911 | wxIndividualLayoutConstraint *result; | |
40912 | PyObject * obj0 = 0 ; | |
40913 | char *kwnames[] = { | |
40914 | (char *) "self", NULL | |
40915 | }; | |
40916 | ||
40917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
40918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40920 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
40921 | ||
40922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40923 | return resultobj; | |
40924 | fail: | |
40925 | return NULL; | |
40926 | } | |
40927 | ||
40928 | ||
c32bde28 | 40929 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40930 | PyObject *resultobj; |
40931 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40932 | wxIndividualLayoutConstraint *result; | |
40933 | PyObject * obj0 = 0 ; | |
40934 | char *kwnames[] = { | |
40935 | (char *) "self", NULL | |
40936 | }; | |
40937 | ||
40938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
40939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40941 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40942 | ||
40943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40944 | return resultobj; | |
40945 | fail: | |
40946 | return NULL; | |
40947 | } | |
40948 | ||
40949 | ||
c32bde28 | 40950 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40951 | PyObject *resultobj; |
40952 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40953 | wxIndividualLayoutConstraint *result; | |
40954 | PyObject * obj0 = 0 ; | |
40955 | char *kwnames[] = { | |
40956 | (char *) "self", NULL | |
40957 | }; | |
40958 | ||
40959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40962 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40963 | ||
40964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40965 | return resultobj; | |
40966 | fail: | |
40967 | return NULL; | |
40968 | } | |
40969 | ||
40970 | ||
c32bde28 | 40971 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40972 | PyObject *resultobj; |
40973 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40974 | wxIndividualLayoutConstraint *result; | |
40975 | PyObject * obj0 = 0 ; | |
40976 | char *kwnames[] = { | |
40977 | (char *) "self", NULL | |
40978 | }; | |
40979 | ||
40980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40983 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40984 | ||
40985 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40986 | return resultobj; | |
40987 | fail: | |
40988 | return NULL; | |
40989 | } | |
40990 | ||
40991 | ||
c32bde28 | 40992 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40993 | PyObject *resultobj; |
40994 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40995 | wxIndividualLayoutConstraint *result; | |
40996 | PyObject * obj0 = 0 ; | |
40997 | char *kwnames[] = { | |
40998 | (char *) "self", NULL | |
40999 | }; | |
41000 | ||
41001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
41002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41004 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
41005 | ||
41006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41007 | return resultobj; | |
41008 | fail: | |
41009 | return NULL; | |
41010 | } | |
41011 | ||
41012 | ||
c32bde28 | 41013 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41014 | PyObject *resultobj; |
41015 | wxLayoutConstraints *result; | |
41016 | char *kwnames[] = { | |
41017 | NULL | |
41018 | }; | |
41019 | ||
41020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
41021 | { | |
41022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41023 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
41024 | ||
41025 | wxPyEndAllowThreads(__tstate); | |
41026 | if (PyErr_Occurred()) SWIG_fail; | |
41027 | } | |
41028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
41029 | return resultobj; | |
41030 | fail: | |
41031 | return NULL; | |
41032 | } | |
41033 | ||
41034 | ||
c32bde28 | 41035 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41036 | PyObject *resultobj; |
41037 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41038 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41039 | int *arg3 = (int *) 0 ; | |
41040 | bool result; | |
41041 | int temp3 ; | |
c32bde28 | 41042 | int res3 = 0 ; |
d55e5bfc RD |
41043 | PyObject * obj0 = 0 ; |
41044 | PyObject * obj1 = 0 ; | |
41045 | char *kwnames[] = { | |
41046 | (char *) "self",(char *) "win", NULL | |
41047 | }; | |
41048 | ||
c32bde28 | 41049 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
41050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
41051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41053 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
41054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41055 | { | |
41056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41057 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
41058 | ||
41059 | wxPyEndAllowThreads(__tstate); | |
41060 | if (PyErr_Occurred()) SWIG_fail; | |
41061 | } | |
41062 | { | |
41063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41064 | } | |
c32bde28 RD |
41065 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
41066 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
41067 | return resultobj; |
41068 | fail: | |
41069 | return NULL; | |
41070 | } | |
41071 | ||
41072 | ||
c32bde28 | 41073 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41074 | PyObject *resultobj; |
41075 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41076 | bool result; | |
41077 | PyObject * obj0 = 0 ; | |
41078 | char *kwnames[] = { | |
41079 | (char *) "self", NULL | |
41080 | }; | |
41081 | ||
41082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
41083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41085 | { | |
41086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41087 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
41088 | ||
41089 | wxPyEndAllowThreads(__tstate); | |
41090 | if (PyErr_Occurred()) SWIG_fail; | |
41091 | } | |
41092 | { | |
41093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41094 | } | |
41095 | return resultobj; | |
41096 | fail: | |
41097 | return NULL; | |
41098 | } | |
41099 | ||
41100 | ||
c32bde28 | 41101 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41102 | PyObject *obj; |
41103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41104 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
41105 | Py_INCREF(obj); | |
41106 | return Py_BuildValue((char *)""); | |
41107 | } | |
41108 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
41109 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
41110 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
41111 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41112 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41113 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
41114 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41115 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41116 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41117 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41118 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41119 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41120 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41121 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41122 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41123 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41124 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41125 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41126 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41127 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41128 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41129 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41130 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41131 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41132 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41133 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41134 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
41135 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41136 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41137 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41138 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41139 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41140 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41141 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41142 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41143 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41144 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41145 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41146 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41147 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
41148 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41149 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41150 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41151 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41152 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41153 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41154 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41155 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41156 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41157 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41158 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41159 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41160 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41161 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41162 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
41163 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41164 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41165 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41166 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41167 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41168 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41169 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41170 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41171 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41172 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41173 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41174 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41175 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41176 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41177 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41178 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41179 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41180 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41181 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41182 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41183 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41184 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41185 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41186 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41187 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41188 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41189 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41190 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41191 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41192 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41193 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41194 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41195 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41196 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41197 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41198 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41199 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41200 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41201 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41202 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41203 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41204 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41205 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41206 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41207 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41208 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41209 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41210 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41211 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41212 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41213 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
41214 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41215 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41216 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41217 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41218 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41219 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41220 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41221 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41222 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41223 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41224 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41225 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41226 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41227 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41228 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41229 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41230 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41231 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41232 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41233 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41234 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41235 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41236 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41237 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41238 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41239 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41240 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41241 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
41242 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41243 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41244 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41245 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41246 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41247 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41248 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41249 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41250 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41251 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41252 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41253 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41254 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41255 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41256 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41257 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41258 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41259 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
41260 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41261 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
41262 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41263 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41264 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41265 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41266 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41267 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41268 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41269 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
41270 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41271 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41272 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41273 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41274 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41275 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41276 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41277 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41278 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41279 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41280 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41281 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41282 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41283 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41284 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41285 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41286 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41287 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41288 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41289 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41290 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41291 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41292 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 | 41293 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
ae8162c8 | 41294 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c32bde28 RD |
41295 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
41296 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41297 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41298 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
41299 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41300 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41301 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41302 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41303 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41304 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
41305 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41306 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41307 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41308 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41309 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41310 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41311 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41312 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41313 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41314 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
41315 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41316 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41317 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41318 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41319 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41320 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41321 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41322 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41323 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41324 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
41325 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41326 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41327 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41328 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
41329 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41330 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41331 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41332 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41333 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41334 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41335 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41336 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41337 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41338 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41339 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41340 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41341 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41342 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41343 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41344 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41345 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41346 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41347 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41350 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41355 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41356 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41357 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41363 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41367 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41371 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41373 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41376 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41377 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41379 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41384 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41386 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41391 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41393 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41396 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41399 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
41401 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41402 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
41403 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41404 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
41405 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
41407 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41408 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
41409 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
41411 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
41413 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41414 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
41415 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
41417 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
41419 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41420 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
41421 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
41423 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41424 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
41425 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41427 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41430 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41432 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41434 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41437 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41439 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41442 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41443 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41445 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41449 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41451 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41452 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41454 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41455 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41457 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41458 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41460 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41463 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41465 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41466 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41467 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41468 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41471 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41475 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41477 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41478 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41479 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41480 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41481 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41482 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41483 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41486 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41487 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41488 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41489 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41490 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41492 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41497 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41498 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41499 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41500 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41501 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41502 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41505 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41508 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41509 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41514 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41516 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41521 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41534 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41537 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41540 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41541 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41546 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41551 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41553 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41555 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41562 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41573 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41575 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41577 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41579 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41589 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41590 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41591 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41595 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41596 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41598 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41600 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41603 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41608 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41610 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41611 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41618 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41620 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41622 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41625 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41629 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41632 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41635 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41637 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41642 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41647 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41650 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41652 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41654 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41656 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41657 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41658 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41659 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41660 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41662 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41663 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41664 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41678 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41680 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41682 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41685 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41687 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41691 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41695 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41702 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41704 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41707 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41710 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41713 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41714 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41719 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41721 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41723 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41726 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41731 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41743 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41753 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
41775 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
ae8162c8 RD |
41783 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41784 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41785 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
41793 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
41794 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
41800 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41801 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
41804 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41809 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
41814 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41816 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41817 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41819 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41826 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41829 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41831 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41833 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41835 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41837 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41857 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41859 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41863 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41864 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41867 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41868 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41871 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41872 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41873 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41874 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41875 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41876 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41877 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41879 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41880 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41881 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41882 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41883 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41886 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41888 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41889 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41891 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41893 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41896 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41898 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41902 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41903 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41906 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41907 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41908 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41909 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41915 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41916 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41917 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41918 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41919 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41921 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41924 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41926 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41927 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41928 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41929 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41930 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41931 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41932 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41933 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41934 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41935 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41936 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41937 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41938 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41939 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41940 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41941 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41942 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41943 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41944 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41945 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41946 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41947 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41948 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41949 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41950 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41951 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41952 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41953 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41954 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41955 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41956 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41957 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41958 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41959 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41960 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41961 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41962 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41963 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41964 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41965 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41966 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41967 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41968 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41969 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41970 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41971 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41972 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41973 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41974 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41975 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41976 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41977 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41978 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41979 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41980 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41981 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41982 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
41983 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41984 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41985 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41986 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 RD |
41987 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
41988 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
41989 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL }, |
41990 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41991 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41992 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41993 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41994 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41995 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41996 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41997 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41998 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41999 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42000 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42001 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42002 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42003 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42004 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42005 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42006 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42007 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42008 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42009 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42010 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42011 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42012 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42013 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42014 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42015 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42016 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42017 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42018 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42019 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42020 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42021 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42022 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42023 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42024 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
42025 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42026 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42027 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42028 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42029 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42030 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42031 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42032 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42033 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42034 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42035 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42036 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42037 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42038 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
42039 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42040 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42041 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
42042 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42043 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42044 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42045 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42046 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42047 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42048 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42049 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42050 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42051 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42052 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42053 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42054 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42055 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42056 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42057 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42058 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42059 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42060 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42061 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42062 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42063 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42064 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42065 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42066 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42067 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42068 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42069 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42070 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42071 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42072 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42073 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42074 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42075 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42076 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42077 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42078 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42079 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42080 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42081 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42082 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42083 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42084 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42085 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42086 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42087 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42088 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42089 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42090 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42091 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42092 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42093 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42094 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42095 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42096 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
42097 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42098 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42099 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42100 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42101 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42102 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42103 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42104 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42105 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42106 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42107 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42108 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42109 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42110 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42111 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42112 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42113 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42114 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42115 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42116 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42117 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42118 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42119 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42120 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42121 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42122 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42123 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
42124 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42125 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42126 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42127 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42128 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42129 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42130 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42131 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42132 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42133 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42134 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42135 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42136 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42137 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42138 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42139 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42140 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42141 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42142 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42143 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42144 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42145 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42146 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42147 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42148 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42149 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42150 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42151 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42152 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42153 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42154 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42155 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42156 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42157 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42158 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42159 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42160 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42161 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42162 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42163 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42164 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42165 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42166 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42167 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
42168 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42169 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42170 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42171 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42172 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42173 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42174 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42175 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
42176 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42177 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42178 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42179 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42180 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42181 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42182 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42183 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42184 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42185 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42186 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42187 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42188 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42189 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42190 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42191 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42192 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
42193 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
42194 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42195 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42196 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42197 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42198 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42199 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42200 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42201 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42202 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42203 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42204 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42205 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42206 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42207 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42208 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42209 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42210 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42211 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42212 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42213 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42214 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42215 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42216 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42217 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42218 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42219 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42220 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42221 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42222 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42223 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42224 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42225 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42226 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42227 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42228 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42229 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
42230 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42231 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42232 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42233 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42234 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42235 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42236 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42237 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42238 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42239 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42240 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42241 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42242 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42243 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42244 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42245 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42246 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42247 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42248 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42249 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42250 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42251 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42252 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42253 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42254 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42255 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42256 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42257 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42258 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
42259 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42260 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42261 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
42262 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42263 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42264 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42265 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
42266 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42267 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42268 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
42269 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42270 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42271 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42272 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42273 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42274 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42275 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42276 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42277 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42278 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
42279 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42280 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42281 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42282 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42283 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42284 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42285 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42286 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42287 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42288 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42289 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42290 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
42291 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42292 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42293 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42294 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42295 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42296 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42297 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42298 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42299 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42300 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
42301 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42302 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42303 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42304 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42305 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42306 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42307 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42308 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42309 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42310 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
42311 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42312 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42313 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42314 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42315 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42316 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42317 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42318 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42319 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42320 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42321 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42322 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42323 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42324 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
42325 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42326 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42327 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42328 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42329 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42330 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
42331 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
42332 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
42333 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
42334 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
42335 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42336 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42337 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42338 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42339 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
42340 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42341 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42342 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42343 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42344 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42345 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42346 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42347 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42348 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42349 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42350 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42351 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42352 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42353 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42354 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42355 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42356 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42357 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42358 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42359 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42360 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42361 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42362 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42363 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42364 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42365 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42366 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
42367 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42368 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42369 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42370 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42371 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42372 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42373 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42374 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42375 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42376 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42377 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42378 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
42379 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
42380 | }; |
42381 | ||
42382 | ||
42383 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
42384 | ||
42385 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
42386 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
42387 | } | |
42388 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
42389 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
42390 | } | |
42391 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
42392 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42393 | } | |
42394 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
42395 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42396 | } | |
42397 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
42398 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
42399 | } | |
42400 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
42401 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42402 | } | |
42403 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
42404 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
42405 | } | |
42406 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
42407 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42408 | } | |
42409 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
42410 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42411 | } | |
42412 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
42413 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
42414 | } | |
42415 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
42416 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
42417 | } | |
42418 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
42419 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
42420 | } | |
42421 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
42422 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
42423 | } | |
42424 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
42425 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
42426 | } | |
42427 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
42428 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
42429 | } | |
42430 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
42431 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
42432 | } | |
42433 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
42434 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
42435 | } | |
42436 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
42437 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42438 | } | |
42439 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
42440 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
42441 | } | |
42442 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
42443 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42444 | } | |
42445 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
42446 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42447 | } | |
42448 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
42449 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
42450 | } | |
42451 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42452 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42453 | } | |
42454 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42455 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42456 | } | |
42457 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42458 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42459 | } | |
42460 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42461 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42462 | } | |
42463 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42464 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42465 | } | |
42466 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42467 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42468 | } | |
42469 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42470 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42471 | } | |
42472 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42473 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42474 | } | |
42475 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42476 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42477 | } | |
42478 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42479 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42480 | } | |
42481 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42482 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42483 | } | |
42484 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42485 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42486 | } | |
42487 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42488 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42489 | } | |
42490 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42491 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42492 | } | |
42493 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42494 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42495 | } | |
42496 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42497 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42498 | } | |
42499 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42500 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42501 | } | |
42502 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42503 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42504 | } | |
42505 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42506 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42507 | } | |
42508 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42509 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42510 | } | |
42511 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42512 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42513 | } | |
42514 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42515 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42516 | } | |
42517 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42518 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42519 | } | |
42520 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42521 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42522 | } | |
42523 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42524 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42525 | } | |
42526 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42527 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42528 | } | |
42529 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42530 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42531 | } | |
42532 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42533 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42534 | } | |
42535 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42536 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42537 | } | |
42538 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42539 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42540 | } | |
42541 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42542 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42543 | } | |
42544 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42545 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42546 | } | |
42547 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42548 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42549 | } | |
42550 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42551 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42552 | } | |
42553 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42554 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42555 | } | |
42556 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42557 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42558 | } | |
42559 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42560 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42561 | } | |
42562 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42563 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42564 | } | |
42565 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42566 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42567 | } | |
42568 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42569 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42570 | } | |
42571 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42572 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42573 | } | |
42574 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42575 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42576 | } | |
42577 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42578 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42579 | } | |
42580 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42581 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42582 | } | |
42583 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42584 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42585 | } | |
42586 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42587 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42588 | } | |
42589 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42590 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42591 | } | |
42592 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42593 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42594 | } | |
42595 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42596 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42597 | } | |
42598 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42599 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42600 | } | |
42601 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42602 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42603 | } | |
42604 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42605 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42606 | } | |
42607 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42608 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42609 | } | |
42610 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42611 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42612 | } | |
42613 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42614 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42615 | } | |
42616 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42617 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42618 | } | |
42619 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42620 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42621 | } | |
42622 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42623 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42624 | } | |
42625 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42626 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42627 | } | |
42628 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42629 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42630 | } | |
42631 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42632 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42633 | } | |
42634 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42635 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42636 | } | |
42637 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42638 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42639 | } | |
42640 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42641 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42642 | } | |
42643 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42644 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42645 | } | |
42646 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42647 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42648 | } | |
42649 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42650 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42651 | } | |
42652 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42653 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42654 | } | |
42655 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42656 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42657 | } | |
42658 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42659 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42660 | } | |
42661 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42662 | return (void *)((wxObject *) ((wxImage *) x)); | |
42663 | } | |
42664 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42665 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42666 | } | |
42667 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42668 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42669 | } | |
42670 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42671 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42672 | } | |
42673 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42674 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42675 | } | |
42676 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42677 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42678 | } | |
42679 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42680 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42681 | } | |
42682 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42683 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42684 | } | |
42685 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42686 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42687 | } | |
42688 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42689 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42690 | } | |
42691 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42692 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42693 | } | |
42694 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42695 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42696 | } | |
42697 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42698 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42699 | } | |
42700 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42701 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42702 | } | |
42703 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42704 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42705 | } | |
42706 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42707 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42708 | } | |
42709 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42710 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42711 | } | |
42712 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42713 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42714 | } | |
42715 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42716 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42717 | } | |
42718 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42719 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42720 | } | |
42721 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42722 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42723 | } | |
42724 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42725 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42726 | } | |
42727 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42728 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42729 | } | |
42730 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42731 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42732 | } | |
42733 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42734 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42735 | } | |
42736 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42737 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42738 | } | |
42739 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42740 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42741 | } | |
42742 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42743 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42744 | } | |
42745 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42746 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42747 | } | |
42748 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42749 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42750 | } | |
42751 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42752 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42753 | } | |
42754 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42755 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42756 | } | |
42757 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42758 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42759 | } | |
42760 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42761 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42762 | } | |
42763 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42764 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42765 | } | |
42766 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42767 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42768 | } | |
42769 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42770 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42771 | } | |
42772 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42773 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42774 | } | |
42775 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42776 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42777 | } | |
42778 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42779 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42780 | } | |
42781 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42782 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42783 | } | |
42784 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42785 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42786 | } | |
42787 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42788 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42789 | } | |
42790 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42791 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42792 | } | |
42793 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42794 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42795 | } | |
42796 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42797 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42798 | } | |
42799 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42800 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42801 | } | |
42802 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42803 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42804 | } | |
42805 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42806 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42807 | } | |
42808 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42809 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42810 | } | |
42811 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42812 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42813 | } | |
42814 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42815 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42816 | } | |
42817 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42818 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42819 | } | |
42820 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42821 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42822 | } | |
42823 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42824 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42825 | } | |
42826 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42827 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42828 | } | |
42829 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42830 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42831 | } | |
42832 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42833 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42834 | } | |
42835 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42836 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42837 | } | |
42838 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42839 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42840 | } | |
42841 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42842 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42843 | } | |
42844 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42845 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42846 | } | |
42847 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42848 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42849 | } | |
42850 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42851 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42852 | } | |
42853 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42854 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42855 | } | |
42856 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42857 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42858 | } | |
42859 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42860 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42861 | } | |
42862 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42863 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42864 | } | |
42865 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42866 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42867 | } | |
42868 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42869 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42870 | } | |
42871 | 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}}; | |
42872 | 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}}; | |
42873 | 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}}; | |
42874 | 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}}; | |
42875 | 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}}; | |
ae8162c8 | 42876 | 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 |
42877 | 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}}; |
42878 | 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}}; | |
42879 | 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}}; | |
42880 | 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}}; | |
42881 | 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}}; | |
42882 | 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}}; | |
42883 | 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}}; | |
42884 | 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}}; | |
42885 | 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}}; | |
42886 | 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}}; | |
42887 | 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}}; | |
42888 | 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}}; | |
42889 | 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}}; | |
42890 | 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}}; | |
42891 | 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}}; | |
42892 | 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}}; | |
42893 | 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}}; | |
42894 | 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}}; | |
42895 | 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}}; | |
42896 | 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}}; | |
42897 | 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}}; | |
42898 | 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}}; | |
42899 | 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}}; | |
42900 | 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}}; | |
42901 | 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}}; | |
42902 | 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}}; | |
42903 | 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}}; | |
42904 | 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}}; | |
42905 | 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}}; | |
42906 | 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}}; | |
42907 | 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}}; | |
42908 | 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}}; | |
42909 | 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}}; | |
42910 | 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}}; | |
42911 | 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}}; | |
42912 | 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}}; | |
42913 | 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}}; | |
42914 | 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}}; | |
42915 | 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 |
42916 | 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}}; |
42917 | 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}}; | |
42918 | 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}}; | |
42919 | 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 | 42920 | 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 |
42921 | 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}}; |
42922 | 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}}; | |
42923 | 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}}; | |
42924 | 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}}; | |
42925 | 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}}; | |
42926 | 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}}; | |
42927 | 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}}; | |
42928 | 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}}; | |
42929 | 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}}; | |
42930 | 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}}; | |
42931 | 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}}; | |
42932 | 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}}; | |
42933 | 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}}; | |
42934 | 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}}; | |
42935 | 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}}; | |
42936 | 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}}; | |
42937 | 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}}; | |
42938 | 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}}; | |
42939 | 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}}; | |
42940 | 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}}; | |
42941 | 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}}; | |
42942 | 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}}; | |
42943 | 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}}; | |
42944 | 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}}; | |
42945 | 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}}; | |
42946 | 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}}; | |
42947 | 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}}; | |
42948 | 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}}; | |
42949 | 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}}; | |
42950 | 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}}; | |
42951 | 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}}; | |
42952 | 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}}; | |
42953 | 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}}; | |
42954 | 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}}; | |
42955 | 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}}; | |
42956 | 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}}; | |
42957 | 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}}; | |
42958 | 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}}; | |
42959 | 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}}; | |
42960 | 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}}; | |
42961 | 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}}; | |
42962 | 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}}; | |
42963 | 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}}; | |
42964 | 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}}; | |
42965 | 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}}; | |
42966 | 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}}; | |
42967 | 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}}; | |
42968 | 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}}; | |
42969 | 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}}; | |
42970 | 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}}; | |
42971 | 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}}; | |
42972 | 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}}; | |
42973 | 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}}; | |
42974 | 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}}; | |
42975 | 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}}; | |
42976 | 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}}; | |
42977 | 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}}; | |
42978 | 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}}; | |
42979 | 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 | 42980 | 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 |
42981 | 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}}; |
42982 | 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}}; | |
42983 | 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}}; | |
42984 | 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}}; | |
42985 | 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}}; | |
42986 | 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}}; | |
42987 | 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}}; | |
42988 | ||
42989 | static swig_type_info *swig_types_initial[] = { | |
42990 | _swigt__p_wxLayoutConstraints, | |
42991 | _swigt__p_wxRealPoint, | |
42992 | _swigt__p_wxSizerItem, | |
42993 | _swigt__p_wxGBSizerItem, | |
42994 | _swigt__p_wxScrollEvent, | |
ae8162c8 | 42995 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
42996 | _swigt__p_wxIndividualLayoutConstraint, |
42997 | _swigt__p_wxSizer, | |
42998 | _swigt__p_wxBoxSizer, | |
42999 | _swigt__p_wxStaticBoxSizer, | |
43000 | _swigt__p_wxGridBagSizer, | |
43001 | _swigt__p_wxAcceleratorEntry, | |
43002 | _swigt__p_wxUpdateUIEvent, | |
43003 | _swigt__p_wxMenu, | |
43004 | _swigt__p_wxEvent, | |
43005 | _swigt__p_wxGridSizer, | |
43006 | _swigt__p_wxFlexGridSizer, | |
43007 | _swigt__p_wxInitDialogEvent, | |
43008 | _swigt__p_wxItemContainer, | |
43009 | _swigt__p_wxNcPaintEvent, | |
43010 | _swigt__p_wxPaintEvent, | |
43011 | _swigt__p_wxSysColourChangedEvent, | |
43012 | _swigt__p_wxMouseCaptureChangedEvent, | |
43013 | _swigt__p_wxDisplayChangedEvent, | |
43014 | _swigt__p_wxPaletteChangedEvent, | |
43015 | _swigt__p_wxControl, | |
43016 | _swigt__p_wxFont, | |
43017 | _swigt__p_wxMenuBarBase, | |
43018 | _swigt__p_wxSetCursorEvent, | |
43019 | _swigt__p_wxFSFile, | |
43020 | _swigt__p_wxCaret, | |
43021 | _swigt__p_wxRegion, | |
43022 | _swigt__p_wxPoint2D, | |
43023 | _swigt__p_int, | |
43024 | _swigt__p_wxSize, | |
43025 | _swigt__p_wxDC, | |
43026 | _swigt__p_wxPySizer, | |
43027 | _swigt__p_wxVisualAttributes, | |
43028 | _swigt__p_wxNotifyEvent, | |
43029 | _swigt__p_wxPyEvent, | |
43030 | _swigt__p_wxPropagationDisabler, | |
43031 | _swigt__p_wxAppTraits, | |
43032 | _swigt__p_wxArrayString, | |
43033 | _swigt__p_wxShowEvent, | |
43034 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
43035 | _swigt__p_wxIconizeEvent, |
43036 | _swigt__p_wxActivateEvent, | |
43037 | _swigt__p_wxMoveEvent, | |
43038 | _swigt__p_wxSizeEvent, | |
c0de73ae | 43039 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
43040 | _swigt__p_wxQueryNewPaletteEvent, |
43041 | _swigt__p_wxWindowCreateEvent, | |
43042 | _swigt__p_wxIdleEvent, | |
43043 | _swigt__p_wxMenuItem, | |
43044 | _swigt__p_wxStaticBox, | |
43045 | _swigt__p_long, | |
43046 | _swigt__p_wxTIFFHandler, | |
43047 | _swigt__p_wxXPMHandler, | |
43048 | _swigt__p_wxPNMHandler, | |
43049 | _swigt__p_wxJPEGHandler, | |
43050 | _swigt__p_wxPCXHandler, | |
43051 | _swigt__p_wxGIFHandler, | |
43052 | _swigt__p_wxPNGHandler, | |
43053 | _swigt__p_wxANIHandler, | |
43054 | _swigt__p_wxMemoryFSHandler, | |
43055 | _swigt__p_wxEvtHandler, | |
43056 | _swigt__p_wxCURHandler, | |
43057 | _swigt__p_wxICOHandler, | |
43058 | _swigt__p_wxBMPHandler, | |
43059 | _swigt__p_wxImageHandler, | |
43060 | _swigt__p_wxFileSystemHandler, | |
43061 | _swigt__p_wxPyFileSystemHandler, | |
43062 | _swigt__p_wxInternetFSHandler, | |
43063 | _swigt__p_wxZipFSHandler, | |
43064 | _swigt__p_wxRect, | |
43065 | _swigt__p_wxGBSpan, | |
43066 | _swigt__p_wxPropagateOnce, | |
43067 | _swigt__p_wxAcceleratorTable, | |
43068 | _swigt__p_char, | |
43069 | _swigt__p_wxGBPosition, | |
43070 | _swigt__p_wxImage, | |
43071 | _swigt__p_wxFrame, | |
43072 | _swigt__p_wxScrollWinEvent, | |
43073 | _swigt__p_wxImageHistogram, | |
43074 | _swigt__p_byte, | |
43075 | _swigt__p_wxPoint, | |
43076 | _swigt__p_wxCursor, | |
43077 | _swigt__p_wxObject, | |
43078 | _swigt__p_wxPyInputStream, | |
43079 | _swigt__p_wxOutputStream, | |
43080 | _swigt__p_wxInputStream, | |
43081 | _swigt__p_wxDateTime, | |
43082 | _swigt__p_wxKeyEvent, | |
43083 | _swigt__p_wxNavigationKeyEvent, | |
43084 | _swigt__p_wxWindowDestroyEvent, | |
43085 | _swigt__p_wxWindow, | |
43086 | _swigt__p_wxMenuBar, | |
43087 | _swigt__p_wxFileSystem, | |
43088 | _swigt__p_wxBitmap, | |
43089 | _swigt__p_wxMenuEvent, | |
43090 | _swigt__p_wxContextMenuEvent, | |
43091 | _swigt__p_unsigned_char, | |
43092 | _swigt__p_wxCloseEvent, | |
43093 | _swigt__p_wxEraseEvent, | |
43094 | _swigt__p_wxMouseEvent, | |
43095 | _swigt__p_wxPyApp, | |
43096 | _swigt__p_wxCommandEvent, | |
43097 | _swigt__p_wxPyCommandEvent, | |
43098 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 43099 | _swigt__p_wxQuantize, |
d55e5bfc RD |
43100 | _swigt__p_wxChildFocusEvent, |
43101 | _swigt__p_wxFocusEvent, | |
43102 | _swigt__p_wxDropFilesEvent, | |
43103 | _swigt__p_wxControlWithItems, | |
43104 | _swigt__p_wxColour, | |
43105 | _swigt__p_wxValidator, | |
43106 | _swigt__p_wxPyValidator, | |
43107 | 0 | |
43108 | }; | |
43109 | ||
43110 | ||
43111 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43112 | ||
43113 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 43114 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
43115 | |
43116 | #ifdef __cplusplus | |
43117 | } | |
43118 | #endif | |
43119 | ||
43120 | #ifdef __cplusplus | |
43121 | extern "C" | |
43122 | #endif | |
43123 | SWIGEXPORT(void) SWIG_init(void) { | |
43124 | static PyObject *SWIG_globals = 0; | |
43125 | static int typeinit = 0; | |
43126 | PyObject *m, *d; | |
43127 | int i; | |
43128 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
43129 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43130 | d = PyModule_GetDict(m); | |
43131 | ||
43132 | if (!typeinit) { | |
43133 | for (i = 0; swig_types_initial[i]; i++) { | |
43134 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
43135 | } | |
43136 | typeinit = 1; | |
43137 | } | |
43138 | SWIG_InstallConstants(d,swig_const_table); | |
43139 | ||
43140 | ||
43141 | #ifndef wxPyUSE_EXPORT | |
43142 | // Make our API structure a CObject so other modules can import it | |
43143 | // from this module. | |
43144 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
43145 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
43146 | Py_XDECREF(cobj); | |
43147 | #endif | |
43148 | ||
c32bde28 RD |
43149 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
43150 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
43151 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
43152 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
43153 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
43154 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
43155 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
43156 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
43157 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
43158 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
43159 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
43160 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
43161 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
43162 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
43163 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
43164 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
43165 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
43166 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
43167 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
43168 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
43169 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
43170 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
43171 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
43172 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
43173 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
43174 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
43175 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
43176 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
43177 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
43178 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
43179 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
43180 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
43181 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
43182 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
43183 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
43184 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
43185 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
43186 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
43187 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
43188 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
43189 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
43190 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
43191 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
43192 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
43193 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
43194 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
43195 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
43196 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
43197 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
43198 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
43199 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
43200 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
43201 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
43202 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
43203 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
43204 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
43205 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
43206 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
43207 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
43208 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
43209 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
43210 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
43211 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
43212 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
43213 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
43214 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
43215 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
43216 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
43217 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
43218 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
43219 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
43220 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
43221 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
43222 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
43223 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
43224 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
43225 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
43226 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
43227 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
43228 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
43229 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
43230 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
43231 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
43232 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
43233 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
43234 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
43235 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
43236 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
43237 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
43238 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
43239 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
43240 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
43241 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
43242 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
43243 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
43244 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
43245 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
43246 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
43247 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
43248 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
43249 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
43250 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
43251 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
43252 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
43253 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
43254 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
43255 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
43256 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
43257 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
43258 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
43259 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
43260 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
43261 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
43262 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
43263 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
43264 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
43265 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
43266 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
43267 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
43268 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
43269 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
43270 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
43271 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
43272 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
43273 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
43274 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
43275 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
43276 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
43277 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
43278 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
43279 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
43280 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
43281 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
43282 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
43283 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
43284 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
43285 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
43286 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
43287 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
43288 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
43289 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
43290 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
43291 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
43292 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
43293 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
43294 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
43295 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
43296 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
43297 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
43298 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
43299 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
43300 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
43301 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
43302 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
43303 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
43304 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
43305 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
43306 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
43307 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
43308 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
43309 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
43310 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
43311 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
43312 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
43313 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
43314 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
43315 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
43316 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
43317 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
43318 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
43319 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
43320 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
43321 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
43322 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
43323 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
43324 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
43325 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
43326 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
43327 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
43328 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
43329 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
43330 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
43331 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
43332 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
43333 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
43334 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
43335 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
43336 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
43337 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
43338 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
43339 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
43340 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
43341 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
43342 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
43343 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
43344 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
43345 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
43346 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
43347 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
43348 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
43349 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
43350 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
43351 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
43352 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
43353 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
43354 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
43355 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
43356 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
43357 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
43358 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
43359 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
43360 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
43361 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
43362 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
43363 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
43364 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
43365 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
43366 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
43367 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
43368 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
43369 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
43370 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
43371 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
43372 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
43373 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
43374 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
43375 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
43376 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
43377 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
43378 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
43379 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
43380 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
43381 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
43382 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
43383 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
43384 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
43385 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
43386 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
43387 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
43388 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
43389 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
43390 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
43391 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
43392 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
43393 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
43394 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
43395 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
43396 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
43397 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
43398 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
43399 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
43400 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
43401 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
43402 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
43403 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
43404 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
43405 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
43406 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
43407 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
43408 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
43409 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
43410 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
43411 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
43412 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
43413 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
43414 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
43415 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
43416 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
43417 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
43418 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
43419 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
43420 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
43421 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
43422 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
43423 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
43424 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
43425 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
43426 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
43427 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
43428 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
43429 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
43430 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
43431 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
43432 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
43433 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
43434 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
43435 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
43436 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
43437 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
43438 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
43439 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
43440 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
43441 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
43442 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
43443 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
43444 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
43445 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
43446 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
43447 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
43448 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
43449 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
43450 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
43451 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43452 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43453 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43454 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43455 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43456 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43457 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43458 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43459 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43460 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43461 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43462 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43463 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43464 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43465 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43466 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43467 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43468 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43469 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43470 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43471 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43472 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43473 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43474 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43475 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43476 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43477 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43478 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43479 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43480 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43481 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43482 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43483 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43484 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43485 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43486 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43487 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43488 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43489 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43490 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43491 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43492 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43493 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43494 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43495 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43496 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43497 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43498 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43499 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43500 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43501 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43502 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43503 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43504 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43505 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43506 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43507 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43508 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43509 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43510 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43511 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43512 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43513 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43514 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43515 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43516 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43517 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43518 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43519 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43520 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43521 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43522 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43523 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43524 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43525 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43526 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43527 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43528 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43529 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43530 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43531 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43532 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43533 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43534 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43535 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43536 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43537 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43538 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43539 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43540 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43541 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43542 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43543 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43544 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43545 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43546 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43547 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43548 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43549 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43550 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43551 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43552 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43553 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43554 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43555 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43556 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43557 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43558 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43559 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43560 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43561 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43562 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43563 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43564 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43565 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43566 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43567 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43568 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43569 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43570 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43571 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43572 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43573 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43574 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43575 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43576 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43577 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43578 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43579 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43580 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43581 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43582 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43583 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43584 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43585 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43586 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43587 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43588 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43589 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43590 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43591 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43592 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43593 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43594 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43595 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43596 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43597 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43598 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43599 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43600 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43601 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43602 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43603 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43604 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43605 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43606 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43607 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43608 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43609 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43610 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43611 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43612 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43613 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43614 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43615 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43616 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43617 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43618 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43619 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43620 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43621 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43622 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43623 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43624 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43625 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43626 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43627 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43628 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43629 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43630 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43631 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43632 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43633 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43634 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43635 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43636 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43637 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43638 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43639 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43640 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43641 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43642 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43643 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43644 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43645 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43646 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43647 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43648 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43649 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43650 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43651 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43652 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43653 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43654 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43655 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43656 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43657 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43658 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43659 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43660 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43661 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43662 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43663 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43664 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43665 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43666 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43667 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43668 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43669 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43670 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43671 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43672 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43673 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43674 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43675 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43676 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43677 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43678 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43679 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43680 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43681 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43682 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43683 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43684 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43685 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43686 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43687 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43688 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43689 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
43690 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
43691 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c32bde28 RD |
43692 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43693 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43694 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43695 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43696 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43697 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43698 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43699 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43700 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43701 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43702 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43703 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43704 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43705 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43706 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43707 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43708 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43709 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43710 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43711 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43712 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43713 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43714 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43715 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43716 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43717 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43718 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43719 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43720 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43721 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43722 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43723 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43724 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43725 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43726 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43727 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43728 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43729 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43730 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43731 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43732 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43733 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43734 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43735 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43736 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43737 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43738 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43739 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43740 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43741 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43742 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
43743 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43744 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c32bde28 RD |
43745 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43746 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43747 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
43748 | |
43749 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43750 | ||
43751 | ||
43752 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43753 | ||
43754 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43755 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43756 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43757 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43758 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43759 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c32bde28 RD |
43760 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
43761 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
43762 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
43763 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
43764 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
43765 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
43766 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
43767 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
43768 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
43769 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
43770 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
43771 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
43772 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
43773 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
43774 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
43775 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
43776 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43777 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43778 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43779 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43780 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43781 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43782 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43783 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43784 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43785 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43786 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43787 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43788 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43789 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43790 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43791 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43792 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43793 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43794 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43795 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43796 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43797 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43798 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43799 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43800 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43801 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43802 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43803 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43804 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43805 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43806 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43807 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43808 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43809 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43810 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43811 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43812 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43813 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43814 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43815 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43816 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43817 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43818 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43819 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43820 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43821 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43822 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43823 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43824 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43825 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43826 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43827 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43828 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43829 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43830 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43831 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43832 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43833 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43834 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43835 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43836 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43837 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43838 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43839 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43840 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43841 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43842 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43843 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43844 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43845 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43846 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43847 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43848 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43849 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43850 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43851 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43852 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43853 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43854 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43855 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43856 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43857 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43858 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43859 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43860 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43861 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43862 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43863 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43864 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43865 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43866 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43867 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43868 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43869 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43870 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43871 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43872 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43873 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43874 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43875 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43876 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43877 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43878 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43879 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43880 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43881 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43882 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43883 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43884 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43885 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43886 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43887 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43888 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c32bde28 RD |
43889 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
43890 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
43891 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
43892 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
43893 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
43894 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
43895 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43896 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
43897 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
43898 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
43899 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
43900 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
43901 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43902 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43903 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
43904 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
43905 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
43906 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
43907 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
43908 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c32bde28 RD |
43909 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
43910 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
43911 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
43912 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
43913 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
43914 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
43915 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c32bde28 RD |
43916 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
43917 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43918 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 43919 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c32bde28 RD |
43920 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
43921 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
43922 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
43923 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
43924 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
43925 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
43926 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
43927 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
43928 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
43929 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
43930 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
43931 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
43932 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
43933 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
43934 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
43935 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
43936 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
43937 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
43938 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
43939 | |
43940 | // Initialize threading, some globals and such | |
43941 | __wxPyPreStart(d); | |
43942 | ||
43943 | ||
43944 | // Although these are defined in __version__ they need to be here too so | |
43945 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43946 | // versions match. | |
43947 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43948 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43949 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43950 | ||
43951 | } | |
43952 |