]>
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 | 1848 | } |
c1cb24a4 | 1849 | wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
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 ) | |
c1cb24a4 | 1860 | return self->Add(info.window, proportion, flag, border, data); |
d55e5bfc | 1861 | else if ( info.sizer ) |
c1cb24a4 | 1862 | return self->Add(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1863 | else if (info.gotSize) |
c1cb24a4 RD |
1864 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
1865 | proportion, flag, border, data); | |
1866 | else | |
1867 | return NULL; | |
d55e5bfc | 1868 | } |
c1cb24a4 | 1869 | wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1870 | |
1871 | wxPyUserData* data = NULL; | |
1872 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1873 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1874 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1875 | data = new wxPyUserData(userData); | |
1876 | wxPyEndBlockThreads(blocked); | |
1877 | ||
1878 | // Now call the real Insert method if a valid item type was found | |
1879 | if ( info.window ) | |
c1cb24a4 | 1880 | return self->Insert(before, info.window, proportion, flag, border, data); |
d55e5bfc | 1881 | else if ( info.sizer ) |
c1cb24a4 | 1882 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d55e5bfc | 1883 | else if (info.gotSize) |
c1cb24a4 RD |
1884 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
1885 | proportion, flag, border, data); | |
1886 | else | |
1887 | return NULL; | |
d55e5bfc | 1888 | } |
c1cb24a4 | 1889 | wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1890 | |
1891 | wxPyUserData* data = NULL; | |
1892 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1893 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1894 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1895 | data = new wxPyUserData(userData); | |
1896 | wxPyEndBlockThreads(blocked); | |
1897 | ||
1898 | // Now call the real Prepend method if a valid item type was found | |
1899 | if ( info.window ) | |
c1cb24a4 | 1900 | return self->Prepend(info.window, proportion, flag, border, data); |
d55e5bfc | 1901 | else if ( info.sizer ) |
c1cb24a4 | 1902 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1903 | else if (info.gotSize) |
c1cb24a4 RD |
1904 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
1905 | proportion, flag, border, data); | |
1906 | else | |
1907 | return NULL; | |
d55e5bfc RD |
1908 | } |
1909 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1910 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1911 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1912 | wxPyEndBlockThreads(blocked); |
1913 | if ( info.window ) | |
1914 | return self->Remove(info.window); | |
1915 | else if ( info.sizer ) | |
1916 | return self->Remove(info.sizer); | |
1917 | else if ( info.gotPos ) | |
1918 | return self->Remove(info.pos); | |
1919 | else | |
ae8162c8 | 1920 | return false; |
d55e5bfc | 1921 | } |
1a6bba1e RD |
1922 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1923 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1924 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
1925 | wxPyEndBlockThreads(blocked); |
1926 | if ( info.window ) | |
1927 | return self->Detach(info.window); | |
1928 | else if ( info.sizer ) | |
1929 | return self->Detach(info.sizer); | |
1930 | else if ( info.gotPos ) | |
1931 | return self->Detach(info.pos); | |
1932 | else | |
ae8162c8 | 1933 | return false; |
1a6bba1e | 1934 | } |
c1cb24a4 RD |
1935 | wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
1936 | bool blocked = wxPyBeginBlockThreads(); | |
1937 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1938 | wxPyEndBlockThreads(blocked); | |
1939 | if ( info.window ) | |
1940 | return self->GetItem(info.window); | |
1941 | else if ( info.sizer ) | |
1942 | return self->GetItem(info.sizer); | |
1943 | else if ( info.gotPos ) | |
1944 | return self->GetItem(info.pos); | |
1945 | else | |
1946 | return NULL; | |
1947 | } | |
d55e5bfc RD |
1948 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1949 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1950 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1951 | wxPyEndBlockThreads(blocked); |
1952 | if ( info.window ) | |
1953 | self->SetItemMinSize(info.window, size); | |
1954 | else if ( info.sizer ) | |
1955 | self->SetItemMinSize(info.sizer, size); | |
1956 | else if ( info.gotPos ) | |
1957 | self->SetItemMinSize(info.pos, size); | |
1958 | } | |
1959 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1960 | wxSizerItemList& list = self->GetChildren(); | |
1961 | return wxPy_ConvertList(&list); | |
1962 | } | |
7e63a440 | 1963 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
c24da6d6 | 1964 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1965 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
c24da6d6 | 1966 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 1967 | if ( info.window ) |
7e63a440 | 1968 | return self->Show(info.window, show, recursive); |
d55e5bfc | 1969 | else if ( info.sizer ) |
7e63a440 | 1970 | return self->Show(info.sizer, show, recursive); |
248ed943 | 1971 | else if ( info.gotPos ) |
7e63a440 | 1972 | return self->Show(info.pos, show); |
ae8162c8 RD |
1973 | else |
1974 | return false; | |
d55e5bfc RD |
1975 | } |
1976 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1977 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1978 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
c24da6d6 | 1979 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1980 | if ( info.window ) |
1981 | return self->IsShown(info.window); | |
1982 | else if ( info.sizer ) | |
1983 | return self->IsShown(info.sizer); | |
248ed943 RD |
1984 | else if ( info.gotPos ) |
1985 | return self->IsShown(info.pos); | |
d55e5bfc | 1986 | else |
ae8162c8 | 1987 | return false; |
d55e5bfc RD |
1988 | } |
1989 | ||
1990 | // See pyclasses.h | |
1991 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1992 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1993 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1999 | { | |
2000 | if (source == Py_None) { | |
2001 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 2002 | return true; |
d55e5bfc RD |
2003 | } |
2004 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
2005 | } | |
2006 | ||
2007 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
2008 | { | |
2009 | if (source == Py_None) { | |
2010 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 2011 | return true; |
d55e5bfc RD |
2012 | } |
2013 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
2014 | } | |
2015 | ||
2016 | ||
2017 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
2018 | self->SetRow(row); | |
2019 | self->SetCol(col); | |
2020 | } | |
2021 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
2022 | bool blocked = wxPyBeginBlockThreads(); | |
2023 | PyObject* tup = PyTuple_New(2); | |
2024 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2025 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
2026 | wxPyEndBlockThreads(blocked); | |
2027 | return tup; | |
2028 | } | |
2029 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
2030 | self->SetRowspan(rowspan); | |
2031 | self->SetColspan(colspan); | |
2032 | } | |
2033 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
2034 | bool blocked = wxPyBeginBlockThreads(); | |
2035 | PyObject* tup = PyTuple_New(2); | |
2036 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2037 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
2038 | wxPyEndBlockThreads(blocked); | |
2039 | return tup; | |
2040 | } | |
248ed943 RD |
2041 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2042 | wxPyUserData* data = NULL; | |
2043 | if ( userData ) { | |
2044 | bool blocked = wxPyBeginBlockThreads(); | |
2045 | data = new wxPyUserData(userData); | |
2046 | wxPyEndBlockThreads(blocked); | |
2047 | } | |
2048 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2049 | } | |
2050 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2051 | wxPyUserData* data = NULL; | |
2052 | if ( userData ) { | |
2053 | bool blocked = wxPyBeginBlockThreads(); | |
2054 | data = new wxPyUserData(userData); | |
2055 | wxPyEndBlockThreads(blocked); | |
2056 | } | |
2057 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2058 | } | |
2059 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2060 | wxPyUserData* data = NULL; | |
2061 | if ( userData ) { | |
2062 | bool blocked = wxPyBeginBlockThreads(); | |
2063 | data = new wxPyUserData(userData); | |
2064 | wxPyEndBlockThreads(blocked); | |
2065 | } | |
2066 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2067 | } | |
2068 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2069 | int row, col; | |
2070 | self->GetEndPos(row, col); | |
2071 | return wxGBPosition(row, col); | |
2072 | } | |
c1cb24a4 | 2073 | wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
2074 | |
2075 | wxPyUserData* data = NULL; | |
2076 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2077 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2078 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2079 | data = new wxPyUserData(userData); | |
2080 | wxPyEndBlockThreads(blocked); | |
2081 | ||
2082 | // Now call the real Add method if a valid item type was found | |
2083 | if ( info.window ) | |
c1cb24a4 | 2084 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d55e5bfc | 2085 | else if ( info.sizer ) |
c1cb24a4 | 2086 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d55e5bfc | 2087 | else if (info.gotSize) |
c1cb24a4 RD |
2088 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
2089 | pos, span, flag, border, data); | |
2090 | return NULL; | |
d55e5bfc RD |
2091 | } |
2092 | ||
2093 | ||
2094 | #ifdef __cplusplus | |
2095 | extern "C" { | |
2096 | #endif | |
c32bde28 | 2097 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
2098 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2099 | return 1; | |
2100 | } | |
2101 | ||
2102 | ||
2103 | static PyObject *_wrap_EmptyString_get() { | |
2104 | PyObject *pyobj; | |
2105 | ||
2106 | { | |
2107 | #if wxUSE_UNICODE | |
2108 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2109 | #else | |
2110 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2111 | #endif | |
2112 | } | |
2113 | return pyobj; | |
2114 | } | |
2115 | ||
2116 | ||
c32bde28 | 2117 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2118 | PyObject *resultobj; |
2119 | wxObject *arg1 = (wxObject *) 0 ; | |
2120 | wxString result; | |
2121 | PyObject * obj0 = 0 ; | |
2122 | char *kwnames[] = { | |
2123 | (char *) "self", NULL | |
2124 | }; | |
2125 | ||
2126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2129 | { | |
2130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131 | result = wxObject_GetClassName(arg1); | |
2132 | ||
2133 | wxPyEndAllowThreads(__tstate); | |
2134 | if (PyErr_Occurred()) SWIG_fail; | |
2135 | } | |
2136 | { | |
2137 | #if wxUSE_UNICODE | |
2138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2139 | #else | |
2140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2141 | #endif | |
2142 | } | |
2143 | return resultobj; | |
2144 | fail: | |
2145 | return NULL; | |
2146 | } | |
2147 | ||
2148 | ||
c32bde28 | 2149 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2150 | PyObject *resultobj; |
2151 | wxObject *arg1 = (wxObject *) 0 ; | |
2152 | PyObject * obj0 = 0 ; | |
2153 | char *kwnames[] = { | |
2154 | (char *) "self", NULL | |
2155 | }; | |
2156 | ||
2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2160 | { | |
2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2162 | wxObject_Destroy(arg1); | |
2163 | ||
2164 | wxPyEndAllowThreads(__tstate); | |
2165 | if (PyErr_Occurred()) SWIG_fail; | |
2166 | } | |
2167 | Py_INCREF(Py_None); resultobj = Py_None; | |
2168 | return resultobj; | |
2169 | fail: | |
2170 | return NULL; | |
2171 | } | |
2172 | ||
2173 | ||
c32bde28 | 2174 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2175 | PyObject *obj; |
2176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2177 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2178 | Py_INCREF(obj); | |
2179 | return Py_BuildValue((char *)""); | |
2180 | } | |
c32bde28 | 2181 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2182 | PyObject *resultobj; |
2183 | wxSize *arg1 = (wxSize *) 0 ; | |
2184 | int arg2 ; | |
2185 | PyObject * obj0 = 0 ; | |
2186 | PyObject * obj1 = 0 ; | |
2187 | char *kwnames[] = { | |
2188 | (char *) "self",(char *) "x", NULL | |
2189 | }; | |
2190 | ||
2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
2192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2194 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2195 | if (PyErr_Occurred()) SWIG_fail; |
2196 | if (arg1) (arg1)->x = arg2; | |
2197 | ||
2198 | Py_INCREF(Py_None); resultobj = Py_None; | |
2199 | return resultobj; | |
2200 | fail: | |
2201 | return NULL; | |
2202 | } | |
2203 | ||
2204 | ||
c32bde28 | 2205 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2206 | PyObject *resultobj; |
2207 | wxSize *arg1 = (wxSize *) 0 ; | |
2208 | int result; | |
2209 | PyObject * obj0 = 0 ; | |
2210 | char *kwnames[] = { | |
2211 | (char *) "self", NULL | |
2212 | }; | |
2213 | ||
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2217 | result = (int) ((arg1)->x); | |
2218 | ||
c32bde28 | 2219 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2220 | return resultobj; |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
c32bde28 | 2226 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2227 | PyObject *resultobj; |
2228 | wxSize *arg1 = (wxSize *) 0 ; | |
2229 | int arg2 ; | |
2230 | PyObject * obj0 = 0 ; | |
2231 | PyObject * obj1 = 0 ; | |
2232 | char *kwnames[] = { | |
2233 | (char *) "self",(char *) "y", NULL | |
2234 | }; | |
2235 | ||
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
2237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2239 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2240 | if (PyErr_Occurred()) SWIG_fail; |
2241 | if (arg1) (arg1)->y = arg2; | |
2242 | ||
2243 | Py_INCREF(Py_None); resultobj = Py_None; | |
2244 | return resultobj; | |
2245 | fail: | |
2246 | return NULL; | |
2247 | } | |
2248 | ||
2249 | ||
c32bde28 | 2250 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2251 | PyObject *resultobj; |
2252 | wxSize *arg1 = (wxSize *) 0 ; | |
2253 | int result; | |
2254 | PyObject * obj0 = 0 ; | |
2255 | char *kwnames[] = { | |
2256 | (char *) "self", NULL | |
2257 | }; | |
2258 | ||
2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2262 | result = (int) ((arg1)->y); | |
2263 | ||
c32bde28 | 2264 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2265 | return resultobj; |
2266 | fail: | |
2267 | return NULL; | |
2268 | } | |
2269 | ||
2270 | ||
c32bde28 | 2271 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2272 | PyObject *resultobj; |
2273 | int arg1 = (int) 0 ; | |
2274 | int arg2 = (int) 0 ; | |
2275 | wxSize *result; | |
2276 | PyObject * obj0 = 0 ; | |
2277 | PyObject * obj1 = 0 ; | |
2278 | char *kwnames[] = { | |
2279 | (char *) "w",(char *) "h", NULL | |
2280 | }; | |
2281 | ||
2282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2283 | if (obj0) { | |
c32bde28 | 2284 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2285 | if (PyErr_Occurred()) SWIG_fail; |
2286 | } | |
2287 | if (obj1) { | |
c32bde28 | 2288 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2289 | if (PyErr_Occurred()) SWIG_fail; |
2290 | } | |
2291 | { | |
2292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2293 | result = (wxSize *)new wxSize(arg1,arg2); | |
2294 | ||
2295 | wxPyEndAllowThreads(__tstate); | |
2296 | if (PyErr_Occurred()) SWIG_fail; | |
2297 | } | |
2298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2299 | return resultobj; | |
2300 | fail: | |
2301 | return NULL; | |
2302 | } | |
2303 | ||
2304 | ||
c32bde28 | 2305 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2306 | PyObject *resultobj; |
2307 | wxSize *arg1 = (wxSize *) 0 ; | |
2308 | PyObject * obj0 = 0 ; | |
2309 | char *kwnames[] = { | |
2310 | (char *) "self", NULL | |
2311 | }; | |
2312 | ||
2313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2316 | { | |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2318 | delete arg1; | |
2319 | ||
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) SWIG_fail; | |
2322 | } | |
2323 | Py_INCREF(Py_None); resultobj = Py_None; | |
2324 | return resultobj; | |
2325 | fail: | |
2326 | return NULL; | |
2327 | } | |
2328 | ||
2329 | ||
c32bde28 | 2330 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2331 | PyObject *resultobj; |
2332 | wxSize *arg1 = (wxSize *) 0 ; | |
2333 | wxSize *arg2 = 0 ; | |
2334 | bool result; | |
2335 | wxSize temp2 ; | |
2336 | PyObject * obj0 = 0 ; | |
2337 | PyObject * obj1 = 0 ; | |
2338 | char *kwnames[] = { | |
2339 | (char *) "self",(char *) "sz", NULL | |
2340 | }; | |
2341 | ||
2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2345 | { | |
2346 | arg2 = &temp2; | |
2347 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2348 | } | |
2349 | { | |
2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2351 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2352 | ||
2353 | wxPyEndAllowThreads(__tstate); | |
2354 | if (PyErr_Occurred()) SWIG_fail; | |
2355 | } | |
2356 | { | |
2357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2358 | } | |
2359 | return resultobj; | |
2360 | fail: | |
2361 | return NULL; | |
2362 | } | |
2363 | ||
2364 | ||
c32bde28 | 2365 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2366 | PyObject *resultobj; |
2367 | wxSize *arg1 = (wxSize *) 0 ; | |
2368 | wxSize *arg2 = 0 ; | |
2369 | bool result; | |
2370 | wxSize temp2 ; | |
2371 | PyObject * obj0 = 0 ; | |
2372 | PyObject * obj1 = 0 ; | |
2373 | char *kwnames[] = { | |
2374 | (char *) "self",(char *) "sz", NULL | |
2375 | }; | |
2376 | ||
2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2380 | { | |
2381 | arg2 = &temp2; | |
2382 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2383 | } | |
2384 | { | |
2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2386 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2387 | ||
2388 | wxPyEndAllowThreads(__tstate); | |
2389 | if (PyErr_Occurred()) SWIG_fail; | |
2390 | } | |
2391 | { | |
2392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2393 | } | |
2394 | return resultobj; | |
2395 | fail: | |
2396 | return NULL; | |
2397 | } | |
2398 | ||
2399 | ||
c32bde28 | 2400 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2401 | PyObject *resultobj; |
2402 | wxSize *arg1 = (wxSize *) 0 ; | |
2403 | wxSize *arg2 = 0 ; | |
2404 | wxSize result; | |
2405 | wxSize temp2 ; | |
2406 | PyObject * obj0 = 0 ; | |
2407 | PyObject * obj1 = 0 ; | |
2408 | char *kwnames[] = { | |
2409 | (char *) "self",(char *) "sz", NULL | |
2410 | }; | |
2411 | ||
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2415 | { | |
2416 | arg2 = &temp2; | |
2417 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2418 | } | |
2419 | { | |
2420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2421 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2422 | ||
2423 | wxPyEndAllowThreads(__tstate); | |
2424 | if (PyErr_Occurred()) SWIG_fail; | |
2425 | } | |
2426 | { | |
2427 | wxSize * resultptr; | |
2428 | resultptr = new wxSize((wxSize &) result); | |
2429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2430 | } | |
2431 | return resultobj; | |
2432 | fail: | |
2433 | return NULL; | |
2434 | } | |
2435 | ||
2436 | ||
c32bde28 | 2437 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2438 | PyObject *resultobj; |
2439 | wxSize *arg1 = (wxSize *) 0 ; | |
2440 | wxSize *arg2 = 0 ; | |
2441 | wxSize result; | |
2442 | wxSize temp2 ; | |
2443 | PyObject * obj0 = 0 ; | |
2444 | PyObject * obj1 = 0 ; | |
2445 | char *kwnames[] = { | |
2446 | (char *) "self",(char *) "sz", NULL | |
2447 | }; | |
2448 | ||
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2452 | { | |
2453 | arg2 = &temp2; | |
2454 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2455 | } | |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2458 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2459 | ||
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) SWIG_fail; | |
2462 | } | |
2463 | { | |
2464 | wxSize * resultptr; | |
2465 | resultptr = new wxSize((wxSize &) result); | |
2466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2467 | } | |
2468 | return resultobj; | |
2469 | fail: | |
2470 | return NULL; | |
2471 | } | |
2472 | ||
2473 | ||
c32bde28 | 2474 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2475 | PyObject *resultobj; |
2476 | wxSize *arg1 = (wxSize *) 0 ; | |
2477 | wxSize *arg2 = 0 ; | |
2478 | wxSize temp2 ; | |
2479 | PyObject * obj0 = 0 ; | |
2480 | PyObject * obj1 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "self",(char *) "sz", NULL | |
2483 | }; | |
2484 | ||
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2488 | { | |
2489 | arg2 = &temp2; | |
2490 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2491 | } | |
2492 | { | |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2494 | (arg1)->IncTo((wxSize const &)*arg2); | |
2495 | ||
2496 | wxPyEndAllowThreads(__tstate); | |
2497 | if (PyErr_Occurred()) SWIG_fail; | |
2498 | } | |
2499 | Py_INCREF(Py_None); resultobj = Py_None; | |
2500 | return resultobj; | |
2501 | fail: | |
2502 | return NULL; | |
2503 | } | |
2504 | ||
2505 | ||
c32bde28 | 2506 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2507 | PyObject *resultobj; |
2508 | wxSize *arg1 = (wxSize *) 0 ; | |
2509 | wxSize *arg2 = 0 ; | |
2510 | wxSize temp2 ; | |
2511 | PyObject * obj0 = 0 ; | |
2512 | PyObject * obj1 = 0 ; | |
2513 | char *kwnames[] = { | |
2514 | (char *) "self",(char *) "sz", NULL | |
2515 | }; | |
2516 | ||
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2520 | { | |
2521 | arg2 = &temp2; | |
2522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2523 | } | |
2524 | { | |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | (arg1)->DecTo((wxSize const &)*arg2); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
2531 | Py_INCREF(Py_None); resultobj = Py_None; | |
2532 | return resultobj; | |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
c32bde28 | 2538 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2539 | PyObject *resultobj; |
2540 | wxSize *arg1 = (wxSize *) 0 ; | |
2541 | int arg2 ; | |
2542 | int arg3 ; | |
2543 | PyObject * obj0 = 0 ; | |
2544 | PyObject * obj1 = 0 ; | |
2545 | PyObject * obj2 = 0 ; | |
2546 | char *kwnames[] = { | |
2547 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2548 | }; | |
2549 | ||
2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2553 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2554 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2555 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2556 | if (PyErr_Occurred()) SWIG_fail; |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | (arg1)->Set(arg2,arg3); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | Py_INCREF(Py_None); resultobj = Py_None; | |
2565 | return resultobj; | |
2566 | fail: | |
2567 | return NULL; | |
2568 | } | |
2569 | ||
2570 | ||
c32bde28 | 2571 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2572 | PyObject *resultobj; |
2573 | wxSize *arg1 = (wxSize *) 0 ; | |
2574 | int arg2 ; | |
2575 | PyObject * obj0 = 0 ; | |
2576 | PyObject * obj1 = 0 ; | |
2577 | char *kwnames[] = { | |
2578 | (char *) "self",(char *) "w", NULL | |
2579 | }; | |
2580 | ||
2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2584 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2585 | if (PyErr_Occurred()) SWIG_fail; |
2586 | { | |
2587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2588 | (arg1)->SetWidth(arg2); | |
2589 | ||
2590 | wxPyEndAllowThreads(__tstate); | |
2591 | if (PyErr_Occurred()) SWIG_fail; | |
2592 | } | |
2593 | Py_INCREF(Py_None); resultobj = Py_None; | |
2594 | return resultobj; | |
2595 | fail: | |
2596 | return NULL; | |
2597 | } | |
2598 | ||
2599 | ||
c32bde28 | 2600 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2601 | PyObject *resultobj; |
2602 | wxSize *arg1 = (wxSize *) 0 ; | |
2603 | int arg2 ; | |
2604 | PyObject * obj0 = 0 ; | |
2605 | PyObject * obj1 = 0 ; | |
2606 | char *kwnames[] = { | |
2607 | (char *) "self",(char *) "h", NULL | |
2608 | }; | |
2609 | ||
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2613 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2614 | if (PyErr_Occurred()) SWIG_fail; |
2615 | { | |
2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2617 | (arg1)->SetHeight(arg2); | |
2618 | ||
2619 | wxPyEndAllowThreads(__tstate); | |
2620 | if (PyErr_Occurred()) SWIG_fail; | |
2621 | } | |
2622 | Py_INCREF(Py_None); resultobj = Py_None; | |
2623 | return resultobj; | |
2624 | fail: | |
2625 | return NULL; | |
2626 | } | |
2627 | ||
2628 | ||
c32bde28 | 2629 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2630 | PyObject *resultobj; |
2631 | wxSize *arg1 = (wxSize *) 0 ; | |
2632 | int result; | |
2633 | PyObject * obj0 = 0 ; | |
2634 | char *kwnames[] = { | |
2635 | (char *) "self", NULL | |
2636 | }; | |
2637 | ||
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
c32bde28 | 2648 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2649 | return resultobj; |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
c32bde28 | 2655 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2656 | PyObject *resultobj; |
2657 | wxSize *arg1 = (wxSize *) 0 ; | |
2658 | int result; | |
2659 | PyObject * obj0 = 0 ; | |
2660 | char *kwnames[] = { | |
2661 | (char *) "self", NULL | |
2662 | }; | |
2663 | ||
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2667 | { | |
2668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2669 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2670 | ||
2671 | wxPyEndAllowThreads(__tstate); | |
2672 | if (PyErr_Occurred()) SWIG_fail; | |
2673 | } | |
c32bde28 | 2674 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2675 | return resultobj; |
2676 | fail: | |
2677 | return NULL; | |
2678 | } | |
2679 | ||
2680 | ||
c32bde28 | 2681 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2682 | PyObject *resultobj; |
2683 | wxSize *arg1 = (wxSize *) 0 ; | |
2684 | bool result; | |
2685 | PyObject * obj0 = 0 ; | |
2686 | char *kwnames[] = { | |
2687 | (char *) "self", NULL | |
2688 | }; | |
2689 | ||
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2693 | { | |
2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2695 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2696 | ||
2697 | wxPyEndAllowThreads(__tstate); | |
2698 | if (PyErr_Occurred()) SWIG_fail; | |
2699 | } | |
2700 | { | |
2701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2702 | } | |
2703 | return resultobj; | |
2704 | fail: | |
2705 | return NULL; | |
2706 | } | |
2707 | ||
2708 | ||
c32bde28 | 2709 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2710 | PyObject *resultobj; |
2711 | wxSize *arg1 = (wxSize *) 0 ; | |
2712 | wxSize *arg2 = 0 ; | |
2713 | wxSize temp2 ; | |
2714 | PyObject * obj0 = 0 ; | |
2715 | PyObject * obj1 = 0 ; | |
2716 | char *kwnames[] = { | |
2717 | (char *) "self",(char *) "size", NULL | |
2718 | }; | |
2719 | ||
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2723 | { | |
2724 | arg2 = &temp2; | |
2725 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
2734 | Py_INCREF(Py_None); resultobj = Py_None; | |
2735 | return resultobj; | |
2736 | fail: | |
2737 | return NULL; | |
2738 | } | |
2739 | ||
2740 | ||
c32bde28 | 2741 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2742 | PyObject *resultobj; |
2743 | wxSize *arg1 = (wxSize *) 0 ; | |
2744 | PyObject *result; | |
2745 | PyObject * obj0 = 0 ; | |
2746 | char *kwnames[] = { | |
2747 | (char *) "self", NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2753 | { | |
2754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2755 | result = (PyObject *)wxSize_Get(arg1); | |
2756 | ||
2757 | wxPyEndAllowThreads(__tstate); | |
2758 | if (PyErr_Occurred()) SWIG_fail; | |
2759 | } | |
2760 | resultobj = result; | |
2761 | return resultobj; | |
2762 | fail: | |
2763 | return NULL; | |
2764 | } | |
2765 | ||
2766 | ||
c32bde28 | 2767 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2768 | PyObject *obj; |
2769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2770 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2771 | Py_INCREF(obj); | |
2772 | return Py_BuildValue((char *)""); | |
2773 | } | |
c32bde28 | 2774 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2775 | PyObject *resultobj; |
2776 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2777 | double arg2 ; | |
2778 | PyObject * obj0 = 0 ; | |
2779 | PyObject * obj1 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "self",(char *) "x", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2787 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2788 | if (PyErr_Occurred()) SWIG_fail; |
2789 | if (arg1) (arg1)->x = arg2; | |
2790 | ||
2791 | Py_INCREF(Py_None); resultobj = Py_None; | |
2792 | return resultobj; | |
2793 | fail: | |
2794 | return NULL; | |
2795 | } | |
2796 | ||
2797 | ||
c32bde28 | 2798 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2799 | PyObject *resultobj; |
2800 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2801 | double result; | |
2802 | PyObject * obj0 = 0 ; | |
2803 | char *kwnames[] = { | |
2804 | (char *) "self", NULL | |
2805 | }; | |
2806 | ||
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2810 | result = (double) ((arg1)->x); | |
2811 | ||
c32bde28 | 2812 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2813 | return resultobj; |
2814 | fail: | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
c32bde28 | 2819 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2820 | PyObject *resultobj; |
2821 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2822 | double arg2 ; | |
2823 | PyObject * obj0 = 0 ; | |
2824 | PyObject * obj1 = 0 ; | |
2825 | char *kwnames[] = { | |
2826 | (char *) "self",(char *) "y", NULL | |
2827 | }; | |
2828 | ||
2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2832 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2833 | if (PyErr_Occurred()) SWIG_fail; |
2834 | if (arg1) (arg1)->y = arg2; | |
2835 | ||
2836 | Py_INCREF(Py_None); resultobj = Py_None; | |
2837 | return resultobj; | |
2838 | fail: | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
c32bde28 | 2843 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2844 | PyObject *resultobj; |
2845 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2846 | double result; | |
2847 | PyObject * obj0 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "self", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2855 | result = (double) ((arg1)->y); | |
2856 | ||
c32bde28 | 2857 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2858 | return resultobj; |
2859 | fail: | |
2860 | return NULL; | |
2861 | } | |
2862 | ||
2863 | ||
c32bde28 | 2864 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2865 | PyObject *resultobj; |
2866 | double arg1 = (double) 0.0 ; | |
2867 | double arg2 = (double) 0.0 ; | |
2868 | wxRealPoint *result; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | PyObject * obj1 = 0 ; | |
2871 | char *kwnames[] = { | |
2872 | (char *) "x",(char *) "y", NULL | |
2873 | }; | |
2874 | ||
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2876 | if (obj0) { | |
c32bde28 | 2877 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
2878 | if (PyErr_Occurred()) SWIG_fail; |
2879 | } | |
2880 | if (obj1) { | |
c32bde28 | 2881 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2882 | if (PyErr_Occurred()) SWIG_fail; |
2883 | } | |
2884 | { | |
2885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2886 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2887 | ||
2888 | wxPyEndAllowThreads(__tstate); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
2891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2892 | return resultobj; | |
2893 | fail: | |
2894 | return NULL; | |
2895 | } | |
2896 | ||
2897 | ||
c32bde28 | 2898 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2899 | PyObject *resultobj; |
2900 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2901 | PyObject * obj0 = 0 ; | |
2902 | char *kwnames[] = { | |
2903 | (char *) "self", NULL | |
2904 | }; | |
2905 | ||
2906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2909 | { | |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | delete arg1; | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
2916 | Py_INCREF(Py_None); resultobj = Py_None; | |
2917 | return resultobj; | |
2918 | fail: | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
c32bde28 | 2923 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2924 | PyObject *resultobj; |
2925 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2926 | wxRealPoint *arg2 = 0 ; | |
2927 | bool result; | |
2928 | wxRealPoint temp2 ; | |
2929 | PyObject * obj0 = 0 ; | |
2930 | PyObject * obj1 = 0 ; | |
2931 | char *kwnames[] = { | |
2932 | (char *) "self",(char *) "pt", NULL | |
2933 | }; | |
2934 | ||
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2938 | { | |
2939 | arg2 = &temp2; | |
2940 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2941 | } | |
2942 | { | |
2943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2944 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2945 | ||
2946 | wxPyEndAllowThreads(__tstate); | |
2947 | if (PyErr_Occurred()) SWIG_fail; | |
2948 | } | |
2949 | { | |
2950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2951 | } | |
2952 | return resultobj; | |
2953 | fail: | |
2954 | return NULL; | |
2955 | } | |
2956 | ||
2957 | ||
c32bde28 | 2958 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2959 | PyObject *resultobj; |
2960 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2961 | wxRealPoint *arg2 = 0 ; | |
2962 | bool result; | |
2963 | wxRealPoint temp2 ; | |
2964 | PyObject * obj0 = 0 ; | |
2965 | PyObject * obj1 = 0 ; | |
2966 | char *kwnames[] = { | |
2967 | (char *) "self",(char *) "pt", NULL | |
2968 | }; | |
2969 | ||
2970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2973 | { | |
2974 | arg2 = &temp2; | |
2975 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2976 | } | |
2977 | { | |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2986 | } | |
2987 | return resultobj; | |
2988 | fail: | |
2989 | return NULL; | |
2990 | } | |
2991 | ||
2992 | ||
c32bde28 | 2993 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2994 | PyObject *resultobj; |
2995 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2996 | wxRealPoint *arg2 = 0 ; | |
2997 | wxRealPoint result; | |
2998 | wxRealPoint temp2 ; | |
2999 | PyObject * obj0 = 0 ; | |
3000 | PyObject * obj1 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "self",(char *) "pt", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
3006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3008 | { | |
3009 | arg2 = &temp2; | |
3010 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3011 | } | |
3012 | { | |
3013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3014 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
3015 | ||
3016 | wxPyEndAllowThreads(__tstate); | |
3017 | if (PyErr_Occurred()) SWIG_fail; | |
3018 | } | |
3019 | { | |
3020 | wxRealPoint * resultptr; | |
3021 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3022 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3023 | } | |
3024 | return resultobj; | |
3025 | fail: | |
3026 | return NULL; | |
3027 | } | |
3028 | ||
3029 | ||
c32bde28 | 3030 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3031 | PyObject *resultobj; |
3032 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3033 | wxRealPoint *arg2 = 0 ; | |
3034 | wxRealPoint result; | |
3035 | wxRealPoint temp2 ; | |
3036 | PyObject * obj0 = 0 ; | |
3037 | PyObject * obj1 = 0 ; | |
3038 | char *kwnames[] = { | |
3039 | (char *) "self",(char *) "pt", NULL | |
3040 | }; | |
3041 | ||
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3045 | { | |
3046 | arg2 = &temp2; | |
3047 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3048 | } | |
3049 | { | |
3050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3051 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
3052 | ||
3053 | wxPyEndAllowThreads(__tstate); | |
3054 | if (PyErr_Occurred()) SWIG_fail; | |
3055 | } | |
3056 | { | |
3057 | wxRealPoint * resultptr; | |
3058 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | return NULL; | |
3064 | } | |
3065 | ||
3066 | ||
c32bde28 | 3067 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3068 | PyObject *resultobj; |
3069 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3070 | double arg2 ; | |
3071 | double arg3 ; | |
3072 | PyObject * obj0 = 0 ; | |
3073 | PyObject * obj1 = 0 ; | |
3074 | PyObject * obj2 = 0 ; | |
3075 | char *kwnames[] = { | |
3076 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3077 | }; | |
3078 | ||
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3082 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 3083 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3084 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
3085 | if (PyErr_Occurred()) SWIG_fail; |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | wxRealPoint_Set(arg1,arg2,arg3); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | Py_INCREF(Py_None); resultobj = Py_None; | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
c32bde28 | 3100 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3101 | PyObject *resultobj; |
3102 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3103 | PyObject *result; | |
3104 | PyObject * obj0 = 0 ; | |
3105 | char *kwnames[] = { | |
3106 | (char *) "self", NULL | |
3107 | }; | |
3108 | ||
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
3110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3114 | result = (PyObject *)wxRealPoint_Get(arg1); | |
3115 | ||
3116 | wxPyEndAllowThreads(__tstate); | |
3117 | if (PyErr_Occurred()) SWIG_fail; | |
3118 | } | |
3119 | resultobj = result; | |
3120 | return resultobj; | |
3121 | fail: | |
3122 | return NULL; | |
3123 | } | |
3124 | ||
3125 | ||
c32bde28 | 3126 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3127 | PyObject *obj; |
3128 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3129 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3130 | Py_INCREF(obj); | |
3131 | return Py_BuildValue((char *)""); | |
3132 | } | |
c32bde28 | 3133 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3134 | PyObject *resultobj; |
3135 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3136 | int arg2 ; | |
3137 | PyObject * obj0 = 0 ; | |
3138 | PyObject * obj1 = 0 ; | |
3139 | char *kwnames[] = { | |
3140 | (char *) "self",(char *) "x", NULL | |
3141 | }; | |
3142 | ||
3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
3144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3146 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3147 | if (PyErr_Occurred()) SWIG_fail; |
3148 | if (arg1) (arg1)->x = arg2; | |
3149 | ||
3150 | Py_INCREF(Py_None); resultobj = Py_None; | |
3151 | return resultobj; | |
3152 | fail: | |
3153 | return NULL; | |
3154 | } | |
3155 | ||
3156 | ||
c32bde28 | 3157 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3158 | PyObject *resultobj; |
3159 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3160 | int result; | |
3161 | PyObject * obj0 = 0 ; | |
3162 | char *kwnames[] = { | |
3163 | (char *) "self", NULL | |
3164 | }; | |
3165 | ||
3166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
3167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3169 | result = (int) ((arg1)->x); | |
3170 | ||
c32bde28 | 3171 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3172 | return resultobj; |
3173 | fail: | |
3174 | return NULL; | |
3175 | } | |
3176 | ||
3177 | ||
c32bde28 | 3178 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3179 | PyObject *resultobj; |
3180 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3181 | int arg2 ; | |
3182 | PyObject * obj0 = 0 ; | |
3183 | PyObject * obj1 = 0 ; | |
3184 | char *kwnames[] = { | |
3185 | (char *) "self",(char *) "y", NULL | |
3186 | }; | |
3187 | ||
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
3189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3191 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3192 | if (PyErr_Occurred()) SWIG_fail; |
3193 | if (arg1) (arg1)->y = arg2; | |
3194 | ||
3195 | Py_INCREF(Py_None); resultobj = Py_None; | |
3196 | return resultobj; | |
3197 | fail: | |
3198 | return NULL; | |
3199 | } | |
3200 | ||
3201 | ||
c32bde28 | 3202 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3203 | PyObject *resultobj; |
3204 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3205 | int result; | |
3206 | PyObject * obj0 = 0 ; | |
3207 | char *kwnames[] = { | |
3208 | (char *) "self", NULL | |
3209 | }; | |
3210 | ||
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
3212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3214 | result = (int) ((arg1)->y); | |
3215 | ||
c32bde28 | 3216 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3217 | return resultobj; |
3218 | fail: | |
3219 | return NULL; | |
3220 | } | |
3221 | ||
3222 | ||
c32bde28 | 3223 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3224 | PyObject *resultobj; |
3225 | int arg1 = (int) 0 ; | |
3226 | int arg2 = (int) 0 ; | |
3227 | wxPoint *result; | |
3228 | PyObject * obj0 = 0 ; | |
3229 | PyObject * obj1 = 0 ; | |
3230 | char *kwnames[] = { | |
3231 | (char *) "x",(char *) "y", NULL | |
3232 | }; | |
3233 | ||
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
3235 | if (obj0) { | |
c32bde28 | 3236 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3237 | if (PyErr_Occurred()) SWIG_fail; |
3238 | } | |
3239 | if (obj1) { | |
c32bde28 | 3240 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3241 | if (PyErr_Occurred()) SWIG_fail; |
3242 | } | |
3243 | { | |
3244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3245 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3246 | ||
3247 | wxPyEndAllowThreads(__tstate); | |
3248 | if (PyErr_Occurred()) SWIG_fail; | |
3249 | } | |
3250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3251 | return resultobj; | |
3252 | fail: | |
3253 | return NULL; | |
3254 | } | |
3255 | ||
3256 | ||
c32bde28 | 3257 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3258 | PyObject *resultobj; |
3259 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | char *kwnames[] = { | |
3262 | (char *) "self", NULL | |
3263 | }; | |
3264 | ||
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3268 | { | |
3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3270 | delete arg1; | |
3271 | ||
3272 | wxPyEndAllowThreads(__tstate); | |
3273 | if (PyErr_Occurred()) SWIG_fail; | |
3274 | } | |
3275 | Py_INCREF(Py_None); resultobj = Py_None; | |
3276 | return resultobj; | |
3277 | fail: | |
3278 | return NULL; | |
3279 | } | |
3280 | ||
3281 | ||
c32bde28 | 3282 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3283 | PyObject *resultobj; |
3284 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3285 | wxPoint *arg2 = 0 ; | |
3286 | bool result; | |
3287 | wxPoint temp2 ; | |
3288 | PyObject * obj0 = 0 ; | |
3289 | PyObject * obj1 = 0 ; | |
3290 | char *kwnames[] = { | |
3291 | (char *) "self",(char *) "pt", NULL | |
3292 | }; | |
3293 | ||
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3297 | { | |
3298 | arg2 = &temp2; | |
3299 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3300 | } | |
3301 | { | |
3302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3303 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3304 | ||
3305 | wxPyEndAllowThreads(__tstate); | |
3306 | if (PyErr_Occurred()) SWIG_fail; | |
3307 | } | |
3308 | { | |
3309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3310 | } | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | return NULL; | |
3314 | } | |
3315 | ||
3316 | ||
c32bde28 | 3317 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3318 | PyObject *resultobj; |
3319 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3320 | wxPoint *arg2 = 0 ; | |
3321 | bool result; | |
3322 | wxPoint temp2 ; | |
3323 | PyObject * obj0 = 0 ; | |
3324 | PyObject * obj1 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "self",(char *) "pt", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3332 | { | |
3333 | arg2 = &temp2; | |
3334 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3335 | } | |
3336 | { | |
3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3338 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3339 | ||
3340 | wxPyEndAllowThreads(__tstate); | |
3341 | if (PyErr_Occurred()) SWIG_fail; | |
3342 | } | |
3343 | { | |
3344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3345 | } | |
3346 | return resultobj; | |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
c32bde28 | 3352 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3353 | PyObject *resultobj; |
3354 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3355 | wxPoint *arg2 = 0 ; | |
3356 | wxPoint result; | |
3357 | wxPoint temp2 ; | |
3358 | PyObject * obj0 = 0 ; | |
3359 | PyObject * obj1 = 0 ; | |
3360 | char *kwnames[] = { | |
3361 | (char *) "self",(char *) "pt", NULL | |
3362 | }; | |
3363 | ||
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3367 | { | |
3368 | arg2 = &temp2; | |
3369 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3370 | } | |
3371 | { | |
3372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3373 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3374 | ||
3375 | wxPyEndAllowThreads(__tstate); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | wxPoint * resultptr; | |
3380 | resultptr = new wxPoint((wxPoint &) result); | |
3381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3382 | } | |
3383 | return resultobj; | |
3384 | fail: | |
3385 | return NULL; | |
3386 | } | |
3387 | ||
3388 | ||
c32bde28 | 3389 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3390 | PyObject *resultobj; |
3391 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3392 | wxPoint *arg2 = 0 ; | |
3393 | wxPoint result; | |
3394 | wxPoint temp2 ; | |
3395 | PyObject * obj0 = 0 ; | |
3396 | PyObject * obj1 = 0 ; | |
3397 | char *kwnames[] = { | |
3398 | (char *) "self",(char *) "pt", NULL | |
3399 | }; | |
3400 | ||
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3404 | { | |
3405 | arg2 = &temp2; | |
3406 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3407 | } | |
3408 | { | |
3409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3410 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3411 | ||
3412 | wxPyEndAllowThreads(__tstate); | |
3413 | if (PyErr_Occurred()) SWIG_fail; | |
3414 | } | |
3415 | { | |
3416 | wxPoint * resultptr; | |
3417 | resultptr = new wxPoint((wxPoint &) result); | |
3418 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3419 | } | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | return NULL; | |
3423 | } | |
3424 | ||
3425 | ||
c32bde28 | 3426 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3427 | PyObject *resultobj; |
3428 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3429 | wxPoint *arg2 = 0 ; | |
3430 | wxPoint *result; | |
3431 | wxPoint temp2 ; | |
3432 | PyObject * obj0 = 0 ; | |
3433 | PyObject * obj1 = 0 ; | |
3434 | char *kwnames[] = { | |
3435 | (char *) "self",(char *) "pt", NULL | |
3436 | }; | |
3437 | ||
3438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3440 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3441 | { |
3442 | arg2 = &temp2; | |
3443 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3444 | } | |
3445 | { | |
3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3447 | { | |
3448 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3449 | result = (wxPoint *) &_result_ref; | |
3450 | } | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
c32bde28 | 3455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3456 | return resultobj; |
3457 | fail: | |
3458 | return NULL; | |
3459 | } | |
3460 | ||
3461 | ||
c32bde28 | 3462 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3463 | PyObject *resultobj; |
3464 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3465 | wxPoint *arg2 = 0 ; | |
3466 | wxPoint *result; | |
3467 | wxPoint temp2 ; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | PyObject * obj1 = 0 ; | |
3470 | char *kwnames[] = { | |
3471 | (char *) "self",(char *) "pt", NULL | |
3472 | }; | |
3473 | ||
3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3476 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3477 | { |
3478 | arg2 = &temp2; | |
3479 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3480 | } | |
3481 | { | |
3482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3483 | { | |
3484 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3485 | result = (wxPoint *) &_result_ref; | |
3486 | } | |
3487 | ||
3488 | wxPyEndAllowThreads(__tstate); | |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
3490 | } | |
c32bde28 | 3491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3492 | return resultobj; |
3493 | fail: | |
3494 | return NULL; | |
3495 | } | |
3496 | ||
3497 | ||
c32bde28 | 3498 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3499 | PyObject *resultobj; |
3500 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3501 | long arg2 ; | |
3502 | long arg3 ; | |
3503 | PyObject * obj0 = 0 ; | |
3504 | PyObject * obj1 = 0 ; | |
3505 | PyObject * obj2 = 0 ; | |
3506 | char *kwnames[] = { | |
3507 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3508 | }; | |
3509 | ||
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3513 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3514 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3515 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3516 | if (PyErr_Occurred()) SWIG_fail; |
3517 | { | |
3518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3519 | wxPoint_Set(arg1,arg2,arg3); | |
3520 | ||
3521 | wxPyEndAllowThreads(__tstate); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | Py_INCREF(Py_None); resultobj = Py_None; | |
3525 | return resultobj; | |
3526 | fail: | |
3527 | return NULL; | |
3528 | } | |
3529 | ||
3530 | ||
c32bde28 | 3531 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3532 | PyObject *resultobj; |
3533 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3534 | PyObject *result; | |
3535 | PyObject * obj0 = 0 ; | |
3536 | char *kwnames[] = { | |
3537 | (char *) "self", NULL | |
3538 | }; | |
3539 | ||
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3543 | { | |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | result = (PyObject *)wxPoint_Get(arg1); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | resultobj = result; | |
3551 | return resultobj; | |
3552 | fail: | |
3553 | return NULL; | |
3554 | } | |
3555 | ||
3556 | ||
c32bde28 | 3557 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3558 | PyObject *obj; |
3559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3560 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3561 | Py_INCREF(obj); | |
3562 | return Py_BuildValue((char *)""); | |
3563 | } | |
c32bde28 | 3564 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3565 | PyObject *resultobj; |
3566 | int arg1 = (int) 0 ; | |
3567 | int arg2 = (int) 0 ; | |
3568 | int arg3 = (int) 0 ; | |
3569 | int arg4 = (int) 0 ; | |
3570 | wxRect *result; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | PyObject * obj1 = 0 ; | |
3573 | PyObject * obj2 = 0 ; | |
3574 | PyObject * obj3 = 0 ; | |
3575 | char *kwnames[] = { | |
3576 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3577 | }; | |
3578 | ||
3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3580 | if (obj0) { | |
c32bde28 | 3581 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3582 | if (PyErr_Occurred()) SWIG_fail; |
3583 | } | |
3584 | if (obj1) { | |
c32bde28 | 3585 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3586 | if (PyErr_Occurred()) SWIG_fail; |
3587 | } | |
3588 | if (obj2) { | |
c32bde28 | 3589 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3590 | if (PyErr_Occurred()) SWIG_fail; |
3591 | } | |
3592 | if (obj3) { | |
c32bde28 | 3593 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3594 | if (PyErr_Occurred()) SWIG_fail; |
3595 | } | |
3596 | { | |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3604 | return resultobj; | |
3605 | fail: | |
3606 | return NULL; | |
3607 | } | |
3608 | ||
3609 | ||
c32bde28 | 3610 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3611 | PyObject *resultobj; |
3612 | wxPoint *arg1 = 0 ; | |
3613 | wxPoint *arg2 = 0 ; | |
3614 | wxRect *result; | |
3615 | wxPoint temp1 ; | |
3616 | wxPoint temp2 ; | |
3617 | PyObject * obj0 = 0 ; | |
3618 | PyObject * obj1 = 0 ; | |
3619 | char *kwnames[] = { | |
3620 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3621 | }; | |
3622 | ||
3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3624 | { | |
3625 | arg1 = &temp1; | |
3626 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3627 | } | |
3628 | { | |
3629 | arg2 = &temp2; | |
3630 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3631 | } | |
3632 | { | |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3640 | return resultobj; | |
3641 | fail: | |
3642 | return NULL; | |
3643 | } | |
3644 | ||
3645 | ||
c32bde28 | 3646 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3647 | PyObject *resultobj; |
3648 | wxPoint *arg1 = 0 ; | |
3649 | wxSize *arg2 = 0 ; | |
3650 | wxRect *result; | |
3651 | wxPoint temp1 ; | |
3652 | wxSize temp2 ; | |
3653 | PyObject * obj0 = 0 ; | |
3654 | PyObject * obj1 = 0 ; | |
3655 | char *kwnames[] = { | |
3656 | (char *) "pos",(char *) "size", NULL | |
3657 | }; | |
3658 | ||
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3660 | { | |
3661 | arg1 = &temp1; | |
3662 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3663 | } | |
3664 | { | |
3665 | arg2 = &temp2; | |
3666 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3667 | } | |
3668 | { | |
3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3670 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3671 | ||
3672 | wxPyEndAllowThreads(__tstate); | |
3673 | if (PyErr_Occurred()) SWIG_fail; | |
3674 | } | |
3675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3676 | return resultobj; | |
3677 | fail: | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
c1cb24a4 RD |
3682 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
3683 | PyObject *resultobj; | |
3684 | wxSize *arg1 = 0 ; | |
3685 | wxRect *result; | |
3686 | wxSize temp1 ; | |
3687 | PyObject * obj0 = 0 ; | |
3688 | char *kwnames[] = { | |
3689 | (char *) "size", NULL | |
3690 | }; | |
3691 | ||
3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
3693 | { | |
3694 | arg1 = &temp1; | |
3695 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
3696 | } | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
c32bde28 | 3711 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3712 | PyObject *resultobj; |
3713 | wxRect *arg1 = (wxRect *) 0 ; | |
3714 | PyObject * obj0 = 0 ; | |
3715 | char *kwnames[] = { | |
3716 | (char *) "self", NULL | |
3717 | }; | |
3718 | ||
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3722 | { | |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | delete arg1; | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | Py_INCREF(Py_None); resultobj = Py_None; | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
3733 | } | |
3734 | ||
3735 | ||
c32bde28 | 3736 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3737 | PyObject *resultobj; |
3738 | wxRect *arg1 = (wxRect *) 0 ; | |
3739 | int result; | |
3740 | PyObject * obj0 = 0 ; | |
3741 | char *kwnames[] = { | |
3742 | (char *) "self", NULL | |
3743 | }; | |
3744 | ||
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3748 | { | |
3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3750 | result = (int)((wxRect const *)arg1)->GetX(); | |
3751 | ||
3752 | wxPyEndAllowThreads(__tstate); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | } | |
c32bde28 | 3755 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3756 | return resultobj; |
3757 | fail: | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
c32bde28 | 3762 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3763 | PyObject *resultobj; |
3764 | wxRect *arg1 = (wxRect *) 0 ; | |
3765 | int arg2 ; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | PyObject * obj1 = 0 ; | |
3768 | char *kwnames[] = { | |
3769 | (char *) "self",(char *) "x", NULL | |
3770 | }; | |
3771 | ||
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3775 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3776 | if (PyErr_Occurred()) SWIG_fail; |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | (arg1)->SetX(arg2); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
c32bde28 | 3791 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3792 | PyObject *resultobj; |
3793 | wxRect *arg1 = (wxRect *) 0 ; | |
3794 | int result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3803 | { | |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | result = (int)(arg1)->GetY(); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
c32bde28 | 3810 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3811 | return resultobj; |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
c32bde28 | 3817 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3818 | PyObject *resultobj; |
3819 | wxRect *arg1 = (wxRect *) 0 ; | |
3820 | int arg2 ; | |
3821 | PyObject * obj0 = 0 ; | |
3822 | PyObject * obj1 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self",(char *) "y", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3830 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3831 | if (PyErr_Occurred()) SWIG_fail; |
3832 | { | |
3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3834 | (arg1)->SetY(arg2); | |
3835 | ||
3836 | wxPyEndAllowThreads(__tstate); | |
3837 | if (PyErr_Occurred()) SWIG_fail; | |
3838 | } | |
3839 | Py_INCREF(Py_None); resultobj = Py_None; | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
c32bde28 | 3846 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3847 | PyObject *resultobj; |
3848 | wxRect *arg1 = (wxRect *) 0 ; | |
3849 | int result; | |
3850 | PyObject * obj0 = 0 ; | |
3851 | char *kwnames[] = { | |
3852 | (char *) "self", NULL | |
3853 | }; | |
3854 | ||
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
c32bde28 | 3865 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3866 | return resultobj; |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
c32bde28 | 3872 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3873 | PyObject *resultobj; |
3874 | wxRect *arg1 = (wxRect *) 0 ; | |
3875 | int arg2 ; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | PyObject * obj1 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "self",(char *) "w", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3886 | if (PyErr_Occurred()) SWIG_fail; |
3887 | { | |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | (arg1)->SetWidth(arg2); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | Py_INCREF(Py_None); resultobj = Py_None; | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
c32bde28 | 3901 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3902 | PyObject *resultobj; |
3903 | wxRect *arg1 = (wxRect *) 0 ; | |
3904 | int result; | |
3905 | PyObject * obj0 = 0 ; | |
3906 | char *kwnames[] = { | |
3907 | (char *) "self", NULL | |
3908 | }; | |
3909 | ||
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
c32bde28 | 3920 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3921 | return resultobj; |
3922 | fail: | |
3923 | return NULL; | |
3924 | } | |
3925 | ||
3926 | ||
c32bde28 | 3927 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3928 | PyObject *resultobj; |
3929 | wxRect *arg1 = (wxRect *) 0 ; | |
3930 | int arg2 ; | |
3931 | PyObject * obj0 = 0 ; | |
3932 | PyObject * obj1 = 0 ; | |
3933 | char *kwnames[] = { | |
3934 | (char *) "self",(char *) "h", NULL | |
3935 | }; | |
3936 | ||
3937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3940 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3941 | if (PyErr_Occurred()) SWIG_fail; |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | (arg1)->SetHeight(arg2); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | Py_INCREF(Py_None); resultobj = Py_None; | |
3950 | return resultobj; | |
3951 | fail: | |
3952 | return NULL; | |
3953 | } | |
3954 | ||
3955 | ||
c32bde28 | 3956 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3957 | PyObject *resultobj; |
3958 | wxRect *arg1 = (wxRect *) 0 ; | |
3959 | wxPoint result; | |
3960 | PyObject * obj0 = 0 ; | |
3961 | char *kwnames[] = { | |
3962 | (char *) "self", NULL | |
3963 | }; | |
3964 | ||
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | result = ((wxRect const *)arg1)->GetPosition(); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | { | |
3976 | wxPoint * resultptr; | |
3977 | resultptr = new wxPoint((wxPoint &) result); | |
3978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3979 | } | |
3980 | return resultobj; | |
3981 | fail: | |
3982 | return NULL; | |
3983 | } | |
3984 | ||
3985 | ||
c32bde28 | 3986 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3987 | PyObject *resultobj; |
3988 | wxRect *arg1 = (wxRect *) 0 ; | |
3989 | wxPoint *arg2 = 0 ; | |
3990 | wxPoint temp2 ; | |
3991 | PyObject * obj0 = 0 ; | |
3992 | PyObject * obj1 = 0 ; | |
3993 | char *kwnames[] = { | |
3994 | (char *) "self",(char *) "p", NULL | |
3995 | }; | |
3996 | ||
3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4000 | { | |
4001 | arg2 = &temp2; | |
4002 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4003 | } | |
4004 | { | |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4011 | Py_INCREF(Py_None); resultobj = Py_None; | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
c32bde28 | 4018 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4019 | PyObject *resultobj; |
4020 | wxRect *arg1 = (wxRect *) 0 ; | |
4021 | wxSize result; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "self", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
4028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4030 | { | |
4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4032 | result = ((wxRect const *)arg1)->GetSize(); | |
4033 | ||
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
4036 | } | |
4037 | { | |
4038 | wxSize * resultptr; | |
4039 | resultptr = new wxSize((wxSize &) result); | |
4040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4041 | } | |
4042 | return resultobj; | |
4043 | fail: | |
4044 | return NULL; | |
4045 | } | |
4046 | ||
4047 | ||
c32bde28 | 4048 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4049 | PyObject *resultobj; |
4050 | wxRect *arg1 = (wxRect *) 0 ; | |
4051 | wxSize *arg2 = 0 ; | |
4052 | wxSize temp2 ; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | PyObject * obj1 = 0 ; | |
4055 | char *kwnames[] = { | |
4056 | (char *) "self",(char *) "s", NULL | |
4057 | }; | |
4058 | ||
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4062 | { | |
4063 | arg2 = &temp2; | |
4064 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->SetSize((wxSize const &)*arg2); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
c32bde28 | 4080 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4081 | PyObject *resultobj; |
4082 | wxRect *arg1 = (wxRect *) 0 ; | |
4083 | wxPoint result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "self", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
4090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4092 | { | |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4094 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4095 | ||
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
4099 | { | |
4100 | wxPoint * resultptr; | |
4101 | resultptr = new wxPoint((wxPoint &) result); | |
4102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4103 | } | |
4104 | return resultobj; | |
4105 | fail: | |
4106 | return NULL; | |
4107 | } | |
4108 | ||
4109 | ||
c32bde28 | 4110 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4111 | PyObject *resultobj; |
4112 | wxRect *arg1 = (wxRect *) 0 ; | |
4113 | wxPoint *arg2 = 0 ; | |
4114 | wxPoint temp2 ; | |
4115 | PyObject * obj0 = 0 ; | |
4116 | PyObject * obj1 = 0 ; | |
4117 | char *kwnames[] = { | |
4118 | (char *) "self",(char *) "p", NULL | |
4119 | }; | |
4120 | ||
4121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
4122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4124 | { | |
4125 | arg2 = &temp2; | |
4126 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4127 | } | |
4128 | { | |
4129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4130 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4131 | ||
4132 | wxPyEndAllowThreads(__tstate); | |
4133 | if (PyErr_Occurred()) SWIG_fail; | |
4134 | } | |
4135 | Py_INCREF(Py_None); resultobj = Py_None; | |
4136 | return resultobj; | |
4137 | fail: | |
4138 | return NULL; | |
4139 | } | |
4140 | ||
4141 | ||
c32bde28 | 4142 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4143 | PyObject *resultobj; |
4144 | wxRect *arg1 = (wxRect *) 0 ; | |
4145 | wxPoint result; | |
4146 | PyObject * obj0 = 0 ; | |
4147 | char *kwnames[] = { | |
4148 | (char *) "self", NULL | |
4149 | }; | |
4150 | ||
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
4152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4154 | { | |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4156 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4157 | ||
4158 | wxPyEndAllowThreads(__tstate); | |
4159 | if (PyErr_Occurred()) SWIG_fail; | |
4160 | } | |
4161 | { | |
4162 | wxPoint * resultptr; | |
4163 | resultptr = new wxPoint((wxPoint &) result); | |
4164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4165 | } | |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
c32bde28 | 4172 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4173 | PyObject *resultobj; |
4174 | wxRect *arg1 = (wxRect *) 0 ; | |
4175 | wxPoint *arg2 = 0 ; | |
4176 | wxPoint temp2 ; | |
4177 | PyObject * obj0 = 0 ; | |
4178 | PyObject * obj1 = 0 ; | |
4179 | char *kwnames[] = { | |
4180 | (char *) "self",(char *) "p", NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
4184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4186 | { | |
4187 | arg2 = &temp2; | |
4188 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4189 | } | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4193 | ||
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | Py_INCREF(Py_None); resultobj = Py_None; | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
c32bde28 | 4204 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4205 | PyObject *resultobj; |
4206 | wxRect *arg1 = (wxRect *) 0 ; | |
4207 | int result; | |
4208 | PyObject * obj0 = 0 ; | |
4209 | char *kwnames[] = { | |
4210 | (char *) "self", NULL | |
4211 | }; | |
4212 | ||
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
4214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4216 | { | |
4217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4218 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4219 | ||
4220 | wxPyEndAllowThreads(__tstate); | |
4221 | if (PyErr_Occurred()) SWIG_fail; | |
4222 | } | |
c32bde28 | 4223 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4224 | return resultobj; |
4225 | fail: | |
4226 | return NULL; | |
4227 | } | |
4228 | ||
4229 | ||
c32bde28 | 4230 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4231 | PyObject *resultobj; |
4232 | wxRect *arg1 = (wxRect *) 0 ; | |
4233 | int result; | |
4234 | PyObject * obj0 = 0 ; | |
4235 | char *kwnames[] = { | |
4236 | (char *) "self", NULL | |
4237 | }; | |
4238 | ||
4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
4240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4242 | { | |
4243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4244 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4245 | ||
4246 | wxPyEndAllowThreads(__tstate); | |
4247 | if (PyErr_Occurred()) SWIG_fail; | |
4248 | } | |
c32bde28 | 4249 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4250 | return resultobj; |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
c32bde28 | 4256 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4257 | PyObject *resultobj; |
4258 | wxRect *arg1 = (wxRect *) 0 ; | |
4259 | int result; | |
4260 | PyObject * obj0 = 0 ; | |
4261 | char *kwnames[] = { | |
4262 | (char *) "self", NULL | |
4263 | }; | |
4264 | ||
4265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
4266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4268 | { | |
4269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4270 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4271 | ||
4272 | wxPyEndAllowThreads(__tstate); | |
4273 | if (PyErr_Occurred()) SWIG_fail; | |
4274 | } | |
c32bde28 | 4275 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4276 | return resultobj; |
4277 | fail: | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
c32bde28 | 4282 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4283 | PyObject *resultobj; |
4284 | wxRect *arg1 = (wxRect *) 0 ; | |
4285 | int result; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | char *kwnames[] = { | |
4288 | (char *) "self", NULL | |
4289 | }; | |
4290 | ||
4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4297 | ||
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
c32bde28 | 4301 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4302 | return resultobj; |
4303 | fail: | |
4304 | return NULL; | |
4305 | } | |
4306 | ||
4307 | ||
c32bde28 | 4308 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4309 | PyObject *resultobj; |
4310 | wxRect *arg1 = (wxRect *) 0 ; | |
4311 | int arg2 ; | |
4312 | PyObject * obj0 = 0 ; | |
4313 | PyObject * obj1 = 0 ; | |
4314 | char *kwnames[] = { | |
4315 | (char *) "self",(char *) "left", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4321 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4322 | if (PyErr_Occurred()) SWIG_fail; |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | (arg1)->SetLeft(arg2); | |
4326 | ||
4327 | wxPyEndAllowThreads(__tstate); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
4330 | Py_INCREF(Py_None); resultobj = Py_None; | |
4331 | return resultobj; | |
4332 | fail: | |
4333 | return NULL; | |
4334 | } | |
4335 | ||
4336 | ||
c32bde28 | 4337 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4338 | PyObject *resultobj; |
4339 | wxRect *arg1 = (wxRect *) 0 ; | |
4340 | int arg2 ; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | PyObject * obj1 = 0 ; | |
4343 | char *kwnames[] = { | |
4344 | (char *) "self",(char *) "right", NULL | |
4345 | }; | |
4346 | ||
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4350 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4351 | if (PyErr_Occurred()) SWIG_fail; |
4352 | { | |
4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4354 | (arg1)->SetRight(arg2); | |
4355 | ||
4356 | wxPyEndAllowThreads(__tstate); | |
4357 | if (PyErr_Occurred()) SWIG_fail; | |
4358 | } | |
4359 | Py_INCREF(Py_None); resultobj = Py_None; | |
4360 | return resultobj; | |
4361 | fail: | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
c32bde28 | 4366 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4367 | PyObject *resultobj; |
4368 | wxRect *arg1 = (wxRect *) 0 ; | |
4369 | int arg2 ; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | PyObject * obj1 = 0 ; | |
4372 | char *kwnames[] = { | |
4373 | (char *) "self",(char *) "top", NULL | |
4374 | }; | |
4375 | ||
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4379 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4380 | if (PyErr_Occurred()) SWIG_fail; |
4381 | { | |
4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4383 | (arg1)->SetTop(arg2); | |
4384 | ||
4385 | wxPyEndAllowThreads(__tstate); | |
4386 | if (PyErr_Occurred()) SWIG_fail; | |
4387 | } | |
4388 | Py_INCREF(Py_None); resultobj = Py_None; | |
4389 | return resultobj; | |
4390 | fail: | |
4391 | return NULL; | |
4392 | } | |
4393 | ||
4394 | ||
c32bde28 | 4395 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4396 | PyObject *resultobj; |
4397 | wxRect *arg1 = (wxRect *) 0 ; | |
4398 | int arg2 ; | |
4399 | PyObject * obj0 = 0 ; | |
4400 | PyObject * obj1 = 0 ; | |
4401 | char *kwnames[] = { | |
4402 | (char *) "self",(char *) "bottom", NULL | |
4403 | }; | |
4404 | ||
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4408 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4409 | if (PyErr_Occurred()) SWIG_fail; |
4410 | { | |
4411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4412 | (arg1)->SetBottom(arg2); | |
4413 | ||
4414 | wxPyEndAllowThreads(__tstate); | |
4415 | if (PyErr_Occurred()) SWIG_fail; | |
4416 | } | |
4417 | Py_INCREF(Py_None); resultobj = Py_None; | |
4418 | return resultobj; | |
4419 | fail: | |
4420 | return NULL; | |
4421 | } | |
4422 | ||
4423 | ||
c32bde28 | 4424 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4425 | PyObject *resultobj; |
4426 | wxRect *arg1 = (wxRect *) 0 ; | |
4427 | int arg2 ; | |
4428 | int arg3 ; | |
4429 | wxRect *result; | |
4430 | PyObject * obj0 = 0 ; | |
4431 | PyObject * obj1 = 0 ; | |
4432 | PyObject * obj2 = 0 ; | |
4433 | char *kwnames[] = { | |
4434 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4435 | }; | |
4436 | ||
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4440 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4441 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4442 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4443 | if (PyErr_Occurred()) SWIG_fail; |
4444 | { | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | { | |
4447 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4448 | result = (wxRect *) &_result_ref; | |
4449 | } | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4454 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
c32bde28 | 4461 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4462 | PyObject *resultobj; |
4463 | wxRect *arg1 = (wxRect *) 0 ; | |
4464 | int arg2 ; | |
4465 | int arg3 ; | |
4466 | wxRect *result; | |
4467 | PyObject * obj0 = 0 ; | |
4468 | PyObject * obj1 = 0 ; | |
4469 | PyObject * obj2 = 0 ; | |
4470 | char *kwnames[] = { | |
4471 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4472 | }; | |
4473 | ||
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4477 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4478 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4479 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4480 | if (PyErr_Occurred()) SWIG_fail; |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | { | |
4484 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4485 | result = (wxRect *) &_result_ref; | |
4486 | } | |
4487 | ||
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4492 | return resultobj; | |
4493 | fail: | |
4494 | return NULL; | |
4495 | } | |
4496 | ||
4497 | ||
c32bde28 | 4498 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4499 | PyObject *resultobj; |
4500 | wxRect *arg1 = (wxRect *) 0 ; | |
4501 | int arg2 ; | |
4502 | int arg3 ; | |
4503 | PyObject * obj0 = 0 ; | |
4504 | PyObject * obj1 = 0 ; | |
4505 | PyObject * obj2 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4513 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4514 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4515 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4516 | if (PyErr_Occurred()) SWIG_fail; |
4517 | { | |
4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4519 | (arg1)->Offset(arg2,arg3); | |
4520 | ||
4521 | wxPyEndAllowThreads(__tstate); | |
4522 | if (PyErr_Occurred()) SWIG_fail; | |
4523 | } | |
4524 | Py_INCREF(Py_None); resultobj = Py_None; | |
4525 | return resultobj; | |
4526 | fail: | |
4527 | return NULL; | |
4528 | } | |
4529 | ||
4530 | ||
c32bde28 | 4531 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4532 | PyObject *resultobj; |
4533 | wxRect *arg1 = (wxRect *) 0 ; | |
4534 | wxPoint *arg2 = 0 ; | |
4535 | wxPoint temp2 ; | |
4536 | PyObject * obj0 = 0 ; | |
4537 | PyObject * obj1 = 0 ; | |
4538 | char *kwnames[] = { | |
4539 | (char *) "self",(char *) "pt", NULL | |
4540 | }; | |
4541 | ||
4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4545 | { | |
4546 | arg2 = &temp2; | |
4547 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4548 | } | |
4549 | { | |
4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4551 | (arg1)->Offset((wxPoint const &)*arg2); | |
4552 | ||
4553 | wxPyEndAllowThreads(__tstate); | |
4554 | if (PyErr_Occurred()) SWIG_fail; | |
4555 | } | |
4556 | Py_INCREF(Py_None); resultobj = Py_None; | |
4557 | return resultobj; | |
4558 | fail: | |
4559 | return NULL; | |
4560 | } | |
4561 | ||
4562 | ||
c32bde28 | 4563 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4564 | PyObject *resultobj; |
4565 | wxRect *arg1 = (wxRect *) 0 ; | |
4566 | wxRect *arg2 = 0 ; | |
4567 | wxRect *result; | |
4568 | wxRect temp2 ; | |
4569 | PyObject * obj0 = 0 ; | |
4570 | PyObject * obj1 = 0 ; | |
4571 | char *kwnames[] = { | |
4572 | (char *) "self",(char *) "rect", NULL | |
4573 | }; | |
4574 | ||
4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4578 | { | |
4579 | arg2 = &temp2; | |
4580 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4581 | } | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | { | |
4585 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4586 | result = (wxRect *) &_result_ref; | |
4587 | } | |
4588 | ||
4589 | wxPyEndAllowThreads(__tstate); | |
4590 | if (PyErr_Occurred()) SWIG_fail; | |
4591 | } | |
4592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4593 | return resultobj; | |
4594 | fail: | |
4595 | return NULL; | |
4596 | } | |
4597 | ||
4598 | ||
c32bde28 | 4599 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4600 | PyObject *resultobj; |
4601 | wxRect *arg1 = (wxRect *) 0 ; | |
4602 | wxRect *arg2 = 0 ; | |
4603 | wxRect result; | |
4604 | wxRect temp2 ; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | PyObject * obj1 = 0 ; | |
4607 | char *kwnames[] = { | |
4608 | (char *) "self",(char *) "rect", NULL | |
4609 | }; | |
4610 | ||
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4614 | { | |
4615 | arg2 = &temp2; | |
4616 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4617 | } | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | { | |
4626 | wxRect * resultptr; | |
4627 | resultptr = new wxRect((wxRect &) result); | |
4628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4629 | } | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
c32bde28 | 4636 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4637 | PyObject *resultobj; |
4638 | wxRect *arg1 = (wxRect *) 0 ; | |
4639 | wxRect *arg2 = 0 ; | |
4640 | wxRect *result; | |
4641 | wxRect temp2 ; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | PyObject * obj1 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "self",(char *) "rect", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
c32bde28 | 4650 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
4651 | { |
4652 | arg2 = &temp2; | |
4653 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4654 | } | |
4655 | { | |
4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4657 | { | |
4658 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4659 | result = (wxRect *) &_result_ref; | |
4660 | } | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
c32bde28 | 4665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
4666 | return resultobj; |
4667 | fail: | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
c32bde28 | 4672 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4673 | PyObject *resultobj; |
4674 | wxRect *arg1 = (wxRect *) 0 ; | |
4675 | wxRect *arg2 = 0 ; | |
4676 | bool result; | |
4677 | wxRect temp2 ; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | PyObject * obj1 = 0 ; | |
4680 | char *kwnames[] = { | |
4681 | (char *) "self",(char *) "rect", NULL | |
4682 | }; | |
4683 | ||
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4687 | { | |
4688 | arg2 = &temp2; | |
4689 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4690 | } | |
4691 | { | |
4692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4693 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4694 | ||
4695 | wxPyEndAllowThreads(__tstate); | |
4696 | if (PyErr_Occurred()) SWIG_fail; | |
4697 | } | |
4698 | { | |
4699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4700 | } | |
4701 | return resultobj; | |
4702 | fail: | |
4703 | return NULL; | |
4704 | } | |
4705 | ||
4706 | ||
c32bde28 | 4707 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4708 | PyObject *resultobj; |
4709 | wxRect *arg1 = (wxRect *) 0 ; | |
4710 | wxRect *arg2 = 0 ; | |
4711 | bool result; | |
4712 | wxRect temp2 ; | |
4713 | PyObject * obj0 = 0 ; | |
4714 | PyObject * obj1 = 0 ; | |
4715 | char *kwnames[] = { | |
4716 | (char *) "self",(char *) "rect", NULL | |
4717 | }; | |
4718 | ||
4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4722 | { | |
4723 | arg2 = &temp2; | |
4724 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4725 | } | |
4726 | { | |
4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4728 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4729 | ||
4730 | wxPyEndAllowThreads(__tstate); | |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
4732 | } | |
4733 | { | |
4734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4735 | } | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
c32bde28 | 4742 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4743 | PyObject *resultobj; |
4744 | wxRect *arg1 = (wxRect *) 0 ; | |
4745 | int arg2 ; | |
4746 | int arg3 ; | |
4747 | bool result; | |
4748 | PyObject * obj0 = 0 ; | |
4749 | PyObject * obj1 = 0 ; | |
4750 | PyObject * obj2 = 0 ; | |
4751 | char *kwnames[] = { | |
4752 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4753 | }; | |
4754 | ||
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4758 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4759 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4760 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4761 | if (PyErr_Occurred()) SWIG_fail; |
4762 | { | |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4764 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4765 | ||
4766 | wxPyEndAllowThreads(__tstate); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | { | |
4770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4771 | } | |
4772 | return resultobj; | |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
c32bde28 | 4778 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4779 | PyObject *resultobj; |
4780 | wxRect *arg1 = (wxRect *) 0 ; | |
4781 | wxPoint *arg2 = 0 ; | |
4782 | bool result; | |
4783 | wxPoint temp2 ; | |
4784 | PyObject * obj0 = 0 ; | |
4785 | PyObject * obj1 = 0 ; | |
4786 | char *kwnames[] = { | |
4787 | (char *) "self",(char *) "pt", NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4793 | { | |
4794 | arg2 = &temp2; | |
4795 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | { | |
4805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4806 | } | |
4807 | return resultobj; | |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
c32bde28 | 4813 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4814 | PyObject *resultobj; |
4815 | wxRect *arg1 = (wxRect *) 0 ; | |
4816 | wxRect *arg2 = 0 ; | |
4817 | bool result; | |
4818 | wxRect temp2 ; | |
4819 | PyObject * obj0 = 0 ; | |
4820 | PyObject * obj1 = 0 ; | |
4821 | char *kwnames[] = { | |
4822 | (char *) "self",(char *) "rect", NULL | |
4823 | }; | |
4824 | ||
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4828 | { | |
4829 | arg2 = &temp2; | |
4830 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4831 | } | |
4832 | { | |
4833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4834 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4835 | ||
4836 | wxPyEndAllowThreads(__tstate); | |
4837 | if (PyErr_Occurred()) SWIG_fail; | |
4838 | } | |
4839 | { | |
4840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4841 | } | |
4842 | return resultobj; | |
4843 | fail: | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
c32bde28 | 4848 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4849 | PyObject *resultobj; |
4850 | wxRect *arg1 = (wxRect *) 0 ; | |
4851 | int arg2 ; | |
4852 | PyObject * obj0 = 0 ; | |
4853 | PyObject * obj1 = 0 ; | |
4854 | char *kwnames[] = { | |
4855 | (char *) "self",(char *) "x", NULL | |
4856 | }; | |
4857 | ||
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4862 | if (PyErr_Occurred()) SWIG_fail; |
4863 | if (arg1) (arg1)->x = arg2; | |
4864 | ||
4865 | Py_INCREF(Py_None); resultobj = Py_None; | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
c32bde28 | 4872 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4873 | PyObject *resultobj; |
4874 | wxRect *arg1 = (wxRect *) 0 ; | |
4875 | int result; | |
4876 | PyObject * obj0 = 0 ; | |
4877 | char *kwnames[] = { | |
4878 | (char *) "self", NULL | |
4879 | }; | |
4880 | ||
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4884 | result = (int) ((arg1)->x); | |
4885 | ||
c32bde28 | 4886 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4887 | return resultobj; |
4888 | fail: | |
4889 | return NULL; | |
4890 | } | |
4891 | ||
4892 | ||
c32bde28 | 4893 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4894 | PyObject *resultobj; |
4895 | wxRect *arg1 = (wxRect *) 0 ; | |
4896 | int arg2 ; | |
4897 | PyObject * obj0 = 0 ; | |
4898 | PyObject * obj1 = 0 ; | |
4899 | char *kwnames[] = { | |
4900 | (char *) "self",(char *) "y", NULL | |
4901 | }; | |
4902 | ||
4903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4906 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4907 | if (PyErr_Occurred()) SWIG_fail; |
4908 | if (arg1) (arg1)->y = arg2; | |
4909 | ||
4910 | Py_INCREF(Py_None); resultobj = Py_None; | |
4911 | return resultobj; | |
4912 | fail: | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
c32bde28 | 4917 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4918 | PyObject *resultobj; |
4919 | wxRect *arg1 = (wxRect *) 0 ; | |
4920 | int result; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | char *kwnames[] = { | |
4923 | (char *) "self", NULL | |
4924 | }; | |
4925 | ||
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4929 | result = (int) ((arg1)->y); | |
4930 | ||
c32bde28 | 4931 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4932 | return resultobj; |
4933 | fail: | |
4934 | return NULL; | |
4935 | } | |
4936 | ||
4937 | ||
c32bde28 | 4938 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4939 | PyObject *resultobj; |
4940 | wxRect *arg1 = (wxRect *) 0 ; | |
4941 | int arg2 ; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | PyObject * obj1 = 0 ; | |
4944 | char *kwnames[] = { | |
4945 | (char *) "self",(char *) "width", NULL | |
4946 | }; | |
4947 | ||
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4951 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4952 | if (PyErr_Occurred()) SWIG_fail; |
4953 | if (arg1) (arg1)->width = arg2; | |
4954 | ||
4955 | Py_INCREF(Py_None); resultobj = Py_None; | |
4956 | return resultobj; | |
4957 | fail: | |
4958 | return NULL; | |
4959 | } | |
4960 | ||
4961 | ||
c32bde28 | 4962 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4963 | PyObject *resultobj; |
4964 | wxRect *arg1 = (wxRect *) 0 ; | |
4965 | int result; | |
4966 | PyObject * obj0 = 0 ; | |
4967 | char *kwnames[] = { | |
4968 | (char *) "self", NULL | |
4969 | }; | |
4970 | ||
4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4974 | result = (int) ((arg1)->width); | |
4975 | ||
c32bde28 | 4976 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4977 | return resultobj; |
4978 | fail: | |
4979 | return NULL; | |
4980 | } | |
4981 | ||
4982 | ||
c32bde28 | 4983 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4984 | PyObject *resultobj; |
4985 | wxRect *arg1 = (wxRect *) 0 ; | |
4986 | int arg2 ; | |
4987 | PyObject * obj0 = 0 ; | |
4988 | PyObject * obj1 = 0 ; | |
4989 | char *kwnames[] = { | |
4990 | (char *) "self",(char *) "height", NULL | |
4991 | }; | |
4992 | ||
4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4996 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4997 | if (PyErr_Occurred()) SWIG_fail; |
4998 | if (arg1) (arg1)->height = arg2; | |
4999 | ||
5000 | Py_INCREF(Py_None); resultobj = Py_None; | |
5001 | return resultobj; | |
5002 | fail: | |
5003 | return NULL; | |
5004 | } | |
5005 | ||
5006 | ||
c32bde28 | 5007 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5008 | PyObject *resultobj; |
5009 | wxRect *arg1 = (wxRect *) 0 ; | |
5010 | int result; | |
5011 | PyObject * obj0 = 0 ; | |
5012 | char *kwnames[] = { | |
5013 | (char *) "self", NULL | |
5014 | }; | |
5015 | ||
5016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
5017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5019 | result = (int) ((arg1)->height); | |
5020 | ||
c32bde28 | 5021 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5022 | return resultobj; |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
c32bde28 | 5028 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5029 | PyObject *resultobj; |
5030 | wxRect *arg1 = (wxRect *) 0 ; | |
5031 | int arg2 = (int) 0 ; | |
5032 | int arg3 = (int) 0 ; | |
5033 | int arg4 = (int) 0 ; | |
5034 | int arg5 = (int) 0 ; | |
5035 | PyObject * obj0 = 0 ; | |
5036 | PyObject * obj1 = 0 ; | |
5037 | PyObject * obj2 = 0 ; | |
5038 | PyObject * obj3 = 0 ; | |
5039 | PyObject * obj4 = 0 ; | |
5040 | char *kwnames[] = { | |
5041 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5042 | }; | |
5043 | ||
5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5047 | if (obj1) { | |
c32bde28 | 5048 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5049 | if (PyErr_Occurred()) SWIG_fail; |
5050 | } | |
5051 | if (obj2) { | |
c32bde28 | 5052 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5053 | if (PyErr_Occurred()) SWIG_fail; |
5054 | } | |
5055 | if (obj3) { | |
c32bde28 | 5056 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5057 | if (PyErr_Occurred()) SWIG_fail; |
5058 | } | |
5059 | if (obj4) { | |
c32bde28 | 5060 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5061 | if (PyErr_Occurred()) SWIG_fail; |
5062 | } | |
5063 | { | |
5064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5065 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5066 | ||
5067 | wxPyEndAllowThreads(__tstate); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | } | |
5070 | Py_INCREF(Py_None); resultobj = Py_None; | |
5071 | return resultobj; | |
5072 | fail: | |
5073 | return NULL; | |
5074 | } | |
5075 | ||
5076 | ||
c32bde28 | 5077 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5078 | PyObject *resultobj; |
5079 | wxRect *arg1 = (wxRect *) 0 ; | |
5080 | PyObject *result; | |
5081 | PyObject * obj0 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "self", NULL | |
5084 | }; | |
5085 | ||
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
5087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5089 | { | |
5090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5091 | result = (PyObject *)wxRect_Get(arg1); | |
5092 | ||
5093 | wxPyEndAllowThreads(__tstate); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | } | |
5096 | resultobj = result; | |
5097 | return resultobj; | |
5098 | fail: | |
5099 | return NULL; | |
5100 | } | |
5101 | ||
5102 | ||
c32bde28 | 5103 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5104 | PyObject *obj; |
5105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5106 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5107 | Py_INCREF(obj); | |
5108 | return Py_BuildValue((char *)""); | |
5109 | } | |
c32bde28 | 5110 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5111 | PyObject *resultobj; |
5112 | wxRect *arg1 = (wxRect *) 0 ; | |
5113 | wxRect *arg2 = (wxRect *) 0 ; | |
5114 | PyObject *result; | |
5115 | PyObject * obj0 = 0 ; | |
5116 | PyObject * obj1 = 0 ; | |
5117 | char *kwnames[] = { | |
5118 | (char *) "r1",(char *) "r2", NULL | |
5119 | }; | |
5120 | ||
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5126 | { | |
0439c23b | 5127 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5129 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5132 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5133 | } |
5134 | resultobj = result; | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
c32bde28 | 5141 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5142 | PyObject *resultobj; |
5143 | double arg1 = (double) 0.0 ; | |
5144 | double arg2 = (double) 0.0 ; | |
5145 | wxPoint2D *result; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | char *kwnames[] = { | |
5149 | (char *) "x",(char *) "y", NULL | |
5150 | }; | |
5151 | ||
5152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
5153 | if (obj0) { | |
c32bde28 | 5154 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
5155 | if (PyErr_Occurred()) SWIG_fail; |
5156 | } | |
5157 | if (obj1) { | |
c32bde28 | 5158 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5159 | if (PyErr_Occurred()) SWIG_fail; |
5160 | } | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
c32bde28 | 5175 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5176 | PyObject *resultobj; |
5177 | wxPoint2D *arg1 = 0 ; | |
5178 | wxPoint2D *result; | |
5179 | wxPoint2D temp1 ; | |
5180 | PyObject * obj0 = 0 ; | |
5181 | char *kwnames[] = { | |
5182 | (char *) "pt", NULL | |
5183 | }; | |
5184 | ||
5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5186 | { | |
5187 | arg1 = &temp1; | |
5188 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5189 | } | |
5190 | { | |
5191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5192 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5193 | ||
5194 | wxPyEndAllowThreads(__tstate); | |
5195 | if (PyErr_Occurred()) SWIG_fail; | |
5196 | } | |
5197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5198 | return resultobj; | |
5199 | fail: | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
c32bde28 | 5204 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5205 | PyObject *resultobj; |
5206 | wxPoint *arg1 = 0 ; | |
5207 | wxPoint2D *result; | |
5208 | wxPoint temp1 ; | |
5209 | PyObject * obj0 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "pt", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5215 | { | |
5216 | arg1 = &temp1; | |
5217 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5218 | } | |
5219 | { | |
5220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5221 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5222 | ||
5223 | wxPyEndAllowThreads(__tstate); | |
5224 | if (PyErr_Occurred()) SWIG_fail; | |
5225 | } | |
5226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5227 | return resultobj; | |
5228 | fail: | |
5229 | return NULL; | |
5230 | } | |
5231 | ||
5232 | ||
c32bde28 | 5233 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5234 | PyObject *resultobj; |
5235 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5236 | int *arg2 = (int *) 0 ; | |
5237 | int *arg3 = (int *) 0 ; | |
5238 | int temp2 ; | |
c32bde28 | 5239 | int res2 = 0 ; |
d55e5bfc | 5240 | int temp3 ; |
c32bde28 | 5241 | int res3 = 0 ; |
d55e5bfc RD |
5242 | PyObject * obj0 = 0 ; |
5243 | char *kwnames[] = { | |
5244 | (char *) "self", NULL | |
5245 | }; | |
5246 | ||
c32bde28 RD |
5247 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5248 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
5250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5260 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5261 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5262 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5263 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5264 | return resultobj; |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
c32bde28 | 5270 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5271 | PyObject *resultobj; |
5272 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5273 | int *arg2 = (int *) 0 ; | |
5274 | int *arg3 = (int *) 0 ; | |
5275 | int temp2 ; | |
c32bde28 | 5276 | int res2 = 0 ; |
d55e5bfc | 5277 | int temp3 ; |
c32bde28 | 5278 | int res3 = 0 ; |
d55e5bfc RD |
5279 | PyObject * obj0 = 0 ; |
5280 | char *kwnames[] = { | |
5281 | (char *) "self", NULL | |
5282 | }; | |
5283 | ||
c32bde28 RD |
5284 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5285 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
5287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5289 | { | |
5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5291 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5292 | ||
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
5296 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5297 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5298 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5299 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5300 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5301 | return resultobj; |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
c32bde28 | 5307 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5308 | PyObject *resultobj; |
5309 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5310 | double result; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5319 | { | |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5321 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
5325 | } | |
c32bde28 | 5326 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5327 | return resultobj; |
5328 | fail: | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
c32bde28 | 5333 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5334 | PyObject *resultobj; |
5335 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5336 | double result; | |
5337 | PyObject * obj0 = 0 ; | |
5338 | char *kwnames[] = { | |
5339 | (char *) "self", NULL | |
5340 | }; | |
5341 | ||
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5345 | { | |
5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5347 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5348 | ||
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
c32bde28 | 5352 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5353 | return resultobj; |
5354 | fail: | |
5355 | return NULL; | |
5356 | } | |
5357 | ||
5358 | ||
c32bde28 | 5359 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5360 | PyObject *resultobj; |
5361 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5362 | double arg2 ; | |
5363 | PyObject * obj0 = 0 ; | |
5364 | PyObject * obj1 = 0 ; | |
5365 | char *kwnames[] = { | |
5366 | (char *) "self",(char *) "length", NULL | |
5367 | }; | |
5368 | ||
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5372 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5373 | if (PyErr_Occurred()) SWIG_fail; |
5374 | { | |
5375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5376 | (arg1)->SetVectorLength(arg2); | |
5377 | ||
5378 | wxPyEndAllowThreads(__tstate); | |
5379 | if (PyErr_Occurred()) SWIG_fail; | |
5380 | } | |
5381 | Py_INCREF(Py_None); resultobj = Py_None; | |
5382 | return resultobj; | |
5383 | fail: | |
5384 | return NULL; | |
5385 | } | |
5386 | ||
5387 | ||
c32bde28 | 5388 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5389 | PyObject *resultobj; |
5390 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5391 | double arg2 ; | |
5392 | PyObject * obj0 = 0 ; | |
5393 | PyObject * obj1 = 0 ; | |
5394 | char *kwnames[] = { | |
5395 | (char *) "self",(char *) "degrees", NULL | |
5396 | }; | |
5397 | ||
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5401 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5402 | if (PyErr_Occurred()) SWIG_fail; |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | (arg1)->SetVectorAngle(arg2); | |
5406 | ||
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | Py_INCREF(Py_None); resultobj = Py_None; | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
c32bde28 | 5417 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5418 | PyObject *resultobj; |
5419 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5420 | wxPoint2D *arg2 = 0 ; | |
5421 | double result; | |
5422 | wxPoint2D temp2 ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | char *kwnames[] = { | |
5426 | (char *) "self",(char *) "pt", NULL | |
5427 | }; | |
5428 | ||
5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5432 | { | |
5433 | arg2 = &temp2; | |
5434 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
c32bde28 | 5443 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5444 | return resultobj; |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
c32bde28 | 5450 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5451 | PyObject *resultobj; |
5452 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5453 | wxPoint2D *arg2 = 0 ; | |
5454 | double result; | |
5455 | wxPoint2D temp2 ; | |
5456 | PyObject * obj0 = 0 ; | |
5457 | PyObject * obj1 = 0 ; | |
5458 | char *kwnames[] = { | |
5459 | (char *) "self",(char *) "pt", NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5465 | { | |
5466 | arg2 = &temp2; | |
5467 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5468 | } | |
5469 | { | |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5471 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5472 | ||
5473 | wxPyEndAllowThreads(__tstate); | |
5474 | if (PyErr_Occurred()) SWIG_fail; | |
5475 | } | |
c32bde28 | 5476 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5477 | return resultobj; |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
c32bde28 | 5483 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5484 | PyObject *resultobj; |
5485 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5486 | wxPoint2D *arg2 = 0 ; | |
5487 | double result; | |
5488 | wxPoint2D temp2 ; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | PyObject * obj1 = 0 ; | |
5491 | char *kwnames[] = { | |
5492 | (char *) "self",(char *) "vec", NULL | |
5493 | }; | |
5494 | ||
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5498 | { | |
5499 | arg2 = &temp2; | |
5500 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5501 | } | |
5502 | { | |
5503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5504 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5505 | ||
5506 | wxPyEndAllowThreads(__tstate); | |
5507 | if (PyErr_Occurred()) SWIG_fail; | |
5508 | } | |
c32bde28 | 5509 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5510 | return resultobj; |
5511 | fail: | |
5512 | return NULL; | |
5513 | } | |
5514 | ||
5515 | ||
c32bde28 | 5516 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5517 | PyObject *resultobj; |
5518 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5519 | wxPoint2D *arg2 = 0 ; | |
5520 | double result; | |
5521 | wxPoint2D temp2 ; | |
5522 | PyObject * obj0 = 0 ; | |
5523 | PyObject * obj1 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "self",(char *) "vec", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5531 | { | |
5532 | arg2 = &temp2; | |
5533 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5534 | } | |
5535 | { | |
5536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5537 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5538 | ||
5539 | wxPyEndAllowThreads(__tstate); | |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
5541 | } | |
c32bde28 | 5542 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5543 | return resultobj; |
5544 | fail: | |
5545 | return NULL; | |
5546 | } | |
5547 | ||
5548 | ||
c32bde28 | 5549 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5550 | PyObject *resultobj; |
5551 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5552 | wxPoint2D result; | |
5553 | PyObject * obj0 = 0 ; | |
5554 | char *kwnames[] = { | |
5555 | (char *) "self", NULL | |
5556 | }; | |
5557 | ||
5558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5561 | { | |
5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5563 | result = (arg1)->operator -(); | |
5564 | ||
5565 | wxPyEndAllowThreads(__tstate); | |
5566 | if (PyErr_Occurred()) SWIG_fail; | |
5567 | } | |
5568 | { | |
5569 | wxPoint2D * resultptr; | |
5570 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5572 | } | |
5573 | return resultobj; | |
5574 | fail: | |
5575 | return NULL; | |
5576 | } | |
5577 | ||
5578 | ||
c32bde28 | 5579 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5580 | PyObject *resultobj; |
5581 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5582 | wxPoint2D *arg2 = 0 ; | |
5583 | wxPoint2D *result; | |
5584 | wxPoint2D temp2 ; | |
5585 | PyObject * obj0 = 0 ; | |
5586 | PyObject * obj1 = 0 ; | |
5587 | char *kwnames[] = { | |
5588 | (char *) "self",(char *) "pt", NULL | |
5589 | }; | |
5590 | ||
5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5593 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5594 | { |
5595 | arg2 = &temp2; | |
5596 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5597 | } | |
5598 | { | |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | { | |
5601 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5602 | result = (wxPoint2D *) &_result_ref; | |
5603 | } | |
5604 | ||
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
c32bde28 | 5608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5609 | return resultobj; |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
c32bde28 | 5615 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5616 | PyObject *resultobj; |
5617 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5618 | wxPoint2D *arg2 = 0 ; | |
5619 | wxPoint2D *result; | |
5620 | wxPoint2D temp2 ; | |
5621 | PyObject * obj0 = 0 ; | |
5622 | PyObject * obj1 = 0 ; | |
5623 | char *kwnames[] = { | |
5624 | (char *) "self",(char *) "pt", NULL | |
5625 | }; | |
5626 | ||
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5629 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5630 | { |
5631 | arg2 = &temp2; | |
5632 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5633 | } | |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | { | |
5637 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5638 | result = (wxPoint2D *) &_result_ref; | |
5639 | } | |
5640 | ||
5641 | wxPyEndAllowThreads(__tstate); | |
5642 | if (PyErr_Occurred()) SWIG_fail; | |
5643 | } | |
c32bde28 | 5644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5645 | return resultobj; |
5646 | fail: | |
5647 | return NULL; | |
5648 | } | |
5649 | ||
5650 | ||
c32bde28 | 5651 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5652 | PyObject *resultobj; |
5653 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5654 | wxPoint2D *arg2 = 0 ; | |
5655 | wxPoint2D *result; | |
5656 | wxPoint2D temp2 ; | |
5657 | PyObject * obj0 = 0 ; | |
5658 | PyObject * obj1 = 0 ; | |
5659 | char *kwnames[] = { | |
5660 | (char *) "self",(char *) "pt", NULL | |
5661 | }; | |
5662 | ||
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5665 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5666 | { |
5667 | arg2 = &temp2; | |
5668 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5669 | } | |
5670 | { | |
5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5672 | { | |
5673 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5674 | result = (wxPoint2D *) &_result_ref; | |
5675 | } | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
c32bde28 | 5680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5681 | return resultobj; |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
c32bde28 | 5687 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5688 | PyObject *resultobj; |
5689 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5690 | wxPoint2D *arg2 = 0 ; | |
5691 | wxPoint2D *result; | |
5692 | wxPoint2D temp2 ; | |
5693 | PyObject * obj0 = 0 ; | |
5694 | PyObject * obj1 = 0 ; | |
5695 | char *kwnames[] = { | |
5696 | (char *) "self",(char *) "pt", NULL | |
5697 | }; | |
5698 | ||
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5701 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5702 | { |
5703 | arg2 = &temp2; | |
5704 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5705 | } | |
5706 | { | |
5707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5708 | { | |
5709 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5710 | result = (wxPoint2D *) &_result_ref; | |
5711 | } | |
5712 | ||
5713 | wxPyEndAllowThreads(__tstate); | |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
c32bde28 | 5716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5717 | return resultobj; |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
c32bde28 | 5723 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5724 | PyObject *resultobj; |
5725 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5726 | wxPoint2D *arg2 = 0 ; | |
5727 | bool result; | |
5728 | wxPoint2D temp2 ; | |
5729 | PyObject * obj0 = 0 ; | |
5730 | PyObject * obj1 = 0 ; | |
5731 | char *kwnames[] = { | |
5732 | (char *) "self",(char *) "pt", NULL | |
5733 | }; | |
5734 | ||
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5738 | { | |
5739 | arg2 = &temp2; | |
5740 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5741 | } | |
5742 | { | |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
5749 | { | |
5750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5751 | } | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
5755 | } | |
5756 | ||
5757 | ||
c32bde28 | 5758 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5759 | PyObject *resultobj; |
5760 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5761 | wxPoint2D *arg2 = 0 ; | |
5762 | bool result; | |
5763 | wxPoint2D temp2 ; | |
5764 | PyObject * obj0 = 0 ; | |
5765 | PyObject * obj1 = 0 ; | |
5766 | char *kwnames[] = { | |
5767 | (char *) "self",(char *) "pt", NULL | |
5768 | }; | |
5769 | ||
5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5773 | { | |
5774 | arg2 = &temp2; | |
5775 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5776 | } | |
5777 | { | |
5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5779 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5780 | ||
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | { | |
5785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5786 | } | |
5787 | return resultobj; | |
5788 | fail: | |
5789 | return NULL; | |
5790 | } | |
5791 | ||
5792 | ||
c32bde28 | 5793 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5794 | PyObject *resultobj; |
5795 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5796 | double arg2 ; | |
5797 | PyObject * obj0 = 0 ; | |
5798 | PyObject * obj1 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self",(char *) "m_x", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5806 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5807 | if (PyErr_Occurred()) SWIG_fail; |
5808 | if (arg1) (arg1)->m_x = arg2; | |
5809 | ||
5810 | Py_INCREF(Py_None); resultobj = Py_None; | |
5811 | return resultobj; | |
5812 | fail: | |
5813 | return NULL; | |
5814 | } | |
5815 | ||
5816 | ||
c32bde28 | 5817 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5818 | PyObject *resultobj; |
5819 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5820 | double result; | |
5821 | PyObject * obj0 = 0 ; | |
5822 | char *kwnames[] = { | |
5823 | (char *) "self", NULL | |
5824 | }; | |
5825 | ||
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5829 | result = (double) ((arg1)->m_x); | |
5830 | ||
c32bde28 | 5831 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5832 | return resultobj; |
5833 | fail: | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
c32bde28 | 5838 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5839 | PyObject *resultobj; |
5840 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5841 | double arg2 ; | |
5842 | PyObject * obj0 = 0 ; | |
5843 | PyObject * obj1 = 0 ; | |
5844 | char *kwnames[] = { | |
5845 | (char *) "self",(char *) "m_y", NULL | |
5846 | }; | |
5847 | ||
5848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5851 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5852 | if (PyErr_Occurred()) SWIG_fail; |
5853 | if (arg1) (arg1)->m_y = arg2; | |
5854 | ||
5855 | Py_INCREF(Py_None); resultobj = Py_None; | |
5856 | return resultobj; | |
5857 | fail: | |
5858 | return NULL; | |
5859 | } | |
5860 | ||
5861 | ||
c32bde28 | 5862 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5863 | PyObject *resultobj; |
5864 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5865 | double result; | |
5866 | PyObject * obj0 = 0 ; | |
5867 | char *kwnames[] = { | |
5868 | (char *) "self", NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5874 | result = (double) ((arg1)->m_y); | |
5875 | ||
c32bde28 | 5876 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5877 | return resultobj; |
5878 | fail: | |
5879 | return NULL; | |
5880 | } | |
5881 | ||
5882 | ||
c32bde28 | 5883 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5884 | PyObject *resultobj; |
5885 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5886 | double arg2 = (double) 0 ; | |
5887 | double arg3 = (double) 0 ; | |
5888 | PyObject * obj0 = 0 ; | |
5889 | PyObject * obj1 = 0 ; | |
5890 | PyObject * obj2 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5898 | if (obj1) { | |
c32bde28 | 5899 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5900 | if (PyErr_Occurred()) SWIG_fail; |
5901 | } | |
5902 | if (obj2) { | |
c32bde28 | 5903 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
5904 | if (PyErr_Occurred()) SWIG_fail; |
5905 | } | |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | wxPoint2D_Set(arg1,arg2,arg3); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | Py_INCREF(Py_None); resultobj = Py_None; | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
c32bde28 | 5920 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5921 | PyObject *resultobj; |
5922 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5923 | PyObject *result; | |
5924 | PyObject * obj0 = 0 ; | |
5925 | char *kwnames[] = { | |
5926 | (char *) "self", NULL | |
5927 | }; | |
5928 | ||
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5932 | { | |
5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5934 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5935 | ||
5936 | wxPyEndAllowThreads(__tstate); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | } | |
5939 | resultobj = result; | |
5940 | return resultobj; | |
5941 | fail: | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
c32bde28 | 5946 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5947 | PyObject *obj; |
5948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5949 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5950 | Py_INCREF(obj); | |
5951 | return Py_BuildValue((char *)""); | |
5952 | } | |
c32bde28 | 5953 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
5954 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5955 | return 1; | |
5956 | } | |
5957 | ||
5958 | ||
5959 | static PyObject *_wrap_DefaultPosition_get() { | |
5960 | PyObject *pyobj; | |
5961 | ||
5962 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5963 | return pyobj; | |
5964 | } | |
5965 | ||
5966 | ||
c32bde28 | 5967 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
5968 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5969 | return 1; | |
5970 | } | |
5971 | ||
5972 | ||
5973 | static PyObject *_wrap_DefaultSize_get() { | |
5974 | PyObject *pyobj; | |
5975 | ||
5976 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5977 | return pyobj; | |
5978 | } | |
5979 | ||
5980 | ||
c32bde28 | 5981 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5982 | PyObject *resultobj; |
5983 | PyObject *arg1 = (PyObject *) 0 ; | |
5984 | wxPyInputStream *result; | |
5985 | PyObject * obj0 = 0 ; | |
5986 | char *kwnames[] = { | |
5987 | (char *) "p", NULL | |
5988 | }; | |
5989 | ||
5990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5991 | arg1 = obj0; | |
5992 | { | |
5993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5994 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5995 | ||
5996 | wxPyEndAllowThreads(__tstate); | |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
5998 | } | |
5999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
6000 | return resultobj; | |
6001 | fail: | |
6002 | return NULL; | |
6003 | } | |
6004 | ||
6005 | ||
8fb0e70a RD |
6006 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
6007 | PyObject *resultobj; | |
6008 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6009 | PyObject * obj0 = 0 ; | |
6010 | char *kwnames[] = { | |
6011 | (char *) "self", NULL | |
6012 | }; | |
6013 | ||
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
6015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | delete arg1; | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | Py_INCREF(Py_None); resultobj = Py_None; | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
c32bde28 | 6031 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6032 | PyObject *resultobj; |
6033 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6034 | PyObject * obj0 = 0 ; | |
6035 | char *kwnames[] = { | |
6036 | (char *) "self", NULL | |
6037 | }; | |
6038 | ||
6039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
6040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6042 | { | |
6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6044 | (arg1)->close(); | |
6045 | ||
6046 | wxPyEndAllowThreads(__tstate); | |
6047 | if (PyErr_Occurred()) SWIG_fail; | |
6048 | } | |
6049 | Py_INCREF(Py_None); resultobj = Py_None; | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
c32bde28 | 6056 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6057 | PyObject *resultobj; |
6058 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6059 | PyObject * obj0 = 0 ; | |
6060 | char *kwnames[] = { | |
6061 | (char *) "self", NULL | |
6062 | }; | |
6063 | ||
6064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
6065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6067 | { | |
6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6069 | (arg1)->flush(); | |
6070 | ||
6071 | wxPyEndAllowThreads(__tstate); | |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
6074 | Py_INCREF(Py_None); resultobj = Py_None; | |
6075 | return resultobj; | |
6076 | fail: | |
6077 | return NULL; | |
6078 | } | |
6079 | ||
6080 | ||
c32bde28 | 6081 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6082 | PyObject *resultobj; |
6083 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6084 | bool result; | |
6085 | PyObject * obj0 = 0 ; | |
6086 | char *kwnames[] = { | |
6087 | (char *) "self", NULL | |
6088 | }; | |
6089 | ||
6090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
6091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6093 | { | |
6094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6095 | result = (bool)(arg1)->eof(); | |
6096 | ||
6097 | wxPyEndAllowThreads(__tstate); | |
6098 | if (PyErr_Occurred()) SWIG_fail; | |
6099 | } | |
6100 | { | |
6101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6102 | } | |
6103 | return resultobj; | |
6104 | fail: | |
6105 | return NULL; | |
6106 | } | |
6107 | ||
6108 | ||
c32bde28 | 6109 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6110 | PyObject *resultobj; |
6111 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6112 | int arg2 = (int) -1 ; | |
6113 | PyObject *result; | |
6114 | PyObject * obj0 = 0 ; | |
6115 | PyObject * obj1 = 0 ; | |
6116 | char *kwnames[] = { | |
6117 | (char *) "self",(char *) "size", NULL | |
6118 | }; | |
6119 | ||
6120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
6121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6123 | if (obj1) { | |
c32bde28 | 6124 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6125 | if (PyErr_Occurred()) SWIG_fail; |
6126 | } | |
6127 | { | |
6128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6129 | result = (PyObject *)(arg1)->read(arg2); | |
6130 | ||
6131 | wxPyEndAllowThreads(__tstate); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | resultobj = result; | |
6135 | return resultobj; | |
6136 | fail: | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
c32bde28 | 6141 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6142 | PyObject *resultobj; |
6143 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6144 | int arg2 = (int) -1 ; | |
6145 | PyObject *result; | |
6146 | PyObject * obj0 = 0 ; | |
6147 | PyObject * obj1 = 0 ; | |
6148 | char *kwnames[] = { | |
6149 | (char *) "self",(char *) "size", NULL | |
6150 | }; | |
6151 | ||
6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
6153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6155 | if (obj1) { | |
c32bde28 | 6156 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6157 | if (PyErr_Occurred()) SWIG_fail; |
6158 | } | |
6159 | { | |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6161 | result = (PyObject *)(arg1)->readline(arg2); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | resultobj = result; | |
6167 | return resultobj; | |
6168 | fail: | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
c32bde28 | 6173 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6174 | PyObject *resultobj; |
6175 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6176 | int arg2 = (int) -1 ; | |
6177 | PyObject *result; | |
6178 | PyObject * obj0 = 0 ; | |
6179 | PyObject * obj1 = 0 ; | |
6180 | char *kwnames[] = { | |
6181 | (char *) "self",(char *) "sizehint", NULL | |
6182 | }; | |
6183 | ||
6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
6185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6187 | if (obj1) { | |
c32bde28 | 6188 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6189 | if (PyErr_Occurred()) SWIG_fail; |
6190 | } | |
6191 | { | |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | result = (PyObject *)(arg1)->readlines(arg2); | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
6198 | resultobj = result; | |
6199 | return resultobj; | |
6200 | fail: | |
6201 | return NULL; | |
6202 | } | |
6203 | ||
6204 | ||
c32bde28 | 6205 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6206 | PyObject *resultobj; |
6207 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6208 | int arg2 ; | |
6209 | int arg3 = (int) 0 ; | |
6210 | PyObject * obj0 = 0 ; | |
6211 | PyObject * obj1 = 0 ; | |
6212 | PyObject * obj2 = 0 ; | |
6213 | char *kwnames[] = { | |
6214 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6215 | }; | |
6216 | ||
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6220 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6221 | if (PyErr_Occurred()) SWIG_fail; |
6222 | if (obj2) { | |
c32bde28 | 6223 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6224 | if (PyErr_Occurred()) SWIG_fail; |
6225 | } | |
6226 | { | |
6227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6228 | (arg1)->seek(arg2,arg3); | |
6229 | ||
6230 | wxPyEndAllowThreads(__tstate); | |
6231 | if (PyErr_Occurred()) SWIG_fail; | |
6232 | } | |
6233 | Py_INCREF(Py_None); resultobj = Py_None; | |
6234 | return resultobj; | |
6235 | fail: | |
6236 | return NULL; | |
6237 | } | |
6238 | ||
6239 | ||
c32bde28 | 6240 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6241 | PyObject *resultobj; |
6242 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6243 | int result; | |
6244 | PyObject * obj0 = 0 ; | |
6245 | char *kwnames[] = { | |
6246 | (char *) "self", NULL | |
6247 | }; | |
6248 | ||
6249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
6250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6252 | { | |
6253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6254 | result = (int)(arg1)->tell(); | |
6255 | ||
6256 | wxPyEndAllowThreads(__tstate); | |
6257 | if (PyErr_Occurred()) SWIG_fail; | |
6258 | } | |
c32bde28 | 6259 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6260 | return resultobj; |
6261 | fail: | |
6262 | return NULL; | |
6263 | } | |
6264 | ||
6265 | ||
c32bde28 | 6266 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6267 | PyObject *resultobj; |
6268 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6269 | char result; | |
6270 | PyObject * obj0 = 0 ; | |
6271 | char *kwnames[] = { | |
6272 | (char *) "self", NULL | |
6273 | }; | |
6274 | ||
6275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
6276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6278 | { | |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6280 | result = (char)(arg1)->Peek(); | |
6281 | ||
6282 | wxPyEndAllowThreads(__tstate); | |
6283 | if (PyErr_Occurred()) SWIG_fail; | |
6284 | } | |
c32bde28 | 6285 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6286 | return resultobj; |
6287 | fail: | |
6288 | return NULL; | |
6289 | } | |
6290 | ||
6291 | ||
c32bde28 | 6292 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6293 | PyObject *resultobj; |
6294 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6295 | char result; | |
6296 | PyObject * obj0 = 0 ; | |
6297 | char *kwnames[] = { | |
6298 | (char *) "self", NULL | |
6299 | }; | |
6300 | ||
6301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6304 | { | |
6305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6306 | result = (char)(arg1)->GetC(); | |
6307 | ||
6308 | wxPyEndAllowThreads(__tstate); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
c32bde28 | 6311 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6312 | return resultobj; |
6313 | fail: | |
6314 | return NULL; | |
6315 | } | |
6316 | ||
6317 | ||
c32bde28 | 6318 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6319 | PyObject *resultobj; |
6320 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6321 | size_t result; | |
6322 | PyObject * obj0 = 0 ; | |
6323 | char *kwnames[] = { | |
6324 | (char *) "self", NULL | |
6325 | }; | |
6326 | ||
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6330 | { | |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | result = (size_t)(arg1)->LastRead(); | |
6333 | ||
6334 | wxPyEndAllowThreads(__tstate); | |
6335 | if (PyErr_Occurred()) SWIG_fail; | |
6336 | } | |
c32bde28 | 6337 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6338 | return resultobj; |
6339 | fail: | |
6340 | return NULL; | |
6341 | } | |
6342 | ||
6343 | ||
c32bde28 | 6344 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6345 | PyObject *resultobj; |
6346 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6347 | bool result; | |
6348 | PyObject * obj0 = 0 ; | |
6349 | char *kwnames[] = { | |
6350 | (char *) "self", NULL | |
6351 | }; | |
6352 | ||
6353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6356 | { | |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | result = (bool)(arg1)->CanRead(); | |
6359 | ||
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) SWIG_fail; | |
6362 | } | |
6363 | { | |
6364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6365 | } | |
6366 | return resultobj; | |
6367 | fail: | |
6368 | return NULL; | |
6369 | } | |
6370 | ||
6371 | ||
c32bde28 | 6372 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6373 | PyObject *resultobj; |
6374 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6375 | bool result; | |
6376 | PyObject * obj0 = 0 ; | |
6377 | char *kwnames[] = { | |
6378 | (char *) "self", NULL | |
6379 | }; | |
6380 | ||
6381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6384 | { | |
6385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6386 | result = (bool)(arg1)->Eof(); | |
6387 | ||
6388 | wxPyEndAllowThreads(__tstate); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
6391 | { | |
6392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6393 | } | |
6394 | return resultobj; | |
6395 | fail: | |
6396 | return NULL; | |
6397 | } | |
6398 | ||
6399 | ||
c32bde28 | 6400 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6401 | PyObject *resultobj; |
6402 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6403 | char arg2 ; | |
6404 | bool result; | |
6405 | PyObject * obj0 = 0 ; | |
6406 | PyObject * obj1 = 0 ; | |
6407 | char *kwnames[] = { | |
6408 | (char *) "self",(char *) "c", NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6414 | arg2 = (char)SWIG_As_char(obj1); |
d55e5bfc RD |
6415 | if (PyErr_Occurred()) SWIG_fail; |
6416 | { | |
6417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6418 | result = (bool)(arg1)->Ungetch(arg2); | |
6419 | ||
6420 | wxPyEndAllowThreads(__tstate); | |
6421 | if (PyErr_Occurred()) SWIG_fail; | |
6422 | } | |
6423 | { | |
6424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6425 | } | |
6426 | return resultobj; | |
6427 | fail: | |
6428 | return NULL; | |
6429 | } | |
6430 | ||
6431 | ||
c32bde28 | 6432 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6433 | PyObject *resultobj; |
6434 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6435 | long arg2 ; | |
6436 | int arg3 = (int) wxFromStart ; | |
6437 | long result; | |
6438 | PyObject * obj0 = 0 ; | |
6439 | PyObject * obj1 = 0 ; | |
6440 | PyObject * obj2 = 0 ; | |
6441 | char *kwnames[] = { | |
6442 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6443 | }; | |
6444 | ||
6445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6448 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
6449 | if (PyErr_Occurred()) SWIG_fail; |
6450 | if (obj2) { | |
c32bde28 | 6451 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6452 | if (PyErr_Occurred()) SWIG_fail; |
6453 | } | |
6454 | { | |
6455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6456 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6457 | ||
6458 | wxPyEndAllowThreads(__tstate); | |
6459 | if (PyErr_Occurred()) SWIG_fail; | |
6460 | } | |
c32bde28 | 6461 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6462 | return resultobj; |
6463 | fail: | |
6464 | return NULL; | |
6465 | } | |
6466 | ||
6467 | ||
c32bde28 | 6468 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6469 | PyObject *resultobj; |
6470 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6471 | long result; | |
6472 | PyObject * obj0 = 0 ; | |
6473 | char *kwnames[] = { | |
6474 | (char *) "self", NULL | |
6475 | }; | |
6476 | ||
6477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6480 | { | |
6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6482 | result = (long)(arg1)->TellI(); | |
6483 | ||
6484 | wxPyEndAllowThreads(__tstate); | |
6485 | if (PyErr_Occurred()) SWIG_fail; | |
6486 | } | |
c32bde28 | 6487 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6488 | return resultobj; |
6489 | fail: | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
c32bde28 | 6494 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6495 | PyObject *obj; |
6496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6497 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6498 | Py_INCREF(obj); | |
6499 | return Py_BuildValue((char *)""); | |
6500 | } | |
c32bde28 | 6501 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6502 | PyObject *resultobj; |
6503 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6504 | PyObject *arg2 = (PyObject *) 0 ; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | PyObject * obj1 = 0 ; | |
6507 | char *kwnames[] = { | |
6508 | (char *) "self",(char *) "obj", NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6514 | arg2 = obj1; | |
6515 | { | |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6517 | wxOutputStream_write(arg1,arg2); | |
6518 | ||
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | } | |
6522 | Py_INCREF(Py_None); resultobj = Py_None; | |
6523 | return resultobj; | |
6524 | fail: | |
6525 | return NULL; | |
6526 | } | |
6527 | ||
6528 | ||
c32bde28 | 6529 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6530 | PyObject *obj; |
6531 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6532 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6533 | Py_INCREF(obj); | |
6534 | return Py_BuildValue((char *)""); | |
6535 | } | |
c32bde28 | 6536 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6537 | PyObject *resultobj; |
6538 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6539 | wxString *arg2 = 0 ; | |
6540 | wxString *arg3 = 0 ; | |
6541 | wxString *arg4 = 0 ; | |
6542 | wxDateTime arg5 ; | |
6543 | wxFSFile *result; | |
6544 | wxPyInputStream *temp1 ; | |
6545 | bool created1 ; | |
ae8162c8 RD |
6546 | bool temp2 = false ; |
6547 | bool temp3 = false ; | |
6548 | bool temp4 = false ; | |
d55e5bfc RD |
6549 | wxDateTime *argp5 ; |
6550 | PyObject * obj0 = 0 ; | |
6551 | PyObject * obj1 = 0 ; | |
6552 | PyObject * obj2 = 0 ; | |
6553 | PyObject * obj3 = 0 ; | |
6554 | PyObject * obj4 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6560 | { | |
6561 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6562 | arg1 = temp1->m_wxis; | |
ae8162c8 | 6563 | created1 = false; |
d55e5bfc RD |
6564 | } else { |
6565 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 6566 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
6567 | if (arg1 == NULL) { |
6568 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6569 | SWIG_fail; | |
6570 | } | |
ae8162c8 | 6571 | created1 = true; |
d55e5bfc RD |
6572 | } |
6573 | } | |
6574 | { | |
6575 | arg2 = wxString_in_helper(obj1); | |
6576 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6577 | temp2 = true; |
d55e5bfc RD |
6578 | } |
6579 | { | |
6580 | arg3 = wxString_in_helper(obj2); | |
6581 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6582 | temp3 = true; |
d55e5bfc RD |
6583 | } |
6584 | { | |
6585 | arg4 = wxString_in_helper(obj3); | |
6586 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6587 | temp4 = true; |
d55e5bfc RD |
6588 | } |
6589 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6590 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6591 | arg5 = *argp5; | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | { | |
412d302d | 6600 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6601 | } |
6602 | { | |
6603 | if (created1) | |
6604 | delete arg1; | |
6605 | } | |
6606 | { | |
6607 | if (temp2) | |
6608 | delete arg2; | |
6609 | } | |
6610 | { | |
6611 | if (temp3) | |
6612 | delete arg3; | |
6613 | } | |
6614 | { | |
6615 | if (temp4) | |
6616 | delete arg4; | |
6617 | } | |
6618 | return resultobj; | |
6619 | fail: | |
6620 | { | |
6621 | if (created1) | |
6622 | delete arg1; | |
6623 | } | |
6624 | { | |
6625 | if (temp2) | |
6626 | delete arg2; | |
6627 | } | |
6628 | { | |
6629 | if (temp3) | |
6630 | delete arg3; | |
6631 | } | |
6632 | { | |
6633 | if (temp4) | |
6634 | delete arg4; | |
6635 | } | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
c32bde28 | 6640 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6641 | PyObject *resultobj; |
6642 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6643 | PyObject * obj0 = 0 ; | |
6644 | char *kwnames[] = { | |
6645 | (char *) "self", NULL | |
6646 | }; | |
6647 | ||
6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6651 | { | |
6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6653 | delete arg1; | |
6654 | ||
6655 | wxPyEndAllowThreads(__tstate); | |
6656 | if (PyErr_Occurred()) SWIG_fail; | |
6657 | } | |
6658 | Py_INCREF(Py_None); resultobj = Py_None; | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
c32bde28 | 6665 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6666 | PyObject *resultobj; |
6667 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6668 | wxInputStream *result; | |
6669 | PyObject * obj0 = 0 ; | |
6670 | char *kwnames[] = { | |
6671 | (char *) "self", NULL | |
6672 | }; | |
6673 | ||
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6677 | { | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | result = (wxInputStream *)(arg1)->GetStream(); | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
6684 | { | |
6685 | wxPyInputStream * _ptr = NULL; | |
6686 | ||
6687 | if (result) { | |
6688 | _ptr = new wxPyInputStream(result); | |
6689 | } | |
fc71d09b | 6690 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
6691 | } |
6692 | return resultobj; | |
6693 | fail: | |
6694 | return NULL; | |
6695 | } | |
6696 | ||
6697 | ||
c32bde28 | 6698 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6699 | PyObject *resultobj; |
6700 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6701 | wxString *result; | |
6702 | PyObject * obj0 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "self", NULL | |
6705 | }; | |
6706 | ||
6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6710 | { | |
6711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6712 | { | |
6713 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6714 | result = (wxString *) &_result_ref; | |
6715 | } | |
6716 | ||
6717 | wxPyEndAllowThreads(__tstate); | |
6718 | if (PyErr_Occurred()) SWIG_fail; | |
6719 | } | |
6720 | { | |
6721 | #if wxUSE_UNICODE | |
6722 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6723 | #else | |
6724 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6725 | #endif | |
6726 | } | |
6727 | return resultobj; | |
6728 | fail: | |
6729 | return NULL; | |
6730 | } | |
6731 | ||
6732 | ||
c32bde28 | 6733 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6734 | PyObject *resultobj; |
6735 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6736 | wxString *result; | |
6737 | PyObject * obj0 = 0 ; | |
6738 | char *kwnames[] = { | |
6739 | (char *) "self", NULL | |
6740 | }; | |
6741 | ||
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | { | |
6748 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6749 | result = (wxString *) &_result_ref; | |
6750 | } | |
6751 | ||
6752 | wxPyEndAllowThreads(__tstate); | |
6753 | if (PyErr_Occurred()) SWIG_fail; | |
6754 | } | |
6755 | { | |
6756 | #if wxUSE_UNICODE | |
6757 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6758 | #else | |
6759 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6760 | #endif | |
6761 | } | |
6762 | return resultobj; | |
6763 | fail: | |
6764 | return NULL; | |
6765 | } | |
6766 | ||
6767 | ||
c32bde28 | 6768 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6769 | PyObject *resultobj; |
6770 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6771 | wxString *result; | |
6772 | PyObject * obj0 = 0 ; | |
6773 | char *kwnames[] = { | |
6774 | (char *) "self", NULL | |
6775 | }; | |
6776 | ||
6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6780 | { | |
6781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6782 | { | |
6783 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6784 | result = (wxString *) &_result_ref; | |
6785 | } | |
6786 | ||
6787 | wxPyEndAllowThreads(__tstate); | |
6788 | if (PyErr_Occurred()) SWIG_fail; | |
6789 | } | |
6790 | { | |
6791 | #if wxUSE_UNICODE | |
6792 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6793 | #else | |
6794 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6795 | #endif | |
6796 | } | |
6797 | return resultobj; | |
6798 | fail: | |
6799 | return NULL; | |
6800 | } | |
6801 | ||
6802 | ||
c32bde28 | 6803 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6804 | PyObject *resultobj; |
6805 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6806 | wxDateTime result; | |
6807 | PyObject * obj0 = 0 ; | |
6808 | char *kwnames[] = { | |
6809 | (char *) "self", NULL | |
6810 | }; | |
6811 | ||
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6815 | { | |
6816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6817 | result = (arg1)->GetModificationTime(); | |
6818 | ||
6819 | wxPyEndAllowThreads(__tstate); | |
6820 | if (PyErr_Occurred()) SWIG_fail; | |
6821 | } | |
6822 | { | |
6823 | wxDateTime * resultptr; | |
6824 | resultptr = new wxDateTime((wxDateTime &) result); | |
6825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6826 | } | |
6827 | return resultobj; | |
6828 | fail: | |
6829 | return NULL; | |
6830 | } | |
6831 | ||
6832 | ||
c32bde28 | 6833 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6834 | PyObject *obj; |
6835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6836 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6837 | Py_INCREF(obj); | |
6838 | return Py_BuildValue((char *)""); | |
6839 | } | |
c32bde28 | 6840 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6841 | PyObject *obj; |
6842 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6843 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6844 | Py_INCREF(obj); | |
6845 | return Py_BuildValue((char *)""); | |
6846 | } | |
c32bde28 | 6847 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6848 | PyObject *resultobj; |
6849 | wxPyFileSystemHandler *result; | |
6850 | char *kwnames[] = { | |
6851 | NULL | |
6852 | }; | |
6853 | ||
6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6855 | { | |
6856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6857 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6858 | ||
6859 | wxPyEndAllowThreads(__tstate); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
6861 | } | |
6862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6863 | return resultobj; | |
6864 | fail: | |
6865 | return NULL; | |
6866 | } | |
6867 | ||
6868 | ||
c32bde28 | 6869 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6870 | PyObject *resultobj; |
6871 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6872 | PyObject *arg2 = (PyObject *) 0 ; | |
6873 | PyObject *arg3 = (PyObject *) 0 ; | |
6874 | PyObject * obj0 = 0 ; | |
6875 | PyObject * obj1 = 0 ; | |
6876 | PyObject * obj2 = 0 ; | |
6877 | char *kwnames[] = { | |
6878 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6879 | }; | |
6880 | ||
6881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6884 | arg2 = obj1; | |
6885 | arg3 = obj2; | |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
6893 | Py_INCREF(Py_None); resultobj = Py_None; | |
6894 | return resultobj; | |
6895 | fail: | |
6896 | return NULL; | |
6897 | } | |
6898 | ||
6899 | ||
c32bde28 | 6900 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6901 | PyObject *resultobj; |
6902 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6903 | wxString *arg2 = 0 ; | |
6904 | bool result; | |
ae8162c8 | 6905 | bool temp2 = false ; |
d55e5bfc RD |
6906 | PyObject * obj0 = 0 ; |
6907 | PyObject * obj1 = 0 ; | |
6908 | char *kwnames[] = { | |
6909 | (char *) "self",(char *) "location", NULL | |
6910 | }; | |
6911 | ||
6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6915 | { | |
6916 | arg2 = wxString_in_helper(obj1); | |
6917 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6918 | temp2 = true; |
d55e5bfc RD |
6919 | } |
6920 | { | |
6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6922 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6923 | ||
6924 | wxPyEndAllowThreads(__tstate); | |
6925 | if (PyErr_Occurred()) SWIG_fail; | |
6926 | } | |
6927 | { | |
6928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6929 | } | |
6930 | { | |
6931 | if (temp2) | |
6932 | delete arg2; | |
6933 | } | |
6934 | return resultobj; | |
6935 | fail: | |
6936 | { | |
6937 | if (temp2) | |
6938 | delete arg2; | |
6939 | } | |
6940 | return NULL; | |
6941 | } | |
6942 | ||
6943 | ||
c32bde28 | 6944 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6945 | PyObject *resultobj; |
6946 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6947 | wxFileSystem *arg2 = 0 ; | |
6948 | wxString *arg3 = 0 ; | |
6949 | wxFSFile *result; | |
ae8162c8 | 6950 | bool temp3 = false ; |
d55e5bfc RD |
6951 | PyObject * obj0 = 0 ; |
6952 | PyObject * obj1 = 0 ; | |
6953 | PyObject * obj2 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6956 | }; | |
6957 | ||
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6962 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6963 | SWIG_fail; | |
6964 | if (arg2 == NULL) { | |
6965 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6966 | SWIG_fail; | |
6967 | } | |
6968 | { | |
6969 | arg3 = wxString_in_helper(obj2); | |
6970 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6971 | temp3 = true; |
d55e5bfc RD |
6972 | } |
6973 | { | |
6974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6975 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6976 | ||
6977 | wxPyEndAllowThreads(__tstate); | |
6978 | if (PyErr_Occurred()) SWIG_fail; | |
6979 | } | |
6980 | { | |
4cf4100f | 6981 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6982 | } |
6983 | { | |
6984 | if (temp3) | |
6985 | delete arg3; | |
6986 | } | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | { | |
6990 | if (temp3) | |
6991 | delete arg3; | |
6992 | } | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
c32bde28 | 6997 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6998 | PyObject *resultobj; |
6999 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7000 | wxString *arg2 = 0 ; | |
7001 | int arg3 = (int) 0 ; | |
7002 | wxString result; | |
ae8162c8 | 7003 | bool temp2 = false ; |
d55e5bfc RD |
7004 | PyObject * obj0 = 0 ; |
7005 | PyObject * obj1 = 0 ; | |
7006 | PyObject * obj2 = 0 ; | |
7007 | char *kwnames[] = { | |
7008 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7014 | { | |
7015 | arg2 = wxString_in_helper(obj1); | |
7016 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7017 | temp2 = true; |
d55e5bfc RD |
7018 | } |
7019 | if (obj2) { | |
c32bde28 | 7020 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7021 | if (PyErr_Occurred()) SWIG_fail; |
7022 | } | |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | { | |
7031 | #if wxUSE_UNICODE | |
7032 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7033 | #else | |
7034 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7035 | #endif | |
7036 | } | |
7037 | { | |
7038 | if (temp2) | |
7039 | delete arg2; | |
7040 | } | |
7041 | return resultobj; | |
7042 | fail: | |
7043 | { | |
7044 | if (temp2) | |
7045 | delete arg2; | |
7046 | } | |
7047 | return NULL; | |
7048 | } | |
7049 | ||
7050 | ||
c32bde28 | 7051 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7052 | PyObject *resultobj; |
7053 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7054 | wxString result; | |
7055 | PyObject * obj0 = 0 ; | |
7056 | char *kwnames[] = { | |
7057 | (char *) "self", NULL | |
7058 | }; | |
7059 | ||
7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
7061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7063 | { | |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7065 | result = (arg1)->FindNext(); | |
7066 | ||
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
7070 | { | |
7071 | #if wxUSE_UNICODE | |
7072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7073 | #else | |
7074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7075 | #endif | |
7076 | } | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
c32bde28 | 7083 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7084 | PyObject *resultobj; |
7085 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7086 | wxString *arg2 = 0 ; | |
7087 | wxString result; | |
ae8162c8 | 7088 | bool temp2 = false ; |
d55e5bfc RD |
7089 | PyObject * obj0 = 0 ; |
7090 | PyObject * obj1 = 0 ; | |
7091 | char *kwnames[] = { | |
7092 | (char *) "self",(char *) "location", NULL | |
7093 | }; | |
7094 | ||
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
7096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7098 | { | |
7099 | arg2 = wxString_in_helper(obj1); | |
7100 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7101 | temp2 = true; |
d55e5bfc RD |
7102 | } |
7103 | { | |
7104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7105 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
7110 | { | |
7111 | #if wxUSE_UNICODE | |
7112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7113 | #else | |
7114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7115 | #endif | |
7116 | } | |
7117 | { | |
7118 | if (temp2) | |
7119 | delete arg2; | |
7120 | } | |
7121 | return resultobj; | |
7122 | fail: | |
7123 | { | |
7124 | if (temp2) | |
7125 | delete arg2; | |
7126 | } | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
c32bde28 | 7131 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7132 | PyObject *resultobj; |
7133 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7134 | wxString *arg2 = 0 ; | |
7135 | wxString result; | |
ae8162c8 | 7136 | bool temp2 = false ; |
d55e5bfc RD |
7137 | PyObject * obj0 = 0 ; |
7138 | PyObject * obj1 = 0 ; | |
7139 | char *kwnames[] = { | |
7140 | (char *) "self",(char *) "location", NULL | |
7141 | }; | |
7142 | ||
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
7144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7146 | { | |
7147 | arg2 = wxString_in_helper(obj1); | |
7148 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7149 | temp2 = true; |
d55e5bfc RD |
7150 | } |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
7158 | { | |
7159 | #if wxUSE_UNICODE | |
7160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7161 | #else | |
7162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7163 | #endif | |
7164 | } | |
7165 | { | |
7166 | if (temp2) | |
7167 | delete arg2; | |
7168 | } | |
7169 | return resultobj; | |
7170 | fail: | |
7171 | { | |
7172 | if (temp2) | |
7173 | delete arg2; | |
7174 | } | |
7175 | return NULL; | |
7176 | } | |
7177 | ||
7178 | ||
c32bde28 | 7179 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7180 | PyObject *resultobj; |
7181 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7182 | wxString *arg2 = 0 ; | |
7183 | wxString result; | |
ae8162c8 | 7184 | bool temp2 = false ; |
d55e5bfc RD |
7185 | PyObject * obj0 = 0 ; |
7186 | PyObject * obj1 = 0 ; | |
7187 | char *kwnames[] = { | |
7188 | (char *) "self",(char *) "location", NULL | |
7189 | }; | |
7190 | ||
7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
7192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7194 | { | |
7195 | arg2 = wxString_in_helper(obj1); | |
7196 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7197 | temp2 = true; |
d55e5bfc RD |
7198 | } |
7199 | { | |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7201 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | { | |
7207 | #if wxUSE_UNICODE | |
7208 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7209 | #else | |
7210 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7211 | #endif | |
7212 | } | |
7213 | { | |
7214 | if (temp2) | |
7215 | delete arg2; | |
7216 | } | |
7217 | return resultobj; | |
7218 | fail: | |
7219 | { | |
7220 | if (temp2) | |
7221 | delete arg2; | |
7222 | } | |
7223 | return NULL; | |
7224 | } | |
7225 | ||
7226 | ||
c32bde28 | 7227 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7228 | PyObject *resultobj; |
7229 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7230 | wxString *arg2 = 0 ; | |
7231 | wxString result; | |
ae8162c8 | 7232 | bool temp2 = false ; |
d55e5bfc RD |
7233 | PyObject * obj0 = 0 ; |
7234 | PyObject * obj1 = 0 ; | |
7235 | char *kwnames[] = { | |
7236 | (char *) "self",(char *) "location", NULL | |
7237 | }; | |
7238 | ||
7239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
7240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7242 | { | |
7243 | arg2 = wxString_in_helper(obj1); | |
7244 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7245 | temp2 = true; |
d55e5bfc RD |
7246 | } |
7247 | { | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7250 | ||
7251 | wxPyEndAllowThreads(__tstate); | |
7252 | if (PyErr_Occurred()) SWIG_fail; | |
7253 | } | |
7254 | { | |
7255 | #if wxUSE_UNICODE | |
7256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7257 | #else | |
7258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7259 | #endif | |
7260 | } | |
7261 | { | |
7262 | if (temp2) | |
7263 | delete arg2; | |
7264 | } | |
7265 | return resultobj; | |
7266 | fail: | |
7267 | { | |
7268 | if (temp2) | |
7269 | delete arg2; | |
7270 | } | |
7271 | return NULL; | |
7272 | } | |
7273 | ||
7274 | ||
c32bde28 | 7275 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7276 | PyObject *resultobj; |
7277 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7278 | wxString *arg2 = 0 ; | |
7279 | wxString result; | |
ae8162c8 | 7280 | bool temp2 = false ; |
d55e5bfc RD |
7281 | PyObject * obj0 = 0 ; |
7282 | PyObject * obj1 = 0 ; | |
7283 | char *kwnames[] = { | |
7284 | (char *) "self",(char *) "location", NULL | |
7285 | }; | |
7286 | ||
7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
7288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7290 | { | |
7291 | arg2 = wxString_in_helper(obj1); | |
7292 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7293 | temp2 = true; |
d55e5bfc RD |
7294 | } |
7295 | { | |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7298 | ||
7299 | wxPyEndAllowThreads(__tstate); | |
7300 | if (PyErr_Occurred()) SWIG_fail; | |
7301 | } | |
7302 | { | |
7303 | #if wxUSE_UNICODE | |
7304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7305 | #else | |
7306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7307 | #endif | |
7308 | } | |
7309 | { | |
7310 | if (temp2) | |
7311 | delete arg2; | |
7312 | } | |
7313 | return resultobj; | |
7314 | fail: | |
7315 | { | |
7316 | if (temp2) | |
7317 | delete arg2; | |
7318 | } | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
c32bde28 | 7323 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7324 | PyObject *obj; |
7325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7326 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7327 | Py_INCREF(obj); | |
7328 | return Py_BuildValue((char *)""); | |
7329 | } | |
c32bde28 | 7330 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7331 | PyObject *resultobj; |
7332 | wxFileSystem *result; | |
7333 | char *kwnames[] = { | |
7334 | NULL | |
7335 | }; | |
7336 | ||
7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | result = (wxFileSystem *)new wxFileSystem(); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | { | |
412d302d | 7346 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7347 | } |
7348 | return resultobj; | |
7349 | fail: | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
c32bde28 | 7354 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7355 | PyObject *resultobj; |
7356 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7357 | PyObject * obj0 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "self", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",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 | delete arg1; | |
7368 | ||
7369 | wxPyEndAllowThreads(__tstate); | |
7370 | if (PyErr_Occurred()) SWIG_fail; | |
7371 | } | |
7372 | Py_INCREF(Py_None); resultobj = Py_None; | |
7373 | return resultobj; | |
7374 | fail: | |
7375 | return NULL; | |
7376 | } | |
7377 | ||
7378 | ||
c32bde28 | 7379 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7380 | PyObject *resultobj; |
7381 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7382 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
7383 | bool arg3 = (bool) false ; |
7384 | bool temp2 = false ; | |
d55e5bfc RD |
7385 | PyObject * obj0 = 0 ; |
7386 | PyObject * obj1 = 0 ; | |
7387 | PyObject * obj2 = 0 ; | |
7388 | char *kwnames[] = { | |
7389 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7390 | }; | |
7391 | ||
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7395 | { | |
7396 | arg2 = wxString_in_helper(obj1); | |
7397 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7398 | temp2 = true; |
d55e5bfc RD |
7399 | } |
7400 | if (obj2) { | |
c32bde28 | 7401 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7402 | if (PyErr_Occurred()) SWIG_fail; |
7403 | } | |
7404 | { | |
7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7406 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7407 | ||
7408 | wxPyEndAllowThreads(__tstate); | |
7409 | if (PyErr_Occurred()) SWIG_fail; | |
7410 | } | |
7411 | Py_INCREF(Py_None); resultobj = Py_None; | |
7412 | { | |
7413 | if (temp2) | |
7414 | delete arg2; | |
7415 | } | |
7416 | return resultobj; | |
7417 | fail: | |
7418 | { | |
7419 | if (temp2) | |
7420 | delete arg2; | |
7421 | } | |
7422 | return NULL; | |
7423 | } | |
7424 | ||
7425 | ||
c32bde28 | 7426 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7427 | PyObject *resultobj; |
7428 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7429 | wxString result; | |
7430 | PyObject * obj0 = 0 ; | |
7431 | char *kwnames[] = { | |
7432 | (char *) "self", NULL | |
7433 | }; | |
7434 | ||
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7438 | { | |
7439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7440 | result = (arg1)->GetPath(); | |
7441 | ||
7442 | wxPyEndAllowThreads(__tstate); | |
7443 | if (PyErr_Occurred()) SWIG_fail; | |
7444 | } | |
7445 | { | |
7446 | #if wxUSE_UNICODE | |
7447 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7448 | #else | |
7449 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7450 | #endif | |
7451 | } | |
7452 | return resultobj; | |
7453 | fail: | |
7454 | return NULL; | |
7455 | } | |
7456 | ||
7457 | ||
c32bde28 | 7458 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7459 | PyObject *resultobj; |
7460 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7461 | wxString *arg2 = 0 ; | |
7462 | wxFSFile *result; | |
ae8162c8 | 7463 | bool temp2 = false ; |
d55e5bfc RD |
7464 | PyObject * obj0 = 0 ; |
7465 | PyObject * obj1 = 0 ; | |
7466 | char *kwnames[] = { | |
7467 | (char *) "self",(char *) "location", NULL | |
7468 | }; | |
7469 | ||
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7473 | { | |
7474 | arg2 = wxString_in_helper(obj1); | |
7475 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7476 | temp2 = true; |
d55e5bfc RD |
7477 | } |
7478 | { | |
7479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7480 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7481 | ||
7482 | wxPyEndAllowThreads(__tstate); | |
7483 | if (PyErr_Occurred()) SWIG_fail; | |
7484 | } | |
7485 | { | |
4cf4100f | 7486 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7487 | } |
7488 | { | |
7489 | if (temp2) | |
7490 | delete arg2; | |
7491 | } | |
7492 | return resultobj; | |
7493 | fail: | |
7494 | { | |
7495 | if (temp2) | |
7496 | delete arg2; | |
7497 | } | |
7498 | return NULL; | |
7499 | } | |
7500 | ||
7501 | ||
c32bde28 | 7502 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7503 | PyObject *resultobj; |
7504 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7505 | wxString *arg2 = 0 ; | |
7506 | int arg3 = (int) 0 ; | |
7507 | wxString result; | |
ae8162c8 | 7508 | bool temp2 = false ; |
d55e5bfc RD |
7509 | PyObject * obj0 = 0 ; |
7510 | PyObject * obj1 = 0 ; | |
7511 | PyObject * obj2 = 0 ; | |
7512 | char *kwnames[] = { | |
7513 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7514 | }; | |
7515 | ||
7516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7519 | { | |
7520 | arg2 = wxString_in_helper(obj1); | |
7521 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7522 | temp2 = true; |
d55e5bfc RD |
7523 | } |
7524 | if (obj2) { | |
c32bde28 | 7525 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7526 | if (PyErr_Occurred()) SWIG_fail; |
7527 | } | |
7528 | { | |
7529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7530 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7531 | ||
7532 | wxPyEndAllowThreads(__tstate); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
7535 | { | |
7536 | #if wxUSE_UNICODE | |
7537 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7538 | #else | |
7539 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7540 | #endif | |
7541 | } | |
7542 | { | |
7543 | if (temp2) | |
7544 | delete arg2; | |
7545 | } | |
7546 | return resultobj; | |
7547 | fail: | |
7548 | { | |
7549 | if (temp2) | |
7550 | delete arg2; | |
7551 | } | |
7552 | return NULL; | |
7553 | } | |
7554 | ||
7555 | ||
c32bde28 | 7556 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7557 | PyObject *resultobj; |
7558 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7559 | wxString result; | |
7560 | PyObject * obj0 = 0 ; | |
7561 | char *kwnames[] = { | |
7562 | (char *) "self", NULL | |
7563 | }; | |
7564 | ||
7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7568 | { | |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | result = (arg1)->FindNext(); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
7575 | { | |
7576 | #if wxUSE_UNICODE | |
7577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7578 | #else | |
7579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7580 | #endif | |
7581 | } | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
c32bde28 | 7588 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7589 | PyObject *resultobj; |
7590 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7591 | PyObject * obj0 = 0 ; | |
7592 | char *kwnames[] = { | |
7593 | (char *) "handler", NULL | |
7594 | }; | |
7595 | ||
7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7599 | { | |
7600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7601 | wxFileSystem::AddHandler(arg1); | |
7602 | ||
7603 | wxPyEndAllowThreads(__tstate); | |
7604 | if (PyErr_Occurred()) SWIG_fail; | |
7605 | } | |
7606 | Py_INCREF(Py_None); resultobj = Py_None; | |
7607 | return resultobj; | |
7608 | fail: | |
7609 | return NULL; | |
7610 | } | |
7611 | ||
7612 | ||
c32bde28 | 7613 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7614 | PyObject *resultobj; |
7615 | char *kwnames[] = { | |
7616 | NULL | |
7617 | }; | |
7618 | ||
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7620 | { | |
7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7622 | wxFileSystem::CleanUpHandlers(); | |
7623 | ||
7624 | wxPyEndAllowThreads(__tstate); | |
7625 | if (PyErr_Occurred()) SWIG_fail; | |
7626 | } | |
7627 | Py_INCREF(Py_None); resultobj = Py_None; | |
7628 | return resultobj; | |
7629 | fail: | |
7630 | return NULL; | |
7631 | } | |
7632 | ||
7633 | ||
c32bde28 | 7634 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7635 | PyObject *resultobj; |
7636 | wxString *arg1 = 0 ; | |
7637 | wxString result; | |
ae8162c8 | 7638 | bool temp1 = false ; |
d55e5bfc RD |
7639 | PyObject * obj0 = 0 ; |
7640 | char *kwnames[] = { | |
7641 | (char *) "filename", NULL | |
7642 | }; | |
7643 | ||
7644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7645 | { | |
7646 | arg1 = wxString_in_helper(obj0); | |
7647 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7648 | temp1 = true; |
d55e5bfc RD |
7649 | } |
7650 | { | |
7651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7652 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7653 | ||
7654 | wxPyEndAllowThreads(__tstate); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | { | |
7658 | #if wxUSE_UNICODE | |
7659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7660 | #else | |
7661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7662 | #endif | |
7663 | } | |
7664 | { | |
7665 | if (temp1) | |
7666 | delete arg1; | |
7667 | } | |
7668 | return resultobj; | |
7669 | fail: | |
7670 | { | |
7671 | if (temp1) | |
7672 | delete arg1; | |
7673 | } | |
7674 | return NULL; | |
7675 | } | |
7676 | ||
7677 | ||
c32bde28 | 7678 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7679 | PyObject *resultobj; |
7680 | wxString *arg1 = 0 ; | |
7681 | wxString result; | |
ae8162c8 | 7682 | bool temp1 = false ; |
d55e5bfc RD |
7683 | PyObject * obj0 = 0 ; |
7684 | char *kwnames[] = { | |
7685 | (char *) "url", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7689 | { | |
7690 | arg1 = wxString_in_helper(obj0); | |
7691 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7692 | temp1 = true; |
d55e5bfc RD |
7693 | } |
7694 | { | |
7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 7696 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
7697 | |
7698 | wxPyEndAllowThreads(__tstate); | |
7699 | if (PyErr_Occurred()) SWIG_fail; | |
7700 | } | |
7701 | { | |
7702 | #if wxUSE_UNICODE | |
7703 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7704 | #else | |
7705 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7706 | #endif | |
7707 | } | |
7708 | { | |
7709 | if (temp1) | |
7710 | delete arg1; | |
7711 | } | |
7712 | return resultobj; | |
7713 | fail: | |
7714 | { | |
7715 | if (temp1) | |
7716 | delete arg1; | |
7717 | } | |
7718 | return NULL; | |
7719 | } | |
7720 | ||
7721 | ||
ae8162c8 RD |
7722 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7723 | PyObject *obj; | |
7724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7725 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7726 | Py_INCREF(obj); | |
7727 | return Py_BuildValue((char *)""); | |
7728 | } | |
c32bde28 | 7729 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7730 | PyObject *resultobj; |
7731 | wxInternetFSHandler *result; | |
7732 | char *kwnames[] = { | |
7733 | NULL | |
7734 | }; | |
7735 | ||
7736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7737 | { | |
7738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7739 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7740 | ||
7741 | wxPyEndAllowThreads(__tstate); | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | } | |
7744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7745 | return resultobj; | |
7746 | fail: | |
7747 | return NULL; | |
7748 | } | |
7749 | ||
7750 | ||
c32bde28 | 7751 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7752 | PyObject *resultobj; |
7753 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7754 | wxString *arg2 = 0 ; | |
7755 | bool result; | |
ae8162c8 | 7756 | bool temp2 = false ; |
d55e5bfc RD |
7757 | PyObject * obj0 = 0 ; |
7758 | PyObject * obj1 = 0 ; | |
7759 | char *kwnames[] = { | |
7760 | (char *) "self",(char *) "location", NULL | |
7761 | }; | |
7762 | ||
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7766 | { | |
7767 | arg2 = wxString_in_helper(obj1); | |
7768 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7769 | temp2 = true; |
d55e5bfc RD |
7770 | } |
7771 | { | |
7772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7773 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7774 | ||
7775 | wxPyEndAllowThreads(__tstate); | |
7776 | if (PyErr_Occurred()) SWIG_fail; | |
7777 | } | |
7778 | { | |
7779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7780 | } | |
7781 | { | |
7782 | if (temp2) | |
7783 | delete arg2; | |
7784 | } | |
7785 | return resultobj; | |
7786 | fail: | |
7787 | { | |
7788 | if (temp2) | |
7789 | delete arg2; | |
7790 | } | |
7791 | return NULL; | |
7792 | } | |
7793 | ||
7794 | ||
c32bde28 | 7795 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7796 | PyObject *resultobj; |
7797 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7798 | wxFileSystem *arg2 = 0 ; | |
7799 | wxString *arg3 = 0 ; | |
7800 | wxFSFile *result; | |
ae8162c8 | 7801 | bool temp3 = false ; |
d55e5bfc RD |
7802 | PyObject * obj0 = 0 ; |
7803 | PyObject * obj1 = 0 ; | |
7804 | PyObject * obj2 = 0 ; | |
7805 | char *kwnames[] = { | |
7806 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7807 | }; | |
7808 | ||
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7813 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7814 | SWIG_fail; | |
7815 | if (arg2 == NULL) { | |
7816 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7817 | SWIG_fail; | |
7818 | } | |
7819 | { | |
7820 | arg3 = wxString_in_helper(obj2); | |
7821 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7822 | temp3 = true; |
d55e5bfc RD |
7823 | } |
7824 | { | |
7825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7826 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7827 | ||
7828 | wxPyEndAllowThreads(__tstate); | |
7829 | if (PyErr_Occurred()) SWIG_fail; | |
7830 | } | |
7831 | { | |
4cf4100f | 7832 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7833 | } |
7834 | { | |
7835 | if (temp3) | |
7836 | delete arg3; | |
7837 | } | |
7838 | return resultobj; | |
7839 | fail: | |
7840 | { | |
7841 | if (temp3) | |
7842 | delete arg3; | |
7843 | } | |
7844 | return NULL; | |
7845 | } | |
7846 | ||
7847 | ||
c32bde28 | 7848 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7849 | PyObject *obj; |
7850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7851 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7852 | Py_INCREF(obj); | |
7853 | return Py_BuildValue((char *)""); | |
7854 | } | |
c32bde28 | 7855 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7856 | PyObject *resultobj; |
7857 | wxZipFSHandler *result; | |
7858 | char *kwnames[] = { | |
7859 | NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
c32bde28 | 7877 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7878 | PyObject *resultobj; |
7879 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7880 | wxString *arg2 = 0 ; | |
7881 | bool result; | |
ae8162c8 | 7882 | bool temp2 = false ; |
d55e5bfc RD |
7883 | PyObject * obj0 = 0 ; |
7884 | PyObject * obj1 = 0 ; | |
7885 | char *kwnames[] = { | |
7886 | (char *) "self",(char *) "location", NULL | |
7887 | }; | |
7888 | ||
7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7892 | { | |
7893 | arg2 = wxString_in_helper(obj1); | |
7894 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7895 | temp2 = true; |
d55e5bfc RD |
7896 | } |
7897 | { | |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | { | |
7905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7906 | } | |
7907 | { | |
7908 | if (temp2) | |
7909 | delete arg2; | |
7910 | } | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | { | |
7914 | if (temp2) | |
7915 | delete arg2; | |
7916 | } | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
c32bde28 | 7921 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7922 | PyObject *resultobj; |
7923 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7924 | wxFileSystem *arg2 = 0 ; | |
7925 | wxString *arg3 = 0 ; | |
7926 | wxFSFile *result; | |
ae8162c8 | 7927 | bool temp3 = false ; |
d55e5bfc RD |
7928 | PyObject * obj0 = 0 ; |
7929 | PyObject * obj1 = 0 ; | |
7930 | PyObject * obj2 = 0 ; | |
7931 | char *kwnames[] = { | |
7932 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7940 | SWIG_fail; | |
7941 | if (arg2 == NULL) { | |
7942 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7943 | SWIG_fail; | |
7944 | } | |
7945 | { | |
7946 | arg3 = wxString_in_helper(obj2); | |
7947 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7948 | temp3 = true; |
d55e5bfc RD |
7949 | } |
7950 | { | |
7951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7952 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7953 | ||
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | { | |
4cf4100f | 7958 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7959 | } |
7960 | { | |
7961 | if (temp3) | |
7962 | delete arg3; | |
7963 | } | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | { | |
7967 | if (temp3) | |
7968 | delete arg3; | |
7969 | } | |
7970 | return NULL; | |
7971 | } | |
7972 | ||
7973 | ||
c32bde28 | 7974 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7975 | PyObject *resultobj; |
7976 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7977 | wxString *arg2 = 0 ; | |
7978 | int arg3 = (int) 0 ; | |
7979 | wxString result; | |
ae8162c8 | 7980 | bool temp2 = false ; |
d55e5bfc RD |
7981 | PyObject * obj0 = 0 ; |
7982 | PyObject * obj1 = 0 ; | |
7983 | PyObject * obj2 = 0 ; | |
7984 | char *kwnames[] = { | |
7985 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7986 | }; | |
7987 | ||
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7991 | { | |
7992 | arg2 = wxString_in_helper(obj1); | |
7993 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7994 | temp2 = true; |
d55e5bfc RD |
7995 | } |
7996 | if (obj2) { | |
c32bde28 | 7997 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7998 | if (PyErr_Occurred()) SWIG_fail; |
7999 | } | |
8000 | { | |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | { | |
8008 | #if wxUSE_UNICODE | |
8009 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8010 | #else | |
8011 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8012 | #endif | |
8013 | } | |
8014 | { | |
8015 | if (temp2) | |
8016 | delete arg2; | |
8017 | } | |
8018 | return resultobj; | |
8019 | fail: | |
8020 | { | |
8021 | if (temp2) | |
8022 | delete arg2; | |
8023 | } | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
c32bde28 | 8028 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8029 | PyObject *resultobj; |
8030 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8031 | wxString result; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | char *kwnames[] = { | |
8034 | (char *) "self", NULL | |
8035 | }; | |
8036 | ||
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (arg1)->FindNext(); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | { | |
8048 | #if wxUSE_UNICODE | |
8049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8050 | #else | |
8051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8052 | #endif | |
8053 | } | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
c32bde28 | 8060 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8061 | PyObject *obj; |
8062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8063 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
8064 | Py_INCREF(obj); | |
8065 | return Py_BuildValue((char *)""); | |
8066 | } | |
c32bde28 | 8067 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8068 | PyObject *resultobj; |
8069 | wxString *arg1 = 0 ; | |
8070 | wxImage *arg2 = 0 ; | |
8071 | long arg3 ; | |
ae8162c8 | 8072 | bool temp1 = false ; |
d55e5bfc RD |
8073 | PyObject * obj0 = 0 ; |
8074 | PyObject * obj1 = 0 ; | |
8075 | PyObject * obj2 = 0 ; | |
8076 | char *kwnames[] = { | |
8077 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8078 | }; | |
8079 | ||
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8081 | { | |
8082 | arg1 = wxString_in_helper(obj0); | |
8083 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8084 | temp1 = true; |
d55e5bfc RD |
8085 | } |
8086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
8087 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8088 | SWIG_fail; | |
8089 | if (arg2 == NULL) { | |
8090 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8091 | SWIG_fail; | |
8092 | } | |
c32bde28 | 8093 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8094 | if (PyErr_Occurred()) SWIG_fail; |
8095 | { | |
8096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8097 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8098 | ||
8099 | wxPyEndAllowThreads(__tstate); | |
8100 | if (PyErr_Occurred()) SWIG_fail; | |
8101 | } | |
8102 | Py_INCREF(Py_None); resultobj = Py_None; | |
8103 | { | |
8104 | if (temp1) | |
8105 | delete arg1; | |
8106 | } | |
8107 | return resultobj; | |
8108 | fail: | |
8109 | { | |
8110 | if (temp1) | |
8111 | delete arg1; | |
8112 | } | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
c32bde28 | 8117 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8118 | PyObject *resultobj; |
8119 | wxString *arg1 = 0 ; | |
8120 | wxBitmap *arg2 = 0 ; | |
8121 | long arg3 ; | |
ae8162c8 | 8122 | bool temp1 = false ; |
d55e5bfc RD |
8123 | PyObject * obj0 = 0 ; |
8124 | PyObject * obj1 = 0 ; | |
8125 | PyObject * obj2 = 0 ; | |
8126 | char *kwnames[] = { | |
8127 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8131 | { | |
8132 | arg1 = wxString_in_helper(obj0); | |
8133 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8134 | temp1 = true; |
d55e5bfc RD |
8135 | } |
8136 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
8137 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8138 | SWIG_fail; | |
8139 | if (arg2 == NULL) { | |
8140 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8141 | SWIG_fail; | |
8142 | } | |
c32bde28 | 8143 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8144 | if (PyErr_Occurred()) SWIG_fail; |
8145 | { | |
8146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8147 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8148 | ||
8149 | wxPyEndAllowThreads(__tstate); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
8152 | Py_INCREF(Py_None); resultobj = Py_None; | |
8153 | { | |
8154 | if (temp1) | |
8155 | delete arg1; | |
8156 | } | |
8157 | return resultobj; | |
8158 | fail: | |
8159 | { | |
8160 | if (temp1) | |
8161 | delete arg1; | |
8162 | } | |
8163 | return NULL; | |
8164 | } | |
8165 | ||
8166 | ||
c32bde28 | 8167 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8168 | PyObject *resultobj; |
8169 | wxString *arg1 = 0 ; | |
8170 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 8171 | bool temp1 = false ; |
d55e5bfc RD |
8172 | PyObject * obj0 = 0 ; |
8173 | PyObject * obj1 = 0 ; | |
8174 | char *kwnames[] = { | |
8175 | (char *) "filename",(char *) "data", NULL | |
8176 | }; | |
8177 | ||
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8179 | { | |
8180 | arg1 = wxString_in_helper(obj0); | |
8181 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8182 | temp1 = true; |
d55e5bfc RD |
8183 | } |
8184 | arg2 = obj1; | |
8185 | { | |
8186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8187 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8188 | ||
8189 | wxPyEndAllowThreads(__tstate); | |
8190 | if (PyErr_Occurred()) SWIG_fail; | |
8191 | } | |
8192 | Py_INCREF(Py_None); resultobj = Py_None; | |
8193 | { | |
8194 | if (temp1) | |
8195 | delete arg1; | |
8196 | } | |
8197 | return resultobj; | |
8198 | fail: | |
8199 | { | |
8200 | if (temp1) | |
8201 | delete arg1; | |
8202 | } | |
8203 | return NULL; | |
8204 | } | |
8205 | ||
8206 | ||
c32bde28 | 8207 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8208 | PyObject *resultobj; |
8209 | wxMemoryFSHandler *result; | |
8210 | char *kwnames[] = { | |
8211 | NULL | |
8212 | }; | |
8213 | ||
8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8215 | { | |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
c32bde28 | 8229 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8230 | PyObject *resultobj; |
8231 | wxString *arg1 = 0 ; | |
ae8162c8 | 8232 | bool temp1 = false ; |
d55e5bfc RD |
8233 | PyObject * obj0 = 0 ; |
8234 | char *kwnames[] = { | |
8235 | (char *) "filename", NULL | |
8236 | }; | |
8237 | ||
8238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8239 | { | |
8240 | arg1 = wxString_in_helper(obj0); | |
8241 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8242 | temp1 = true; |
d55e5bfc RD |
8243 | } |
8244 | { | |
8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8246 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8247 | ||
8248 | wxPyEndAllowThreads(__tstate); | |
8249 | if (PyErr_Occurred()) SWIG_fail; | |
8250 | } | |
8251 | Py_INCREF(Py_None); resultobj = Py_None; | |
8252 | { | |
8253 | if (temp1) | |
8254 | delete arg1; | |
8255 | } | |
8256 | return resultobj; | |
8257 | fail: | |
8258 | { | |
8259 | if (temp1) | |
8260 | delete arg1; | |
8261 | } | |
8262 | return NULL; | |
8263 | } | |
8264 | ||
8265 | ||
c32bde28 | 8266 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8267 | PyObject *resultobj; |
8268 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8269 | wxString *arg2 = 0 ; | |
8270 | bool result; | |
ae8162c8 | 8271 | bool temp2 = false ; |
d55e5bfc RD |
8272 | PyObject * obj0 = 0 ; |
8273 | PyObject * obj1 = 0 ; | |
8274 | char *kwnames[] = { | |
8275 | (char *) "self",(char *) "location", NULL | |
8276 | }; | |
8277 | ||
8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
8279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8281 | { | |
8282 | arg2 = wxString_in_helper(obj1); | |
8283 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8284 | temp2 = true; |
d55e5bfc RD |
8285 | } |
8286 | { | |
8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8288 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8289 | ||
8290 | wxPyEndAllowThreads(__tstate); | |
8291 | if (PyErr_Occurred()) SWIG_fail; | |
8292 | } | |
8293 | { | |
8294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8295 | } | |
8296 | { | |
8297 | if (temp2) | |
8298 | delete arg2; | |
8299 | } | |
8300 | return resultobj; | |
8301 | fail: | |
8302 | { | |
8303 | if (temp2) | |
8304 | delete arg2; | |
8305 | } | |
8306 | return NULL; | |
8307 | } | |
8308 | ||
8309 | ||
c32bde28 | 8310 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8311 | PyObject *resultobj; |
8312 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8313 | wxFileSystem *arg2 = 0 ; | |
8314 | wxString *arg3 = 0 ; | |
8315 | wxFSFile *result; | |
ae8162c8 | 8316 | bool temp3 = false ; |
d55e5bfc RD |
8317 | PyObject * obj0 = 0 ; |
8318 | PyObject * obj1 = 0 ; | |
8319 | PyObject * obj2 = 0 ; | |
8320 | char *kwnames[] = { | |
8321 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8322 | }; | |
8323 | ||
8324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8328 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8329 | SWIG_fail; | |
8330 | if (arg2 == NULL) { | |
8331 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8332 | SWIG_fail; | |
8333 | } | |
8334 | { | |
8335 | arg3 = wxString_in_helper(obj2); | |
8336 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8337 | temp3 = true; |
d55e5bfc RD |
8338 | } |
8339 | { | |
8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8341 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8342 | ||
8343 | wxPyEndAllowThreads(__tstate); | |
8344 | if (PyErr_Occurred()) SWIG_fail; | |
8345 | } | |
8346 | { | |
4cf4100f | 8347 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8348 | } |
8349 | { | |
8350 | if (temp3) | |
8351 | delete arg3; | |
8352 | } | |
8353 | return resultobj; | |
8354 | fail: | |
8355 | { | |
8356 | if (temp3) | |
8357 | delete arg3; | |
8358 | } | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
c32bde28 | 8363 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8364 | PyObject *resultobj; |
8365 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8366 | wxString *arg2 = 0 ; | |
8367 | int arg3 = (int) 0 ; | |
8368 | wxString result; | |
ae8162c8 | 8369 | bool temp2 = false ; |
d55e5bfc RD |
8370 | PyObject * obj0 = 0 ; |
8371 | PyObject * obj1 = 0 ; | |
8372 | PyObject * obj2 = 0 ; | |
8373 | char *kwnames[] = { | |
8374 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8375 | }; | |
8376 | ||
8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8380 | { | |
8381 | arg2 = wxString_in_helper(obj1); | |
8382 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8383 | temp2 = true; |
d55e5bfc RD |
8384 | } |
8385 | if (obj2) { | |
c32bde28 | 8386 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8387 | if (PyErr_Occurred()) SWIG_fail; |
8388 | } | |
8389 | { | |
8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8391 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8392 | ||
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | { | |
8397 | #if wxUSE_UNICODE | |
8398 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8399 | #else | |
8400 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8401 | #endif | |
8402 | } | |
8403 | { | |
8404 | if (temp2) | |
8405 | delete arg2; | |
8406 | } | |
8407 | return resultobj; | |
8408 | fail: | |
8409 | { | |
8410 | if (temp2) | |
8411 | delete arg2; | |
8412 | } | |
8413 | return NULL; | |
8414 | } | |
8415 | ||
8416 | ||
c32bde28 | 8417 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8418 | PyObject *resultobj; |
8419 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8420 | wxString result; | |
8421 | PyObject * obj0 = 0 ; | |
8422 | char *kwnames[] = { | |
8423 | (char *) "self", NULL | |
8424 | }; | |
8425 | ||
8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8429 | { | |
8430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8431 | result = (arg1)->FindNext(); | |
8432 | ||
8433 | wxPyEndAllowThreads(__tstate); | |
8434 | if (PyErr_Occurred()) SWIG_fail; | |
8435 | } | |
8436 | { | |
8437 | #if wxUSE_UNICODE | |
8438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8439 | #else | |
8440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8441 | #endif | |
8442 | } | |
8443 | return resultobj; | |
8444 | fail: | |
8445 | return NULL; | |
8446 | } | |
8447 | ||
8448 | ||
c32bde28 | 8449 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8450 | PyObject *obj; |
8451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8452 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8453 | Py_INCREF(obj); | |
8454 | return Py_BuildValue((char *)""); | |
8455 | } | |
c32bde28 | 8456 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8457 | PyObject *resultobj; |
8458 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8459 | wxString result; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | char *kwnames[] = { | |
8462 | (char *) "self", NULL | |
8463 | }; | |
8464 | ||
8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8468 | { | |
8469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8470 | result = (arg1)->GetName(); | |
8471 | ||
8472 | wxPyEndAllowThreads(__tstate); | |
8473 | if (PyErr_Occurred()) SWIG_fail; | |
8474 | } | |
8475 | { | |
8476 | #if wxUSE_UNICODE | |
8477 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8478 | #else | |
8479 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8480 | #endif | |
8481 | } | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
c32bde28 | 8488 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8489 | PyObject *resultobj; |
8490 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8491 | wxString result; | |
8492 | PyObject * obj0 = 0 ; | |
8493 | char *kwnames[] = { | |
8494 | (char *) "self", NULL | |
8495 | }; | |
8496 | ||
8497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8500 | { | |
8501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8502 | result = (arg1)->GetExtension(); | |
8503 | ||
8504 | wxPyEndAllowThreads(__tstate); | |
8505 | if (PyErr_Occurred()) SWIG_fail; | |
8506 | } | |
8507 | { | |
8508 | #if wxUSE_UNICODE | |
8509 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8510 | #else | |
8511 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8512 | #endif | |
8513 | } | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
c32bde28 | 8520 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8521 | PyObject *resultobj; |
8522 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8523 | long result; | |
8524 | PyObject * obj0 = 0 ; | |
8525 | char *kwnames[] = { | |
8526 | (char *) "self", NULL | |
8527 | }; | |
8528 | ||
8529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8532 | { | |
8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8534 | result = (long)(arg1)->GetType(); | |
8535 | ||
8536 | wxPyEndAllowThreads(__tstate); | |
8537 | if (PyErr_Occurred()) SWIG_fail; | |
8538 | } | |
c32bde28 | 8539 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8540 | return resultobj; |
8541 | fail: | |
8542 | return NULL; | |
8543 | } | |
8544 | ||
8545 | ||
c32bde28 | 8546 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8547 | PyObject *resultobj; |
8548 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8549 | wxString result; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | char *kwnames[] = { | |
8552 | (char *) "self", NULL | |
8553 | }; | |
8554 | ||
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (arg1)->GetMimeType(); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | { | |
8566 | #if wxUSE_UNICODE | |
8567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8568 | #else | |
8569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8570 | #endif | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | return NULL; | |
8575 | } | |
8576 | ||
8577 | ||
c32bde28 | 8578 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8579 | PyObject *resultobj; |
8580 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8581 | wxString *arg2 = 0 ; | |
8582 | bool result; | |
ae8162c8 | 8583 | bool temp2 = false ; |
d55e5bfc RD |
8584 | PyObject * obj0 = 0 ; |
8585 | PyObject * obj1 = 0 ; | |
8586 | char *kwnames[] = { | |
8587 | (char *) "self",(char *) "name", NULL | |
8588 | }; | |
8589 | ||
8590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8593 | { | |
8594 | arg2 = wxString_in_helper(obj1); | |
8595 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8596 | temp2 = true; |
d55e5bfc RD |
8597 | } |
8598 | { | |
8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8600 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8601 | ||
8602 | wxPyEndAllowThreads(__tstate); | |
8603 | if (PyErr_Occurred()) SWIG_fail; | |
8604 | } | |
8605 | { | |
8606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8607 | } | |
8608 | { | |
8609 | if (temp2) | |
8610 | delete arg2; | |
8611 | } | |
8612 | return resultobj; | |
8613 | fail: | |
8614 | { | |
8615 | if (temp2) | |
8616 | delete arg2; | |
8617 | } | |
8618 | return NULL; | |
8619 | } | |
8620 | ||
8621 | ||
c32bde28 | 8622 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8623 | PyObject *resultobj; |
8624 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8625 | wxString *arg2 = 0 ; | |
ae8162c8 | 8626 | bool temp2 = false ; |
d55e5bfc RD |
8627 | PyObject * obj0 = 0 ; |
8628 | PyObject * obj1 = 0 ; | |
8629 | char *kwnames[] = { | |
8630 | (char *) "self",(char *) "name", NULL | |
8631 | }; | |
8632 | ||
8633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8636 | { | |
8637 | arg2 = wxString_in_helper(obj1); | |
8638 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8639 | temp2 = true; |
d55e5bfc RD |
8640 | } |
8641 | { | |
8642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8643 | (arg1)->SetName((wxString const &)*arg2); | |
8644 | ||
8645 | wxPyEndAllowThreads(__tstate); | |
8646 | if (PyErr_Occurred()) SWIG_fail; | |
8647 | } | |
8648 | Py_INCREF(Py_None); resultobj = Py_None; | |
8649 | { | |
8650 | if (temp2) | |
8651 | delete arg2; | |
8652 | } | |
8653 | return resultobj; | |
8654 | fail: | |
8655 | { | |
8656 | if (temp2) | |
8657 | delete arg2; | |
8658 | } | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
c32bde28 | 8663 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8664 | PyObject *resultobj; |
8665 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8666 | wxString *arg2 = 0 ; | |
ae8162c8 | 8667 | bool temp2 = false ; |
d55e5bfc RD |
8668 | PyObject * obj0 = 0 ; |
8669 | PyObject * obj1 = 0 ; | |
8670 | char *kwnames[] = { | |
8671 | (char *) "self",(char *) "extension", NULL | |
8672 | }; | |
8673 | ||
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8677 | { | |
8678 | arg2 = wxString_in_helper(obj1); | |
8679 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8680 | temp2 = true; |
d55e5bfc RD |
8681 | } |
8682 | { | |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | (arg1)->SetExtension((wxString const &)*arg2); | |
8685 | ||
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
8689 | Py_INCREF(Py_None); resultobj = Py_None; | |
8690 | { | |
8691 | if (temp2) | |
8692 | delete arg2; | |
8693 | } | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | { | |
8697 | if (temp2) | |
8698 | delete arg2; | |
8699 | } | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
c32bde28 | 8704 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8705 | PyObject *resultobj; |
8706 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8707 | long arg2 ; | |
8708 | PyObject * obj0 = 0 ; | |
8709 | PyObject * obj1 = 0 ; | |
8710 | char *kwnames[] = { | |
8711 | (char *) "self",(char *) "type", NULL | |
8712 | }; | |
8713 | ||
8714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8717 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8718 | if (PyErr_Occurred()) SWIG_fail; |
8719 | { | |
8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8721 | (arg1)->SetType(arg2); | |
8722 | ||
8723 | wxPyEndAllowThreads(__tstate); | |
8724 | if (PyErr_Occurred()) SWIG_fail; | |
8725 | } | |
8726 | Py_INCREF(Py_None); resultobj = Py_None; | |
8727 | return resultobj; | |
8728 | fail: | |
8729 | return NULL; | |
8730 | } | |
8731 | ||
8732 | ||
c32bde28 | 8733 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8734 | PyObject *resultobj; |
8735 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8736 | wxString *arg2 = 0 ; | |
ae8162c8 | 8737 | bool temp2 = false ; |
d55e5bfc RD |
8738 | PyObject * obj0 = 0 ; |
8739 | PyObject * obj1 = 0 ; | |
8740 | char *kwnames[] = { | |
8741 | (char *) "self",(char *) "mimetype", NULL | |
8742 | }; | |
8743 | ||
8744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8747 | { | |
8748 | arg2 = wxString_in_helper(obj1); | |
8749 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8750 | temp2 = true; |
d55e5bfc RD |
8751 | } |
8752 | { | |
8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8754 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8755 | ||
8756 | wxPyEndAllowThreads(__tstate); | |
8757 | if (PyErr_Occurred()) SWIG_fail; | |
8758 | } | |
8759 | Py_INCREF(Py_None); resultobj = Py_None; | |
8760 | { | |
8761 | if (temp2) | |
8762 | delete arg2; | |
8763 | } | |
8764 | return resultobj; | |
8765 | fail: | |
8766 | { | |
8767 | if (temp2) | |
8768 | delete arg2; | |
8769 | } | |
8770 | return NULL; | |
8771 | } | |
8772 | ||
8773 | ||
c32bde28 | 8774 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8775 | PyObject *obj; |
8776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8777 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8778 | Py_INCREF(obj); | |
8779 | return Py_BuildValue((char *)""); | |
8780 | } | |
c32bde28 | 8781 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8782 | PyObject *resultobj; |
8783 | wxImageHistogram *result; | |
8784 | char *kwnames[] = { | |
8785 | NULL | |
8786 | }; | |
8787 | ||
8788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8789 | { | |
8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8791 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8792 | ||
8793 | wxPyEndAllowThreads(__tstate); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | } | |
8796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8797 | return resultobj; | |
8798 | fail: | |
8799 | return NULL; | |
8800 | } | |
8801 | ||
8802 | ||
c32bde28 | 8803 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8804 | PyObject *resultobj; |
8805 | unsigned char arg1 ; | |
8806 | unsigned char arg2 ; | |
8807 | unsigned char arg3 ; | |
8808 | unsigned long result; | |
8809 | PyObject * obj0 = 0 ; | |
8810 | PyObject * obj1 = 0 ; | |
8811 | PyObject * obj2 = 0 ; | |
8812 | char *kwnames[] = { | |
8813 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8814 | }; | |
8815 | ||
8816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 8817 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc | 8818 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8819 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 8820 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8821 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8822 | if (PyErr_Occurred()) SWIG_fail; |
8823 | { | |
8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8825 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8826 | ||
8827 | wxPyEndAllowThreads(__tstate); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | } | |
c32bde28 | 8830 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8831 | return resultobj; |
8832 | fail: | |
8833 | return NULL; | |
8834 | } | |
8835 | ||
8836 | ||
c32bde28 | 8837 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8838 | PyObject *resultobj; |
8839 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8840 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8841 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8842 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8843 | unsigned char arg5 = (unsigned char) 1 ; | |
8844 | unsigned char arg6 = (unsigned char) 0 ; | |
8845 | unsigned char arg7 = (unsigned char) 0 ; | |
8846 | bool result; | |
8847 | unsigned char temp2 ; | |
c32bde28 | 8848 | int res2 = 0 ; |
d55e5bfc | 8849 | unsigned char temp3 ; |
c32bde28 | 8850 | int res3 = 0 ; |
d55e5bfc | 8851 | unsigned char temp4 ; |
c32bde28 | 8852 | int res4 = 0 ; |
d55e5bfc RD |
8853 | PyObject * obj0 = 0 ; |
8854 | PyObject * obj1 = 0 ; | |
8855 | PyObject * obj2 = 0 ; | |
8856 | PyObject * obj3 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8859 | }; | |
8860 | ||
c32bde28 RD |
8861 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8862 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8863 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8867 | if (obj1) { | |
c32bde28 | 8868 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
8869 | if (PyErr_Occurred()) SWIG_fail; |
8870 | } | |
8871 | if (obj2) { | |
c32bde28 | 8872 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8873 | if (PyErr_Occurred()) SWIG_fail; |
8874 | } | |
8875 | if (obj3) { | |
c32bde28 | 8876 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
8877 | if (PyErr_Occurred()) SWIG_fail; |
8878 | } | |
8879 | { | |
8880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8881 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8882 | ||
8883 | wxPyEndAllowThreads(__tstate); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | { | |
8887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8888 | } | |
c32bde28 RD |
8889 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8890 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8891 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8892 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8893 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8894 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
8895 | return resultobj; |
8896 | fail: | |
8897 | return NULL; | |
8898 | } | |
8899 | ||
8900 | ||
c32bde28 | 8901 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8902 | PyObject *obj; |
8903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8904 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8905 | Py_INCREF(obj); | |
8906 | return Py_BuildValue((char *)""); | |
8907 | } | |
c32bde28 | 8908 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8909 | PyObject *resultobj; |
8910 | wxString *arg1 = 0 ; | |
8911 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8912 | int arg3 = (int) -1 ; | |
8913 | wxImage *result; | |
ae8162c8 | 8914 | bool temp1 = false ; |
d55e5bfc RD |
8915 | PyObject * obj0 = 0 ; |
8916 | PyObject * obj1 = 0 ; | |
8917 | PyObject * obj2 = 0 ; | |
8918 | char *kwnames[] = { | |
8919 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8920 | }; | |
8921 | ||
8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8923 | { | |
8924 | arg1 = wxString_in_helper(obj0); | |
8925 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8926 | temp1 = true; |
d55e5bfc RD |
8927 | } |
8928 | if (obj1) { | |
c32bde28 | 8929 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8930 | if (PyErr_Occurred()) SWIG_fail; |
8931 | } | |
8932 | if (obj2) { | |
c32bde28 | 8933 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8934 | if (PyErr_Occurred()) SWIG_fail; |
8935 | } | |
8936 | { | |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
8943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8944 | { | |
8945 | if (temp1) | |
8946 | delete arg1; | |
8947 | } | |
8948 | return resultobj; | |
8949 | fail: | |
8950 | { | |
8951 | if (temp1) | |
8952 | delete arg1; | |
8953 | } | |
8954 | return NULL; | |
8955 | } | |
8956 | ||
8957 | ||
c32bde28 | 8958 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8959 | PyObject *resultobj; |
8960 | wxImage *arg1 = (wxImage *) 0 ; | |
8961 | PyObject * obj0 = 0 ; | |
8962 | char *kwnames[] = { | |
8963 | (char *) "self", NULL | |
8964 | }; | |
8965 | ||
8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8969 | { | |
8970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8971 | delete arg1; | |
8972 | ||
8973 | wxPyEndAllowThreads(__tstate); | |
8974 | if (PyErr_Occurred()) SWIG_fail; | |
8975 | } | |
8976 | Py_INCREF(Py_None); resultobj = Py_None; | |
8977 | return resultobj; | |
8978 | fail: | |
8979 | return NULL; | |
8980 | } | |
8981 | ||
8982 | ||
c32bde28 | 8983 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8984 | PyObject *resultobj; |
8985 | wxString *arg1 = 0 ; | |
8986 | wxString *arg2 = 0 ; | |
8987 | int arg3 = (int) -1 ; | |
8988 | wxImage *result; | |
ae8162c8 RD |
8989 | bool temp1 = false ; |
8990 | bool temp2 = false ; | |
d55e5bfc RD |
8991 | PyObject * obj0 = 0 ; |
8992 | PyObject * obj1 = 0 ; | |
8993 | PyObject * obj2 = 0 ; | |
8994 | char *kwnames[] = { | |
8995 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8996 | }; | |
8997 | ||
8998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8999 | { | |
9000 | arg1 = wxString_in_helper(obj0); | |
9001 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9002 | temp1 = true; |
d55e5bfc RD |
9003 | } |
9004 | { | |
9005 | arg2 = wxString_in_helper(obj1); | |
9006 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9007 | temp2 = true; |
d55e5bfc RD |
9008 | } |
9009 | if (obj2) { | |
c32bde28 | 9010 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9011 | if (PyErr_Occurred()) SWIG_fail; |
9012 | } | |
9013 | { | |
9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9015 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9016 | ||
9017 | wxPyEndAllowThreads(__tstate); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9021 | { | |
9022 | if (temp1) | |
9023 | delete arg1; | |
9024 | } | |
9025 | { | |
9026 | if (temp2) | |
9027 | delete arg2; | |
9028 | } | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | { | |
9032 | if (temp1) | |
9033 | delete arg1; | |
9034 | } | |
9035 | { | |
9036 | if (temp2) | |
9037 | delete arg2; | |
9038 | } | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
c32bde28 | 9043 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9044 | PyObject *resultobj; |
9045 | wxInputStream *arg1 = 0 ; | |
9046 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9047 | int arg3 = (int) -1 ; | |
9048 | wxImage *result; | |
9049 | wxPyInputStream *temp1 ; | |
9050 | bool created1 ; | |
9051 | PyObject * obj0 = 0 ; | |
9052 | PyObject * obj1 = 0 ; | |
9053 | PyObject * obj2 = 0 ; | |
9054 | char *kwnames[] = { | |
9055 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
9056 | }; | |
9057 | ||
9058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9059 | { | |
9060 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9061 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9062 | created1 = false; |
d55e5bfc RD |
9063 | } else { |
9064 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9065 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9066 | if (arg1 == NULL) { |
9067 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9068 | SWIG_fail; | |
9069 | } | |
ae8162c8 | 9070 | created1 = true; |
d55e5bfc RD |
9071 | } |
9072 | } | |
9073 | if (obj1) { | |
c32bde28 | 9074 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9075 | if (PyErr_Occurred()) SWIG_fail; |
9076 | } | |
9077 | if (obj2) { | |
c32bde28 | 9078 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9079 | if (PyErr_Occurred()) SWIG_fail; |
9080 | } | |
9081 | { | |
9082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9083 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9084 | ||
9085 | wxPyEndAllowThreads(__tstate); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | } | |
9088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9089 | { | |
9090 | if (created1) | |
9091 | delete arg1; | |
9092 | } | |
9093 | return resultobj; | |
9094 | fail: | |
9095 | { | |
9096 | if (created1) | |
9097 | delete arg1; | |
9098 | } | |
9099 | return NULL; | |
9100 | } | |
9101 | ||
9102 | ||
c32bde28 | 9103 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9104 | PyObject *resultobj; |
9105 | wxInputStream *arg1 = 0 ; | |
9106 | wxString *arg2 = 0 ; | |
9107 | int arg3 = (int) -1 ; | |
9108 | wxImage *result; | |
9109 | wxPyInputStream *temp1 ; | |
9110 | bool created1 ; | |
ae8162c8 | 9111 | bool temp2 = false ; |
d55e5bfc RD |
9112 | PyObject * obj0 = 0 ; |
9113 | PyObject * obj1 = 0 ; | |
9114 | PyObject * obj2 = 0 ; | |
9115 | char *kwnames[] = { | |
9116 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9117 | }; | |
9118 | ||
9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9120 | { | |
9121 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9122 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9123 | created1 = false; |
d55e5bfc RD |
9124 | } else { |
9125 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9126 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9127 | if (arg1 == NULL) { |
9128 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9129 | SWIG_fail; | |
9130 | } | |
ae8162c8 | 9131 | created1 = true; |
d55e5bfc RD |
9132 | } |
9133 | } | |
9134 | { | |
9135 | arg2 = wxString_in_helper(obj1); | |
9136 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9137 | temp2 = true; |
d55e5bfc RD |
9138 | } |
9139 | if (obj2) { | |
c32bde28 | 9140 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9141 | if (PyErr_Occurred()) SWIG_fail; |
9142 | } | |
9143 | { | |
9144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9145 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9146 | ||
9147 | wxPyEndAllowThreads(__tstate); | |
9148 | if (PyErr_Occurred()) SWIG_fail; | |
9149 | } | |
9150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9151 | { | |
9152 | if (created1) | |
9153 | delete arg1; | |
9154 | } | |
9155 | { | |
9156 | if (temp2) | |
9157 | delete arg2; | |
9158 | } | |
9159 | return resultobj; | |
9160 | fail: | |
9161 | { | |
9162 | if (created1) | |
9163 | delete arg1; | |
9164 | } | |
9165 | { | |
9166 | if (temp2) | |
9167 | delete arg2; | |
9168 | } | |
9169 | return NULL; | |
9170 | } | |
9171 | ||
9172 | ||
c32bde28 | 9173 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9174 | PyObject *resultobj; |
9175 | int arg1 = (int) 0 ; | |
9176 | int arg2 = (int) 0 ; | |
ae8162c8 | 9177 | bool arg3 = (bool) true ; |
d55e5bfc RD |
9178 | wxImage *result; |
9179 | PyObject * obj0 = 0 ; | |
9180 | PyObject * obj1 = 0 ; | |
9181 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
9182 | char *kwnames[] = { |
9183 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9184 | }; | |
d55e5bfc | 9185 | |
c24da6d6 | 9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 9187 | if (obj0) { |
c32bde28 | 9188 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9189 | if (PyErr_Occurred()) SWIG_fail; |
9190 | } | |
9191 | if (obj1) { | |
c32bde28 | 9192 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9193 | if (PyErr_Occurred()) SWIG_fail; |
9194 | } | |
9195 | if (obj2) { | |
c32bde28 | 9196 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9197 | if (PyErr_Occurred()) SWIG_fail; |
9198 | } | |
9199 | { | |
9200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 9201 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
9202 | |
9203 | wxPyEndAllowThreads(__tstate); | |
9204 | if (PyErr_Occurred()) SWIG_fail; | |
9205 | } | |
9206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9207 | return resultobj; | |
9208 | fail: | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
c32bde28 | 9213 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9214 | PyObject *resultobj; |
9215 | wxBitmap *arg1 = 0 ; | |
9216 | wxImage *result; | |
9217 | PyObject * obj0 = 0 ; | |
9218 | char *kwnames[] = { | |
9219 | (char *) "bitmap", NULL | |
9220 | }; | |
9221 | ||
9222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
9223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
9224 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9225 | SWIG_fail; | |
9226 | if (arg1 == NULL) { | |
9227 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9228 | SWIG_fail; | |
9229 | } | |
9230 | { | |
0439c23b | 9231 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9233 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9234 | ||
9235 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9236 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9237 | } |
9238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9239 | return resultobj; | |
9240 | fail: | |
9241 | return NULL; | |
9242 | } | |
9243 | ||
9244 | ||
c32bde28 | 9245 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9246 | PyObject *resultobj; |
9247 | int arg1 ; | |
9248 | int arg2 ; | |
9249 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9250 | wxImage *result; | |
9251 | PyObject * obj0 = 0 ; | |
9252 | PyObject * obj1 = 0 ; | |
9253 | PyObject * obj2 = 0 ; | |
9254 | char *kwnames[] = { | |
9255 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9256 | }; | |
9257 | ||
9258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 9259 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 9260 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9261 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9262 | if (PyErr_Occurred()) SWIG_fail; |
9263 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9265 | { | |
9266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9267 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9268 | ||
9269 | wxPyEndAllowThreads(__tstate); | |
9270 | if (PyErr_Occurred()) SWIG_fail; | |
9271 | } | |
9272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9273 | return resultobj; | |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
c32bde28 | 9279 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9280 | PyObject *resultobj; |
9281 | wxImage *arg1 = (wxImage *) 0 ; | |
9282 | int arg2 ; | |
9283 | int arg3 ; | |
9284 | PyObject * obj0 = 0 ; | |
9285 | PyObject * obj1 = 0 ; | |
9286 | PyObject * obj2 = 0 ; | |
9287 | char *kwnames[] = { | |
9288 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9289 | }; | |
9290 | ||
9291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9294 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9295 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9296 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9297 | if (PyErr_Occurred()) SWIG_fail; |
9298 | { | |
9299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9300 | (arg1)->Create(arg2,arg3); | |
9301 | ||
9302 | wxPyEndAllowThreads(__tstate); | |
9303 | if (PyErr_Occurred()) SWIG_fail; | |
9304 | } | |
9305 | Py_INCREF(Py_None); resultobj = Py_None; | |
9306 | return resultobj; | |
9307 | fail: | |
9308 | return NULL; | |
9309 | } | |
9310 | ||
9311 | ||
c32bde28 | 9312 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9313 | PyObject *resultobj; |
9314 | wxImage *arg1 = (wxImage *) 0 ; | |
9315 | PyObject * obj0 = 0 ; | |
9316 | char *kwnames[] = { | |
9317 | (char *) "self", NULL | |
9318 | }; | |
9319 | ||
9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9323 | { | |
9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9325 | (arg1)->Destroy(); | |
9326 | ||
9327 | wxPyEndAllowThreads(__tstate); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | Py_INCREF(Py_None); resultobj = Py_None; | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
c32bde28 | 9337 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9338 | PyObject *resultobj; |
9339 | wxImage *arg1 = (wxImage *) 0 ; | |
9340 | int arg2 ; | |
9341 | int arg3 ; | |
9342 | SwigValueWrapper< wxImage > result; | |
9343 | PyObject * obj0 = 0 ; | |
9344 | PyObject * obj1 = 0 ; | |
9345 | PyObject * obj2 = 0 ; | |
9346 | char *kwnames[] = { | |
9347 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9348 | }; | |
9349 | ||
9350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9353 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9354 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9355 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9356 | if (PyErr_Occurred()) SWIG_fail; |
9357 | { | |
9358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9359 | result = (arg1)->Scale(arg2,arg3); | |
9360 | ||
9361 | wxPyEndAllowThreads(__tstate); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
9363 | } | |
9364 | { | |
9365 | wxImage * resultptr; | |
9366 | resultptr = new wxImage((wxImage &) result); | |
9367 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9368 | } | |
9369 | return resultobj; | |
9370 | fail: | |
9371 | return NULL; | |
9372 | } | |
9373 | ||
9374 | ||
c32bde28 | 9375 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9376 | PyObject *resultobj; |
9377 | wxImage *arg1 = (wxImage *) 0 ; | |
9378 | int arg2 ; | |
9379 | int arg3 ; | |
9380 | SwigValueWrapper< wxImage > result; | |
9381 | PyObject * obj0 = 0 ; | |
9382 | PyObject * obj1 = 0 ; | |
9383 | PyObject * obj2 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9391 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9392 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9393 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9394 | if (PyErr_Occurred()) SWIG_fail; |
9395 | { | |
9396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9397 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9398 | ||
9399 | wxPyEndAllowThreads(__tstate); | |
9400 | if (PyErr_Occurred()) SWIG_fail; | |
9401 | } | |
9402 | { | |
9403 | wxImage * resultptr; | |
9404 | resultptr = new wxImage((wxImage &) result); | |
9405 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9406 | } | |
9407 | return resultobj; | |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
c32bde28 | 9413 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9414 | PyObject *resultobj; |
9415 | wxImage *arg1 = (wxImage *) 0 ; | |
9416 | int arg2 ; | |
9417 | int arg3 ; | |
9418 | wxImage *result; | |
9419 | PyObject * obj0 = 0 ; | |
9420 | PyObject * obj1 = 0 ; | |
9421 | PyObject * obj2 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9429 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9430 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9431 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9432 | if (PyErr_Occurred()) SWIG_fail; |
9433 | { | |
9434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9435 | { | |
9436 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9437 | result = (wxImage *) &_result_ref; | |
9438 | } | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | } | |
9443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9444 | return resultobj; | |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
c32bde28 | 9450 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9451 | PyObject *resultobj; |
9452 | wxImage *arg1 = (wxImage *) 0 ; | |
9453 | int arg2 ; | |
9454 | int arg3 ; | |
9455 | unsigned char arg4 ; | |
9456 | unsigned char arg5 ; | |
9457 | unsigned char arg6 ; | |
9458 | PyObject * obj0 = 0 ; | |
9459 | PyObject * obj1 = 0 ; | |
9460 | PyObject * obj2 = 0 ; | |
9461 | PyObject * obj3 = 0 ; | |
9462 | PyObject * obj4 = 0 ; | |
9463 | PyObject * obj5 = 0 ; | |
9464 | char *kwnames[] = { | |
9465 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9466 | }; | |
9467 | ||
9468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9471 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9472 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9473 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9474 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9475 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9476 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9477 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 9478 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9479 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc RD |
9480 | if (PyErr_Occurred()) SWIG_fail; |
9481 | { | |
9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9483 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9484 | ||
9485 | wxPyEndAllowThreads(__tstate); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | } | |
9488 | Py_INCREF(Py_None); resultobj = Py_None; | |
9489 | return resultobj; | |
9490 | fail: | |
9491 | return NULL; | |
9492 | } | |
9493 | ||
9494 | ||
c32bde28 | 9495 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9496 | PyObject *resultobj; |
9497 | wxImage *arg1 = (wxImage *) 0 ; | |
9498 | int arg2 ; | |
9499 | int arg3 ; | |
9500 | unsigned char result; | |
9501 | PyObject * obj0 = 0 ; | |
9502 | PyObject * obj1 = 0 ; | |
9503 | PyObject * obj2 = 0 ; | |
9504 | char *kwnames[] = { | |
9505 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9506 | }; | |
9507 | ||
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9511 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9512 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9513 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9514 | if (PyErr_Occurred()) SWIG_fail; |
9515 | { | |
9516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9517 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9518 | ||
9519 | wxPyEndAllowThreads(__tstate); | |
9520 | if (PyErr_Occurred()) SWIG_fail; | |
9521 | } | |
c32bde28 | 9522 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9523 | return resultobj; |
9524 | fail: | |
9525 | return NULL; | |
9526 | } | |
9527 | ||
9528 | ||
c32bde28 | 9529 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9530 | PyObject *resultobj; |
9531 | wxImage *arg1 = (wxImage *) 0 ; | |
9532 | int arg2 ; | |
9533 | int arg3 ; | |
9534 | unsigned char result; | |
9535 | PyObject * obj0 = 0 ; | |
9536 | PyObject * obj1 = 0 ; | |
9537 | PyObject * obj2 = 0 ; | |
9538 | char *kwnames[] = { | |
9539 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9540 | }; | |
9541 | ||
9542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9545 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9546 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9547 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9548 | if (PyErr_Occurred()) SWIG_fail; |
9549 | { | |
9550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9551 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9552 | ||
9553 | wxPyEndAllowThreads(__tstate); | |
9554 | if (PyErr_Occurred()) SWIG_fail; | |
9555 | } | |
c32bde28 | 9556 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9557 | return resultobj; |
9558 | fail: | |
9559 | return NULL; | |
9560 | } | |
9561 | ||
9562 | ||
c32bde28 | 9563 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9564 | PyObject *resultobj; |
9565 | wxImage *arg1 = (wxImage *) 0 ; | |
9566 | int arg2 ; | |
9567 | int arg3 ; | |
9568 | unsigned char result; | |
9569 | PyObject * obj0 = 0 ; | |
9570 | PyObject * obj1 = 0 ; | |
9571 | PyObject * obj2 = 0 ; | |
9572 | char *kwnames[] = { | |
9573 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9574 | }; | |
9575 | ||
9576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9579 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9580 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9581 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9582 | if (PyErr_Occurred()) SWIG_fail; |
9583 | { | |
9584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9585 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9586 | ||
9587 | wxPyEndAllowThreads(__tstate); | |
9588 | if (PyErr_Occurred()) SWIG_fail; | |
9589 | } | |
c32bde28 | 9590 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9591 | return resultobj; |
9592 | fail: | |
9593 | return NULL; | |
9594 | } | |
9595 | ||
9596 | ||
c32bde28 | 9597 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9598 | PyObject *resultobj; |
9599 | wxImage *arg1 = (wxImage *) 0 ; | |
9600 | int arg2 ; | |
9601 | int arg3 ; | |
9602 | unsigned char arg4 ; | |
9603 | PyObject * obj0 = 0 ; | |
9604 | PyObject * obj1 = 0 ; | |
9605 | PyObject * obj2 = 0 ; | |
9606 | PyObject * obj3 = 0 ; | |
9607 | char *kwnames[] = { | |
9608 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9609 | }; | |
9610 | ||
9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9614 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9615 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9616 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9617 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9618 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9619 | if (PyErr_Occurred()) SWIG_fail; |
9620 | { | |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9623 | ||
9624 | wxPyEndAllowThreads(__tstate); | |
9625 | if (PyErr_Occurred()) SWIG_fail; | |
9626 | } | |
9627 | Py_INCREF(Py_None); resultobj = Py_None; | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
c32bde28 | 9634 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9635 | PyObject *resultobj; |
9636 | wxImage *arg1 = (wxImage *) 0 ; | |
9637 | int arg2 ; | |
9638 | int arg3 ; | |
9639 | unsigned char result; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | PyObject * obj1 = 0 ; | |
9642 | PyObject * obj2 = 0 ; | |
9643 | char *kwnames[] = { | |
9644 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9645 | }; | |
9646 | ||
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9650 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9651 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9652 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9653 | if (PyErr_Occurred()) SWIG_fail; |
9654 | { | |
9655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9656 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9657 | ||
9658 | wxPyEndAllowThreads(__tstate); | |
9659 | if (PyErr_Occurred()) SWIG_fail; | |
9660 | } | |
c32bde28 | 9661 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9662 | return resultobj; |
9663 | fail: | |
9664 | return NULL; | |
9665 | } | |
9666 | ||
9667 | ||
c32bde28 | 9668 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9669 | PyObject *resultobj; |
9670 | wxImage *arg1 = (wxImage *) 0 ; | |
9671 | bool result; | |
9672 | PyObject * obj0 = 0 ; | |
9673 | char *kwnames[] = { | |
9674 | (char *) "self", NULL | |
9675 | }; | |
9676 | ||
9677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9680 | { | |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | result = (bool)(arg1)->HasAlpha(); | |
9683 | ||
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
9687 | { | |
9688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9689 | } | |
9690 | return resultobj; | |
9691 | fail: | |
9692 | return NULL; | |
9693 | } | |
9694 | ||
9695 | ||
c32bde28 | 9696 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9697 | PyObject *resultobj; |
9698 | wxImage *arg1 = (wxImage *) 0 ; | |
9699 | byte *arg2 = (byte *) 0 ; | |
9700 | byte *arg3 = (byte *) 0 ; | |
9701 | byte *arg4 = (byte *) 0 ; | |
9702 | byte arg5 = (byte) 0 ; | |
9703 | byte arg6 = (byte) 0 ; | |
9704 | byte arg7 = (byte) 0 ; | |
9705 | bool result; | |
9706 | byte temp2 ; | |
c32bde28 | 9707 | int res2 = 0 ; |
d55e5bfc | 9708 | byte temp3 ; |
c32bde28 | 9709 | int res3 = 0 ; |
d55e5bfc | 9710 | byte temp4 ; |
c32bde28 | 9711 | int res4 = 0 ; |
d55e5bfc RD |
9712 | PyObject * obj0 = 0 ; |
9713 | PyObject * obj1 = 0 ; | |
9714 | PyObject * obj2 = 0 ; | |
9715 | PyObject * obj3 = 0 ; | |
9716 | char *kwnames[] = { | |
9717 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9718 | }; | |
9719 | ||
c32bde28 RD |
9720 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9721 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9722 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9726 | if (obj1) { | |
c32bde28 | 9727 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
9728 | if (PyErr_Occurred()) SWIG_fail; |
9729 | } | |
9730 | if (obj2) { | |
c32bde28 | 9731 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
9732 | if (PyErr_Occurred()) SWIG_fail; |
9733 | } | |
9734 | if (obj3) { | |
c32bde28 | 9735 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9736 | if (PyErr_Occurred()) SWIG_fail; |
9737 | } | |
9738 | { | |
9739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9740 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9741 | ||
9742 | wxPyEndAllowThreads(__tstate); | |
9743 | if (PyErr_Occurred()) SWIG_fail; | |
9744 | } | |
9745 | { | |
9746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9747 | } | |
c32bde28 RD |
9748 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9749 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9750 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9751 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9752 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9753 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
9754 | return resultobj; |
9755 | fail: | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
c32bde28 | 9760 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9761 | PyObject *resultobj; |
9762 | wxImage *arg1 = (wxImage *) 0 ; | |
9763 | byte arg2 = (byte) 128 ; | |
9764 | bool result; | |
9765 | PyObject * obj0 = 0 ; | |
9766 | PyObject * obj1 = 0 ; | |
9767 | char *kwnames[] = { | |
9768 | (char *) "self",(char *) "threshold", NULL | |
9769 | }; | |
9770 | ||
9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9774 | if (obj1) { | |
c32bde28 | 9775 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9776 | if (PyErr_Occurred()) SWIG_fail; |
9777 | } | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
9785 | { | |
9786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9787 | } | |
9788 | return resultobj; | |
9789 | fail: | |
9790 | return NULL; | |
9791 | } | |
9792 | ||
9793 | ||
8fb0e70a RD |
9794 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9795 | PyObject *resultobj; | |
9796 | wxImage *arg1 = (wxImage *) 0 ; | |
9797 | unsigned char arg2 ; | |
9798 | unsigned char arg3 ; | |
9799 | unsigned char arg4 ; | |
9800 | bool result; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | PyObject * obj1 = 0 ; | |
9803 | PyObject * obj2 = 0 ; | |
9804 | PyObject * obj3 = 0 ; | |
9805 | char *kwnames[] = { | |
9806 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9807 | }; | |
9808 | ||
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9812 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); | |
9813 | if (PyErr_Occurred()) SWIG_fail; | |
9814 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); | |
9815 | if (PyErr_Occurred()) SWIG_fail; | |
9816 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); | |
9817 | if (PyErr_Occurred()) SWIG_fail; | |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
9821 | ||
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | { | |
9826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9827 | } | |
9828 | return resultobj; | |
9829 | fail: | |
9830 | return NULL; | |
9831 | } | |
9832 | ||
9833 | ||
c32bde28 | 9834 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9835 | PyObject *resultobj; |
9836 | wxImage *arg1 = (wxImage *) 0 ; | |
9837 | wxImage *arg2 = 0 ; | |
9838 | byte arg3 ; | |
9839 | byte arg4 ; | |
9840 | byte arg5 ; | |
9841 | bool result; | |
9842 | PyObject * obj0 = 0 ; | |
9843 | PyObject * obj1 = 0 ; | |
9844 | PyObject * obj2 = 0 ; | |
9845 | PyObject * obj3 = 0 ; | |
9846 | PyObject * obj4 = 0 ; | |
9847 | char *kwnames[] = { | |
9848 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9849 | }; | |
9850 | ||
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9854 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9855 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9856 | SWIG_fail; | |
9857 | if (arg2 == NULL) { | |
9858 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9859 | SWIG_fail; | |
9860 | } | |
c32bde28 | 9861 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 9862 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9863 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9864 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9865 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc RD |
9866 | if (PyErr_Occurred()) SWIG_fail; |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9870 | ||
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) SWIG_fail; | |
9873 | } | |
9874 | { | |
9875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9876 | } | |
9877 | return resultobj; | |
9878 | fail: | |
9879 | return NULL; | |
9880 | } | |
9881 | ||
9882 | ||
c32bde28 | 9883 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9884 | PyObject *resultobj; |
9885 | wxString *arg1 = 0 ; | |
9886 | bool result; | |
ae8162c8 | 9887 | bool temp1 = false ; |
d55e5bfc RD |
9888 | PyObject * obj0 = 0 ; |
9889 | char *kwnames[] = { | |
9890 | (char *) "name", NULL | |
9891 | }; | |
9892 | ||
9893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9894 | { | |
9895 | arg1 = wxString_in_helper(obj0); | |
9896 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9897 | temp1 = true; |
d55e5bfc RD |
9898 | } |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | { | |
9907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9908 | } | |
9909 | { | |
9910 | if (temp1) | |
9911 | delete arg1; | |
9912 | } | |
9913 | return resultobj; | |
9914 | fail: | |
9915 | { | |
9916 | if (temp1) | |
9917 | delete arg1; | |
9918 | } | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
c32bde28 | 9923 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9924 | PyObject *resultobj; |
9925 | wxString *arg1 = 0 ; | |
9926 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9927 | int result; | |
ae8162c8 | 9928 | bool temp1 = false ; |
d55e5bfc RD |
9929 | PyObject * obj0 = 0 ; |
9930 | PyObject * obj1 = 0 ; | |
9931 | char *kwnames[] = { | |
9932 | (char *) "name",(char *) "type", NULL | |
9933 | }; | |
9934 | ||
9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9936 | { | |
9937 | arg1 = wxString_in_helper(obj0); | |
9938 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9939 | temp1 = true; |
d55e5bfc RD |
9940 | } |
9941 | if (obj1) { | |
c32bde28 | 9942 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9943 | if (PyErr_Occurred()) SWIG_fail; |
9944 | } | |
9945 | { | |
9946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9947 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9948 | ||
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
c32bde28 | 9952 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9953 | { |
9954 | if (temp1) | |
9955 | delete arg1; | |
9956 | } | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | { | |
9960 | if (temp1) | |
9961 | delete arg1; | |
9962 | } | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
c32bde28 | 9967 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9968 | PyObject *resultobj; |
9969 | wxImage *arg1 = (wxImage *) 0 ; | |
9970 | wxString *arg2 = 0 ; | |
9971 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9972 | int arg4 = (int) -1 ; | |
9973 | bool result; | |
ae8162c8 | 9974 | bool temp2 = false ; |
d55e5bfc RD |
9975 | PyObject * obj0 = 0 ; |
9976 | PyObject * obj1 = 0 ; | |
9977 | PyObject * obj2 = 0 ; | |
9978 | PyObject * obj3 = 0 ; | |
9979 | char *kwnames[] = { | |
9980 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9981 | }; | |
9982 | ||
9983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9986 | { | |
9987 | arg2 = wxString_in_helper(obj1); | |
9988 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9989 | temp2 = true; |
d55e5bfc RD |
9990 | } |
9991 | if (obj2) { | |
c32bde28 | 9992 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9993 | if (PyErr_Occurred()) SWIG_fail; |
9994 | } | |
9995 | if (obj3) { | |
c32bde28 | 9996 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9997 | if (PyErr_Occurred()) SWIG_fail; |
9998 | } | |
9999 | { | |
10000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10001 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
10002 | ||
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | { | |
10007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10008 | } | |
10009 | { | |
10010 | if (temp2) | |
10011 | delete arg2; | |
10012 | } | |
10013 | return resultobj; | |
10014 | fail: | |
10015 | { | |
10016 | if (temp2) | |
10017 | delete arg2; | |
10018 | } | |
10019 | return NULL; | |
10020 | } | |
10021 | ||
10022 | ||
c32bde28 | 10023 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10024 | PyObject *resultobj; |
10025 | wxImage *arg1 = (wxImage *) 0 ; | |
10026 | wxString *arg2 = 0 ; | |
10027 | wxString *arg3 = 0 ; | |
10028 | int arg4 = (int) -1 ; | |
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 | PyObject * obj3 = 0 ; | |
10036 | char *kwnames[] = { | |
10037 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10038 | }; | |
10039 | ||
10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10043 | { | |
10044 | arg2 = wxString_in_helper(obj1); | |
10045 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10046 | temp2 = true; |
d55e5bfc RD |
10047 | } |
10048 | { | |
10049 | arg3 = wxString_in_helper(obj2); | |
10050 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10051 | temp3 = true; |
d55e5bfc RD |
10052 | } |
10053 | if (obj3) { | |
c32bde28 | 10054 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10055 | if (PyErr_Occurred()) SWIG_fail; |
10056 | } | |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
10064 | { | |
10065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10066 | } | |
10067 | { | |
10068 | if (temp2) | |
10069 | delete arg2; | |
10070 | } | |
10071 | { | |
10072 | if (temp3) | |
10073 | delete arg3; | |
10074 | } | |
10075 | return resultobj; | |
10076 | fail: | |
10077 | { | |
10078 | if (temp2) | |
10079 | delete arg2; | |
10080 | } | |
10081 | { | |
10082 | if (temp3) | |
10083 | delete arg3; | |
10084 | } | |
10085 | return NULL; | |
10086 | } | |
10087 | ||
10088 | ||
c32bde28 | 10089 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10090 | PyObject *resultobj; |
10091 | wxImage *arg1 = (wxImage *) 0 ; | |
10092 | wxString *arg2 = 0 ; | |
10093 | int arg3 ; | |
10094 | bool result; | |
ae8162c8 | 10095 | bool temp2 = false ; |
d55e5bfc RD |
10096 | PyObject * obj0 = 0 ; |
10097 | PyObject * obj1 = 0 ; | |
10098 | PyObject * obj2 = 0 ; | |
10099 | char *kwnames[] = { | |
10100 | (char *) "self",(char *) "name",(char *) "type", NULL | |
10101 | }; | |
10102 | ||
10103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10106 | { | |
10107 | arg2 = wxString_in_helper(obj1); | |
10108 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10109 | temp2 = true; |
d55e5bfc | 10110 | } |
c32bde28 | 10111 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10112 | if (PyErr_Occurred()) SWIG_fail; |
10113 | { | |
10114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10115 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10116 | ||
10117 | wxPyEndAllowThreads(__tstate); | |
10118 | if (PyErr_Occurred()) SWIG_fail; | |
10119 | } | |
10120 | { | |
10121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10122 | } | |
10123 | { | |
10124 | if (temp2) | |
10125 | delete arg2; | |
10126 | } | |
10127 | return resultobj; | |
10128 | fail: | |
10129 | { | |
10130 | if (temp2) | |
10131 | delete arg2; | |
10132 | } | |
10133 | return NULL; | |
10134 | } | |
10135 | ||
10136 | ||
c32bde28 | 10137 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10138 | PyObject *resultobj; |
10139 | wxImage *arg1 = (wxImage *) 0 ; | |
10140 | wxString *arg2 = 0 ; | |
10141 | wxString *arg3 = 0 ; | |
10142 | bool result; | |
ae8162c8 RD |
10143 | bool temp2 = false ; |
10144 | bool temp3 = false ; | |
d55e5bfc RD |
10145 | PyObject * obj0 = 0 ; |
10146 | PyObject * obj1 = 0 ; | |
10147 | PyObject * obj2 = 0 ; | |
10148 | char *kwnames[] = { | |
10149 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10150 | }; | |
10151 | ||
10152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10155 | { | |
10156 | arg2 = wxString_in_helper(obj1); | |
10157 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10158 | temp2 = true; |
d55e5bfc RD |
10159 | } |
10160 | { | |
10161 | arg3 = wxString_in_helper(obj2); | |
10162 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10163 | temp3 = true; |
d55e5bfc RD |
10164 | } |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
10172 | { | |
10173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10174 | } | |
10175 | { | |
10176 | if (temp2) | |
10177 | delete arg2; | |
10178 | } | |
10179 | { | |
10180 | if (temp3) | |
10181 | delete arg3; | |
10182 | } | |
10183 | return resultobj; | |
10184 | fail: | |
10185 | { | |
10186 | if (temp2) | |
10187 | delete arg2; | |
10188 | } | |
10189 | { | |
10190 | if (temp3) | |
10191 | delete arg3; | |
10192 | } | |
10193 | return NULL; | |
10194 | } | |
10195 | ||
10196 | ||
c32bde28 | 10197 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10198 | PyObject *resultobj; |
10199 | wxInputStream *arg1 = 0 ; | |
10200 | bool result; | |
10201 | wxPyInputStream *temp1 ; | |
10202 | bool created1 ; | |
10203 | PyObject * obj0 = 0 ; | |
10204 | char *kwnames[] = { | |
10205 | (char *) "stream", NULL | |
10206 | }; | |
10207 | ||
10208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10209 | { | |
10210 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10211 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10212 | created1 = false; |
d55e5bfc RD |
10213 | } else { |
10214 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10215 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10216 | if (arg1 == NULL) { |
10217 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10218 | SWIG_fail; | |
10219 | } | |
ae8162c8 | 10220 | created1 = true; |
d55e5bfc RD |
10221 | } |
10222 | } | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | result = (bool)wxImage::CanRead(*arg1); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
10230 | { | |
10231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10232 | } | |
10233 | { | |
10234 | if (created1) | |
10235 | delete arg1; | |
10236 | } | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | { | |
10240 | if (created1) | |
10241 | delete arg1; | |
10242 | } | |
10243 | return NULL; | |
10244 | } | |
10245 | ||
10246 | ||
c32bde28 | 10247 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10248 | PyObject *resultobj; |
10249 | wxImage *arg1 = (wxImage *) 0 ; | |
10250 | wxInputStream *arg2 = 0 ; | |
10251 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10252 | int arg4 = (int) -1 ; | |
10253 | bool result; | |
10254 | wxPyInputStream *temp2 ; | |
10255 | bool created2 ; | |
10256 | PyObject * obj0 = 0 ; | |
10257 | PyObject * obj1 = 0 ; | |
10258 | PyObject * obj2 = 0 ; | |
10259 | PyObject * obj3 = 0 ; | |
10260 | char *kwnames[] = { | |
10261 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10262 | }; | |
10263 | ||
10264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10267 | { | |
10268 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10269 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10270 | created2 = false; |
d55e5bfc RD |
10271 | } else { |
10272 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10273 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10274 | if (arg2 == NULL) { |
10275 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10276 | SWIG_fail; | |
10277 | } | |
ae8162c8 | 10278 | created2 = true; |
d55e5bfc RD |
10279 | } |
10280 | } | |
10281 | if (obj2) { | |
c32bde28 | 10282 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10283 | if (PyErr_Occurred()) SWIG_fail; |
10284 | } | |
10285 | if (obj3) { | |
c32bde28 | 10286 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10287 | if (PyErr_Occurred()) SWIG_fail; |
10288 | } | |
10289 | { | |
10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10291 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10292 | ||
10293 | wxPyEndAllowThreads(__tstate); | |
10294 | if (PyErr_Occurred()) SWIG_fail; | |
10295 | } | |
10296 | { | |
10297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10298 | } | |
10299 | { | |
10300 | if (created2) | |
10301 | delete arg2; | |
10302 | } | |
10303 | return resultobj; | |
10304 | fail: | |
10305 | { | |
10306 | if (created2) | |
10307 | delete arg2; | |
10308 | } | |
10309 | return NULL; | |
10310 | } | |
10311 | ||
10312 | ||
c32bde28 | 10313 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10314 | PyObject *resultobj; |
10315 | wxImage *arg1 = (wxImage *) 0 ; | |
10316 | wxInputStream *arg2 = 0 ; | |
10317 | wxString *arg3 = 0 ; | |
10318 | int arg4 = (int) -1 ; | |
10319 | bool result; | |
10320 | wxPyInputStream *temp2 ; | |
10321 | bool created2 ; | |
ae8162c8 | 10322 | bool temp3 = false ; |
d55e5bfc RD |
10323 | PyObject * obj0 = 0 ; |
10324 | PyObject * obj1 = 0 ; | |
10325 | PyObject * obj2 = 0 ; | |
10326 | PyObject * obj3 = 0 ; | |
10327 | char *kwnames[] = { | |
10328 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10329 | }; | |
10330 | ||
10331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10334 | { | |
10335 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10336 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10337 | created2 = false; |
d55e5bfc RD |
10338 | } else { |
10339 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10340 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10341 | if (arg2 == NULL) { |
10342 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10343 | SWIG_fail; | |
10344 | } | |
ae8162c8 | 10345 | created2 = true; |
d55e5bfc RD |
10346 | } |
10347 | } | |
10348 | { | |
10349 | arg3 = wxString_in_helper(obj2); | |
10350 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10351 | temp3 = true; |
d55e5bfc RD |
10352 | } |
10353 | if (obj3) { | |
c32bde28 | 10354 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10355 | if (PyErr_Occurred()) SWIG_fail; |
10356 | } | |
10357 | { | |
10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10359 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10360 | ||
10361 | wxPyEndAllowThreads(__tstate); | |
10362 | if (PyErr_Occurred()) SWIG_fail; | |
10363 | } | |
10364 | { | |
10365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10366 | } | |
10367 | { | |
10368 | if (created2) | |
10369 | delete arg2; | |
10370 | } | |
10371 | { | |
10372 | if (temp3) | |
10373 | delete arg3; | |
10374 | } | |
10375 | return resultobj; | |
10376 | fail: | |
10377 | { | |
10378 | if (created2) | |
10379 | delete arg2; | |
10380 | } | |
10381 | { | |
10382 | if (temp3) | |
10383 | delete arg3; | |
10384 | } | |
10385 | return NULL; | |
10386 | } | |
10387 | ||
10388 | ||
c32bde28 | 10389 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10390 | PyObject *resultobj; |
10391 | wxImage *arg1 = (wxImage *) 0 ; | |
10392 | bool result; | |
10393 | PyObject * obj0 = 0 ; | |
10394 | char *kwnames[] = { | |
10395 | (char *) "self", NULL | |
10396 | }; | |
10397 | ||
10398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10401 | { | |
10402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10403 | result = (bool)(arg1)->Ok(); | |
10404 | ||
10405 | wxPyEndAllowThreads(__tstate); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | } | |
10408 | { | |
10409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10410 | } | |
10411 | return resultobj; | |
10412 | fail: | |
10413 | return NULL; | |
10414 | } | |
10415 | ||
10416 | ||
c32bde28 | 10417 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10418 | PyObject *resultobj; |
10419 | wxImage *arg1 = (wxImage *) 0 ; | |
10420 | int result; | |
10421 | PyObject * obj0 = 0 ; | |
10422 | char *kwnames[] = { | |
10423 | (char *) "self", NULL | |
10424 | }; | |
10425 | ||
10426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10429 | { | |
10430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10431 | result = (int)(arg1)->GetWidth(); | |
10432 | ||
10433 | wxPyEndAllowThreads(__tstate); | |
10434 | if (PyErr_Occurred()) SWIG_fail; | |
10435 | } | |
c32bde28 | 10436 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10437 | return resultobj; |
10438 | fail: | |
10439 | return NULL; | |
10440 | } | |
10441 | ||
10442 | ||
c32bde28 | 10443 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10444 | PyObject *resultobj; |
10445 | wxImage *arg1 = (wxImage *) 0 ; | |
10446 | int result; | |
10447 | PyObject * obj0 = 0 ; | |
10448 | char *kwnames[] = { | |
10449 | (char *) "self", NULL | |
10450 | }; | |
10451 | ||
10452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10455 | { | |
10456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10457 | result = (int)(arg1)->GetHeight(); | |
10458 | ||
10459 | wxPyEndAllowThreads(__tstate); | |
10460 | if (PyErr_Occurred()) SWIG_fail; | |
10461 | } | |
c32bde28 | 10462 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10463 | return resultobj; |
10464 | fail: | |
10465 | return NULL; | |
10466 | } | |
10467 | ||
10468 | ||
c32bde28 | 10469 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10470 | PyObject *resultobj; |
10471 | wxImage *arg1 = (wxImage *) 0 ; | |
10472 | wxSize result; | |
10473 | PyObject * obj0 = 0 ; | |
10474 | char *kwnames[] = { | |
10475 | (char *) "self", NULL | |
10476 | }; | |
10477 | ||
10478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | result = wxImage_GetSize(arg1); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | { | |
10489 | wxSize * resultptr; | |
10490 | resultptr = new wxSize((wxSize &) result); | |
10491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10492 | } | |
10493 | return resultobj; | |
10494 | fail: | |
10495 | return NULL; | |
10496 | } | |
10497 | ||
10498 | ||
c32bde28 | 10499 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10500 | PyObject *resultobj; |
10501 | wxImage *arg1 = (wxImage *) 0 ; | |
10502 | wxRect *arg2 = 0 ; | |
10503 | SwigValueWrapper< wxImage > result; | |
10504 | wxRect temp2 ; | |
10505 | PyObject * obj0 = 0 ; | |
10506 | PyObject * obj1 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "self",(char *) "rect", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10514 | { | |
10515 | arg2 = &temp2; | |
10516 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10517 | } | |
10518 | { | |
10519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10520 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10521 | ||
10522 | wxPyEndAllowThreads(__tstate); | |
10523 | if (PyErr_Occurred()) SWIG_fail; | |
10524 | } | |
10525 | { | |
10526 | wxImage * resultptr; | |
10527 | resultptr = new wxImage((wxImage &) result); | |
10528 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10529 | } | |
10530 | return resultobj; | |
10531 | fail: | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
c32bde28 | 10536 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10537 | PyObject *resultobj; |
10538 | wxImage *arg1 = (wxImage *) 0 ; | |
10539 | SwigValueWrapper< wxImage > result; | |
10540 | PyObject * obj0 = 0 ; | |
10541 | char *kwnames[] = { | |
10542 | (char *) "self", NULL | |
10543 | }; | |
10544 | ||
10545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10548 | { | |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | result = (arg1)->Copy(); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
10555 | { | |
10556 | wxImage * resultptr; | |
10557 | resultptr = new wxImage((wxImage &) result); | |
10558 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10559 | } | |
10560 | return resultobj; | |
10561 | fail: | |
10562 | return NULL; | |
10563 | } | |
10564 | ||
10565 | ||
c32bde28 | 10566 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10567 | PyObject *resultobj; |
10568 | wxImage *arg1 = (wxImage *) 0 ; | |
10569 | wxImage *arg2 = 0 ; | |
10570 | int arg3 ; | |
10571 | int arg4 ; | |
10572 | PyObject * obj0 = 0 ; | |
10573 | PyObject * obj1 = 0 ; | |
10574 | PyObject * obj2 = 0 ; | |
10575 | PyObject * obj3 = 0 ; | |
10576 | char *kwnames[] = { | |
10577 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10578 | }; | |
10579 | ||
10580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10584 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10585 | SWIG_fail; | |
10586 | if (arg2 == NULL) { | |
10587 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10588 | SWIG_fail; | |
10589 | } | |
c32bde28 | 10590 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10591 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10592 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10593 | if (PyErr_Occurred()) SWIG_fail; |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | Py_INCREF(Py_None); resultobj = Py_None; | |
10602 | return resultobj; | |
10603 | fail: | |
10604 | return NULL; | |
10605 | } | |
10606 | ||
10607 | ||
c32bde28 | 10608 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10609 | PyObject *resultobj; |
10610 | wxImage *arg1 = (wxImage *) 0 ; | |
10611 | PyObject *result; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | char *kwnames[] = { | |
10614 | (char *) "self", NULL | |
10615 | }; | |
10616 | ||
10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10620 | { | |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10622 | result = (PyObject *)wxImage_GetData(arg1); | |
10623 | ||
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
10626 | } | |
10627 | resultobj = result; | |
10628 | return resultobj; | |
10629 | fail: | |
10630 | return NULL; | |
10631 | } | |
10632 | ||
10633 | ||
c32bde28 | 10634 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10635 | PyObject *resultobj; |
10636 | wxImage *arg1 = (wxImage *) 0 ; | |
10637 | PyObject *arg2 = (PyObject *) 0 ; | |
10638 | PyObject * obj0 = 0 ; | |
10639 | PyObject * obj1 = 0 ; | |
10640 | char *kwnames[] = { | |
10641 | (char *) "self",(char *) "data", NULL | |
10642 | }; | |
10643 | ||
10644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10647 | arg2 = obj1; | |
10648 | { | |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | wxImage_SetData(arg1,arg2); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | Py_INCREF(Py_None); resultobj = Py_None; | |
10656 | return resultobj; | |
10657 | fail: | |
10658 | return NULL; | |
10659 | } | |
10660 | ||
10661 | ||
c32bde28 | 10662 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10663 | PyObject *resultobj; |
10664 | wxImage *arg1 = (wxImage *) 0 ; | |
10665 | PyObject *result; | |
10666 | PyObject * obj0 = 0 ; | |
10667 | char *kwnames[] = { | |
10668 | (char *) "self", NULL | |
10669 | }; | |
10670 | ||
10671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10674 | { | |
10675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10676 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10677 | ||
10678 | wxPyEndAllowThreads(__tstate); | |
10679 | if (PyErr_Occurred()) SWIG_fail; | |
10680 | } | |
10681 | resultobj = result; | |
10682 | return resultobj; | |
10683 | fail: | |
10684 | return NULL; | |
10685 | } | |
10686 | ||
10687 | ||
c32bde28 | 10688 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10689 | PyObject *resultobj; |
10690 | wxImage *arg1 = (wxImage *) 0 ; | |
10691 | PyObject *arg2 = (PyObject *) 0 ; | |
10692 | PyObject * obj0 = 0 ; | |
10693 | PyObject * obj1 = 0 ; | |
10694 | char *kwnames[] = { | |
10695 | (char *) "self",(char *) "data", NULL | |
10696 | }; | |
10697 | ||
10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10701 | arg2 = obj1; | |
10702 | { | |
10703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10704 | wxImage_SetDataBuffer(arg1,arg2); | |
10705 | ||
10706 | wxPyEndAllowThreads(__tstate); | |
10707 | if (PyErr_Occurred()) SWIG_fail; | |
10708 | } | |
10709 | Py_INCREF(Py_None); resultobj = Py_None; | |
10710 | return resultobj; | |
10711 | fail: | |
10712 | return NULL; | |
10713 | } | |
10714 | ||
10715 | ||
c32bde28 | 10716 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10717 | PyObject *resultobj; |
10718 | wxImage *arg1 = (wxImage *) 0 ; | |
10719 | PyObject *result; | |
10720 | PyObject * obj0 = 0 ; | |
10721 | char *kwnames[] = { | |
10722 | (char *) "self", NULL | |
10723 | }; | |
10724 | ||
10725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10728 | { | |
10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10730 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10731 | ||
10732 | wxPyEndAllowThreads(__tstate); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | } | |
10735 | resultobj = result; | |
10736 | return resultobj; | |
10737 | fail: | |
10738 | return NULL; | |
10739 | } | |
10740 | ||
10741 | ||
c32bde28 | 10742 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10743 | PyObject *resultobj; |
10744 | wxImage *arg1 = (wxImage *) 0 ; | |
10745 | PyObject *arg2 = (PyObject *) 0 ; | |
10746 | PyObject * obj0 = 0 ; | |
10747 | PyObject * obj1 = 0 ; | |
10748 | char *kwnames[] = { | |
10749 | (char *) "self",(char *) "data", NULL | |
10750 | }; | |
10751 | ||
10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10755 | arg2 = obj1; | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | wxImage_SetAlphaData(arg1,arg2); | |
10759 | ||
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
10762 | } | |
10763 | Py_INCREF(Py_None); resultobj = Py_None; | |
10764 | return resultobj; | |
10765 | fail: | |
10766 | return NULL; | |
10767 | } | |
10768 | ||
10769 | ||
c32bde28 | 10770 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10771 | PyObject *resultobj; |
10772 | wxImage *arg1 = (wxImage *) 0 ; | |
10773 | PyObject *result; | |
10774 | PyObject * obj0 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | resultobj = result; | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
c32bde28 | 10796 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10797 | PyObject *resultobj; |
10798 | wxImage *arg1 = (wxImage *) 0 ; | |
10799 | PyObject *arg2 = (PyObject *) 0 ; | |
10800 | PyObject * obj0 = 0 ; | |
10801 | PyObject * obj1 = 0 ; | |
10802 | char *kwnames[] = { | |
10803 | (char *) "self",(char *) "data", NULL | |
10804 | }; | |
10805 | ||
10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10809 | arg2 = obj1; | |
10810 | { | |
10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10812 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10813 | ||
10814 | wxPyEndAllowThreads(__tstate); | |
10815 | if (PyErr_Occurred()) SWIG_fail; | |
10816 | } | |
10817 | Py_INCREF(Py_None); resultobj = Py_None; | |
10818 | return resultobj; | |
10819 | fail: | |
10820 | return NULL; | |
10821 | } | |
10822 | ||
10823 | ||
c32bde28 | 10824 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10825 | PyObject *resultobj; |
10826 | wxImage *arg1 = (wxImage *) 0 ; | |
10827 | unsigned char arg2 ; | |
10828 | unsigned char arg3 ; | |
10829 | unsigned char arg4 ; | |
10830 | PyObject * obj0 = 0 ; | |
10831 | PyObject * obj1 = 0 ; | |
10832 | PyObject * obj2 = 0 ; | |
10833 | PyObject * obj3 = 0 ; | |
10834 | char *kwnames[] = { | |
10835 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10836 | }; | |
10837 | ||
10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10841 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 10842 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10843 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 10844 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10845 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
10846 | if (PyErr_Occurred()) SWIG_fail; |
10847 | { | |
10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10849 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10850 | ||
10851 | wxPyEndAllowThreads(__tstate); | |
10852 | if (PyErr_Occurred()) SWIG_fail; | |
10853 | } | |
10854 | Py_INCREF(Py_None); resultobj = Py_None; | |
10855 | return resultobj; | |
10856 | fail: | |
10857 | return NULL; | |
10858 | } | |
10859 | ||
10860 | ||
c32bde28 | 10861 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10862 | PyObject *resultobj; |
10863 | wxImage *arg1 = (wxImage *) 0 ; | |
10864 | unsigned char result; | |
10865 | PyObject * obj0 = 0 ; | |
10866 | char *kwnames[] = { | |
10867 | (char *) "self", NULL | |
10868 | }; | |
10869 | ||
10870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10873 | { | |
10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10875 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10876 | ||
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
c32bde28 | 10880 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10881 | return resultobj; |
10882 | fail: | |
10883 | return NULL; | |
10884 | } | |
10885 | ||
10886 | ||
c32bde28 | 10887 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10888 | PyObject *resultobj; |
10889 | wxImage *arg1 = (wxImage *) 0 ; | |
10890 | unsigned char result; | |
10891 | PyObject * obj0 = 0 ; | |
10892 | char *kwnames[] = { | |
10893 | (char *) "self", NULL | |
10894 | }; | |
10895 | ||
10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10899 | { | |
10900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10901 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10902 | ||
10903 | wxPyEndAllowThreads(__tstate); | |
10904 | if (PyErr_Occurred()) SWIG_fail; | |
10905 | } | |
c32bde28 | 10906 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10907 | return resultobj; |
10908 | fail: | |
10909 | return NULL; | |
10910 | } | |
10911 | ||
10912 | ||
c32bde28 | 10913 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10914 | PyObject *resultobj; |
10915 | wxImage *arg1 = (wxImage *) 0 ; | |
10916 | unsigned char result; | |
10917 | PyObject * obj0 = 0 ; | |
10918 | char *kwnames[] = { | |
10919 | (char *) "self", NULL | |
10920 | }; | |
10921 | ||
10922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10925 | { | |
10926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10927 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10928 | ||
10929 | wxPyEndAllowThreads(__tstate); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
c32bde28 | 10932 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10933 | return resultobj; |
10934 | fail: | |
10935 | return NULL; | |
10936 | } | |
10937 | ||
10938 | ||
c32bde28 | 10939 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10940 | PyObject *resultobj; |
10941 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10942 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10943 | PyObject * obj0 = 0 ; |
10944 | PyObject * obj1 = 0 ; | |
10945 | char *kwnames[] = { | |
10946 | (char *) "self",(char *) "mask", NULL | |
10947 | }; | |
10948 | ||
10949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",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 | (arg1)->SetMask(arg2); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | Py_INCREF(Py_None); resultobj = Py_None; | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
c32bde28 | 10970 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10971 | PyObject *resultobj; |
10972 | wxImage *arg1 = (wxImage *) 0 ; | |
10973 | bool result; | |
10974 | PyObject * obj0 = 0 ; | |
10975 | char *kwnames[] = { | |
10976 | (char *) "self", NULL | |
10977 | }; | |
10978 | ||
10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10982 | { | |
10983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10984 | result = (bool)(arg1)->HasMask(); | |
10985 | ||
10986 | wxPyEndAllowThreads(__tstate); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
10988 | } | |
10989 | { | |
10990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10991 | } | |
10992 | return resultobj; | |
10993 | fail: | |
10994 | return NULL; | |
10995 | } | |
10996 | ||
10997 | ||
c32bde28 | 10998 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10999 | PyObject *resultobj; |
11000 | wxImage *arg1 = (wxImage *) 0 ; | |
11001 | double arg2 ; | |
11002 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 11003 | bool arg4 = (bool) true ; |
d55e5bfc RD |
11004 | wxPoint *arg5 = (wxPoint *) NULL ; |
11005 | SwigValueWrapper< wxImage > result; | |
11006 | wxPoint temp3 ; | |
11007 | PyObject * obj0 = 0 ; | |
11008 | PyObject * obj1 = 0 ; | |
11009 | PyObject * obj2 = 0 ; | |
11010 | PyObject * obj3 = 0 ; | |
11011 | PyObject * obj4 = 0 ; | |
11012 | char *kwnames[] = { | |
11013 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
11014 | }; | |
11015 | ||
11016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11019 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
11020 | if (PyErr_Occurred()) SWIG_fail; |
11021 | { | |
11022 | arg3 = &temp3; | |
11023 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11024 | } | |
11025 | if (obj3) { | |
c32bde28 | 11026 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
11027 | if (PyErr_Occurred()) SWIG_fail; |
11028 | } | |
11029 | if (obj4) { | |
11030 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
11031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11032 | } | |
11033 | { | |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | { | |
11041 | wxImage * resultptr; | |
11042 | resultptr = new wxImage((wxImage &) result); | |
11043 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11044 | } | |
11045 | return resultobj; | |
11046 | fail: | |
11047 | return NULL; | |
11048 | } | |
11049 | ||
11050 | ||
c32bde28 | 11051 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11052 | PyObject *resultobj; |
11053 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11054 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11055 | SwigValueWrapper< wxImage > result; |
11056 | PyObject * obj0 = 0 ; | |
11057 | PyObject * obj1 = 0 ; | |
11058 | char *kwnames[] = { | |
11059 | (char *) "self",(char *) "clockwise", NULL | |
11060 | }; | |
11061 | ||
11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
11063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11065 | if (obj1) { | |
c32bde28 | 11066 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11067 | if (PyErr_Occurred()) SWIG_fail; |
11068 | } | |
11069 | { | |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | result = (arg1)->Rotate90(arg2); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) SWIG_fail; | |
11075 | } | |
11076 | { | |
11077 | wxImage * resultptr; | |
11078 | resultptr = new wxImage((wxImage &) result); | |
11079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11080 | } | |
11081 | return resultobj; | |
11082 | fail: | |
11083 | return NULL; | |
11084 | } | |
11085 | ||
11086 | ||
c32bde28 | 11087 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11088 | PyObject *resultobj; |
11089 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11090 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11091 | SwigValueWrapper< wxImage > result; |
11092 | PyObject * obj0 = 0 ; | |
11093 | PyObject * obj1 = 0 ; | |
11094 | char *kwnames[] = { | |
11095 | (char *) "self",(char *) "horizontally", NULL | |
11096 | }; | |
11097 | ||
11098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
11099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11101 | if (obj1) { | |
c32bde28 | 11102 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11103 | if (PyErr_Occurred()) SWIG_fail; |
11104 | } | |
11105 | { | |
11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11107 | result = (arg1)->Mirror(arg2); | |
11108 | ||
11109 | wxPyEndAllowThreads(__tstate); | |
11110 | if (PyErr_Occurred()) SWIG_fail; | |
11111 | } | |
11112 | { | |
11113 | wxImage * resultptr; | |
11114 | resultptr = new wxImage((wxImage &) result); | |
11115 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11116 | } | |
11117 | return resultobj; | |
11118 | fail: | |
11119 | return NULL; | |
11120 | } | |
11121 | ||
11122 | ||
c32bde28 | 11123 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11124 | PyObject *resultobj; |
11125 | wxImage *arg1 = (wxImage *) 0 ; | |
11126 | unsigned char arg2 ; | |
11127 | unsigned char arg3 ; | |
11128 | unsigned char arg4 ; | |
11129 | unsigned char arg5 ; | |
11130 | unsigned char arg6 ; | |
11131 | unsigned char arg7 ; | |
11132 | PyObject * obj0 = 0 ; | |
11133 | PyObject * obj1 = 0 ; | |
11134 | PyObject * obj2 = 0 ; | |
11135 | PyObject * obj3 = 0 ; | |
11136 | PyObject * obj4 = 0 ; | |
11137 | PyObject * obj5 = 0 ; | |
11138 | PyObject * obj6 = 0 ; | |
11139 | char *kwnames[] = { | |
11140 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11141 | }; | |
11142 | ||
11143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11146 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11147 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11148 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11149 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11150 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 11151 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11152 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 11153 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11154 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc | 11155 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11156 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
d55e5bfc RD |
11157 | if (PyErr_Occurred()) SWIG_fail; |
11158 | { | |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11161 | ||
11162 | wxPyEndAllowThreads(__tstate); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | } | |
11165 | Py_INCREF(Py_None); resultobj = Py_None; | |
11166 | return resultobj; | |
11167 | fail: | |
11168 | return NULL; | |
11169 | } | |
11170 | ||
11171 | ||
c32bde28 | 11172 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11173 | PyObject *resultobj; |
11174 | wxImage *arg1 = (wxImage *) 0 ; | |
11175 | unsigned char arg2 ; | |
11176 | unsigned char arg3 ; | |
11177 | unsigned char arg4 ; | |
11178 | SwigValueWrapper< wxImage > result; | |
11179 | PyObject * obj0 = 0 ; | |
11180 | PyObject * obj1 = 0 ; | |
11181 | PyObject * obj2 = 0 ; | |
11182 | PyObject * obj3 = 0 ; | |
11183 | char *kwnames[] = { | |
11184 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11185 | }; | |
11186 | ||
11187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11190 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11191 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11192 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11193 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11194 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11195 | if (PyErr_Occurred()) SWIG_fail; |
11196 | { | |
11197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11198 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11199 | ||
11200 | wxPyEndAllowThreads(__tstate); | |
11201 | if (PyErr_Occurred()) SWIG_fail; | |
11202 | } | |
11203 | { | |
11204 | wxImage * resultptr; | |
11205 | resultptr = new wxImage((wxImage &) result); | |
11206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11207 | } | |
11208 | return resultobj; | |
11209 | fail: | |
11210 | return NULL; | |
11211 | } | |
11212 | ||
11213 | ||
c32bde28 | 11214 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11215 | PyObject *resultobj; |
11216 | wxImage *arg1 = (wxImage *) 0 ; | |
11217 | wxString *arg2 = 0 ; | |
11218 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
11219 | bool temp2 = false ; |
11220 | bool temp3 = false ; | |
d55e5bfc RD |
11221 | PyObject * obj0 = 0 ; |
11222 | PyObject * obj1 = 0 ; | |
11223 | PyObject * obj2 = 0 ; | |
11224 | char *kwnames[] = { | |
11225 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11226 | }; | |
11227 | ||
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11231 | { | |
11232 | arg2 = wxString_in_helper(obj1); | |
11233 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11234 | temp2 = true; |
d55e5bfc RD |
11235 | } |
11236 | { | |
11237 | arg3 = wxString_in_helper(obj2); | |
11238 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11239 | temp3 = true; |
d55e5bfc RD |
11240 | } |
11241 | { | |
11242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11243 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11244 | ||
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | } | |
11248 | Py_INCREF(Py_None); resultobj = Py_None; | |
11249 | { | |
11250 | if (temp2) | |
11251 | delete arg2; | |
11252 | } | |
11253 | { | |
11254 | if (temp3) | |
11255 | delete arg3; | |
11256 | } | |
11257 | return resultobj; | |
11258 | fail: | |
11259 | { | |
11260 | if (temp2) | |
11261 | delete arg2; | |
11262 | } | |
11263 | { | |
11264 | if (temp3) | |
11265 | delete arg3; | |
11266 | } | |
11267 | return NULL; | |
11268 | } | |
11269 | ||
11270 | ||
c32bde28 | 11271 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11272 | PyObject *resultobj; |
11273 | wxImage *arg1 = (wxImage *) 0 ; | |
11274 | wxString *arg2 = 0 ; | |
11275 | int arg3 ; | |
ae8162c8 | 11276 | bool temp2 = false ; |
d55e5bfc RD |
11277 | PyObject * obj0 = 0 ; |
11278 | PyObject * obj1 = 0 ; | |
11279 | PyObject * obj2 = 0 ; | |
11280 | char *kwnames[] = { | |
11281 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11282 | }; | |
11283 | ||
11284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11287 | { | |
11288 | arg2 = wxString_in_helper(obj1); | |
11289 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11290 | temp2 = true; |
d55e5bfc | 11291 | } |
c32bde28 | 11292 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11293 | if (PyErr_Occurred()) SWIG_fail; |
11294 | { | |
11295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11296 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11297 | ||
11298 | wxPyEndAllowThreads(__tstate); | |
11299 | if (PyErr_Occurred()) SWIG_fail; | |
11300 | } | |
11301 | Py_INCREF(Py_None); resultobj = Py_None; | |
11302 | { | |
11303 | if (temp2) | |
11304 | delete arg2; | |
11305 | } | |
11306 | return resultobj; | |
11307 | fail: | |
11308 | { | |
11309 | if (temp2) | |
11310 | delete arg2; | |
11311 | } | |
11312 | return NULL; | |
11313 | } | |
11314 | ||
11315 | ||
c32bde28 | 11316 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11317 | PyObject *resultobj; |
11318 | wxImage *arg1 = (wxImage *) 0 ; | |
11319 | wxString *arg2 = 0 ; | |
11320 | wxString result; | |
ae8162c8 | 11321 | bool temp2 = false ; |
d55e5bfc RD |
11322 | PyObject * obj0 = 0 ; |
11323 | PyObject * obj1 = 0 ; | |
11324 | char *kwnames[] = { | |
11325 | (char *) "self",(char *) "name", NULL | |
11326 | }; | |
11327 | ||
11328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
11329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11331 | { | |
11332 | arg2 = wxString_in_helper(obj1); | |
11333 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11334 | temp2 = true; |
d55e5bfc RD |
11335 | } |
11336 | { | |
11337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11338 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11339 | ||
11340 | wxPyEndAllowThreads(__tstate); | |
11341 | if (PyErr_Occurred()) SWIG_fail; | |
11342 | } | |
11343 | { | |
11344 | #if wxUSE_UNICODE | |
11345 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11346 | #else | |
11347 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11348 | #endif | |
11349 | } | |
11350 | { | |
11351 | if (temp2) | |
11352 | delete arg2; | |
11353 | } | |
11354 | return resultobj; | |
11355 | fail: | |
11356 | { | |
11357 | if (temp2) | |
11358 | delete arg2; | |
11359 | } | |
11360 | return NULL; | |
11361 | } | |
11362 | ||
11363 | ||
c32bde28 | 11364 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11365 | PyObject *resultobj; |
11366 | wxImage *arg1 = (wxImage *) 0 ; | |
11367 | wxString *arg2 = 0 ; | |
11368 | int result; | |
ae8162c8 | 11369 | bool temp2 = false ; |
d55e5bfc RD |
11370 | PyObject * obj0 = 0 ; |
11371 | PyObject * obj1 = 0 ; | |
11372 | char *kwnames[] = { | |
11373 | (char *) "self",(char *) "name", NULL | |
11374 | }; | |
11375 | ||
11376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11379 | { | |
11380 | arg2 = wxString_in_helper(obj1); | |
11381 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11382 | temp2 = true; |
d55e5bfc RD |
11383 | } |
11384 | { | |
11385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11386 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11387 | ||
11388 | wxPyEndAllowThreads(__tstate); | |
11389 | if (PyErr_Occurred()) SWIG_fail; | |
11390 | } | |
c32bde28 | 11391 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11392 | { |
11393 | if (temp2) | |
11394 | delete arg2; | |
11395 | } | |
11396 | return resultobj; | |
11397 | fail: | |
11398 | { | |
11399 | if (temp2) | |
11400 | delete arg2; | |
11401 | } | |
11402 | return NULL; | |
11403 | } | |
11404 | ||
11405 | ||
c32bde28 | 11406 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11407 | PyObject *resultobj; |
11408 | wxImage *arg1 = (wxImage *) 0 ; | |
11409 | wxString *arg2 = 0 ; | |
11410 | bool result; | |
ae8162c8 | 11411 | bool temp2 = false ; |
d55e5bfc RD |
11412 | PyObject * obj0 = 0 ; |
11413 | PyObject * obj1 = 0 ; | |
11414 | char *kwnames[] = { | |
11415 | (char *) "self",(char *) "name", NULL | |
11416 | }; | |
11417 | ||
11418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11421 | { | |
11422 | arg2 = wxString_in_helper(obj1); | |
11423 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11424 | temp2 = true; |
d55e5bfc RD |
11425 | } |
11426 | { | |
11427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11428 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11429 | ||
11430 | wxPyEndAllowThreads(__tstate); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | { | |
11434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11435 | } | |
11436 | { | |
11437 | if (temp2) | |
11438 | delete arg2; | |
11439 | } | |
11440 | return resultobj; | |
11441 | fail: | |
11442 | { | |
11443 | if (temp2) | |
11444 | delete arg2; | |
11445 | } | |
11446 | return NULL; | |
11447 | } | |
11448 | ||
11449 | ||
c32bde28 | 11450 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11451 | PyObject *resultobj; |
11452 | wxImage *arg1 = (wxImage *) 0 ; | |
11453 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11454 | unsigned long result; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | PyObject * obj1 = 0 ; | |
11457 | char *kwnames[] = { | |
11458 | (char *) "self",(char *) "stopafter", NULL | |
11459 | }; | |
11460 | ||
11461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11464 | if (obj1) { | |
c32bde28 | 11465 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
11466 | if (PyErr_Occurred()) SWIG_fail; |
11467 | } | |
11468 | { | |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11471 | ||
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
c32bde28 | 11475 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11476 | return resultobj; |
11477 | fail: | |
11478 | return NULL; | |
11479 | } | |
11480 | ||
11481 | ||
c32bde28 | 11482 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11483 | PyObject *resultobj; |
11484 | wxImage *arg1 = (wxImage *) 0 ; | |
11485 | wxImageHistogram *arg2 = 0 ; | |
11486 | unsigned long result; | |
11487 | PyObject * obj0 = 0 ; | |
11488 | PyObject * obj1 = 0 ; | |
11489 | char *kwnames[] = { | |
11490 | (char *) "self",(char *) "h", NULL | |
11491 | }; | |
11492 | ||
11493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11496 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11497 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11498 | SWIG_fail; | |
11499 | if (arg2 == NULL) { | |
11500 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11501 | SWIG_fail; | |
11502 | } | |
11503 | { | |
11504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11505 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11506 | ||
11507 | wxPyEndAllowThreads(__tstate); | |
11508 | if (PyErr_Occurred()) SWIG_fail; | |
11509 | } | |
c32bde28 | 11510 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11511 | return resultobj; |
11512 | fail: | |
11513 | return NULL; | |
11514 | } | |
11515 | ||
11516 | ||
c32bde28 | 11517 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11518 | PyObject *resultobj; |
11519 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11520 | PyObject * obj0 = 0 ; | |
11521 | char *kwnames[] = { | |
11522 | (char *) "handler", NULL | |
11523 | }; | |
11524 | ||
11525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11528 | { | |
11529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11530 | wxImage::AddHandler(arg1); | |
11531 | ||
11532 | wxPyEndAllowThreads(__tstate); | |
11533 | if (PyErr_Occurred()) SWIG_fail; | |
11534 | } | |
11535 | Py_INCREF(Py_None); resultobj = Py_None; | |
11536 | return resultobj; | |
11537 | fail: | |
11538 | return NULL; | |
11539 | } | |
11540 | ||
11541 | ||
c32bde28 | 11542 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11543 | PyObject *resultobj; |
11544 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11545 | PyObject * obj0 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "handler", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11553 | { | |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | wxImage::InsertHandler(arg1); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | Py_INCREF(Py_None); resultobj = Py_None; | |
11561 | return resultobj; | |
11562 | fail: | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
c32bde28 | 11567 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11568 | PyObject *resultobj; |
11569 | wxString *arg1 = 0 ; | |
11570 | bool result; | |
ae8162c8 | 11571 | bool temp1 = false ; |
d55e5bfc RD |
11572 | PyObject * obj0 = 0 ; |
11573 | char *kwnames[] = { | |
11574 | (char *) "name", NULL | |
11575 | }; | |
11576 | ||
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11578 | { | |
11579 | arg1 = wxString_in_helper(obj0); | |
11580 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11581 | temp1 = true; |
d55e5bfc RD |
11582 | } |
11583 | { | |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11586 | ||
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | { | |
11591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11592 | } | |
11593 | { | |
11594 | if (temp1) | |
11595 | delete arg1; | |
11596 | } | |
11597 | return resultobj; | |
11598 | fail: | |
11599 | { | |
11600 | if (temp1) | |
11601 | delete arg1; | |
11602 | } | |
11603 | return NULL; | |
11604 | } | |
11605 | ||
11606 | ||
c32bde28 | 11607 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11608 | PyObject *resultobj; |
11609 | wxString result; | |
11610 | char *kwnames[] = { | |
11611 | NULL | |
11612 | }; | |
11613 | ||
11614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11615 | { | |
11616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11617 | result = wxImage::GetImageExtWildcard(); | |
11618 | ||
11619 | wxPyEndAllowThreads(__tstate); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | { | |
11623 | #if wxUSE_UNICODE | |
11624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11625 | #else | |
11626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11627 | #endif | |
11628 | } | |
11629 | return resultobj; | |
11630 | fail: | |
11631 | return NULL; | |
11632 | } | |
11633 | ||
11634 | ||
c32bde28 | 11635 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11636 | PyObject *resultobj; |
11637 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 11638 | int arg2 = (int) -1 ; |
d55e5bfc RD |
11639 | wxBitmap result; |
11640 | PyObject * obj0 = 0 ; | |
1fbf26be | 11641 | PyObject * obj1 = 0 ; |
d55e5bfc | 11642 | char *kwnames[] = { |
1fbf26be | 11643 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
11644 | }; |
11645 | ||
1fbf26be | 11646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fbf26be RD |
11649 | if (obj1) { |
11650 | arg2 = (int)SWIG_As_int(obj1); | |
11651 | if (PyErr_Occurred()) SWIG_fail; | |
11652 | } | |
d55e5bfc | 11653 | { |
0439c23b | 11654 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 11656 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
11657 | |
11658 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11659 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11660 | } |
11661 | { | |
11662 | wxBitmap * resultptr; | |
11663 | resultptr = new wxBitmap((wxBitmap &) result); | |
11664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11665 | } | |
11666 | return resultobj; | |
11667 | fail: | |
11668 | return NULL; | |
11669 | } | |
11670 | ||
11671 | ||
c32bde28 | 11672 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11673 | PyObject *resultobj; |
11674 | wxImage *arg1 = (wxImage *) 0 ; | |
11675 | unsigned char arg2 ; | |
11676 | unsigned char arg3 ; | |
11677 | unsigned char arg4 ; | |
11678 | wxBitmap result; | |
11679 | PyObject * obj0 = 0 ; | |
11680 | PyObject * obj1 = 0 ; | |
11681 | PyObject * obj2 = 0 ; | |
11682 | PyObject * obj3 = 0 ; | |
11683 | char *kwnames[] = { | |
11684 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11685 | }; | |
11686 | ||
11687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11690 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11691 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11692 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11693 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11694 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11695 | if (PyErr_Occurred()) SWIG_fail; |
11696 | { | |
0439c23b | 11697 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11699 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11700 | ||
11701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11702 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11703 | } |
11704 | { | |
11705 | wxBitmap * resultptr; | |
11706 | resultptr = new wxBitmap((wxBitmap &) result); | |
11707 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11708 | } | |
11709 | return resultobj; | |
11710 | fail: | |
11711 | return NULL; | |
11712 | } | |
11713 | ||
11714 | ||
c32bde28 | 11715 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11716 | PyObject *obj; |
11717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11718 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11719 | Py_INCREF(obj); | |
11720 | return Py_BuildValue((char *)""); | |
11721 | } | |
c32bde28 | 11722 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
11723 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11724 | return 1; | |
11725 | } | |
11726 | ||
11727 | ||
11728 | static PyObject *_wrap_NullImage_get() { | |
11729 | PyObject *pyobj; | |
11730 | ||
11731 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11732 | return pyobj; | |
11733 | } | |
11734 | ||
11735 | ||
c32bde28 | 11736 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
11737 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11738 | return 1; | |
11739 | } | |
11740 | ||
11741 | ||
11742 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11743 | PyObject *pyobj; | |
11744 | ||
11745 | { | |
11746 | #if wxUSE_UNICODE | |
11747 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11748 | #else | |
11749 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11750 | #endif | |
11751 | } | |
11752 | return pyobj; | |
11753 | } | |
11754 | ||
11755 | ||
c32bde28 | 11756 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
11757 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11758 | return 1; | |
11759 | } | |
11760 | ||
11761 | ||
11762 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11763 | PyObject *pyobj; | |
11764 | ||
11765 | { | |
11766 | #if wxUSE_UNICODE | |
11767 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11768 | #else | |
11769 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11770 | #endif | |
11771 | } | |
11772 | return pyobj; | |
11773 | } | |
11774 | ||
11775 | ||
c32bde28 | 11776 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
11777 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11778 | return 1; | |
11779 | } | |
11780 | ||
11781 | ||
11782 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11783 | PyObject *pyobj; | |
11784 | ||
11785 | { | |
11786 | #if wxUSE_UNICODE | |
11787 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11788 | #else | |
11789 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11790 | #endif | |
11791 | } | |
11792 | return pyobj; | |
11793 | } | |
11794 | ||
11795 | ||
c32bde28 | 11796 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
11797 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11798 | return 1; | |
11799 | } | |
11800 | ||
11801 | ||
11802 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11803 | PyObject *pyobj; | |
11804 | ||
11805 | { | |
11806 | #if wxUSE_UNICODE | |
11807 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11808 | #else | |
11809 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11810 | #endif | |
11811 | } | |
11812 | return pyobj; | |
11813 | } | |
11814 | ||
11815 | ||
c32bde28 | 11816 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
11817 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11818 | return 1; | |
11819 | } | |
11820 | ||
11821 | ||
11822 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11823 | PyObject *pyobj; | |
11824 | ||
11825 | { | |
11826 | #if wxUSE_UNICODE | |
11827 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11828 | #else | |
11829 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11830 | #endif | |
11831 | } | |
11832 | return pyobj; | |
11833 | } | |
11834 | ||
11835 | ||
c32bde28 | 11836 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11837 | PyObject *resultobj; |
11838 | wxBMPHandler *result; | |
11839 | char *kwnames[] = { | |
11840 | NULL | |
11841 | }; | |
11842 | ||
11843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11844 | { | |
11845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11846 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11847 | ||
11848 | wxPyEndAllowThreads(__tstate); | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11852 | return resultobj; | |
11853 | fail: | |
11854 | return NULL; | |
11855 | } | |
11856 | ||
11857 | ||
c32bde28 | 11858 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11859 | PyObject *obj; |
11860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11861 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11862 | Py_INCREF(obj); | |
11863 | return Py_BuildValue((char *)""); | |
11864 | } | |
c32bde28 | 11865 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11866 | PyObject *resultobj; |
11867 | wxICOHandler *result; | |
11868 | char *kwnames[] = { | |
11869 | NULL | |
11870 | }; | |
11871 | ||
11872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11873 | { | |
11874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11875 | result = (wxICOHandler *)new wxICOHandler(); | |
11876 | ||
11877 | wxPyEndAllowThreads(__tstate); | |
11878 | if (PyErr_Occurred()) SWIG_fail; | |
11879 | } | |
11880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11881 | return resultobj; | |
11882 | fail: | |
11883 | return NULL; | |
11884 | } | |
11885 | ||
11886 | ||
c32bde28 | 11887 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11888 | PyObject *obj; |
11889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11890 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11891 | Py_INCREF(obj); | |
11892 | return Py_BuildValue((char *)""); | |
11893 | } | |
c32bde28 | 11894 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11895 | PyObject *resultobj; |
11896 | wxCURHandler *result; | |
11897 | char *kwnames[] = { | |
11898 | NULL | |
11899 | }; | |
11900 | ||
11901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11902 | { | |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | result = (wxCURHandler *)new wxCURHandler(); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
c32bde28 | 11916 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11917 | PyObject *obj; |
11918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11919 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11920 | Py_INCREF(obj); | |
11921 | return Py_BuildValue((char *)""); | |
11922 | } | |
c32bde28 | 11923 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11924 | PyObject *resultobj; |
11925 | wxANIHandler *result; | |
11926 | char *kwnames[] = { | |
11927 | NULL | |
11928 | }; | |
11929 | ||
11930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | result = (wxANIHandler *)new wxANIHandler(); | |
11934 | ||
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
11938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
c32bde28 | 11945 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11946 | PyObject *obj; |
11947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11948 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11949 | Py_INCREF(obj); | |
11950 | return Py_BuildValue((char *)""); | |
11951 | } | |
c32bde28 | 11952 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11953 | PyObject *resultobj; |
11954 | wxPNGHandler *result; | |
11955 | char *kwnames[] = { | |
11956 | NULL | |
11957 | }; | |
11958 | ||
11959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11960 | { | |
11961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11962 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11963 | ||
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
11967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11968 | return resultobj; | |
11969 | fail: | |
11970 | return NULL; | |
11971 | } | |
11972 | ||
11973 | ||
c32bde28 | 11974 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11975 | PyObject *obj; |
11976 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11977 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11978 | Py_INCREF(obj); | |
11979 | return Py_BuildValue((char *)""); | |
11980 | } | |
c32bde28 | 11981 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11982 | PyObject *resultobj; |
11983 | wxGIFHandler *result; | |
11984 | char *kwnames[] = { | |
11985 | NULL | |
11986 | }; | |
11987 | ||
11988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11989 | { | |
11990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11991 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11992 | ||
11993 | wxPyEndAllowThreads(__tstate); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
11995 | } | |
11996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11997 | return resultobj; | |
11998 | fail: | |
11999 | return NULL; | |
12000 | } | |
12001 | ||
12002 | ||
c32bde28 | 12003 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12004 | PyObject *obj; |
12005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12006 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
12007 | Py_INCREF(obj); | |
12008 | return Py_BuildValue((char *)""); | |
12009 | } | |
c32bde28 | 12010 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12011 | PyObject *resultobj; |
12012 | wxPCXHandler *result; | |
12013 | char *kwnames[] = { | |
12014 | NULL | |
12015 | }; | |
12016 | ||
12017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
12018 | { | |
12019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12020 | result = (wxPCXHandler *)new wxPCXHandler(); | |
12021 | ||
12022 | wxPyEndAllowThreads(__tstate); | |
12023 | if (PyErr_Occurred()) SWIG_fail; | |
12024 | } | |
12025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
12026 | return resultobj; | |
12027 | fail: | |
12028 | return NULL; | |
12029 | } | |
12030 | ||
12031 | ||
c32bde28 | 12032 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12033 | PyObject *obj; |
12034 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12035 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
12036 | Py_INCREF(obj); | |
12037 | return Py_BuildValue((char *)""); | |
12038 | } | |
c32bde28 | 12039 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12040 | PyObject *resultobj; |
12041 | wxJPEGHandler *result; | |
12042 | char *kwnames[] = { | |
12043 | NULL | |
12044 | }; | |
12045 | ||
12046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
c32bde28 | 12061 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12062 | PyObject *obj; |
12063 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12064 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
12065 | Py_INCREF(obj); | |
12066 | return Py_BuildValue((char *)""); | |
12067 | } | |
c32bde28 | 12068 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12069 | PyObject *resultobj; |
12070 | wxPNMHandler *result; | |
12071 | char *kwnames[] = { | |
12072 | NULL | |
12073 | }; | |
12074 | ||
12075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
12076 | { | |
12077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12078 | result = (wxPNMHandler *)new wxPNMHandler(); | |
12079 | ||
12080 | wxPyEndAllowThreads(__tstate); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
12084 | return resultobj; | |
12085 | fail: | |
12086 | return NULL; | |
12087 | } | |
12088 | ||
12089 | ||
c32bde28 | 12090 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12091 | PyObject *obj; |
12092 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12093 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
12094 | Py_INCREF(obj); | |
12095 | return Py_BuildValue((char *)""); | |
12096 | } | |
c32bde28 | 12097 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12098 | PyObject *resultobj; |
12099 | wxXPMHandler *result; | |
12100 | char *kwnames[] = { | |
12101 | NULL | |
12102 | }; | |
12103 | ||
12104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
12105 | { | |
12106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12107 | result = (wxXPMHandler *)new wxXPMHandler(); | |
12108 | ||
12109 | wxPyEndAllowThreads(__tstate); | |
12110 | if (PyErr_Occurred()) SWIG_fail; | |
12111 | } | |
12112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
12113 | return resultobj; | |
12114 | fail: | |
12115 | return NULL; | |
12116 | } | |
12117 | ||
12118 | ||
c32bde28 | 12119 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12120 | PyObject *obj; |
12121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12122 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12123 | Py_INCREF(obj); | |
12124 | return Py_BuildValue((char *)""); | |
12125 | } | |
c32bde28 | 12126 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12127 | PyObject *resultobj; |
12128 | wxTIFFHandler *result; | |
12129 | char *kwnames[] = { | |
12130 | NULL | |
12131 | }; | |
12132 | ||
12133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12134 | { | |
12135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12136 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12137 | ||
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
12141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
12142 | return resultobj; | |
12143 | fail: | |
12144 | return NULL; | |
12145 | } | |
12146 | ||
12147 | ||
c32bde28 | 12148 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12149 | PyObject *obj; |
12150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12151 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12152 | Py_INCREF(obj); | |
12153 | return Py_BuildValue((char *)""); | |
12154 | } | |
c32bde28 | 12155 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12156 | PyObject *resultobj; |
12157 | wxImage *arg1 = 0 ; | |
12158 | wxImage *arg2 = 0 ; | |
12159 | int arg3 = (int) 236 ; | |
12160 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12161 | bool result; | |
12162 | PyObject * obj0 = 0 ; | |
12163 | PyObject * obj1 = 0 ; | |
12164 | PyObject * obj2 = 0 ; | |
12165 | PyObject * obj3 = 0 ; | |
12166 | char *kwnames[] = { | |
12167 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12168 | }; | |
12169 | ||
12170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12172 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12173 | SWIG_fail; | |
12174 | if (arg1 == NULL) { | |
12175 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12176 | SWIG_fail; | |
12177 | } | |
12178 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12179 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12180 | SWIG_fail; | |
12181 | if (arg2 == NULL) { | |
12182 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12183 | SWIG_fail; | |
12184 | } | |
12185 | if (obj2) { | |
c32bde28 | 12186 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12187 | if (PyErr_Occurred()) SWIG_fail; |
12188 | } | |
12189 | if (obj3) { | |
c32bde28 | 12190 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12191 | if (PyErr_Occurred()) SWIG_fail; |
12192 | } | |
12193 | { | |
12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12195 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12196 | ||
12197 | wxPyEndAllowThreads(__tstate); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
12200 | { | |
12201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12202 | } | |
12203 | return resultobj; | |
12204 | fail: | |
12205 | return NULL; | |
12206 | } | |
12207 | ||
12208 | ||
c32bde28 | 12209 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12210 | PyObject *obj; |
12211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12212 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12213 | Py_INCREF(obj); | |
12214 | return Py_BuildValue((char *)""); | |
12215 | } | |
c32bde28 | 12216 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12217 | PyObject *resultobj; |
12218 | wxEvtHandler *result; | |
12219 | char *kwnames[] = { | |
12220 | NULL | |
12221 | }; | |
12222 | ||
12223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12224 | { | |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12226 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12227 | ||
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
b0f7404b | 12231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
12232 | return resultobj; |
12233 | fail: | |
12234 | return NULL; | |
12235 | } | |
12236 | ||
12237 | ||
c32bde28 | 12238 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12239 | PyObject *resultobj; |
12240 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12241 | wxEvtHandler *result; | |
12242 | PyObject * obj0 = 0 ; | |
12243 | char *kwnames[] = { | |
12244 | (char *) "self", NULL | |
12245 | }; | |
12246 | ||
12247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
12248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12250 | { | |
12251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12252 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | { | |
412d302d | 12258 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12259 | } |
12260 | return resultobj; | |
12261 | fail: | |
12262 | return NULL; | |
12263 | } | |
12264 | ||
12265 | ||
c32bde28 | 12266 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12267 | PyObject *resultobj; |
12268 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12269 | wxEvtHandler *result; | |
12270 | PyObject * obj0 = 0 ; | |
12271 | char *kwnames[] = { | |
12272 | (char *) "self", NULL | |
12273 | }; | |
12274 | ||
12275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
12276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12278 | { | |
12279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12280 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12281 | ||
12282 | wxPyEndAllowThreads(__tstate); | |
12283 | if (PyErr_Occurred()) SWIG_fail; | |
12284 | } | |
12285 | { | |
412d302d | 12286 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12287 | } |
12288 | return resultobj; | |
12289 | fail: | |
12290 | return NULL; | |
12291 | } | |
12292 | ||
12293 | ||
c32bde28 | 12294 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12295 | PyObject *resultobj; |
12296 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12297 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12298 | PyObject * obj0 = 0 ; | |
12299 | PyObject * obj1 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self",(char *) "handler", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
12305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12309 | { | |
12310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12311 | (arg1)->SetNextHandler(arg2); | |
12312 | ||
12313 | wxPyEndAllowThreads(__tstate); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
12316 | Py_INCREF(Py_None); resultobj = Py_None; | |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
c32bde28 | 12323 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12324 | PyObject *resultobj; |
12325 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12326 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | PyObject * obj1 = 0 ; | |
12329 | char *kwnames[] = { | |
12330 | (char *) "self",(char *) "handler", NULL | |
12331 | }; | |
12332 | ||
12333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
12334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12338 | { | |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | (arg1)->SetPreviousHandler(arg2); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
12345 | Py_INCREF(Py_None); resultobj = Py_None; | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
c32bde28 | 12352 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12353 | PyObject *resultobj; |
12354 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12355 | bool result; | |
12356 | PyObject * obj0 = 0 ; | |
12357 | char *kwnames[] = { | |
12358 | (char *) "self", NULL | |
12359 | }; | |
12360 | ||
12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12364 | { | |
12365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12366 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | { | |
12372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12373 | } | |
12374 | return resultobj; | |
12375 | fail: | |
12376 | return NULL; | |
12377 | } | |
12378 | ||
12379 | ||
c32bde28 | 12380 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12381 | PyObject *resultobj; |
12382 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12383 | bool arg2 ; | |
12384 | PyObject * obj0 = 0 ; | |
12385 | PyObject * obj1 = 0 ; | |
12386 | char *kwnames[] = { | |
12387 | (char *) "self",(char *) "enabled", NULL | |
12388 | }; | |
12389 | ||
12390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12393 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12394 | if (PyErr_Occurred()) SWIG_fail; |
12395 | { | |
12396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12397 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12398 | ||
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
12402 | Py_INCREF(Py_None); resultobj = Py_None; | |
12403 | return resultobj; | |
12404 | fail: | |
12405 | return NULL; | |
12406 | } | |
12407 | ||
12408 | ||
c32bde28 | 12409 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12410 | PyObject *resultobj; |
12411 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12412 | wxEvent *arg2 = 0 ; | |
12413 | bool result; | |
12414 | PyObject * obj0 = 0 ; | |
12415 | PyObject * obj1 = 0 ; | |
12416 | char *kwnames[] = { | |
12417 | (char *) "self",(char *) "event", NULL | |
12418 | }; | |
12419 | ||
12420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12425 | SWIG_fail; | |
12426 | if (arg2 == NULL) { | |
12427 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12428 | SWIG_fail; | |
12429 | } | |
12430 | { | |
12431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12432 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12433 | ||
12434 | wxPyEndAllowThreads(__tstate); | |
12435 | if (PyErr_Occurred()) SWIG_fail; | |
12436 | } | |
12437 | { | |
12438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12439 | } | |
12440 | return resultobj; | |
12441 | fail: | |
12442 | return NULL; | |
12443 | } | |
12444 | ||
12445 | ||
c32bde28 | 12446 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12447 | PyObject *resultobj; |
12448 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12449 | wxEvent *arg2 = 0 ; | |
12450 | PyObject * obj0 = 0 ; | |
12451 | PyObject * obj1 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self",(char *) "event", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12461 | SWIG_fail; | |
12462 | if (arg2 == NULL) { | |
12463 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12464 | SWIG_fail; | |
12465 | } | |
12466 | { | |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12468 | (arg1)->AddPendingEvent(*arg2); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
12473 | Py_INCREF(Py_None); resultobj = Py_None; | |
12474 | return resultobj; | |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
c32bde28 | 12480 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12481 | PyObject *resultobj; |
12482 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12483 | PyObject * obj0 = 0 ; | |
12484 | char *kwnames[] = { | |
12485 | (char *) "self", NULL | |
12486 | }; | |
12487 | ||
12488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12491 | { | |
12492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12493 | (arg1)->ProcessPendingEvents(); | |
12494 | ||
12495 | wxPyEndAllowThreads(__tstate); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | } | |
12498 | Py_INCREF(Py_None); resultobj = Py_None; | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | return NULL; | |
12502 | } | |
12503 | ||
12504 | ||
c32bde28 | 12505 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12506 | PyObject *resultobj; |
12507 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12508 | int arg2 ; | |
12509 | int arg3 ; | |
12510 | int arg4 ; | |
12511 | PyObject *arg5 = (PyObject *) 0 ; | |
12512 | PyObject * obj0 = 0 ; | |
12513 | PyObject * obj1 = 0 ; | |
12514 | PyObject * obj2 = 0 ; | |
12515 | PyObject * obj3 = 0 ; | |
12516 | PyObject * obj4 = 0 ; | |
12517 | char *kwnames[] = { | |
12518 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12519 | }; | |
12520 | ||
12521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12524 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12525 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12526 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12527 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12528 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12529 | if (PyErr_Occurred()) SWIG_fail; |
12530 | arg5 = obj4; | |
12531 | { | |
12532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12533 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12534 | ||
12535 | wxPyEndAllowThreads(__tstate); | |
12536 | if (PyErr_Occurred()) SWIG_fail; | |
12537 | } | |
12538 | Py_INCREF(Py_None); resultobj = Py_None; | |
12539 | return resultobj; | |
12540 | fail: | |
12541 | return NULL; | |
12542 | } | |
12543 | ||
12544 | ||
c32bde28 | 12545 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12546 | PyObject *resultobj; |
12547 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12548 | int arg2 ; | |
12549 | int arg3 = (int) -1 ; | |
12550 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12551 | bool result; | |
12552 | PyObject * obj0 = 0 ; | |
12553 | PyObject * obj1 = 0 ; | |
12554 | PyObject * obj2 = 0 ; | |
12555 | PyObject * obj3 = 0 ; | |
12556 | char *kwnames[] = { | |
12557 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12558 | }; | |
12559 | ||
12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12563 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12564 | if (PyErr_Occurred()) SWIG_fail; |
12565 | if (obj2) { | |
c32bde28 | 12566 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12567 | if (PyErr_Occurred()) SWIG_fail; |
12568 | } | |
12569 | if (obj3) { | |
c32bde28 | 12570 | arg4 = (wxEventType)SWIG_As_int(obj3); |
d55e5bfc RD |
12571 | if (PyErr_Occurred()) SWIG_fail; |
12572 | } | |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | { | |
12581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12582 | } | |
12583 | return resultobj; | |
12584 | fail: | |
12585 | return NULL; | |
12586 | } | |
12587 | ||
12588 | ||
c32bde28 | 12589 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12590 | PyObject *resultobj; |
12591 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12592 | PyObject *arg2 = (PyObject *) 0 ; | |
12593 | PyObject * obj0 = 0 ; | |
12594 | PyObject * obj1 = 0 ; | |
12595 | char *kwnames[] = { | |
12596 | (char *) "self",(char *) "_self", NULL | |
12597 | }; | |
12598 | ||
12599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12602 | arg2 = obj1; | |
12603 | { | |
12604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12605 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12606 | ||
12607 | wxPyEndAllowThreads(__tstate); | |
12608 | if (PyErr_Occurred()) SWIG_fail; | |
12609 | } | |
12610 | Py_INCREF(Py_None); resultobj = Py_None; | |
12611 | return resultobj; | |
12612 | fail: | |
12613 | return NULL; | |
12614 | } | |
12615 | ||
12616 | ||
c32bde28 | 12617 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12618 | PyObject *obj; |
12619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12620 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12621 | Py_INCREF(obj); | |
12622 | return Py_BuildValue((char *)""); | |
12623 | } | |
c32bde28 | 12624 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12625 | PyObject *resultobj; |
12626 | wxEventType result; | |
12627 | char *kwnames[] = { | |
12628 | NULL | |
12629 | }; | |
12630 | ||
12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12632 | { | |
12633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12634 | result = (wxEventType)wxNewEventType(); | |
12635 | ||
12636 | wxPyEndAllowThreads(__tstate); | |
12637 | if (PyErr_Occurred()) SWIG_fail; | |
12638 | } | |
c32bde28 | 12639 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12640 | return resultobj; |
12641 | fail: | |
12642 | return NULL; | |
12643 | } | |
12644 | ||
12645 | ||
c32bde28 | 12646 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12647 | PyObject *resultobj; |
12648 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12649 | PyObject * obj0 = 0 ; | |
12650 | char *kwnames[] = { | |
12651 | (char *) "self", NULL | |
12652 | }; | |
12653 | ||
12654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12657 | { | |
12658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12659 | delete arg1; | |
12660 | ||
12661 | wxPyEndAllowThreads(__tstate); | |
12662 | if (PyErr_Occurred()) SWIG_fail; | |
12663 | } | |
12664 | Py_INCREF(Py_None); resultobj = Py_None; | |
12665 | return resultobj; | |
12666 | fail: | |
12667 | return NULL; | |
12668 | } | |
12669 | ||
12670 | ||
c32bde28 | 12671 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12672 | PyObject *resultobj; |
12673 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12674 | wxEventType arg2 ; | |
12675 | PyObject * obj0 = 0 ; | |
12676 | PyObject * obj1 = 0 ; | |
12677 | char *kwnames[] = { | |
12678 | (char *) "self",(char *) "typ", NULL | |
12679 | }; | |
12680 | ||
12681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12684 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
12685 | if (PyErr_Occurred()) SWIG_fail; |
12686 | { | |
12687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12688 | (arg1)->SetEventType(arg2); | |
12689 | ||
12690 | wxPyEndAllowThreads(__tstate); | |
12691 | if (PyErr_Occurred()) SWIG_fail; | |
12692 | } | |
12693 | Py_INCREF(Py_None); resultobj = Py_None; | |
12694 | return resultobj; | |
12695 | fail: | |
12696 | return NULL; | |
12697 | } | |
12698 | ||
12699 | ||
c32bde28 | 12700 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12701 | PyObject *resultobj; |
12702 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12703 | wxEventType result; | |
12704 | PyObject * obj0 = 0 ; | |
12705 | char *kwnames[] = { | |
12706 | (char *) "self", NULL | |
12707 | }; | |
12708 | ||
12709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
c32bde28 | 12719 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12720 | return resultobj; |
12721 | fail: | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
c32bde28 | 12726 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12727 | PyObject *resultobj; |
12728 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12729 | wxObject *result; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | char *kwnames[] = { | |
12732 | (char *) "self", NULL | |
12733 | }; | |
12734 | ||
12735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12738 | { | |
12739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12740 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12741 | ||
12742 | wxPyEndAllowThreads(__tstate); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
412d302d | 12746 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12747 | } |
12748 | return resultobj; | |
12749 | fail: | |
12750 | return NULL; | |
12751 | } | |
12752 | ||
12753 | ||
c32bde28 | 12754 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12755 | PyObject *resultobj; |
12756 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12757 | wxObject *arg2 = (wxObject *) 0 ; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | PyObject * obj1 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self",(char *) "obj", NULL | |
12762 | }; | |
12763 | ||
12764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | (arg1)->SetEventObject(arg2); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | Py_INCREF(Py_None); resultobj = Py_None; | |
12777 | return resultobj; | |
12778 | fail: | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
c32bde28 | 12783 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12784 | PyObject *resultobj; |
12785 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12786 | long result; | |
12787 | PyObject * obj0 = 0 ; | |
12788 | char *kwnames[] = { | |
12789 | (char *) "self", NULL | |
12790 | }; | |
12791 | ||
12792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12795 | { | |
12796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12797 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12798 | ||
12799 | wxPyEndAllowThreads(__tstate); | |
12800 | if (PyErr_Occurred()) SWIG_fail; | |
12801 | } | |
c32bde28 | 12802 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
12803 | return resultobj; |
12804 | fail: | |
12805 | return NULL; | |
12806 | } | |
12807 | ||
12808 | ||
c32bde28 | 12809 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12810 | PyObject *resultobj; |
12811 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12812 | long arg2 = (long) 0 ; | |
12813 | PyObject * obj0 = 0 ; | |
12814 | PyObject * obj1 = 0 ; | |
12815 | char *kwnames[] = { | |
12816 | (char *) "self",(char *) "ts", NULL | |
12817 | }; | |
12818 | ||
12819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12822 | if (obj1) { | |
c32bde28 | 12823 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
12824 | if (PyErr_Occurred()) SWIG_fail; |
12825 | } | |
12826 | { | |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12828 | (arg1)->SetTimestamp(arg2); | |
12829 | ||
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
12833 | Py_INCREF(Py_None); resultobj = Py_None; | |
12834 | return resultobj; | |
12835 | fail: | |
12836 | return NULL; | |
12837 | } | |
12838 | ||
12839 | ||
c32bde28 | 12840 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12841 | PyObject *resultobj; |
12842 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12843 | int result; | |
12844 | PyObject * obj0 = 0 ; | |
12845 | char *kwnames[] = { | |
12846 | (char *) "self", NULL | |
12847 | }; | |
12848 | ||
12849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12852 | { | |
12853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12854 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12855 | ||
12856 | wxPyEndAllowThreads(__tstate); | |
12857 | if (PyErr_Occurred()) SWIG_fail; | |
12858 | } | |
c32bde28 | 12859 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12860 | return resultobj; |
12861 | fail: | |
12862 | return NULL; | |
12863 | } | |
12864 | ||
12865 | ||
c32bde28 | 12866 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12867 | PyObject *resultobj; |
12868 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12869 | int arg2 ; | |
12870 | PyObject * obj0 = 0 ; | |
12871 | PyObject * obj1 = 0 ; | |
12872 | char *kwnames[] = { | |
12873 | (char *) "self",(char *) "Id", NULL | |
12874 | }; | |
12875 | ||
12876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12879 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12880 | if (PyErr_Occurred()) SWIG_fail; |
12881 | { | |
12882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12883 | (arg1)->SetId(arg2); | |
12884 | ||
12885 | wxPyEndAllowThreads(__tstate); | |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
12888 | Py_INCREF(Py_None); resultobj = Py_None; | |
12889 | return resultobj; | |
12890 | fail: | |
12891 | return NULL; | |
12892 | } | |
12893 | ||
12894 | ||
c32bde28 | 12895 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12896 | PyObject *resultobj; |
12897 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12898 | bool result; | |
12899 | PyObject * obj0 = 0 ; | |
12900 | char *kwnames[] = { | |
12901 | (char *) "self", NULL | |
12902 | }; | |
12903 | ||
12904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12907 | { | |
12908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12909 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12910 | ||
12911 | wxPyEndAllowThreads(__tstate); | |
12912 | if (PyErr_Occurred()) SWIG_fail; | |
12913 | } | |
12914 | { | |
12915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12916 | } | |
12917 | return resultobj; | |
12918 | fail: | |
12919 | return NULL; | |
12920 | } | |
12921 | ||
12922 | ||
c32bde28 | 12923 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12924 | PyObject *resultobj; |
12925 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 12926 | bool arg2 = (bool) true ; |
d55e5bfc RD |
12927 | PyObject * obj0 = 0 ; |
12928 | PyObject * obj1 = 0 ; | |
12929 | char *kwnames[] = { | |
12930 | (char *) "self",(char *) "skip", NULL | |
12931 | }; | |
12932 | ||
12933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12936 | if (obj1) { | |
c32bde28 | 12937 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12938 | if (PyErr_Occurred()) SWIG_fail; |
12939 | } | |
12940 | { | |
12941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12942 | (arg1)->Skip(arg2); | |
12943 | ||
12944 | wxPyEndAllowThreads(__tstate); | |
12945 | if (PyErr_Occurred()) SWIG_fail; | |
12946 | } | |
12947 | Py_INCREF(Py_None); resultobj = Py_None; | |
12948 | return resultobj; | |
12949 | fail: | |
12950 | return NULL; | |
12951 | } | |
12952 | ||
12953 | ||
c32bde28 | 12954 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12955 | PyObject *resultobj; |
12956 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12957 | bool result; | |
12958 | PyObject * obj0 = 0 ; | |
12959 | char *kwnames[] = { | |
12960 | (char *) "self", NULL | |
12961 | }; | |
12962 | ||
12963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12966 | { | |
12967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12968 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12969 | ||
12970 | wxPyEndAllowThreads(__tstate); | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | } | |
12973 | { | |
12974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12975 | } | |
12976 | return resultobj; | |
12977 | fail: | |
12978 | return NULL; | |
12979 | } | |
12980 | ||
12981 | ||
c32bde28 | 12982 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12983 | PyObject *resultobj; |
12984 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12985 | bool result; | |
12986 | PyObject * obj0 = 0 ; | |
12987 | char *kwnames[] = { | |
12988 | (char *) "self", NULL | |
12989 | }; | |
12990 | ||
12991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12994 | { | |
12995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12996 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12997 | ||
12998 | wxPyEndAllowThreads(__tstate); | |
12999 | if (PyErr_Occurred()) SWIG_fail; | |
13000 | } | |
13001 | { | |
13002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13003 | } | |
13004 | return resultobj; | |
13005 | fail: | |
13006 | return NULL; | |
13007 | } | |
13008 | ||
13009 | ||
c32bde28 | 13010 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13011 | PyObject *resultobj; |
13012 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13013 | int result; | |
13014 | PyObject * obj0 = 0 ; | |
13015 | char *kwnames[] = { | |
13016 | (char *) "self", NULL | |
13017 | }; | |
13018 | ||
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
13020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13022 | { | |
13023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13024 | result = (int)(arg1)->StopPropagation(); | |
13025 | ||
13026 | wxPyEndAllowThreads(__tstate); | |
13027 | if (PyErr_Occurred()) SWIG_fail; | |
13028 | } | |
c32bde28 | 13029 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13030 | return resultobj; |
13031 | fail: | |
13032 | return NULL; | |
13033 | } | |
13034 | ||
13035 | ||
c32bde28 | 13036 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13037 | PyObject *resultobj; |
13038 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13039 | int arg2 ; | |
13040 | PyObject * obj0 = 0 ; | |
13041 | PyObject * obj1 = 0 ; | |
13042 | char *kwnames[] = { | |
13043 | (char *) "self",(char *) "propagationLevel", NULL | |
13044 | }; | |
13045 | ||
13046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
13047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13049 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13050 | if (PyErr_Occurred()) SWIG_fail; |
13051 | { | |
13052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13053 | (arg1)->ResumePropagation(arg2); | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
13058 | Py_INCREF(Py_None); resultobj = Py_None; | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | return NULL; | |
13062 | } | |
13063 | ||
13064 | ||
c32bde28 | 13065 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13066 | PyObject *resultobj; |
13067 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13068 | wxEvent *result; | |
13069 | PyObject * obj0 = 0 ; | |
13070 | char *kwnames[] = { | |
13071 | (char *) "self", NULL | |
13072 | }; | |
13073 | ||
13074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
13075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13077 | { | |
13078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13079 | result = (wxEvent *)(arg1)->Clone(); | |
13080 | ||
13081 | wxPyEndAllowThreads(__tstate); | |
13082 | if (PyErr_Occurred()) SWIG_fail; | |
13083 | } | |
13084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13085 | return resultobj; | |
13086 | fail: | |
13087 | return NULL; | |
13088 | } | |
13089 | ||
13090 | ||
c32bde28 | 13091 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13092 | PyObject *obj; |
13093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13094 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
13095 | Py_INCREF(obj); | |
13096 | return Py_BuildValue((char *)""); | |
13097 | } | |
c32bde28 | 13098 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13099 | PyObject *resultobj; |
13100 | wxEvent *arg1 = 0 ; | |
13101 | wxPropagationDisabler *result; | |
13102 | PyObject * obj0 = 0 ; | |
13103 | char *kwnames[] = { | |
13104 | (char *) "event", NULL | |
13105 | }; | |
13106 | ||
13107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13110 | SWIG_fail; | |
13111 | if (arg1 == NULL) { | |
13112 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13113 | SWIG_fail; | |
13114 | } | |
13115 | { | |
13116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13117 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13118 | ||
13119 | wxPyEndAllowThreads(__tstate); | |
13120 | if (PyErr_Occurred()) SWIG_fail; | |
13121 | } | |
13122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
13123 | return resultobj; | |
13124 | fail: | |
13125 | return NULL; | |
13126 | } | |
13127 | ||
13128 | ||
c32bde28 | 13129 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13130 | PyObject *resultobj; |
13131 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13132 | PyObject * obj0 = 0 ; | |
13133 | char *kwnames[] = { | |
13134 | (char *) "self", NULL | |
13135 | }; | |
13136 | ||
13137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
13139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13140 | { | |
13141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13142 | delete arg1; | |
13143 | ||
13144 | wxPyEndAllowThreads(__tstate); | |
13145 | if (PyErr_Occurred()) SWIG_fail; | |
13146 | } | |
13147 | Py_INCREF(Py_None); resultobj = Py_None; | |
13148 | return resultobj; | |
13149 | fail: | |
13150 | return NULL; | |
13151 | } | |
13152 | ||
13153 | ||
c32bde28 | 13154 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13155 | PyObject *obj; |
13156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13157 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13158 | Py_INCREF(obj); | |
13159 | return Py_BuildValue((char *)""); | |
13160 | } | |
c32bde28 | 13161 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13162 | PyObject *resultobj; |
13163 | wxEvent *arg1 = 0 ; | |
13164 | wxPropagateOnce *result; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "event", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
13171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13172 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13173 | SWIG_fail; | |
13174 | if (arg1 == NULL) { | |
13175 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13176 | SWIG_fail; | |
13177 | } | |
13178 | { | |
13179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13180 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13181 | ||
13182 | wxPyEndAllowThreads(__tstate); | |
13183 | if (PyErr_Occurred()) SWIG_fail; | |
13184 | } | |
13185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
13186 | return resultobj; | |
13187 | fail: | |
13188 | return NULL; | |
13189 | } | |
13190 | ||
13191 | ||
c32bde28 | 13192 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13193 | PyObject *resultobj; |
13194 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13195 | PyObject * obj0 = 0 ; | |
13196 | char *kwnames[] = { | |
13197 | (char *) "self", NULL | |
13198 | }; | |
13199 | ||
13200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
13201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
13202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13203 | { | |
13204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13205 | delete arg1; | |
13206 | ||
13207 | wxPyEndAllowThreads(__tstate); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
13210 | Py_INCREF(Py_None); resultobj = Py_None; | |
13211 | return resultobj; | |
13212 | fail: | |
13213 | return NULL; | |
13214 | } | |
13215 | ||
13216 | ||
c32bde28 | 13217 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13218 | PyObject *obj; |
13219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13220 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13221 | Py_INCREF(obj); | |
13222 | return Py_BuildValue((char *)""); | |
13223 | } | |
c32bde28 | 13224 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13225 | PyObject *resultobj; |
13226 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13227 | int arg2 = (int) 0 ; | |
13228 | wxCommandEvent *result; | |
13229 | PyObject * obj0 = 0 ; | |
13230 | PyObject * obj1 = 0 ; | |
13231 | char *kwnames[] = { | |
13232 | (char *) "commandType",(char *) "winid", NULL | |
13233 | }; | |
13234 | ||
13235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
13236 | if (obj0) { | |
c32bde28 | 13237 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13238 | if (PyErr_Occurred()) SWIG_fail; |
13239 | } | |
13240 | if (obj1) { | |
c32bde28 | 13241 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13242 | if (PyErr_Occurred()) SWIG_fail; |
13243 | } | |
13244 | { | |
13245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13246 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13247 | ||
13248 | wxPyEndAllowThreads(__tstate); | |
13249 | if (PyErr_Occurred()) SWIG_fail; | |
13250 | } | |
13251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
13252 | return resultobj; | |
13253 | fail: | |
13254 | return NULL; | |
13255 | } | |
13256 | ||
13257 | ||
c32bde28 | 13258 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13259 | PyObject *resultobj; |
13260 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13261 | int result; | |
13262 | PyObject * obj0 = 0 ; | |
13263 | char *kwnames[] = { | |
13264 | (char *) "self", NULL | |
13265 | }; | |
13266 | ||
13267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13270 | { | |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
c32bde28 | 13277 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13278 | return resultobj; |
13279 | fail: | |
13280 | return NULL; | |
13281 | } | |
13282 | ||
13283 | ||
c32bde28 | 13284 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13285 | PyObject *resultobj; |
13286 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13287 | wxString *arg2 = 0 ; | |
ae8162c8 | 13288 | bool temp2 = false ; |
d55e5bfc RD |
13289 | PyObject * obj0 = 0 ; |
13290 | PyObject * obj1 = 0 ; | |
13291 | char *kwnames[] = { | |
13292 | (char *) "self",(char *) "s", NULL | |
13293 | }; | |
13294 | ||
13295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
13296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13298 | { | |
13299 | arg2 = wxString_in_helper(obj1); | |
13300 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13301 | temp2 = true; |
d55e5bfc RD |
13302 | } |
13303 | { | |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13305 | (arg1)->SetString((wxString const &)*arg2); | |
13306 | ||
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
13310 | Py_INCREF(Py_None); resultobj = Py_None; | |
13311 | { | |
13312 | if (temp2) | |
13313 | delete arg2; | |
13314 | } | |
13315 | return resultobj; | |
13316 | fail: | |
13317 | { | |
13318 | if (temp2) | |
13319 | delete arg2; | |
13320 | } | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
c32bde28 | 13325 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13326 | PyObject *resultobj; |
13327 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13328 | wxString result; | |
13329 | PyObject * obj0 = 0 ; | |
13330 | char *kwnames[] = { | |
13331 | (char *) "self", NULL | |
13332 | }; | |
13333 | ||
13334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
13335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13337 | { | |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13339 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13340 | ||
13341 | wxPyEndAllowThreads(__tstate); | |
13342 | if (PyErr_Occurred()) SWIG_fail; | |
13343 | } | |
13344 | { | |
13345 | #if wxUSE_UNICODE | |
13346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13347 | #else | |
13348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13349 | #endif | |
13350 | } | |
13351 | return resultobj; | |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
c32bde28 | 13357 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13358 | PyObject *resultobj; |
13359 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13360 | bool result; | |
13361 | PyObject * obj0 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "self", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13369 | { | |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | { | |
13377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13378 | } | |
13379 | return resultobj; | |
13380 | fail: | |
13381 | return NULL; | |
13382 | } | |
13383 | ||
13384 | ||
c32bde28 | 13385 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13386 | PyObject *resultobj; |
13387 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13388 | bool result; | |
13389 | PyObject * obj0 = 0 ; | |
13390 | char *kwnames[] = { | |
13391 | (char *) "self", NULL | |
13392 | }; | |
13393 | ||
13394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13397 | { | |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
13404 | { | |
13405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13406 | } | |
13407 | return resultobj; | |
13408 | fail: | |
13409 | return NULL; | |
13410 | } | |
13411 | ||
13412 | ||
c32bde28 | 13413 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13414 | PyObject *resultobj; |
13415 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13416 | long arg2 ; | |
13417 | PyObject * obj0 = 0 ; | |
13418 | PyObject * obj1 = 0 ; | |
13419 | char *kwnames[] = { | |
13420 | (char *) "self",(char *) "extraLong", NULL | |
13421 | }; | |
13422 | ||
13423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13426 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
13427 | if (PyErr_Occurred()) SWIG_fail; |
13428 | { | |
13429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13430 | (arg1)->SetExtraLong(arg2); | |
13431 | ||
13432 | wxPyEndAllowThreads(__tstate); | |
13433 | if (PyErr_Occurred()) SWIG_fail; | |
13434 | } | |
13435 | Py_INCREF(Py_None); resultobj = Py_None; | |
13436 | return resultobj; | |
13437 | fail: | |
13438 | return NULL; | |
13439 | } | |
13440 | ||
13441 | ||
c32bde28 | 13442 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13443 | PyObject *resultobj; |
13444 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13445 | long result; | |
13446 | PyObject * obj0 = 0 ; | |
13447 | char *kwnames[] = { | |
13448 | (char *) "self", NULL | |
13449 | }; | |
13450 | ||
13451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
c32bde28 | 13461 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13462 | return resultobj; |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
c32bde28 | 13468 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13469 | PyObject *resultobj; |
13470 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13471 | int arg2 ; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | PyObject * obj1 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self",(char *) "i", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13481 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13482 | if (PyErr_Occurred()) SWIG_fail; |
13483 | { | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | (arg1)->SetInt(arg2); | |
13486 | ||
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | Py_INCREF(Py_None); resultobj = Py_None; | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
c32bde28 | 13497 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13498 | PyObject *resultobj; |
13499 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13500 | long result; | |
13501 | PyObject * obj0 = 0 ; | |
13502 | char *kwnames[] = { | |
13503 | (char *) "self", NULL | |
13504 | }; | |
13505 | ||
13506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13509 | { | |
13510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13511 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13512 | ||
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
c32bde28 | 13516 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13517 | return resultobj; |
13518 | fail: | |
13519 | return NULL; | |
13520 | } | |
13521 | ||
13522 | ||
c32bde28 | 13523 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13524 | PyObject *resultobj; |
13525 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13526 | wxEvent *result; | |
13527 | PyObject * obj0 = 0 ; | |
13528 | char *kwnames[] = { | |
13529 | (char *) "self", NULL | |
13530 | }; | |
13531 | ||
13532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13535 | { | |
13536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13537 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13538 | ||
13539 | wxPyEndAllowThreads(__tstate); | |
13540 | if (PyErr_Occurred()) SWIG_fail; | |
13541 | } | |
13542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13543 | return resultobj; | |
13544 | fail: | |
13545 | return NULL; | |
13546 | } | |
13547 | ||
13548 | ||
c32bde28 | 13549 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13550 | PyObject *obj; |
13551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13552 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13553 | Py_INCREF(obj); | |
13554 | return Py_BuildValue((char *)""); | |
13555 | } | |
c32bde28 | 13556 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13557 | PyObject *resultobj; |
13558 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13559 | int arg2 = (int) 0 ; | |
13560 | wxNotifyEvent *result; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | PyObject * obj1 = 0 ; | |
13563 | char *kwnames[] = { | |
13564 | (char *) "commandType",(char *) "winid", NULL | |
13565 | }; | |
13566 | ||
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13568 | if (obj0) { | |
c32bde28 | 13569 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13570 | if (PyErr_Occurred()) SWIG_fail; |
13571 | } | |
13572 | if (obj1) { | |
c32bde28 | 13573 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13574 | if (PyErr_Occurred()) SWIG_fail; |
13575 | } | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13579 | ||
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
c32bde28 | 13590 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13591 | PyObject *resultobj; |
13592 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13593 | PyObject * obj0 = 0 ; | |
13594 | char *kwnames[] = { | |
13595 | (char *) "self", NULL | |
13596 | }; | |
13597 | ||
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | (arg1)->Veto(); | |
13604 | ||
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | Py_INCREF(Py_None); resultobj = Py_None; | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | return NULL; | |
13612 | } | |
13613 | ||
13614 | ||
c32bde28 | 13615 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13616 | PyObject *resultobj; |
13617 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13618 | PyObject * obj0 = 0 ; | |
13619 | char *kwnames[] = { | |
13620 | (char *) "self", NULL | |
13621 | }; | |
13622 | ||
13623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13626 | { | |
13627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13628 | (arg1)->Allow(); | |
13629 | ||
13630 | wxPyEndAllowThreads(__tstate); | |
13631 | if (PyErr_Occurred()) SWIG_fail; | |
13632 | } | |
13633 | Py_INCREF(Py_None); resultobj = Py_None; | |
13634 | return resultobj; | |
13635 | fail: | |
13636 | return NULL; | |
13637 | } | |
13638 | ||
13639 | ||
c32bde28 | 13640 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13641 | PyObject *resultobj; |
13642 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13643 | bool result; | |
13644 | PyObject * obj0 = 0 ; | |
13645 | char *kwnames[] = { | |
13646 | (char *) "self", NULL | |
13647 | }; | |
13648 | ||
13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13652 | { | |
13653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13654 | result = (bool)(arg1)->IsAllowed(); | |
13655 | ||
13656 | wxPyEndAllowThreads(__tstate); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | } | |
13659 | { | |
13660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13661 | } | |
13662 | return resultobj; | |
13663 | fail: | |
13664 | return NULL; | |
13665 | } | |
13666 | ||
13667 | ||
c32bde28 | 13668 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13669 | PyObject *obj; |
13670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13671 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13672 | Py_INCREF(obj); | |
13673 | return Py_BuildValue((char *)""); | |
13674 | } | |
c32bde28 | 13675 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13676 | PyObject *resultobj; |
13677 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13678 | int arg2 = (int) 0 ; | |
13679 | int arg3 = (int) 0 ; | |
13680 | int arg4 = (int) 0 ; | |
13681 | wxScrollEvent *result; | |
13682 | PyObject * obj0 = 0 ; | |
13683 | PyObject * obj1 = 0 ; | |
13684 | PyObject * obj2 = 0 ; | |
13685 | PyObject * obj3 = 0 ; | |
13686 | char *kwnames[] = { | |
13687 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13688 | }; | |
13689 | ||
13690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13691 | if (obj0) { | |
c32bde28 | 13692 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13693 | if (PyErr_Occurred()) SWIG_fail; |
13694 | } | |
13695 | if (obj1) { | |
c32bde28 | 13696 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13697 | if (PyErr_Occurred()) SWIG_fail; |
13698 | } | |
13699 | if (obj2) { | |
c32bde28 | 13700 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13701 | if (PyErr_Occurred()) SWIG_fail; |
13702 | } | |
13703 | if (obj3) { | |
c32bde28 | 13704 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13705 | if (PyErr_Occurred()) SWIG_fail; |
13706 | } | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13710 | ||
13711 | wxPyEndAllowThreads(__tstate); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | } | |
13714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13715 | return resultobj; | |
13716 | fail: | |
13717 | return NULL; | |
13718 | } | |
13719 | ||
13720 | ||
c32bde28 | 13721 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13722 | PyObject *resultobj; |
13723 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13724 | int result; | |
13725 | PyObject * obj0 = 0 ; | |
13726 | char *kwnames[] = { | |
13727 | (char *) "self", NULL | |
13728 | }; | |
13729 | ||
13730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13733 | { | |
13734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13735 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13736 | ||
13737 | wxPyEndAllowThreads(__tstate); | |
13738 | if (PyErr_Occurred()) SWIG_fail; | |
13739 | } | |
c32bde28 | 13740 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13741 | return resultobj; |
13742 | fail: | |
13743 | return NULL; | |
13744 | } | |
13745 | ||
13746 | ||
c32bde28 | 13747 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13748 | PyObject *resultobj; |
13749 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13750 | int result; | |
13751 | PyObject * obj0 = 0 ; | |
13752 | char *kwnames[] = { | |
13753 | (char *) "self", NULL | |
13754 | }; | |
13755 | ||
13756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13759 | { | |
13760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13761 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13762 | ||
13763 | wxPyEndAllowThreads(__tstate); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
c32bde28 | 13766 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13767 | return resultobj; |
13768 | fail: | |
13769 | return NULL; | |
13770 | } | |
13771 | ||
13772 | ||
c32bde28 | 13773 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13774 | PyObject *resultobj; |
13775 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13776 | int arg2 ; | |
13777 | PyObject * obj0 = 0 ; | |
13778 | PyObject * obj1 = 0 ; | |
13779 | char *kwnames[] = { | |
13780 | (char *) "self",(char *) "orient", NULL | |
13781 | }; | |
13782 | ||
13783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13786 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13787 | if (PyErr_Occurred()) SWIG_fail; |
13788 | { | |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13790 | (arg1)->SetOrientation(arg2); | |
13791 | ||
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | Py_INCREF(Py_None); resultobj = Py_None; | |
13796 | return resultobj; | |
13797 | fail: | |
13798 | return NULL; | |
13799 | } | |
13800 | ||
13801 | ||
c32bde28 | 13802 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13803 | PyObject *resultobj; |
13804 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13805 | int arg2 ; | |
13806 | PyObject * obj0 = 0 ; | |
13807 | PyObject * obj1 = 0 ; | |
13808 | char *kwnames[] = { | |
13809 | (char *) "self",(char *) "pos", NULL | |
13810 | }; | |
13811 | ||
13812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13815 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13816 | if (PyErr_Occurred()) SWIG_fail; |
13817 | { | |
13818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13819 | (arg1)->SetPosition(arg2); | |
13820 | ||
13821 | wxPyEndAllowThreads(__tstate); | |
13822 | if (PyErr_Occurred()) SWIG_fail; | |
13823 | } | |
13824 | Py_INCREF(Py_None); resultobj = Py_None; | |
13825 | return resultobj; | |
13826 | fail: | |
13827 | return NULL; | |
13828 | } | |
13829 | ||
13830 | ||
c32bde28 | 13831 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13832 | PyObject *obj; |
13833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13834 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13835 | Py_INCREF(obj); | |
13836 | return Py_BuildValue((char *)""); | |
13837 | } | |
c32bde28 | 13838 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13839 | PyObject *resultobj; |
13840 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13841 | int arg2 = (int) 0 ; | |
13842 | int arg3 = (int) 0 ; | |
13843 | wxScrollWinEvent *result; | |
13844 | PyObject * obj0 = 0 ; | |
13845 | PyObject * obj1 = 0 ; | |
13846 | PyObject * obj2 = 0 ; | |
13847 | char *kwnames[] = { | |
13848 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13849 | }; | |
13850 | ||
13851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13852 | if (obj0) { | |
c32bde28 | 13853 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13854 | if (PyErr_Occurred()) SWIG_fail; |
13855 | } | |
13856 | if (obj1) { | |
c32bde28 | 13857 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13858 | if (PyErr_Occurred()) SWIG_fail; |
13859 | } | |
13860 | if (obj2) { | |
c32bde28 | 13861 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13862 | if (PyErr_Occurred()) SWIG_fail; |
13863 | } | |
13864 | { | |
13865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13866 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13867 | ||
13868 | wxPyEndAllowThreads(__tstate); | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | } | |
13871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13872 | return resultobj; | |
13873 | fail: | |
13874 | return NULL; | |
13875 | } | |
13876 | ||
13877 | ||
c32bde28 | 13878 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13879 | PyObject *resultobj; |
13880 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13881 | int result; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | char *kwnames[] = { | |
13884 | (char *) "self", NULL | |
13885 | }; | |
13886 | ||
13887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13890 | { | |
13891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13892 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13893 | ||
13894 | wxPyEndAllowThreads(__tstate); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
c32bde28 | 13897 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13898 | return resultobj; |
13899 | fail: | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
c32bde28 | 13904 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13905 | PyObject *resultobj; |
13906 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13907 | int result; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | char *kwnames[] = { | |
13910 | (char *) "self", NULL | |
13911 | }; | |
13912 | ||
13913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13916 | { | |
13917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13918 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13919 | ||
13920 | wxPyEndAllowThreads(__tstate); | |
13921 | if (PyErr_Occurred()) SWIG_fail; | |
13922 | } | |
c32bde28 | 13923 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13924 | return resultobj; |
13925 | fail: | |
13926 | return NULL; | |
13927 | } | |
13928 | ||
13929 | ||
c32bde28 | 13930 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13931 | PyObject *resultobj; |
13932 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13933 | int arg2 ; | |
13934 | PyObject * obj0 = 0 ; | |
13935 | PyObject * obj1 = 0 ; | |
13936 | char *kwnames[] = { | |
13937 | (char *) "self",(char *) "orient", NULL | |
13938 | }; | |
13939 | ||
13940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13943 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13944 | if (PyErr_Occurred()) SWIG_fail; |
13945 | { | |
13946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13947 | (arg1)->SetOrientation(arg2); | |
13948 | ||
13949 | wxPyEndAllowThreads(__tstate); | |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
13951 | } | |
13952 | Py_INCREF(Py_None); resultobj = Py_None; | |
13953 | return resultobj; | |
13954 | fail: | |
13955 | return NULL; | |
13956 | } | |
13957 | ||
13958 | ||
c32bde28 | 13959 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13960 | PyObject *resultobj; |
13961 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13962 | int arg2 ; | |
13963 | PyObject * obj0 = 0 ; | |
13964 | PyObject * obj1 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self",(char *) "pos", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13972 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13973 | if (PyErr_Occurred()) SWIG_fail; |
13974 | { | |
13975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13976 | (arg1)->SetPosition(arg2); | |
13977 | ||
13978 | wxPyEndAllowThreads(__tstate); | |
13979 | if (PyErr_Occurred()) SWIG_fail; | |
13980 | } | |
13981 | Py_INCREF(Py_None); resultobj = Py_None; | |
13982 | return resultobj; | |
13983 | fail: | |
13984 | return NULL; | |
13985 | } | |
13986 | ||
13987 | ||
c32bde28 | 13988 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13989 | PyObject *obj; |
13990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13991 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13992 | Py_INCREF(obj); | |
13993 | return Py_BuildValue((char *)""); | |
13994 | } | |
c32bde28 | 13995 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13996 | PyObject *resultobj; |
13997 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13998 | wxMouseEvent *result; | |
13999 | PyObject * obj0 = 0 ; | |
14000 | char *kwnames[] = { | |
14001 | (char *) "mouseType", NULL | |
14002 | }; | |
14003 | ||
14004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
14005 | if (obj0) { | |
c32bde28 | 14006 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
14007 | if (PyErr_Occurred()) SWIG_fail; |
14008 | } | |
14009 | { | |
14010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14011 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
14012 | ||
14013 | wxPyEndAllowThreads(__tstate); | |
14014 | if (PyErr_Occurred()) SWIG_fail; | |
14015 | } | |
14016 | { | |
412d302d | 14017 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
14018 | } |
14019 | return resultobj; | |
14020 | fail: | |
14021 | return NULL; | |
14022 | } | |
14023 | ||
14024 | ||
c32bde28 | 14025 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14026 | PyObject *resultobj; |
14027 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14028 | bool result; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "self", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
14035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14037 | { | |
14038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14039 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
14040 | ||
14041 | wxPyEndAllowThreads(__tstate); | |
14042 | if (PyErr_Occurred()) SWIG_fail; | |
14043 | } | |
14044 | { | |
14045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14046 | } | |
14047 | return resultobj; | |
14048 | fail: | |
14049 | return NULL; | |
14050 | } | |
14051 | ||
14052 | ||
c32bde28 | 14053 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14054 | PyObject *resultobj; |
14055 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14056 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14057 | bool result; | |
14058 | PyObject * obj0 = 0 ; | |
14059 | PyObject * obj1 = 0 ; | |
14060 | char *kwnames[] = { | |
14061 | (char *) "self",(char *) "but", NULL | |
14062 | }; | |
14063 | ||
14064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
14065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14067 | if (obj1) { | |
c32bde28 | 14068 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14069 | if (PyErr_Occurred()) SWIG_fail; |
14070 | } | |
14071 | { | |
14072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14073 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
14074 | ||
14075 | wxPyEndAllowThreads(__tstate); | |
14076 | if (PyErr_Occurred()) SWIG_fail; | |
14077 | } | |
14078 | { | |
14079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14080 | } | |
14081 | return resultobj; | |
14082 | fail: | |
14083 | return NULL; | |
14084 | } | |
14085 | ||
14086 | ||
c32bde28 | 14087 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14088 | PyObject *resultobj; |
14089 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14090 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14091 | bool result; | |
14092 | PyObject * obj0 = 0 ; | |
14093 | PyObject * obj1 = 0 ; | |
14094 | char *kwnames[] = { | |
14095 | (char *) "self",(char *) "but", NULL | |
14096 | }; | |
14097 | ||
14098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
14099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14101 | if (obj1) { | |
c32bde28 | 14102 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14103 | if (PyErr_Occurred()) SWIG_fail; |
14104 | } | |
14105 | { | |
14106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14107 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
14108 | ||
14109 | wxPyEndAllowThreads(__tstate); | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | } | |
14112 | { | |
14113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14114 | } | |
14115 | return resultobj; | |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
c32bde28 | 14121 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14122 | PyObject *resultobj; |
14123 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14124 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14125 | bool result; | |
14126 | PyObject * obj0 = 0 ; | |
14127 | PyObject * obj1 = 0 ; | |
14128 | char *kwnames[] = { | |
14129 | (char *) "self",(char *) "but", NULL | |
14130 | }; | |
14131 | ||
14132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
14133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14135 | if (obj1) { | |
c32bde28 | 14136 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14137 | if (PyErr_Occurred()) SWIG_fail; |
14138 | } | |
14139 | { | |
14140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14141 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14142 | ||
14143 | wxPyEndAllowThreads(__tstate); | |
14144 | if (PyErr_Occurred()) SWIG_fail; | |
14145 | } | |
14146 | { | |
14147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14148 | } | |
14149 | return resultobj; | |
14150 | fail: | |
14151 | return NULL; | |
14152 | } | |
14153 | ||
14154 | ||
c32bde28 | 14155 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14156 | PyObject *resultobj; |
14157 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14158 | int arg2 ; | |
14159 | bool result; | |
14160 | PyObject * obj0 = 0 ; | |
14161 | PyObject * obj1 = 0 ; | |
14162 | char *kwnames[] = { | |
14163 | (char *) "self",(char *) "but", NULL | |
14164 | }; | |
14165 | ||
14166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
14167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14169 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14170 | if (PyErr_Occurred()) SWIG_fail; |
14171 | { | |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14173 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14174 | ||
14175 | wxPyEndAllowThreads(__tstate); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
14178 | { | |
14179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14180 | } | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
c32bde28 | 14187 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14188 | PyObject *resultobj; |
14189 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14190 | int arg2 ; | |
14191 | bool result; | |
14192 | PyObject * obj0 = 0 ; | |
14193 | PyObject * obj1 = 0 ; | |
14194 | char *kwnames[] = { | |
14195 | (char *) "self",(char *) "but", NULL | |
14196 | }; | |
14197 | ||
14198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
14199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14201 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14202 | if (PyErr_Occurred()) SWIG_fail; |
14203 | { | |
14204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14205 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14206 | ||
14207 | wxPyEndAllowThreads(__tstate); | |
14208 | if (PyErr_Occurred()) SWIG_fail; | |
14209 | } | |
14210 | { | |
14211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14212 | } | |
14213 | return resultobj; | |
14214 | fail: | |
14215 | return NULL; | |
14216 | } | |
14217 | ||
14218 | ||
c32bde28 | 14219 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14220 | PyObject *resultobj; |
14221 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14222 | int result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14231 | { | |
14232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14233 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14234 | ||
14235 | wxPyEndAllowThreads(__tstate); | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
c32bde28 | 14238 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14239 | return resultobj; |
14240 | fail: | |
14241 | return NULL; | |
14242 | } | |
14243 | ||
14244 | ||
c32bde28 | 14245 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14246 | PyObject *resultobj; |
14247 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14248 | bool result; | |
14249 | PyObject * obj0 = 0 ; | |
14250 | char *kwnames[] = { | |
14251 | (char *) "self", NULL | |
14252 | }; | |
14253 | ||
14254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14257 | { | |
14258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14259 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14260 | ||
14261 | wxPyEndAllowThreads(__tstate); | |
14262 | if (PyErr_Occurred()) SWIG_fail; | |
14263 | } | |
14264 | { | |
14265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14266 | } | |
14267 | return resultobj; | |
14268 | fail: | |
14269 | return NULL; | |
14270 | } | |
14271 | ||
14272 | ||
c32bde28 | 14273 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14274 | PyObject *resultobj; |
14275 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14276 | bool result; | |
14277 | PyObject * obj0 = 0 ; | |
14278 | char *kwnames[] = { | |
14279 | (char *) "self", NULL | |
14280 | }; | |
14281 | ||
14282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14285 | { | |
14286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14287 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14288 | ||
14289 | wxPyEndAllowThreads(__tstate); | |
14290 | if (PyErr_Occurred()) SWIG_fail; | |
14291 | } | |
14292 | { | |
14293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14294 | } | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
c32bde28 | 14301 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14302 | PyObject *resultobj; |
14303 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14304 | bool result; | |
14305 | PyObject * obj0 = 0 ; | |
14306 | char *kwnames[] = { | |
14307 | (char *) "self", NULL | |
14308 | }; | |
14309 | ||
14310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
14311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14313 | { | |
14314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14315 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14316 | ||
14317 | wxPyEndAllowThreads(__tstate); | |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
14319 | } | |
14320 | { | |
14321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14322 | } | |
14323 | return resultobj; | |
14324 | fail: | |
14325 | return NULL; | |
14326 | } | |
14327 | ||
14328 | ||
c32bde28 | 14329 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14330 | PyObject *resultobj; |
14331 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14332 | bool result; | |
14333 | PyObject * obj0 = 0 ; | |
14334 | char *kwnames[] = { | |
14335 | (char *) "self", NULL | |
14336 | }; | |
14337 | ||
14338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14341 | { | |
14342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14343 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14344 | ||
14345 | wxPyEndAllowThreads(__tstate); | |
14346 | if (PyErr_Occurred()) SWIG_fail; | |
14347 | } | |
14348 | { | |
14349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14350 | } | |
14351 | return resultobj; | |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
c32bde28 | 14357 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14358 | PyObject *resultobj; |
14359 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14360 | bool result; | |
14361 | PyObject * obj0 = 0 ; | |
14362 | char *kwnames[] = { | |
14363 | (char *) "self", NULL | |
14364 | }; | |
14365 | ||
14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14369 | { | |
14370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14371 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14372 | ||
14373 | wxPyEndAllowThreads(__tstate); | |
14374 | if (PyErr_Occurred()) SWIG_fail; | |
14375 | } | |
14376 | { | |
14377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14378 | } | |
14379 | return resultobj; | |
14380 | fail: | |
14381 | return NULL; | |
14382 | } | |
14383 | ||
14384 | ||
c32bde28 | 14385 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14386 | PyObject *resultobj; |
14387 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14388 | bool result; | |
14389 | PyObject * obj0 = 0 ; | |
14390 | char *kwnames[] = { | |
14391 | (char *) "self", NULL | |
14392 | }; | |
14393 | ||
14394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14397 | { | |
14398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14399 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14400 | ||
14401 | wxPyEndAllowThreads(__tstate); | |
14402 | if (PyErr_Occurred()) SWIG_fail; | |
14403 | } | |
14404 | { | |
14405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14406 | } | |
14407 | return resultobj; | |
14408 | fail: | |
14409 | return NULL; | |
14410 | } | |
14411 | ||
14412 | ||
c32bde28 | 14413 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14414 | PyObject *resultobj; |
14415 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14416 | bool result; | |
14417 | PyObject * obj0 = 0 ; | |
14418 | char *kwnames[] = { | |
14419 | (char *) "self", NULL | |
14420 | }; | |
14421 | ||
14422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
14423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14425 | { | |
14426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14427 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14428 | ||
14429 | wxPyEndAllowThreads(__tstate); | |
14430 | if (PyErr_Occurred()) SWIG_fail; | |
14431 | } | |
14432 | { | |
14433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14434 | } | |
14435 | return resultobj; | |
14436 | fail: | |
14437 | return NULL; | |
14438 | } | |
14439 | ||
14440 | ||
c32bde28 | 14441 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14442 | PyObject *resultobj; |
14443 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14444 | bool result; | |
14445 | PyObject * obj0 = 0 ; | |
14446 | char *kwnames[] = { | |
14447 | (char *) "self", NULL | |
14448 | }; | |
14449 | ||
14450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14453 | { | |
14454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14455 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14456 | ||
14457 | wxPyEndAllowThreads(__tstate); | |
14458 | if (PyErr_Occurred()) SWIG_fail; | |
14459 | } | |
14460 | { | |
14461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14462 | } | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
c32bde28 | 14469 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14470 | PyObject *resultobj; |
14471 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14472 | bool result; | |
14473 | PyObject * obj0 = 0 ; | |
14474 | char *kwnames[] = { | |
14475 | (char *) "self", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14481 | { | |
14482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14483 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14484 | ||
14485 | wxPyEndAllowThreads(__tstate); | |
14486 | if (PyErr_Occurred()) SWIG_fail; | |
14487 | } | |
14488 | { | |
14489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14490 | } | |
14491 | return resultobj; | |
14492 | fail: | |
14493 | return NULL; | |
14494 | } | |
14495 | ||
14496 | ||
c32bde28 | 14497 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14498 | PyObject *resultobj; |
14499 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14500 | bool result; | |
14501 | PyObject * obj0 = 0 ; | |
14502 | char *kwnames[] = { | |
14503 | (char *) "self", NULL | |
14504 | }; | |
14505 | ||
14506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14509 | { | |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14511 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14512 | ||
14513 | wxPyEndAllowThreads(__tstate); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | } | |
14516 | { | |
14517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14518 | } | |
14519 | return resultobj; | |
14520 | fail: | |
14521 | return NULL; | |
14522 | } | |
14523 | ||
14524 | ||
c32bde28 | 14525 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14526 | PyObject *resultobj; |
14527 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14528 | bool result; | |
14529 | PyObject * obj0 = 0 ; | |
14530 | char *kwnames[] = { | |
14531 | (char *) "self", NULL | |
14532 | }; | |
14533 | ||
14534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14537 | { | |
14538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14539 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14540 | ||
14541 | wxPyEndAllowThreads(__tstate); | |
14542 | if (PyErr_Occurred()) SWIG_fail; | |
14543 | } | |
14544 | { | |
14545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14546 | } | |
14547 | return resultobj; | |
14548 | fail: | |
14549 | return NULL; | |
14550 | } | |
14551 | ||
14552 | ||
c32bde28 | 14553 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14554 | PyObject *resultobj; |
14555 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14556 | bool result; | |
14557 | PyObject * obj0 = 0 ; | |
14558 | char *kwnames[] = { | |
14559 | (char *) "self", NULL | |
14560 | }; | |
14561 | ||
14562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14565 | { | |
14566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14567 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14568 | ||
14569 | wxPyEndAllowThreads(__tstate); | |
14570 | if (PyErr_Occurred()) SWIG_fail; | |
14571 | } | |
14572 | { | |
14573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14574 | } | |
14575 | return resultobj; | |
14576 | fail: | |
14577 | return NULL; | |
14578 | } | |
14579 | ||
14580 | ||
c32bde28 | 14581 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14582 | PyObject *resultobj; |
14583 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14584 | bool result; | |
14585 | PyObject * obj0 = 0 ; | |
14586 | char *kwnames[] = { | |
14587 | (char *) "self", NULL | |
14588 | }; | |
14589 | ||
14590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14593 | { | |
14594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14595 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14596 | ||
14597 | wxPyEndAllowThreads(__tstate); | |
14598 | if (PyErr_Occurred()) SWIG_fail; | |
14599 | } | |
14600 | { | |
14601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14602 | } | |
14603 | return resultobj; | |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
c32bde28 | 14609 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14610 | PyObject *resultobj; |
14611 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14612 | bool result; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | char *kwnames[] = { | |
14615 | (char *) "self", NULL | |
14616 | }; | |
14617 | ||
14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14621 | { | |
14622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14623 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14624 | ||
14625 | wxPyEndAllowThreads(__tstate); | |
14626 | if (PyErr_Occurred()) SWIG_fail; | |
14627 | } | |
14628 | { | |
14629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14630 | } | |
14631 | return resultobj; | |
14632 | fail: | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
c32bde28 | 14637 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14638 | PyObject *resultobj; |
14639 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14640 | bool result; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | char *kwnames[] = { | |
14643 | (char *) "self", NULL | |
14644 | }; | |
14645 | ||
14646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14649 | { | |
14650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14651 | result = (bool)(arg1)->LeftIsDown(); | |
14652 | ||
14653 | wxPyEndAllowThreads(__tstate); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
14656 | { | |
14657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14658 | } | |
14659 | return resultobj; | |
14660 | fail: | |
14661 | return NULL; | |
14662 | } | |
14663 | ||
14664 | ||
c32bde28 | 14665 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14666 | PyObject *resultobj; |
14667 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14668 | bool result; | |
14669 | PyObject * obj0 = 0 ; | |
14670 | char *kwnames[] = { | |
14671 | (char *) "self", NULL | |
14672 | }; | |
14673 | ||
14674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14677 | { | |
14678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14679 | result = (bool)(arg1)->MiddleIsDown(); | |
14680 | ||
14681 | wxPyEndAllowThreads(__tstate); | |
14682 | if (PyErr_Occurred()) SWIG_fail; | |
14683 | } | |
14684 | { | |
14685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14686 | } | |
14687 | return resultobj; | |
14688 | fail: | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
c32bde28 | 14693 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14694 | PyObject *resultobj; |
14695 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14696 | bool result; | |
14697 | PyObject * obj0 = 0 ; | |
14698 | char *kwnames[] = { | |
14699 | (char *) "self", NULL | |
14700 | }; | |
14701 | ||
14702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14705 | { | |
14706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14707 | result = (bool)(arg1)->RightIsDown(); | |
14708 | ||
14709 | wxPyEndAllowThreads(__tstate); | |
14710 | if (PyErr_Occurred()) SWIG_fail; | |
14711 | } | |
14712 | { | |
14713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14714 | } | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
c32bde28 | 14721 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14722 | PyObject *resultobj; |
14723 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14724 | bool result; | |
14725 | PyObject * obj0 = 0 ; | |
14726 | char *kwnames[] = { | |
14727 | (char *) "self", NULL | |
14728 | }; | |
14729 | ||
14730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14733 | { | |
14734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14735 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14736 | ||
14737 | wxPyEndAllowThreads(__tstate); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | } | |
14740 | { | |
14741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14742 | } | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
c32bde28 | 14749 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14750 | PyObject *resultobj; |
14751 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14752 | bool result; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | char *kwnames[] = { | |
14755 | (char *) "self", NULL | |
14756 | }; | |
14757 | ||
14758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14761 | { | |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
14768 | { | |
14769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14770 | } | |
14771 | return resultobj; | |
14772 | fail: | |
14773 | return NULL; | |
14774 | } | |
14775 | ||
14776 | ||
c32bde28 | 14777 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14778 | PyObject *resultobj; |
14779 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14780 | bool result; | |
14781 | PyObject * obj0 = 0 ; | |
14782 | char *kwnames[] = { | |
14783 | (char *) "self", NULL | |
14784 | }; | |
14785 | ||
14786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14789 | { | |
14790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14791 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14792 | ||
14793 | wxPyEndAllowThreads(__tstate); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | { | |
14797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14798 | } | |
14799 | return resultobj; | |
14800 | fail: | |
14801 | return NULL; | |
14802 | } | |
14803 | ||
14804 | ||
c32bde28 | 14805 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14806 | PyObject *resultobj; |
14807 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14808 | bool result; | |
14809 | PyObject * obj0 = 0 ; | |
14810 | char *kwnames[] = { | |
14811 | (char *) "self", NULL | |
14812 | }; | |
14813 | ||
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14817 | { | |
14818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14819 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14820 | ||
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
14824 | { | |
14825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14826 | } | |
14827 | return resultobj; | |
14828 | fail: | |
14829 | return NULL; | |
14830 | } | |
14831 | ||
14832 | ||
c32bde28 | 14833 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14834 | PyObject *resultobj; |
14835 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14836 | wxPoint result; | |
14837 | PyObject * obj0 = 0 ; | |
14838 | char *kwnames[] = { | |
14839 | (char *) "self", NULL | |
14840 | }; | |
14841 | ||
14842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14845 | { | |
14846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14847 | result = (arg1)->GetPosition(); | |
14848 | ||
14849 | wxPyEndAllowThreads(__tstate); | |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | } | |
14852 | { | |
14853 | wxPoint * resultptr; | |
14854 | resultptr = new wxPoint((wxPoint &) result); | |
14855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14856 | } | |
14857 | return resultobj; | |
14858 | fail: | |
14859 | return NULL; | |
14860 | } | |
14861 | ||
14862 | ||
c32bde28 | 14863 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14864 | PyObject *resultobj; |
14865 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14866 | long *arg2 = (long *) 0 ; | |
14867 | long *arg3 = (long *) 0 ; | |
14868 | long temp2 ; | |
c32bde28 | 14869 | int res2 = 0 ; |
d55e5bfc | 14870 | long temp3 ; |
c32bde28 | 14871 | int res3 = 0 ; |
d55e5bfc RD |
14872 | PyObject * obj0 = 0 ; |
14873 | char *kwnames[] = { | |
14874 | (char *) "self", NULL | |
14875 | }; | |
14876 | ||
c32bde28 RD |
14877 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14878 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
14880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14882 | { | |
14883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14884 | (arg1)->GetPosition(arg2,arg3); | |
14885 | ||
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14890 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14891 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
14892 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14893 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
14894 | return resultobj; |
14895 | fail: | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
c32bde28 | 14900 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14901 | PyObject *resultobj; |
14902 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14903 | wxDC *arg2 = 0 ; | |
14904 | wxPoint result; | |
14905 | PyObject * obj0 = 0 ; | |
14906 | PyObject * obj1 = 0 ; | |
14907 | char *kwnames[] = { | |
14908 | (char *) "self",(char *) "dc", NULL | |
14909 | }; | |
14910 | ||
14911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14915 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14916 | SWIG_fail; | |
14917 | if (arg2 == NULL) { | |
14918 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14919 | SWIG_fail; | |
14920 | } | |
14921 | { | |
14922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14923 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14924 | ||
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | { | |
14929 | wxPoint * resultptr; | |
14930 | resultptr = new wxPoint((wxPoint &) result); | |
14931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14932 | } | |
14933 | return resultobj; | |
14934 | fail: | |
14935 | return NULL; | |
14936 | } | |
14937 | ||
14938 | ||
c32bde28 | 14939 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14940 | PyObject *resultobj; |
14941 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14942 | int result; | |
14943 | PyObject * obj0 = 0 ; | |
14944 | char *kwnames[] = { | |
14945 | (char *) "self", NULL | |
14946 | }; | |
14947 | ||
14948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14951 | { | |
14952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14953 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14954 | ||
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
c32bde28 | 14958 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14959 | return resultobj; |
14960 | fail: | |
14961 | return NULL; | |
14962 | } | |
14963 | ||
14964 | ||
c32bde28 | 14965 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14966 | PyObject *resultobj; |
14967 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14968 | int result; | |
14969 | PyObject * obj0 = 0 ; | |
14970 | char *kwnames[] = { | |
14971 | (char *) "self", NULL | |
14972 | }; | |
14973 | ||
14974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14977 | { | |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
c32bde28 | 14984 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14985 | return resultobj; |
14986 | fail: | |
14987 | return NULL; | |
14988 | } | |
14989 | ||
14990 | ||
c32bde28 | 14991 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14992 | PyObject *resultobj; |
14993 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14994 | int result; | |
14995 | PyObject * obj0 = 0 ; | |
14996 | char *kwnames[] = { | |
14997 | (char *) "self", NULL | |
14998 | }; | |
14999 | ||
15000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15003 | { | |
15004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15005 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
15006 | ||
15007 | wxPyEndAllowThreads(__tstate); | |
15008 | if (PyErr_Occurred()) SWIG_fail; | |
15009 | } | |
c32bde28 | 15010 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15011 | return resultobj; |
15012 | fail: | |
15013 | return NULL; | |
15014 | } | |
15015 | ||
15016 | ||
c32bde28 | 15017 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15018 | PyObject *resultobj; |
15019 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15020 | int result; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "self", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15029 | { | |
15030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15031 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
15032 | ||
15033 | wxPyEndAllowThreads(__tstate); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
c32bde28 | 15036 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15037 | return resultobj; |
15038 | fail: | |
15039 | return NULL; | |
15040 | } | |
15041 | ||
15042 | ||
c32bde28 | 15043 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15044 | PyObject *resultobj; |
15045 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15046 | int result; | |
15047 | PyObject * obj0 = 0 ; | |
15048 | char *kwnames[] = { | |
15049 | (char *) "self", NULL | |
15050 | }; | |
15051 | ||
15052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15055 | { | |
15056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15057 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
15058 | ||
15059 | wxPyEndAllowThreads(__tstate); | |
15060 | if (PyErr_Occurred()) SWIG_fail; | |
15061 | } | |
c32bde28 | 15062 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15063 | return resultobj; |
15064 | fail: | |
15065 | return NULL; | |
15066 | } | |
15067 | ||
15068 | ||
c32bde28 | 15069 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15070 | PyObject *resultobj; |
15071 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15072 | bool result; | |
15073 | PyObject * obj0 = 0 ; | |
15074 | char *kwnames[] = { | |
15075 | (char *) "self", NULL | |
15076 | }; | |
15077 | ||
15078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15081 | { | |
15082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15083 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
15084 | ||
15085 | wxPyEndAllowThreads(__tstate); | |
15086 | if (PyErr_Occurred()) SWIG_fail; | |
15087 | } | |
15088 | { | |
15089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15090 | } | |
15091 | return resultobj; | |
15092 | fail: | |
15093 | return NULL; | |
15094 | } | |
15095 | ||
15096 | ||
c32bde28 | 15097 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15098 | PyObject *resultobj; |
15099 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15100 | int arg2 ; | |
15101 | PyObject * obj0 = 0 ; | |
15102 | PyObject * obj1 = 0 ; | |
15103 | char *kwnames[] = { | |
15104 | (char *) "self",(char *) "m_x", NULL | |
15105 | }; | |
15106 | ||
15107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15110 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15111 | if (PyErr_Occurred()) SWIG_fail; |
15112 | if (arg1) (arg1)->m_x = arg2; | |
15113 | ||
15114 | Py_INCREF(Py_None); resultobj = Py_None; | |
15115 | return resultobj; | |
15116 | fail: | |
15117 | return NULL; | |
15118 | } | |
15119 | ||
15120 | ||
c32bde28 | 15121 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15122 | PyObject *resultobj; |
15123 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15124 | int result; | |
15125 | PyObject * obj0 = 0 ; | |
15126 | char *kwnames[] = { | |
15127 | (char *) "self", NULL | |
15128 | }; | |
15129 | ||
15130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15133 | result = (int) ((arg1)->m_x); | |
15134 | ||
c32bde28 | 15135 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15136 | return resultobj; |
15137 | fail: | |
15138 | return NULL; | |
15139 | } | |
15140 | ||
15141 | ||
c32bde28 | 15142 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15143 | PyObject *resultobj; |
15144 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15145 | int arg2 ; | |
15146 | PyObject * obj0 = 0 ; | |
15147 | PyObject * obj1 = 0 ; | |
15148 | char *kwnames[] = { | |
15149 | (char *) "self",(char *) "m_y", NULL | |
15150 | }; | |
15151 | ||
15152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15155 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15156 | if (PyErr_Occurred()) SWIG_fail; |
15157 | if (arg1) (arg1)->m_y = arg2; | |
15158 | ||
15159 | Py_INCREF(Py_None); resultobj = Py_None; | |
15160 | return resultobj; | |
15161 | fail: | |
15162 | return NULL; | |
15163 | } | |
15164 | ||
15165 | ||
c32bde28 | 15166 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15167 | PyObject *resultobj; |
15168 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15169 | int result; | |
15170 | PyObject * obj0 = 0 ; | |
15171 | char *kwnames[] = { | |
15172 | (char *) "self", NULL | |
15173 | }; | |
15174 | ||
15175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15178 | result = (int) ((arg1)->m_y); | |
15179 | ||
c32bde28 | 15180 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15181 | return resultobj; |
15182 | fail: | |
15183 | return NULL; | |
15184 | } | |
15185 | ||
15186 | ||
c32bde28 | 15187 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15188 | PyObject *resultobj; |
15189 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15190 | bool arg2 ; | |
15191 | PyObject * obj0 = 0 ; | |
15192 | PyObject * obj1 = 0 ; | |
15193 | char *kwnames[] = { | |
15194 | (char *) "self",(char *) "m_leftDown", NULL | |
15195 | }; | |
15196 | ||
15197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15200 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15201 | if (PyErr_Occurred()) SWIG_fail; |
15202 | if (arg1) (arg1)->m_leftDown = arg2; | |
15203 | ||
15204 | Py_INCREF(Py_None); resultobj = Py_None; | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
c32bde28 | 15211 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15212 | PyObject *resultobj; |
15213 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15214 | bool result; | |
15215 | PyObject * obj0 = 0 ; | |
15216 | char *kwnames[] = { | |
15217 | (char *) "self", NULL | |
15218 | }; | |
15219 | ||
15220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15223 | result = (bool) ((arg1)->m_leftDown); | |
15224 | ||
15225 | { | |
15226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15227 | } | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | return NULL; | |
15231 | } | |
15232 | ||
15233 | ||
c32bde28 | 15234 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15235 | PyObject *resultobj; |
15236 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15237 | bool arg2 ; | |
15238 | PyObject * obj0 = 0 ; | |
15239 | PyObject * obj1 = 0 ; | |
15240 | char *kwnames[] = { | |
15241 | (char *) "self",(char *) "m_middleDown", NULL | |
15242 | }; | |
15243 | ||
15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15247 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15248 | if (PyErr_Occurred()) SWIG_fail; |
15249 | if (arg1) (arg1)->m_middleDown = arg2; | |
15250 | ||
15251 | Py_INCREF(Py_None); resultobj = Py_None; | |
15252 | return resultobj; | |
15253 | fail: | |
15254 | return NULL; | |
15255 | } | |
15256 | ||
15257 | ||
c32bde28 | 15258 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15259 | PyObject *resultobj; |
15260 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15261 | bool result; | |
15262 | PyObject * obj0 = 0 ; | |
15263 | char *kwnames[] = { | |
15264 | (char *) "self", NULL | |
15265 | }; | |
15266 | ||
15267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15270 | result = (bool) ((arg1)->m_middleDown); | |
15271 | ||
15272 | { | |
15273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15274 | } | |
15275 | return resultobj; | |
15276 | fail: | |
15277 | return NULL; | |
15278 | } | |
15279 | ||
15280 | ||
c32bde28 | 15281 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15282 | PyObject *resultobj; |
15283 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15284 | bool arg2 ; | |
15285 | PyObject * obj0 = 0 ; | |
15286 | PyObject * obj1 = 0 ; | |
15287 | char *kwnames[] = { | |
15288 | (char *) "self",(char *) "m_rightDown", NULL | |
15289 | }; | |
15290 | ||
15291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15294 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15295 | if (PyErr_Occurred()) SWIG_fail; |
15296 | if (arg1) (arg1)->m_rightDown = arg2; | |
15297 | ||
15298 | Py_INCREF(Py_None); resultobj = Py_None; | |
15299 | return resultobj; | |
15300 | fail: | |
15301 | return NULL; | |
15302 | } | |
15303 | ||
15304 | ||
c32bde28 | 15305 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15306 | PyObject *resultobj; |
15307 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15308 | bool result; | |
15309 | PyObject * obj0 = 0 ; | |
15310 | char *kwnames[] = { | |
15311 | (char *) "self", NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15317 | result = (bool) ((arg1)->m_rightDown); | |
15318 | ||
15319 | { | |
15320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15321 | } | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | return NULL; | |
15325 | } | |
15326 | ||
15327 | ||
c32bde28 | 15328 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15329 | PyObject *resultobj; |
15330 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15331 | bool arg2 ; | |
15332 | PyObject * obj0 = 0 ; | |
15333 | PyObject * obj1 = 0 ; | |
15334 | char *kwnames[] = { | |
15335 | (char *) "self",(char *) "m_controlDown", NULL | |
15336 | }; | |
15337 | ||
15338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15341 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15342 | if (PyErr_Occurred()) SWIG_fail; |
15343 | if (arg1) (arg1)->m_controlDown = arg2; | |
15344 | ||
15345 | Py_INCREF(Py_None); resultobj = Py_None; | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
c32bde28 | 15352 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15353 | PyObject *resultobj; |
15354 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15355 | bool result; | |
15356 | PyObject * obj0 = 0 ; | |
15357 | char *kwnames[] = { | |
15358 | (char *) "self", NULL | |
15359 | }; | |
15360 | ||
15361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15364 | result = (bool) ((arg1)->m_controlDown); | |
15365 | ||
15366 | { | |
15367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15368 | } | |
15369 | return resultobj; | |
15370 | fail: | |
15371 | return NULL; | |
15372 | } | |
15373 | ||
15374 | ||
c32bde28 | 15375 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15376 | PyObject *resultobj; |
15377 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15378 | bool arg2 ; | |
15379 | PyObject * obj0 = 0 ; | |
15380 | PyObject * obj1 = 0 ; | |
15381 | char *kwnames[] = { | |
15382 | (char *) "self",(char *) "m_shiftDown", NULL | |
15383 | }; | |
15384 | ||
15385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15388 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15389 | if (PyErr_Occurred()) SWIG_fail; |
15390 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15391 | ||
15392 | Py_INCREF(Py_None); resultobj = Py_None; | |
15393 | return resultobj; | |
15394 | fail: | |
15395 | return NULL; | |
15396 | } | |
15397 | ||
15398 | ||
c32bde28 | 15399 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15400 | PyObject *resultobj; |
15401 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15402 | bool result; | |
15403 | PyObject * obj0 = 0 ; | |
15404 | char *kwnames[] = { | |
15405 | (char *) "self", NULL | |
15406 | }; | |
15407 | ||
15408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15411 | result = (bool) ((arg1)->m_shiftDown); | |
15412 | ||
15413 | { | |
15414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15415 | } | |
15416 | return resultobj; | |
15417 | fail: | |
15418 | return NULL; | |
15419 | } | |
15420 | ||
15421 | ||
c32bde28 | 15422 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15423 | PyObject *resultobj; |
15424 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15425 | bool arg2 ; | |
15426 | PyObject * obj0 = 0 ; | |
15427 | PyObject * obj1 = 0 ; | |
15428 | char *kwnames[] = { | |
15429 | (char *) "self",(char *) "m_altDown", NULL | |
15430 | }; | |
15431 | ||
15432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15435 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15436 | if (PyErr_Occurred()) SWIG_fail; |
15437 | if (arg1) (arg1)->m_altDown = arg2; | |
15438 | ||
15439 | Py_INCREF(Py_None); resultobj = Py_None; | |
15440 | return resultobj; | |
15441 | fail: | |
15442 | return NULL; | |
15443 | } | |
15444 | ||
15445 | ||
c32bde28 | 15446 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15447 | PyObject *resultobj; |
15448 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15449 | bool result; | |
15450 | PyObject * obj0 = 0 ; | |
15451 | char *kwnames[] = { | |
15452 | (char *) "self", NULL | |
15453 | }; | |
15454 | ||
15455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15458 | result = (bool) ((arg1)->m_altDown); | |
15459 | ||
15460 | { | |
15461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15462 | } | |
15463 | return resultobj; | |
15464 | fail: | |
15465 | return NULL; | |
15466 | } | |
15467 | ||
15468 | ||
c32bde28 | 15469 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15470 | PyObject *resultobj; |
15471 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15472 | bool arg2 ; | |
15473 | PyObject * obj0 = 0 ; | |
15474 | PyObject * obj1 = 0 ; | |
15475 | char *kwnames[] = { | |
15476 | (char *) "self",(char *) "m_metaDown", NULL | |
15477 | }; | |
15478 | ||
15479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15482 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15483 | if (PyErr_Occurred()) SWIG_fail; |
15484 | if (arg1) (arg1)->m_metaDown = arg2; | |
15485 | ||
15486 | Py_INCREF(Py_None); resultobj = Py_None; | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
c32bde28 | 15493 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15494 | PyObject *resultobj; |
15495 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15496 | bool result; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15505 | result = (bool) ((arg1)->m_metaDown); | |
15506 | ||
15507 | { | |
15508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15509 | } | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
c32bde28 | 15516 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15517 | PyObject *resultobj; |
15518 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15519 | int arg2 ; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | PyObject * obj1 = 0 ; | |
15522 | char *kwnames[] = { | |
15523 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15524 | }; | |
15525 | ||
15526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15529 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15530 | if (PyErr_Occurred()) SWIG_fail; |
15531 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15532 | ||
15533 | Py_INCREF(Py_None); resultobj = Py_None; | |
15534 | return resultobj; | |
15535 | fail: | |
15536 | return NULL; | |
15537 | } | |
15538 | ||
15539 | ||
c32bde28 | 15540 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15541 | PyObject *resultobj; |
15542 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15543 | int result; | |
15544 | PyObject * obj0 = 0 ; | |
15545 | char *kwnames[] = { | |
15546 | (char *) "self", NULL | |
15547 | }; | |
15548 | ||
15549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15552 | result = (int) ((arg1)->m_wheelRotation); | |
15553 | ||
c32bde28 | 15554 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15555 | return resultobj; |
15556 | fail: | |
15557 | return NULL; | |
15558 | } | |
15559 | ||
15560 | ||
c32bde28 | 15561 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15562 | PyObject *resultobj; |
15563 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15564 | int arg2 ; | |
15565 | PyObject * obj0 = 0 ; | |
15566 | PyObject * obj1 = 0 ; | |
15567 | char *kwnames[] = { | |
15568 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15569 | }; | |
15570 | ||
15571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15574 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15575 | if (PyErr_Occurred()) SWIG_fail; |
15576 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15577 | ||
15578 | Py_INCREF(Py_None); resultobj = Py_None; | |
15579 | return resultobj; | |
15580 | fail: | |
15581 | return NULL; | |
15582 | } | |
15583 | ||
15584 | ||
c32bde28 | 15585 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15586 | PyObject *resultobj; |
15587 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15588 | int result; | |
15589 | PyObject * obj0 = 0 ; | |
15590 | char *kwnames[] = { | |
15591 | (char *) "self", NULL | |
15592 | }; | |
15593 | ||
15594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15597 | result = (int) ((arg1)->m_wheelDelta); | |
15598 | ||
c32bde28 | 15599 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15600 | return resultobj; |
15601 | fail: | |
15602 | return NULL; | |
15603 | } | |
15604 | ||
15605 | ||
c32bde28 | 15606 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15607 | PyObject *resultobj; |
15608 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15609 | int arg2 ; | |
15610 | PyObject * obj0 = 0 ; | |
15611 | PyObject * obj1 = 0 ; | |
15612 | char *kwnames[] = { | |
15613 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15619 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15620 | if (PyErr_Occurred()) SWIG_fail; |
15621 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15622 | ||
15623 | Py_INCREF(Py_None); resultobj = Py_None; | |
15624 | return resultobj; | |
15625 | fail: | |
15626 | return NULL; | |
15627 | } | |
15628 | ||
15629 | ||
c32bde28 | 15630 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15631 | PyObject *resultobj; |
15632 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15633 | int result; | |
15634 | PyObject * obj0 = 0 ; | |
15635 | char *kwnames[] = { | |
15636 | (char *) "self", NULL | |
15637 | }; | |
15638 | ||
15639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15642 | result = (int) ((arg1)->m_linesPerAction); | |
15643 | ||
c32bde28 | 15644 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15645 | return resultobj; |
15646 | fail: | |
15647 | return NULL; | |
15648 | } | |
15649 | ||
15650 | ||
c32bde28 | 15651 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15652 | PyObject *obj; |
15653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15654 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15655 | Py_INCREF(obj); | |
15656 | return Py_BuildValue((char *)""); | |
15657 | } | |
c32bde28 | 15658 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15659 | PyObject *resultobj; |
15660 | int arg1 = (int) 0 ; | |
15661 | int arg2 = (int) 0 ; | |
15662 | wxSetCursorEvent *result; | |
15663 | PyObject * obj0 = 0 ; | |
15664 | PyObject * obj1 = 0 ; | |
15665 | char *kwnames[] = { | |
15666 | (char *) "x",(char *) "y", NULL | |
15667 | }; | |
15668 | ||
15669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15670 | if (obj0) { | |
c32bde28 | 15671 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
15672 | if (PyErr_Occurred()) SWIG_fail; |
15673 | } | |
15674 | if (obj1) { | |
c32bde28 | 15675 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15676 | if (PyErr_Occurred()) SWIG_fail; |
15677 | } | |
15678 | { | |
15679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15680 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15681 | ||
15682 | wxPyEndAllowThreads(__tstate); | |
15683 | if (PyErr_Occurred()) SWIG_fail; | |
15684 | } | |
15685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15686 | return resultobj; | |
15687 | fail: | |
15688 | return NULL; | |
15689 | } | |
15690 | ||
15691 | ||
c32bde28 | 15692 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15693 | PyObject *resultobj; |
15694 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15695 | int result; | |
15696 | PyObject * obj0 = 0 ; | |
15697 | char *kwnames[] = { | |
15698 | (char *) "self", NULL | |
15699 | }; | |
15700 | ||
15701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15704 | { | |
15705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15706 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15707 | ||
15708 | wxPyEndAllowThreads(__tstate); | |
15709 | if (PyErr_Occurred()) SWIG_fail; | |
15710 | } | |
c32bde28 | 15711 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15712 | return resultobj; |
15713 | fail: | |
15714 | return NULL; | |
15715 | } | |
15716 | ||
15717 | ||
c32bde28 | 15718 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15719 | PyObject *resultobj; |
15720 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15721 | int result; | |
15722 | PyObject * obj0 = 0 ; | |
15723 | char *kwnames[] = { | |
15724 | (char *) "self", NULL | |
15725 | }; | |
15726 | ||
15727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15730 | { | |
15731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15732 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15733 | ||
15734 | wxPyEndAllowThreads(__tstate); | |
15735 | if (PyErr_Occurred()) SWIG_fail; | |
15736 | } | |
c32bde28 | 15737 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15738 | return resultobj; |
15739 | fail: | |
15740 | return NULL; | |
15741 | } | |
15742 | ||
15743 | ||
c32bde28 | 15744 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15745 | PyObject *resultobj; |
15746 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15747 | wxCursor *arg2 = 0 ; | |
15748 | PyObject * obj0 = 0 ; | |
15749 | PyObject * obj1 = 0 ; | |
15750 | char *kwnames[] = { | |
15751 | (char *) "self",(char *) "cursor", NULL | |
15752 | }; | |
15753 | ||
15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15759 | SWIG_fail; | |
15760 | if (arg2 == NULL) { | |
15761 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15762 | SWIG_fail; | |
15763 | } | |
15764 | { | |
15765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15766 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15767 | ||
15768 | wxPyEndAllowThreads(__tstate); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
15771 | Py_INCREF(Py_None); resultobj = Py_None; | |
15772 | return resultobj; | |
15773 | fail: | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
c32bde28 | 15778 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15779 | PyObject *resultobj; |
15780 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15781 | wxCursor *result; | |
15782 | PyObject * obj0 = 0 ; | |
15783 | char *kwnames[] = { | |
15784 | (char *) "self", NULL | |
15785 | }; | |
15786 | ||
15787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15790 | { | |
15791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15792 | { | |
15793 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15794 | result = (wxCursor *) &_result_ref; | |
15795 | } | |
15796 | ||
15797 | wxPyEndAllowThreads(__tstate); | |
15798 | if (PyErr_Occurred()) SWIG_fail; | |
15799 | } | |
15800 | { | |
15801 | wxCursor* resultptr = new wxCursor(*result); | |
15802 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15803 | } | |
15804 | return resultobj; | |
15805 | fail: | |
15806 | return NULL; | |
15807 | } | |
15808 | ||
15809 | ||
c32bde28 | 15810 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15811 | PyObject *resultobj; |
15812 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15813 | bool result; | |
15814 | PyObject * obj0 = 0 ; | |
15815 | char *kwnames[] = { | |
15816 | (char *) "self", NULL | |
15817 | }; | |
15818 | ||
15819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15825 | ||
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
15829 | { | |
15830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15831 | } | |
15832 | return resultobj; | |
15833 | fail: | |
15834 | return NULL; | |
15835 | } | |
15836 | ||
15837 | ||
c32bde28 | 15838 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15839 | PyObject *obj; |
15840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15841 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15842 | Py_INCREF(obj); | |
15843 | return Py_BuildValue((char *)""); | |
15844 | } | |
c32bde28 | 15845 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15846 | PyObject *resultobj; |
15847 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15848 | wxKeyEvent *result; | |
15849 | PyObject * obj0 = 0 ; | |
15850 | char *kwnames[] = { | |
15851 | (char *) "keyType", NULL | |
15852 | }; | |
15853 | ||
15854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15855 | if (obj0) { | |
c32bde28 | 15856 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15857 | if (PyErr_Occurred()) SWIG_fail; |
15858 | } | |
15859 | { | |
15860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15861 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15862 | ||
15863 | wxPyEndAllowThreads(__tstate); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | } | |
15866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15867 | return resultobj; | |
15868 | fail: | |
15869 | return NULL; | |
15870 | } | |
15871 | ||
15872 | ||
c32bde28 | 15873 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15874 | PyObject *resultobj; |
15875 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15876 | bool result; | |
15877 | PyObject * obj0 = 0 ; | |
15878 | char *kwnames[] = { | |
15879 | (char *) "self", NULL | |
15880 | }; | |
15881 | ||
15882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15885 | { | |
15886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15887 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15888 | ||
15889 | wxPyEndAllowThreads(__tstate); | |
15890 | if (PyErr_Occurred()) SWIG_fail; | |
15891 | } | |
15892 | { | |
15893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15894 | } | |
15895 | return resultobj; | |
15896 | fail: | |
15897 | return NULL; | |
15898 | } | |
15899 | ||
15900 | ||
c32bde28 | 15901 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15902 | PyObject *resultobj; |
15903 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15904 | bool result; | |
15905 | PyObject * obj0 = 0 ; | |
15906 | char *kwnames[] = { | |
15907 | (char *) "self", NULL | |
15908 | }; | |
15909 | ||
15910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15913 | { | |
15914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15915 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
15920 | { | |
15921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15922 | } | |
15923 | return resultobj; | |
15924 | fail: | |
15925 | return NULL; | |
15926 | } | |
15927 | ||
15928 | ||
c32bde28 | 15929 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15930 | PyObject *resultobj; |
15931 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15932 | bool result; | |
15933 | PyObject * obj0 = 0 ; | |
15934 | char *kwnames[] = { | |
15935 | (char *) "self", NULL | |
15936 | }; | |
15937 | ||
15938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15941 | { | |
15942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15943 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15944 | ||
15945 | wxPyEndAllowThreads(__tstate); | |
15946 | if (PyErr_Occurred()) SWIG_fail; | |
15947 | } | |
15948 | { | |
15949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15950 | } | |
15951 | return resultobj; | |
15952 | fail: | |
15953 | return NULL; | |
15954 | } | |
15955 | ||
15956 | ||
c32bde28 | 15957 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15958 | PyObject *resultobj; |
15959 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15960 | bool result; | |
15961 | PyObject * obj0 = 0 ; | |
15962 | char *kwnames[] = { | |
15963 | (char *) "self", NULL | |
15964 | }; | |
15965 | ||
15966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15969 | { | |
15970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15971 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15972 | ||
15973 | wxPyEndAllowThreads(__tstate); | |
15974 | if (PyErr_Occurred()) SWIG_fail; | |
15975 | } | |
15976 | { | |
15977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15978 | } | |
15979 | return resultobj; | |
15980 | fail: | |
15981 | return NULL; | |
15982 | } | |
15983 | ||
15984 | ||
c32bde28 | 15985 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
15986 | PyObject *resultobj; |
15987 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15988 | bool result; | |
15989 | PyObject * obj0 = 0 ; | |
15990 | char *kwnames[] = { | |
15991 | (char *) "self", NULL | |
15992 | }; | |
15993 | ||
15994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
15995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15997 | { | |
15998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15999 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
16000 | ||
16001 | wxPyEndAllowThreads(__tstate); | |
16002 | if (PyErr_Occurred()) SWIG_fail; | |
16003 | } | |
16004 | { | |
16005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16006 | } | |
16007 | return resultobj; | |
16008 | fail: | |
16009 | return NULL; | |
16010 | } | |
16011 | ||
16012 | ||
c32bde28 | 16013 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16014 | PyObject *resultobj; |
16015 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16016 | bool result; | |
16017 | PyObject * obj0 = 0 ; | |
16018 | char *kwnames[] = { | |
16019 | (char *) "self", NULL | |
16020 | }; | |
16021 | ||
16022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
16023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16025 | { | |
16026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16027 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
16028 | ||
16029 | wxPyEndAllowThreads(__tstate); | |
16030 | if (PyErr_Occurred()) SWIG_fail; | |
16031 | } | |
16032 | { | |
16033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16034 | } | |
16035 | return resultobj; | |
16036 | fail: | |
16037 | return NULL; | |
16038 | } | |
16039 | ||
16040 | ||
c32bde28 | 16041 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16042 | PyObject *resultobj; |
16043 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16044 | int result; | |
16045 | PyObject * obj0 = 0 ; | |
16046 | char *kwnames[] = { | |
16047 | (char *) "self", NULL | |
16048 | }; | |
16049 | ||
16050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
16051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16053 | { | |
16054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16055 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
16056 | ||
16057 | wxPyEndAllowThreads(__tstate); | |
16058 | if (PyErr_Occurred()) SWIG_fail; | |
16059 | } | |
c32bde28 | 16060 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16061 | return resultobj; |
16062 | fail: | |
16063 | return NULL; | |
16064 | } | |
16065 | ||
16066 | ||
c32bde28 | 16067 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16068 | PyObject *resultobj; |
16069 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16070 | int result; | |
16071 | PyObject * obj0 = 0 ; | |
16072 | char *kwnames[] = { | |
16073 | (char *) "self", NULL | |
16074 | }; | |
16075 | ||
19272049 | 16076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
16077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16079 | { | |
16080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 16081 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
16082 | |
16083 | wxPyEndAllowThreads(__tstate); | |
16084 | if (PyErr_Occurred()) SWIG_fail; | |
16085 | } | |
c32bde28 | 16086 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16087 | return resultobj; |
16088 | fail: | |
16089 | return NULL; | |
16090 | } | |
16091 | ||
16092 | ||
c32bde28 | 16093 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16094 | PyObject *resultobj; |
16095 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16096 | unsigned int result; | |
16097 | PyObject * obj0 = 0 ; | |
16098 | char *kwnames[] = { | |
16099 | (char *) "self", NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
16103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16105 | { | |
16106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16107 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
16108 | ||
16109 | wxPyEndAllowThreads(__tstate); | |
16110 | if (PyErr_Occurred()) SWIG_fail; | |
16111 | } | |
c32bde28 | 16112 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16113 | return resultobj; |
16114 | fail: | |
16115 | return NULL; | |
16116 | } | |
16117 | ||
16118 | ||
c32bde28 | 16119 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16120 | PyObject *resultobj; |
16121 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16122 | unsigned int result; | |
16123 | PyObject * obj0 = 0 ; | |
16124 | char *kwnames[] = { | |
16125 | (char *) "self", NULL | |
16126 | }; | |
16127 | ||
16128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
16129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16131 | { | |
16132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16133 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
16134 | ||
16135 | wxPyEndAllowThreads(__tstate); | |
16136 | if (PyErr_Occurred()) SWIG_fail; | |
16137 | } | |
c32bde28 | 16138 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16139 | return resultobj; |
16140 | fail: | |
16141 | return NULL; | |
16142 | } | |
16143 | ||
16144 | ||
c32bde28 | 16145 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16146 | PyObject *resultobj; |
16147 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16148 | wxPoint result; | |
16149 | PyObject * obj0 = 0 ; | |
16150 | char *kwnames[] = { | |
16151 | (char *) "self", NULL | |
16152 | }; | |
16153 | ||
16154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16157 | { | |
16158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16159 | result = (arg1)->GetPosition(); | |
16160 | ||
16161 | wxPyEndAllowThreads(__tstate); | |
16162 | if (PyErr_Occurred()) SWIG_fail; | |
16163 | } | |
16164 | { | |
16165 | wxPoint * resultptr; | |
16166 | resultptr = new wxPoint((wxPoint &) result); | |
16167 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16168 | } | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
c32bde28 | 16175 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16176 | PyObject *resultobj; |
16177 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16178 | long *arg2 = (long *) 0 ; | |
16179 | long *arg3 = (long *) 0 ; | |
16180 | long temp2 ; | |
c32bde28 | 16181 | int res2 = 0 ; |
d55e5bfc | 16182 | long temp3 ; |
c32bde28 | 16183 | int res3 = 0 ; |
d55e5bfc RD |
16184 | PyObject * obj0 = 0 ; |
16185 | char *kwnames[] = { | |
16186 | (char *) "self", NULL | |
16187 | }; | |
16188 | ||
c32bde28 RD |
16189 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16190 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
16192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16194 | { | |
16195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16196 | (arg1)->GetPosition(arg2,arg3); | |
16197 | ||
16198 | wxPyEndAllowThreads(__tstate); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | } | |
16201 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16202 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16203 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16204 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16205 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16206 | return resultobj; |
16207 | fail: | |
16208 | return NULL; | |
16209 | } | |
16210 | ||
16211 | ||
c32bde28 | 16212 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16213 | PyObject *resultobj; |
16214 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16215 | int result; | |
16216 | PyObject * obj0 = 0 ; | |
16217 | char *kwnames[] = { | |
16218 | (char *) "self", NULL | |
16219 | }; | |
16220 | ||
16221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
16222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16224 | { | |
16225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16226 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
c32bde28 | 16231 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16232 | return resultobj; |
16233 | fail: | |
16234 | return NULL; | |
16235 | } | |
16236 | ||
16237 | ||
c32bde28 | 16238 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16239 | PyObject *resultobj; |
16240 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16241 | int result; | |
16242 | PyObject * obj0 = 0 ; | |
16243 | char *kwnames[] = { | |
16244 | (char *) "self", NULL | |
16245 | }; | |
16246 | ||
16247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
16248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16250 | { | |
16251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16252 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
16253 | ||
16254 | wxPyEndAllowThreads(__tstate); | |
16255 | if (PyErr_Occurred()) SWIG_fail; | |
16256 | } | |
c32bde28 | 16257 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16258 | return resultobj; |
16259 | fail: | |
16260 | return NULL; | |
16261 | } | |
16262 | ||
16263 | ||
c32bde28 | 16264 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16265 | PyObject *resultobj; |
16266 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16267 | int arg2 ; | |
16268 | PyObject * obj0 = 0 ; | |
16269 | PyObject * obj1 = 0 ; | |
16270 | char *kwnames[] = { | |
16271 | (char *) "self",(char *) "m_x", NULL | |
16272 | }; | |
16273 | ||
16274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
16275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16277 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16278 | if (PyErr_Occurred()) SWIG_fail; |
16279 | if (arg1) (arg1)->m_x = arg2; | |
16280 | ||
16281 | Py_INCREF(Py_None); resultobj = Py_None; | |
16282 | return resultobj; | |
16283 | fail: | |
16284 | return NULL; | |
16285 | } | |
16286 | ||
16287 | ||
c32bde28 | 16288 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16289 | PyObject *resultobj; |
16290 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16291 | int result; | |
16292 | PyObject * obj0 = 0 ; | |
16293 | char *kwnames[] = { | |
16294 | (char *) "self", NULL | |
16295 | }; | |
16296 | ||
16297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
16298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16300 | result = (int) ((arg1)->m_x); | |
16301 | ||
c32bde28 | 16302 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16303 | return resultobj; |
16304 | fail: | |
16305 | return NULL; | |
16306 | } | |
16307 | ||
16308 | ||
c32bde28 | 16309 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16310 | PyObject *resultobj; |
16311 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16312 | int arg2 ; | |
16313 | PyObject * obj0 = 0 ; | |
16314 | PyObject * obj1 = 0 ; | |
16315 | char *kwnames[] = { | |
16316 | (char *) "self",(char *) "m_y", NULL | |
16317 | }; | |
16318 | ||
16319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
16320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16322 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16323 | if (PyErr_Occurred()) SWIG_fail; |
16324 | if (arg1) (arg1)->m_y = arg2; | |
16325 | ||
16326 | Py_INCREF(Py_None); resultobj = Py_None; | |
16327 | return resultobj; | |
16328 | fail: | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
c32bde28 | 16333 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16334 | PyObject *resultobj; |
16335 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16336 | int result; | |
16337 | PyObject * obj0 = 0 ; | |
16338 | char *kwnames[] = { | |
16339 | (char *) "self", NULL | |
16340 | }; | |
16341 | ||
16342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16345 | result = (int) ((arg1)->m_y); | |
16346 | ||
c32bde28 | 16347 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16348 | return resultobj; |
16349 | fail: | |
16350 | return NULL; | |
16351 | } | |
16352 | ||
16353 | ||
c32bde28 | 16354 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16355 | PyObject *resultobj; |
16356 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16357 | long arg2 ; | |
16358 | PyObject * obj0 = 0 ; | |
16359 | PyObject * obj1 = 0 ; | |
16360 | char *kwnames[] = { | |
16361 | (char *) "self",(char *) "m_keyCode", NULL | |
16362 | }; | |
16363 | ||
16364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16367 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16368 | if (PyErr_Occurred()) SWIG_fail; |
16369 | if (arg1) (arg1)->m_keyCode = arg2; | |
16370 | ||
16371 | Py_INCREF(Py_None); resultobj = Py_None; | |
16372 | return resultobj; | |
16373 | fail: | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
c32bde28 | 16378 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16379 | PyObject *resultobj; |
16380 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16381 | long result; | |
16382 | PyObject * obj0 = 0 ; | |
16383 | char *kwnames[] = { | |
16384 | (char *) "self", NULL | |
16385 | }; | |
16386 | ||
16387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16390 | result = (long) ((arg1)->m_keyCode); | |
16391 | ||
c32bde28 | 16392 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16393 | return resultobj; |
16394 | fail: | |
16395 | return NULL; | |
16396 | } | |
16397 | ||
16398 | ||
c32bde28 | 16399 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16400 | PyObject *resultobj; |
16401 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16402 | bool arg2 ; | |
16403 | PyObject * obj0 = 0 ; | |
16404 | PyObject * obj1 = 0 ; | |
16405 | char *kwnames[] = { | |
16406 | (char *) "self",(char *) "m_controlDown", NULL | |
16407 | }; | |
16408 | ||
16409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16412 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16413 | if (PyErr_Occurred()) SWIG_fail; |
16414 | if (arg1) (arg1)->m_controlDown = arg2; | |
16415 | ||
16416 | Py_INCREF(Py_None); resultobj = Py_None; | |
16417 | return resultobj; | |
16418 | fail: | |
16419 | return NULL; | |
16420 | } | |
16421 | ||
16422 | ||
c32bde28 | 16423 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16424 | PyObject *resultobj; |
16425 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16426 | bool result; | |
16427 | PyObject * obj0 = 0 ; | |
16428 | char *kwnames[] = { | |
16429 | (char *) "self", NULL | |
16430 | }; | |
16431 | ||
16432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16435 | result = (bool) ((arg1)->m_controlDown); | |
16436 | ||
16437 | { | |
16438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16439 | } | |
16440 | return resultobj; | |
16441 | fail: | |
16442 | return NULL; | |
16443 | } | |
16444 | ||
16445 | ||
c32bde28 | 16446 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16447 | PyObject *resultobj; |
16448 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16449 | bool arg2 ; | |
16450 | PyObject * obj0 = 0 ; | |
16451 | PyObject * obj1 = 0 ; | |
16452 | char *kwnames[] = { | |
16453 | (char *) "self",(char *) "m_shiftDown", NULL | |
16454 | }; | |
16455 | ||
16456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16459 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16460 | if (PyErr_Occurred()) SWIG_fail; |
16461 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16462 | ||
16463 | Py_INCREF(Py_None); resultobj = Py_None; | |
16464 | return resultobj; | |
16465 | fail: | |
16466 | return NULL; | |
16467 | } | |
16468 | ||
16469 | ||
c32bde28 | 16470 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16471 | PyObject *resultobj; |
16472 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16473 | bool result; | |
16474 | PyObject * obj0 = 0 ; | |
16475 | char *kwnames[] = { | |
16476 | (char *) "self", NULL | |
16477 | }; | |
16478 | ||
16479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16482 | result = (bool) ((arg1)->m_shiftDown); | |
16483 | ||
16484 | { | |
16485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16486 | } | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
c32bde28 | 16493 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16494 | PyObject *resultobj; |
16495 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16496 | bool arg2 ; | |
16497 | PyObject * obj0 = 0 ; | |
16498 | PyObject * obj1 = 0 ; | |
16499 | char *kwnames[] = { | |
16500 | (char *) "self",(char *) "m_altDown", NULL | |
16501 | }; | |
16502 | ||
16503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16506 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16507 | if (PyErr_Occurred()) SWIG_fail; |
16508 | if (arg1) (arg1)->m_altDown = arg2; | |
16509 | ||
16510 | Py_INCREF(Py_None); resultobj = Py_None; | |
16511 | return resultobj; | |
16512 | fail: | |
16513 | return NULL; | |
16514 | } | |
16515 | ||
16516 | ||
c32bde28 | 16517 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16518 | PyObject *resultobj; |
16519 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16520 | bool result; | |
16521 | PyObject * obj0 = 0 ; | |
16522 | char *kwnames[] = { | |
16523 | (char *) "self", NULL | |
16524 | }; | |
16525 | ||
16526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16529 | result = (bool) ((arg1)->m_altDown); | |
16530 | ||
16531 | { | |
16532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16533 | } | |
16534 | return resultobj; | |
16535 | fail: | |
16536 | return NULL; | |
16537 | } | |
16538 | ||
16539 | ||
c32bde28 | 16540 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16541 | PyObject *resultobj; |
16542 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16543 | bool arg2 ; | |
16544 | PyObject * obj0 = 0 ; | |
16545 | PyObject * obj1 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self",(char *) "m_metaDown", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16553 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16554 | if (PyErr_Occurred()) SWIG_fail; |
16555 | if (arg1) (arg1)->m_metaDown = arg2; | |
16556 | ||
16557 | Py_INCREF(Py_None); resultobj = Py_None; | |
16558 | return resultobj; | |
16559 | fail: | |
16560 | return NULL; | |
16561 | } | |
16562 | ||
16563 | ||
c32bde28 | 16564 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16565 | PyObject *resultobj; |
16566 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16567 | bool result; | |
16568 | PyObject * obj0 = 0 ; | |
16569 | char *kwnames[] = { | |
16570 | (char *) "self", NULL | |
16571 | }; | |
16572 | ||
16573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16576 | result = (bool) ((arg1)->m_metaDown); | |
16577 | ||
16578 | { | |
16579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16580 | } | |
16581 | return resultobj; | |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
c32bde28 | 16587 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16588 | PyObject *resultobj; |
16589 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16590 | bool arg2 ; | |
16591 | PyObject * obj0 = 0 ; | |
16592 | PyObject * obj1 = 0 ; | |
16593 | char *kwnames[] = { | |
16594 | (char *) "self",(char *) "m_scanCode", NULL | |
16595 | }; | |
16596 | ||
16597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16600 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16601 | if (PyErr_Occurred()) SWIG_fail; |
16602 | if (arg1) (arg1)->m_scanCode = arg2; | |
16603 | ||
16604 | Py_INCREF(Py_None); resultobj = Py_None; | |
16605 | return resultobj; | |
16606 | fail: | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
c32bde28 | 16611 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16612 | PyObject *resultobj; |
16613 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16614 | bool result; | |
16615 | PyObject * obj0 = 0 ; | |
16616 | char *kwnames[] = { | |
16617 | (char *) "self", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16623 | result = (bool) ((arg1)->m_scanCode); | |
16624 | ||
16625 | { | |
16626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16627 | } | |
16628 | return resultobj; | |
16629 | fail: | |
16630 | return NULL; | |
16631 | } | |
16632 | ||
16633 | ||
c32bde28 | 16634 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16635 | PyObject *resultobj; |
16636 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16637 | unsigned int arg2 ; | |
16638 | PyObject * obj0 = 0 ; | |
16639 | PyObject * obj1 = 0 ; | |
16640 | char *kwnames[] = { | |
16641 | (char *) "self",(char *) "m_rawCode", NULL | |
16642 | }; | |
16643 | ||
16644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16647 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16648 | if (PyErr_Occurred()) SWIG_fail; |
16649 | if (arg1) (arg1)->m_rawCode = arg2; | |
16650 | ||
16651 | Py_INCREF(Py_None); resultobj = Py_None; | |
16652 | return resultobj; | |
16653 | fail: | |
16654 | return NULL; | |
16655 | } | |
16656 | ||
16657 | ||
c32bde28 | 16658 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16659 | PyObject *resultobj; |
16660 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16661 | unsigned int result; | |
16662 | PyObject * obj0 = 0 ; | |
16663 | char *kwnames[] = { | |
16664 | (char *) "self", NULL | |
16665 | }; | |
16666 | ||
16667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16670 | result = (unsigned int) ((arg1)->m_rawCode); | |
16671 | ||
c32bde28 | 16672 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16673 | return resultobj; |
16674 | fail: | |
16675 | return NULL; | |
16676 | } | |
16677 | ||
16678 | ||
c32bde28 | 16679 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16680 | PyObject *resultobj; |
16681 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16682 | unsigned int arg2 ; | |
16683 | PyObject * obj0 = 0 ; | |
16684 | PyObject * obj1 = 0 ; | |
16685 | char *kwnames[] = { | |
16686 | (char *) "self",(char *) "m_rawFlags", NULL | |
16687 | }; | |
16688 | ||
16689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16692 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16693 | if (PyErr_Occurred()) SWIG_fail; |
16694 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16695 | ||
16696 | Py_INCREF(Py_None); resultobj = Py_None; | |
16697 | return resultobj; | |
16698 | fail: | |
16699 | return NULL; | |
16700 | } | |
16701 | ||
16702 | ||
c32bde28 | 16703 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16704 | PyObject *resultobj; |
16705 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16706 | unsigned int result; | |
16707 | PyObject * obj0 = 0 ; | |
16708 | char *kwnames[] = { | |
16709 | (char *) "self", NULL | |
16710 | }; | |
16711 | ||
16712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16715 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16716 | ||
c32bde28 | 16717 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16718 | return resultobj; |
16719 | fail: | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
c32bde28 | 16724 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16725 | PyObject *obj; |
16726 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16727 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16728 | Py_INCREF(obj); | |
16729 | return Py_BuildValue((char *)""); | |
16730 | } | |
c32bde28 | 16731 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16732 | PyObject *resultobj; |
16733 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16734 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16735 | int arg2 = (int) 0 ; | |
16736 | wxSizeEvent *result; | |
16737 | wxSize temp1 ; | |
16738 | PyObject * obj0 = 0 ; | |
16739 | PyObject * obj1 = 0 ; | |
16740 | char *kwnames[] = { | |
16741 | (char *) "sz",(char *) "winid", NULL | |
16742 | }; | |
16743 | ||
16744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16745 | if (obj0) { | |
16746 | { | |
16747 | arg1 = &temp1; | |
16748 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16749 | } | |
16750 | } | |
16751 | if (obj1) { | |
c32bde28 | 16752 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16753 | if (PyErr_Occurred()) SWIG_fail; |
16754 | } | |
16755 | { | |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16758 | ||
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16763 | return resultobj; | |
16764 | fail: | |
16765 | return NULL; | |
16766 | } | |
16767 | ||
16768 | ||
c32bde28 | 16769 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16770 | PyObject *resultobj; |
16771 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16772 | wxSize result; | |
16773 | PyObject * obj0 = 0 ; | |
16774 | char *kwnames[] = { | |
16775 | (char *) "self", NULL | |
16776 | }; | |
16777 | ||
16778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16781 | { | |
16782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16783 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16784 | ||
16785 | wxPyEndAllowThreads(__tstate); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
16788 | { | |
16789 | wxSize * resultptr; | |
16790 | resultptr = new wxSize((wxSize &) result); | |
16791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16792 | } | |
16793 | return resultobj; | |
16794 | fail: | |
16795 | return NULL; | |
16796 | } | |
16797 | ||
16798 | ||
c32bde28 | 16799 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16800 | PyObject *resultobj; |
16801 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16802 | wxRect result; | |
16803 | PyObject * obj0 = 0 ; | |
16804 | char *kwnames[] = { | |
16805 | (char *) "self", NULL | |
16806 | }; | |
16807 | ||
16808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16811 | { | |
16812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16813 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16814 | ||
16815 | wxPyEndAllowThreads(__tstate); | |
16816 | if (PyErr_Occurred()) SWIG_fail; | |
16817 | } | |
16818 | { | |
16819 | wxRect * resultptr; | |
16820 | resultptr = new wxRect((wxRect &) result); | |
16821 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16822 | } | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | return NULL; | |
16826 | } | |
16827 | ||
16828 | ||
c32bde28 | 16829 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16830 | PyObject *resultobj; |
16831 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16832 | wxRect arg2 ; | |
16833 | wxRect *argp2 ; | |
16834 | PyObject * obj0 = 0 ; | |
16835 | PyObject * obj1 = 0 ; | |
16836 | char *kwnames[] = { | |
16837 | (char *) "self",(char *) "rect", NULL | |
16838 | }; | |
16839 | ||
16840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16843 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16844 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16845 | arg2 = *argp2; | |
16846 | { | |
16847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16848 | (arg1)->SetRect(arg2); | |
16849 | ||
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | Py_INCREF(Py_None); resultobj = Py_None; | |
16854 | return resultobj; | |
16855 | fail: | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
c32bde28 | 16860 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16861 | PyObject *resultobj; |
16862 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16863 | wxSize arg2 ; | |
16864 | wxSize *argp2 ; | |
16865 | PyObject * obj0 = 0 ; | |
16866 | PyObject * obj1 = 0 ; | |
16867 | char *kwnames[] = { | |
16868 | (char *) "self",(char *) "size", NULL | |
16869 | }; | |
16870 | ||
16871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16874 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16875 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16876 | arg2 = *argp2; | |
16877 | { | |
16878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16879 | wxSizeEvent_SetSize(arg1,arg2); | |
16880 | ||
16881 | wxPyEndAllowThreads(__tstate); | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | Py_INCREF(Py_None); resultobj = Py_None; | |
16885 | return resultobj; | |
16886 | fail: | |
16887 | return NULL; | |
16888 | } | |
16889 | ||
16890 | ||
c32bde28 | 16891 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16892 | PyObject *resultobj; |
16893 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16894 | wxSize *arg2 = (wxSize *) 0 ; | |
16895 | PyObject * obj0 = 0 ; | |
16896 | PyObject * obj1 = 0 ; | |
16897 | char *kwnames[] = { | |
16898 | (char *) "self",(char *) "m_size", NULL | |
16899 | }; | |
16900 | ||
16901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16906 | if (arg1) (arg1)->m_size = *arg2; | |
16907 | ||
16908 | Py_INCREF(Py_None); resultobj = Py_None; | |
16909 | return resultobj; | |
16910 | fail: | |
16911 | return NULL; | |
16912 | } | |
16913 | ||
16914 | ||
c32bde28 | 16915 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16916 | PyObject *resultobj; |
16917 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16918 | wxSize *result; | |
16919 | PyObject * obj0 = 0 ; | |
16920 | char *kwnames[] = { | |
16921 | (char *) "self", NULL | |
16922 | }; | |
16923 | ||
16924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16927 | result = (wxSize *)& ((arg1)->m_size); | |
16928 | ||
16929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
c32bde28 | 16936 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16937 | PyObject *resultobj; |
16938 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16939 | wxRect *arg2 = (wxRect *) 0 ; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | PyObject * obj1 = 0 ; | |
16942 | char *kwnames[] = { | |
16943 | (char *) "self",(char *) "m_rect", NULL | |
16944 | }; | |
16945 | ||
16946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16951 | if (arg1) (arg1)->m_rect = *arg2; | |
16952 | ||
16953 | Py_INCREF(Py_None); resultobj = Py_None; | |
16954 | return resultobj; | |
16955 | fail: | |
16956 | return NULL; | |
16957 | } | |
16958 | ||
16959 | ||
c32bde28 | 16960 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16961 | PyObject *resultobj; |
16962 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16963 | wxRect *result; | |
16964 | PyObject * obj0 = 0 ; | |
16965 | char *kwnames[] = { | |
16966 | (char *) "self", NULL | |
16967 | }; | |
16968 | ||
16969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16972 | result = (wxRect *)& ((arg1)->m_rect); | |
16973 | ||
16974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16975 | return resultobj; | |
16976 | fail: | |
16977 | return NULL; | |
16978 | } | |
16979 | ||
16980 | ||
c32bde28 | 16981 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16982 | PyObject *obj; |
16983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16984 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16985 | Py_INCREF(obj); | |
16986 | return Py_BuildValue((char *)""); | |
16987 | } | |
c32bde28 | 16988 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16989 | PyObject *resultobj; |
16990 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16991 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16992 | int arg2 = (int) 0 ; | |
16993 | wxMoveEvent *result; | |
16994 | wxPoint temp1 ; | |
16995 | PyObject * obj0 = 0 ; | |
16996 | PyObject * obj1 = 0 ; | |
16997 | char *kwnames[] = { | |
16998 | (char *) "pos",(char *) "winid", NULL | |
16999 | }; | |
17000 | ||
17001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
17002 | if (obj0) { | |
17003 | { | |
17004 | arg1 = &temp1; | |
17005 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
17006 | } | |
17007 | } | |
17008 | if (obj1) { | |
c32bde28 | 17009 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17010 | if (PyErr_Occurred()) SWIG_fail; |
17011 | } | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17014 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
17015 | ||
17016 | wxPyEndAllowThreads(__tstate); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | } | |
17019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
17020 | return resultobj; | |
17021 | fail: | |
17022 | return NULL; | |
17023 | } | |
17024 | ||
17025 | ||
c32bde28 | 17026 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17027 | PyObject *resultobj; |
17028 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17029 | wxPoint result; | |
17030 | PyObject * obj0 = 0 ; | |
17031 | char *kwnames[] = { | |
17032 | (char *) "self", NULL | |
17033 | }; | |
17034 | ||
17035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17038 | { | |
17039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17040 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
17041 | ||
17042 | wxPyEndAllowThreads(__tstate); | |
17043 | if (PyErr_Occurred()) SWIG_fail; | |
17044 | } | |
17045 | { | |
17046 | wxPoint * resultptr; | |
17047 | resultptr = new wxPoint((wxPoint &) result); | |
17048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17049 | } | |
17050 | return resultobj; | |
17051 | fail: | |
17052 | return NULL; | |
17053 | } | |
17054 | ||
17055 | ||
c32bde28 | 17056 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17057 | PyObject *resultobj; |
17058 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17059 | wxRect result; | |
17060 | PyObject * obj0 = 0 ; | |
17061 | char *kwnames[] = { | |
17062 | (char *) "self", NULL | |
17063 | }; | |
17064 | ||
17065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
17066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17068 | { | |
17069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17070 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
17071 | ||
17072 | wxPyEndAllowThreads(__tstate); | |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
17074 | } | |
17075 | { | |
17076 | wxRect * resultptr; | |
17077 | resultptr = new wxRect((wxRect &) result); | |
17078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
17079 | } | |
17080 | return resultobj; | |
17081 | fail: | |
17082 | return NULL; | |
17083 | } | |
17084 | ||
17085 | ||
c32bde28 | 17086 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17087 | PyObject *resultobj; |
17088 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17089 | wxRect arg2 ; | |
17090 | wxRect *argp2 ; | |
17091 | PyObject * obj0 = 0 ; | |
17092 | PyObject * obj1 = 0 ; | |
17093 | char *kwnames[] = { | |
17094 | (char *) "self",(char *) "rect", NULL | |
17095 | }; | |
17096 | ||
17097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
17098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17100 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
17101 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17102 | arg2 = *argp2; | |
17103 | { | |
17104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17105 | (arg1)->SetRect(arg2); | |
17106 | ||
17107 | wxPyEndAllowThreads(__tstate); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | } | |
17110 | Py_INCREF(Py_None); resultobj = Py_None; | |
17111 | return resultobj; | |
17112 | fail: | |
17113 | return NULL; | |
17114 | } | |
17115 | ||
17116 | ||
c32bde28 | 17117 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17118 | PyObject *resultobj; |
17119 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17120 | wxPoint arg2 ; | |
17121 | wxPoint *argp2 ; | |
17122 | PyObject * obj0 = 0 ; | |
17123 | PyObject * obj1 = 0 ; | |
17124 | char *kwnames[] = { | |
17125 | (char *) "self",(char *) "pos", NULL | |
17126 | }; | |
17127 | ||
17128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17131 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17132 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17133 | arg2 = *argp2; | |
17134 | { | |
17135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17136 | wxMoveEvent_SetPosition(arg1,arg2); | |
17137 | ||
17138 | wxPyEndAllowThreads(__tstate); | |
17139 | if (PyErr_Occurred()) SWIG_fail; | |
17140 | } | |
17141 | Py_INCREF(Py_None); resultobj = Py_None; | |
17142 | return resultobj; | |
17143 | fail: | |
17144 | return NULL; | |
17145 | } | |
17146 | ||
17147 | ||
c32bde28 | 17148 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17149 | PyObject *resultobj; |
17150 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17151 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17152 | PyObject * obj0 = 0 ; | |
17153 | PyObject * obj1 = 0 ; | |
17154 | char *kwnames[] = { | |
17155 | (char *) "self",(char *) "m_pos", NULL | |
17156 | }; | |
17157 | ||
17158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
17159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17163 | if (arg1) (arg1)->m_pos = *arg2; | |
17164 | ||
17165 | Py_INCREF(Py_None); resultobj = Py_None; | |
17166 | return resultobj; | |
17167 | fail: | |
17168 | return NULL; | |
17169 | } | |
17170 | ||
17171 | ||
c32bde28 | 17172 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17173 | PyObject *resultobj; |
17174 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17175 | wxPoint *result; | |
17176 | PyObject * obj0 = 0 ; | |
17177 | char *kwnames[] = { | |
17178 | (char *) "self", NULL | |
17179 | }; | |
17180 | ||
17181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
17182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17184 | result = (wxPoint *)& ((arg1)->m_pos); | |
17185 | ||
17186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
17187 | return resultobj; | |
17188 | fail: | |
17189 | return NULL; | |
17190 | } | |
17191 | ||
17192 | ||
c32bde28 | 17193 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17194 | PyObject *resultobj; |
17195 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17196 | wxRect *arg2 = (wxRect *) 0 ; | |
17197 | PyObject * obj0 = 0 ; | |
17198 | PyObject * obj1 = 0 ; | |
17199 | char *kwnames[] = { | |
17200 | (char *) "self",(char *) "m_rect", NULL | |
17201 | }; | |
17202 | ||
17203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17208 | if (arg1) (arg1)->m_rect = *arg2; | |
17209 | ||
17210 | Py_INCREF(Py_None); resultobj = Py_None; | |
17211 | return resultobj; | |
17212 | fail: | |
17213 | return NULL; | |
17214 | } | |
17215 | ||
17216 | ||
c32bde28 | 17217 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17218 | PyObject *resultobj; |
17219 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17220 | wxRect *result; | |
17221 | PyObject * obj0 = 0 ; | |
17222 | char *kwnames[] = { | |
17223 | (char *) "self", NULL | |
17224 | }; | |
17225 | ||
17226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17229 | result = (wxRect *)& ((arg1)->m_rect); | |
17230 | ||
17231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
c32bde28 | 17238 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17239 | PyObject *obj; |
17240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17241 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17242 | Py_INCREF(obj); | |
17243 | return Py_BuildValue((char *)""); | |
17244 | } | |
c32bde28 | 17245 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17246 | PyObject *resultobj; |
17247 | int arg1 = (int) 0 ; | |
17248 | wxPaintEvent *result; | |
17249 | PyObject * obj0 = 0 ; | |
17250 | char *kwnames[] = { | |
17251 | (char *) "Id", NULL | |
17252 | }; | |
17253 | ||
17254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
17255 | if (obj0) { | |
c32bde28 | 17256 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17257 | if (PyErr_Occurred()) SWIG_fail; |
17258 | } | |
17259 | { | |
17260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17261 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17262 | ||
17263 | wxPyEndAllowThreads(__tstate); | |
17264 | if (PyErr_Occurred()) SWIG_fail; | |
17265 | } | |
17266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
17267 | return resultobj; | |
17268 | fail: | |
17269 | return NULL; | |
17270 | } | |
17271 | ||
17272 | ||
c32bde28 | 17273 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17274 | PyObject *obj; |
17275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17276 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17277 | Py_INCREF(obj); | |
17278 | return Py_BuildValue((char *)""); | |
17279 | } | |
c32bde28 | 17280 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17281 | PyObject *resultobj; |
17282 | int arg1 = (int) 0 ; | |
17283 | wxNcPaintEvent *result; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "winid", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
17290 | if (obj0) { | |
c32bde28 | 17291 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17292 | if (PyErr_Occurred()) SWIG_fail; |
17293 | } | |
17294 | { | |
17295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17296 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17297 | ||
17298 | wxPyEndAllowThreads(__tstate); | |
17299 | if (PyErr_Occurred()) SWIG_fail; | |
17300 | } | |
17301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
17302 | return resultobj; | |
17303 | fail: | |
17304 | return NULL; | |
17305 | } | |
17306 | ||
17307 | ||
c32bde28 | 17308 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17309 | PyObject *obj; |
17310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17311 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17312 | Py_INCREF(obj); | |
17313 | return Py_BuildValue((char *)""); | |
17314 | } | |
c32bde28 | 17315 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17316 | PyObject *resultobj; |
17317 | int arg1 = (int) 0 ; | |
17318 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17319 | wxEraseEvent *result; | |
17320 | PyObject * obj0 = 0 ; | |
17321 | PyObject * obj1 = 0 ; | |
17322 | char *kwnames[] = { | |
17323 | (char *) "Id",(char *) "dc", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17327 | if (obj0) { | |
c32bde28 | 17328 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17329 | if (PyErr_Occurred()) SWIG_fail; |
17330 | } | |
17331 | if (obj1) { | |
17332 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17334 | } | |
17335 | { | |
17336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17337 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17338 | ||
17339 | wxPyEndAllowThreads(__tstate); | |
17340 | if (PyErr_Occurred()) SWIG_fail; | |
17341 | } | |
17342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17343 | return resultobj; | |
17344 | fail: | |
17345 | return NULL; | |
17346 | } | |
17347 | ||
17348 | ||
c32bde28 | 17349 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17350 | PyObject *resultobj; |
17351 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17352 | wxDC *result; | |
17353 | PyObject * obj0 = 0 ; | |
17354 | char *kwnames[] = { | |
17355 | (char *) "self", NULL | |
17356 | }; | |
17357 | ||
17358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17361 | { | |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17364 | ||
17365 | wxPyEndAllowThreads(__tstate); | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
17368 | { | |
412d302d | 17369 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17370 | } |
17371 | return resultobj; | |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
c32bde28 | 17377 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17378 | PyObject *obj; |
17379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17380 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17381 | Py_INCREF(obj); | |
17382 | return Py_BuildValue((char *)""); | |
17383 | } | |
c32bde28 | 17384 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17385 | PyObject *resultobj; |
17386 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17387 | int arg2 = (int) 0 ; | |
17388 | wxFocusEvent *result; | |
17389 | PyObject * obj0 = 0 ; | |
17390 | PyObject * obj1 = 0 ; | |
17391 | char *kwnames[] = { | |
17392 | (char *) "type",(char *) "winid", NULL | |
17393 | }; | |
17394 | ||
17395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17396 | if (obj0) { | |
c32bde28 | 17397 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17398 | if (PyErr_Occurred()) SWIG_fail; |
17399 | } | |
17400 | if (obj1) { | |
c32bde28 | 17401 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17402 | if (PyErr_Occurred()) SWIG_fail; |
17403 | } | |
17404 | { | |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17406 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17407 | ||
17408 | wxPyEndAllowThreads(__tstate); | |
17409 | if (PyErr_Occurred()) SWIG_fail; | |
17410 | } | |
17411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
c32bde28 | 17418 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17419 | PyObject *resultobj; |
17420 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17421 | wxWindow *result; | |
17422 | PyObject * obj0 = 0 ; | |
17423 | char *kwnames[] = { | |
17424 | (char *) "self", NULL | |
17425 | }; | |
17426 | ||
17427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17430 | { | |
17431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17432 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17433 | ||
17434 | wxPyEndAllowThreads(__tstate); | |
17435 | if (PyErr_Occurred()) SWIG_fail; | |
17436 | } | |
17437 | { | |
412d302d | 17438 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17439 | } |
17440 | return resultobj; | |
17441 | fail: | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
c32bde28 | 17446 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17447 | PyObject *resultobj; |
17448 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17449 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17450 | PyObject * obj0 = 0 ; | |
17451 | PyObject * obj1 = 0 ; | |
17452 | char *kwnames[] = { | |
17453 | (char *) "self",(char *) "win", NULL | |
17454 | }; | |
17455 | ||
17456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17461 | { | |
17462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17463 | (arg1)->SetWindow(arg2); | |
17464 | ||
17465 | wxPyEndAllowThreads(__tstate); | |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
17467 | } | |
17468 | Py_INCREF(Py_None); resultobj = Py_None; | |
17469 | return resultobj; | |
17470 | fail: | |
17471 | return NULL; | |
17472 | } | |
17473 | ||
17474 | ||
c32bde28 | 17475 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17476 | PyObject *obj; |
17477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17478 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17479 | Py_INCREF(obj); | |
17480 | return Py_BuildValue((char *)""); | |
17481 | } | |
c32bde28 | 17482 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17483 | PyObject *resultobj; |
17484 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17485 | wxChildFocusEvent *result; | |
17486 | PyObject * obj0 = 0 ; | |
17487 | char *kwnames[] = { | |
17488 | (char *) "win", NULL | |
17489 | }; | |
17490 | ||
17491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17492 | if (obj0) { | |
17493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17495 | } | |
17496 | { | |
17497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17498 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17499 | ||
17500 | wxPyEndAllowThreads(__tstate); | |
17501 | if (PyErr_Occurred()) SWIG_fail; | |
17502 | } | |
17503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17504 | return resultobj; | |
17505 | fail: | |
17506 | return NULL; | |
17507 | } | |
17508 | ||
17509 | ||
c32bde28 | 17510 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17511 | PyObject *resultobj; |
17512 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17513 | wxWindow *result; | |
17514 | PyObject * obj0 = 0 ; | |
17515 | char *kwnames[] = { | |
17516 | (char *) "self", NULL | |
17517 | }; | |
17518 | ||
17519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17522 | { | |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17524 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17525 | ||
17526 | wxPyEndAllowThreads(__tstate); | |
17527 | if (PyErr_Occurred()) SWIG_fail; | |
17528 | } | |
17529 | { | |
412d302d | 17530 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17531 | } |
17532 | return resultobj; | |
17533 | fail: | |
17534 | return NULL; | |
17535 | } | |
17536 | ||
17537 | ||
c32bde28 | 17538 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17539 | PyObject *obj; |
17540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17541 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17542 | Py_INCREF(obj); | |
17543 | return Py_BuildValue((char *)""); | |
17544 | } | |
c32bde28 | 17545 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17546 | PyObject *resultobj; |
17547 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 17548 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17549 | int arg3 = (int) 0 ; |
17550 | wxActivateEvent *result; | |
17551 | PyObject * obj0 = 0 ; | |
17552 | PyObject * obj1 = 0 ; | |
17553 | PyObject * obj2 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17559 | if (obj0) { | |
c32bde28 | 17560 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17561 | if (PyErr_Occurred()) SWIG_fail; |
17562 | } | |
17563 | if (obj1) { | |
c32bde28 | 17564 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17565 | if (PyErr_Occurred()) SWIG_fail; |
17566 | } | |
17567 | if (obj2) { | |
c32bde28 | 17568 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17569 | if (PyErr_Occurred()) SWIG_fail; |
17570 | } | |
17571 | { | |
17572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17573 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17574 | ||
17575 | wxPyEndAllowThreads(__tstate); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | return NULL; | |
17582 | } | |
17583 | ||
17584 | ||
c32bde28 | 17585 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17586 | PyObject *resultobj; |
17587 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17588 | bool result; | |
17589 | PyObject * obj0 = 0 ; | |
17590 | char *kwnames[] = { | |
17591 | (char *) "self", NULL | |
17592 | }; | |
17593 | ||
17594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17597 | { | |
17598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17599 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17600 | ||
17601 | wxPyEndAllowThreads(__tstate); | |
17602 | if (PyErr_Occurred()) SWIG_fail; | |
17603 | } | |
17604 | { | |
17605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17606 | } | |
17607 | return resultobj; | |
17608 | fail: | |
17609 | return NULL; | |
17610 | } | |
17611 | ||
17612 | ||
c32bde28 | 17613 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17614 | PyObject *obj; |
17615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17616 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17617 | Py_INCREF(obj); | |
17618 | return Py_BuildValue((char *)""); | |
17619 | } | |
c32bde28 | 17620 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17621 | PyObject *resultobj; |
17622 | int arg1 = (int) 0 ; | |
17623 | wxInitDialogEvent *result; | |
17624 | PyObject * obj0 = 0 ; | |
17625 | char *kwnames[] = { | |
17626 | (char *) "Id", NULL | |
17627 | }; | |
17628 | ||
17629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17630 | if (obj0) { | |
c32bde28 | 17631 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17632 | if (PyErr_Occurred()) SWIG_fail; |
17633 | } | |
17634 | { | |
17635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17636 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17637 | ||
17638 | wxPyEndAllowThreads(__tstate); | |
17639 | if (PyErr_Occurred()) SWIG_fail; | |
17640 | } | |
17641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17642 | return resultobj; | |
17643 | fail: | |
17644 | return NULL; | |
17645 | } | |
17646 | ||
17647 | ||
c32bde28 | 17648 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17649 | PyObject *obj; |
17650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17651 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17652 | Py_INCREF(obj); | |
17653 | return Py_BuildValue((char *)""); | |
17654 | } | |
c32bde28 | 17655 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17656 | PyObject *resultobj; |
17657 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17658 | int arg2 = (int) 0 ; | |
17659 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17660 | wxMenuEvent *result; | |
17661 | PyObject * obj0 = 0 ; | |
17662 | PyObject * obj1 = 0 ; | |
17663 | PyObject * obj2 = 0 ; | |
17664 | char *kwnames[] = { | |
17665 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17666 | }; | |
17667 | ||
17668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17669 | if (obj0) { | |
c32bde28 | 17670 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17671 | if (PyErr_Occurred()) SWIG_fail; |
17672 | } | |
17673 | if (obj1) { | |
c32bde28 | 17674 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17675 | if (PyErr_Occurred()) SWIG_fail; |
17676 | } | |
17677 | if (obj2) { | |
17678 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17680 | } | |
17681 | { | |
17682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17683 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17684 | ||
17685 | wxPyEndAllowThreads(__tstate); | |
17686 | if (PyErr_Occurred()) SWIG_fail; | |
17687 | } | |
17688 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17689 | return resultobj; | |
17690 | fail: | |
17691 | return NULL; | |
17692 | } | |
17693 | ||
17694 | ||
c32bde28 | 17695 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17696 | PyObject *resultobj; |
17697 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17698 | int result; | |
17699 | PyObject * obj0 = 0 ; | |
17700 | char *kwnames[] = { | |
17701 | (char *) "self", NULL | |
17702 | }; | |
17703 | ||
17704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17707 | { | |
17708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17709 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17710 | ||
17711 | wxPyEndAllowThreads(__tstate); | |
17712 | if (PyErr_Occurred()) SWIG_fail; | |
17713 | } | |
c32bde28 | 17714 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17715 | return resultobj; |
17716 | fail: | |
17717 | return NULL; | |
17718 | } | |
17719 | ||
17720 | ||
c32bde28 | 17721 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17722 | PyObject *resultobj; |
17723 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17724 | bool result; | |
17725 | PyObject * obj0 = 0 ; | |
17726 | char *kwnames[] = { | |
17727 | (char *) "self", NULL | |
17728 | }; | |
17729 | ||
17730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17733 | { | |
17734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17735 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17736 | ||
17737 | wxPyEndAllowThreads(__tstate); | |
17738 | if (PyErr_Occurred()) SWIG_fail; | |
17739 | } | |
17740 | { | |
17741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17742 | } | |
17743 | return resultobj; | |
17744 | fail: | |
17745 | return NULL; | |
17746 | } | |
17747 | ||
17748 | ||
c32bde28 | 17749 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17750 | PyObject *resultobj; |
17751 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17752 | wxMenu *result; | |
17753 | PyObject * obj0 = 0 ; | |
17754 | char *kwnames[] = { | |
17755 | (char *) "self", NULL | |
17756 | }; | |
17757 | ||
17758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17761 | { | |
17762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17763 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17764 | ||
17765 | wxPyEndAllowThreads(__tstate); | |
17766 | if (PyErr_Occurred()) SWIG_fail; | |
17767 | } | |
17768 | { | |
412d302d | 17769 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17770 | } |
17771 | return resultobj; | |
17772 | fail: | |
17773 | return NULL; | |
17774 | } | |
17775 | ||
17776 | ||
c32bde28 | 17777 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17778 | PyObject *obj; |
17779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17780 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17781 | Py_INCREF(obj); | |
17782 | return Py_BuildValue((char *)""); | |
17783 | } | |
c32bde28 | 17784 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17785 | PyObject *resultobj; |
17786 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17787 | int arg2 = (int) 0 ; | |
17788 | wxCloseEvent *result; | |
17789 | PyObject * obj0 = 0 ; | |
17790 | PyObject * obj1 = 0 ; | |
17791 | char *kwnames[] = { | |
17792 | (char *) "type",(char *) "winid", NULL | |
17793 | }; | |
17794 | ||
17795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17796 | if (obj0) { | |
c32bde28 | 17797 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17798 | if (PyErr_Occurred()) SWIG_fail; |
17799 | } | |
17800 | if (obj1) { | |
c32bde28 | 17801 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17802 | if (PyErr_Occurred()) SWIG_fail; |
17803 | } | |
17804 | { | |
17805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17806 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17807 | ||
17808 | wxPyEndAllowThreads(__tstate); | |
17809 | if (PyErr_Occurred()) SWIG_fail; | |
17810 | } | |
17811 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17812 | return resultobj; | |
17813 | fail: | |
17814 | return NULL; | |
17815 | } | |
17816 | ||
17817 | ||
c32bde28 | 17818 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17819 | PyObject *resultobj; |
17820 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17821 | bool arg2 ; | |
17822 | PyObject * obj0 = 0 ; | |
17823 | PyObject * obj1 = 0 ; | |
17824 | char *kwnames[] = { | |
17825 | (char *) "self",(char *) "logOff", NULL | |
17826 | }; | |
17827 | ||
17828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17831 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17832 | if (PyErr_Occurred()) SWIG_fail; |
17833 | { | |
17834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17835 | (arg1)->SetLoggingOff(arg2); | |
17836 | ||
17837 | wxPyEndAllowThreads(__tstate); | |
17838 | if (PyErr_Occurred()) SWIG_fail; | |
17839 | } | |
17840 | Py_INCREF(Py_None); resultobj = Py_None; | |
17841 | return resultobj; | |
17842 | fail: | |
17843 | return NULL; | |
17844 | } | |
17845 | ||
17846 | ||
c32bde28 | 17847 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17848 | PyObject *resultobj; |
17849 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17850 | bool result; | |
17851 | PyObject * obj0 = 0 ; | |
17852 | char *kwnames[] = { | |
17853 | (char *) "self", NULL | |
17854 | }; | |
17855 | ||
17856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17859 | { | |
17860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17861 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17862 | ||
17863 | wxPyEndAllowThreads(__tstate); | |
17864 | if (PyErr_Occurred()) SWIG_fail; | |
17865 | } | |
17866 | { | |
17867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17868 | } | |
17869 | return resultobj; | |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
c32bde28 | 17875 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17876 | PyObject *resultobj; |
17877 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 17878 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17879 | PyObject * obj0 = 0 ; |
17880 | PyObject * obj1 = 0 ; | |
17881 | char *kwnames[] = { | |
17882 | (char *) "self",(char *) "veto", NULL | |
17883 | }; | |
17884 | ||
17885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17888 | if (obj1) { | |
c32bde28 | 17889 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17890 | if (PyErr_Occurred()) SWIG_fail; |
17891 | } | |
17892 | { | |
17893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17894 | (arg1)->Veto(arg2); | |
17895 | ||
17896 | wxPyEndAllowThreads(__tstate); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | } | |
17899 | Py_INCREF(Py_None); resultobj = Py_None; | |
17900 | return resultobj; | |
17901 | fail: | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
c32bde28 | 17906 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17907 | PyObject *resultobj; |
17908 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17909 | bool arg2 ; | |
17910 | PyObject * obj0 = 0 ; | |
17911 | PyObject * obj1 = 0 ; | |
17912 | char *kwnames[] = { | |
17913 | (char *) "self",(char *) "canVeto", NULL | |
17914 | }; | |
17915 | ||
17916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17919 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17920 | if (PyErr_Occurred()) SWIG_fail; |
17921 | { | |
17922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17923 | (arg1)->SetCanVeto(arg2); | |
17924 | ||
17925 | wxPyEndAllowThreads(__tstate); | |
17926 | if (PyErr_Occurred()) SWIG_fail; | |
17927 | } | |
17928 | Py_INCREF(Py_None); resultobj = Py_None; | |
17929 | return resultobj; | |
17930 | fail: | |
17931 | return NULL; | |
17932 | } | |
17933 | ||
17934 | ||
c32bde28 | 17935 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17936 | PyObject *resultobj; |
17937 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17938 | bool result; | |
17939 | PyObject * obj0 = 0 ; | |
17940 | char *kwnames[] = { | |
17941 | (char *) "self", NULL | |
17942 | }; | |
17943 | ||
17944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17947 | { | |
17948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17949 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17950 | ||
17951 | wxPyEndAllowThreads(__tstate); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
17953 | } | |
17954 | { | |
17955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17956 | } | |
17957 | return resultobj; | |
17958 | fail: | |
17959 | return NULL; | |
17960 | } | |
17961 | ||
17962 | ||
c32bde28 | 17963 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17964 | PyObject *resultobj; |
17965 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17966 | bool result; | |
17967 | PyObject * obj0 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "self", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17975 | { | |
17976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17977 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17978 | ||
17979 | wxPyEndAllowThreads(__tstate); | |
17980 | if (PyErr_Occurred()) SWIG_fail; | |
17981 | } | |
17982 | { | |
17983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17984 | } | |
17985 | return resultobj; | |
17986 | fail: | |
17987 | return NULL; | |
17988 | } | |
17989 | ||
17990 | ||
c32bde28 | 17991 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17992 | PyObject *obj; |
17993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17994 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17995 | Py_INCREF(obj); | |
17996 | return Py_BuildValue((char *)""); | |
17997 | } | |
c32bde28 | 17998 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17999 | PyObject *resultobj; |
18000 | int arg1 = (int) 0 ; | |
ae8162c8 | 18001 | bool arg2 = (bool) false ; |
d55e5bfc RD |
18002 | wxShowEvent *result; |
18003 | PyObject * obj0 = 0 ; | |
18004 | PyObject * obj1 = 0 ; | |
18005 | char *kwnames[] = { | |
18006 | (char *) "winid",(char *) "show", NULL | |
18007 | }; | |
18008 | ||
18009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
18010 | if (obj0) { | |
c32bde28 | 18011 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18012 | if (PyErr_Occurred()) SWIG_fail; |
18013 | } | |
18014 | if (obj1) { | |
c32bde28 | 18015 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18016 | if (PyErr_Occurred()) SWIG_fail; |
18017 | } | |
18018 | { | |
18019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18020 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
18021 | ||
18022 | wxPyEndAllowThreads(__tstate); | |
18023 | if (PyErr_Occurred()) SWIG_fail; | |
18024 | } | |
18025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
18026 | return resultobj; | |
18027 | fail: | |
18028 | return NULL; | |
18029 | } | |
18030 | ||
18031 | ||
c32bde28 | 18032 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18033 | PyObject *resultobj; |
18034 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18035 | bool arg2 ; | |
18036 | PyObject * obj0 = 0 ; | |
18037 | PyObject * obj1 = 0 ; | |
18038 | char *kwnames[] = { | |
18039 | (char *) "self",(char *) "show", NULL | |
18040 | }; | |
18041 | ||
18042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
18043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18045 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18046 | if (PyErr_Occurred()) SWIG_fail; |
18047 | { | |
18048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18049 | (arg1)->SetShow(arg2); | |
18050 | ||
18051 | wxPyEndAllowThreads(__tstate); | |
18052 | if (PyErr_Occurred()) SWIG_fail; | |
18053 | } | |
18054 | Py_INCREF(Py_None); resultobj = Py_None; | |
18055 | return resultobj; | |
18056 | fail: | |
18057 | return NULL; | |
18058 | } | |
18059 | ||
18060 | ||
c32bde28 | 18061 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18062 | PyObject *resultobj; |
18063 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18064 | bool result; | |
18065 | PyObject * obj0 = 0 ; | |
18066 | char *kwnames[] = { | |
18067 | (char *) "self", NULL | |
18068 | }; | |
18069 | ||
18070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
18071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18073 | { | |
18074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18075 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
18076 | ||
18077 | wxPyEndAllowThreads(__tstate); | |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
18079 | } | |
18080 | { | |
18081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18082 | } | |
18083 | return resultobj; | |
18084 | fail: | |
18085 | return NULL; | |
18086 | } | |
18087 | ||
18088 | ||
c32bde28 | 18089 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18090 | PyObject *obj; |
18091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18092 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
18093 | Py_INCREF(obj); | |
18094 | return Py_BuildValue((char *)""); | |
18095 | } | |
c32bde28 | 18096 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18097 | PyObject *resultobj; |
18098 | int arg1 = (int) 0 ; | |
ae8162c8 | 18099 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18100 | wxIconizeEvent *result; |
18101 | PyObject * obj0 = 0 ; | |
18102 | PyObject * obj1 = 0 ; | |
18103 | char *kwnames[] = { | |
18104 | (char *) "id",(char *) "iconized", NULL | |
18105 | }; | |
18106 | ||
18107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
18108 | if (obj0) { | |
c32bde28 | 18109 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18110 | if (PyErr_Occurred()) SWIG_fail; |
18111 | } | |
18112 | if (obj1) { | |
c32bde28 | 18113 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18114 | if (PyErr_Occurred()) SWIG_fail; |
18115 | } | |
18116 | { | |
18117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18118 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18119 | ||
18120 | wxPyEndAllowThreads(__tstate); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
18123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
18124 | return resultobj; | |
18125 | fail: | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
c32bde28 | 18130 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18131 | PyObject *resultobj; |
18132 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18133 | bool result; | |
18134 | PyObject * obj0 = 0 ; | |
18135 | char *kwnames[] = { | |
18136 | (char *) "self", NULL | |
18137 | }; | |
18138 | ||
18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
18140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
18141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18142 | { | |
18143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18144 | result = (bool)(arg1)->Iconized(); | |
18145 | ||
18146 | wxPyEndAllowThreads(__tstate); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
18148 | } | |
18149 | { | |
18150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18151 | } | |
18152 | return resultobj; | |
18153 | fail: | |
18154 | return NULL; | |
18155 | } | |
18156 | ||
18157 | ||
c32bde28 | 18158 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18159 | PyObject *obj; |
18160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18161 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18162 | Py_INCREF(obj); | |
18163 | return Py_BuildValue((char *)""); | |
18164 | } | |
c32bde28 | 18165 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18166 | PyObject *resultobj; |
18167 | int arg1 = (int) 0 ; | |
18168 | wxMaximizeEvent *result; | |
18169 | PyObject * obj0 = 0 ; | |
18170 | char *kwnames[] = { | |
18171 | (char *) "id", NULL | |
18172 | }; | |
18173 | ||
18174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
18175 | if (obj0) { | |
c32bde28 | 18176 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18177 | if (PyErr_Occurred()) SWIG_fail; |
18178 | } | |
18179 | { | |
18180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18181 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18182 | ||
18183 | wxPyEndAllowThreads(__tstate); | |
18184 | if (PyErr_Occurred()) SWIG_fail; | |
18185 | } | |
18186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
18187 | return resultobj; | |
18188 | fail: | |
18189 | return NULL; | |
18190 | } | |
18191 | ||
18192 | ||
c32bde28 | 18193 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18194 | PyObject *obj; |
18195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18196 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18197 | Py_INCREF(obj); | |
18198 | return Py_BuildValue((char *)""); | |
18199 | } | |
c32bde28 | 18200 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18201 | PyObject *resultobj; |
18202 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18203 | wxPoint result; | |
18204 | PyObject * obj0 = 0 ; | |
18205 | char *kwnames[] = { | |
18206 | (char *) "self", NULL | |
18207 | }; | |
18208 | ||
18209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18212 | { | |
18213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18214 | result = (arg1)->GetPosition(); | |
18215 | ||
18216 | wxPyEndAllowThreads(__tstate); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | } | |
18219 | { | |
18220 | wxPoint * resultptr; | |
18221 | resultptr = new wxPoint((wxPoint &) result); | |
18222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
18223 | } | |
18224 | return resultobj; | |
18225 | fail: | |
18226 | return NULL; | |
18227 | } | |
18228 | ||
18229 | ||
c32bde28 | 18230 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18231 | PyObject *resultobj; |
18232 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18233 | int result; | |
18234 | PyObject * obj0 = 0 ; | |
18235 | char *kwnames[] = { | |
18236 | (char *) "self", NULL | |
18237 | }; | |
18238 | ||
18239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
18240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18242 | { | |
18243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18244 | result = (int)(arg1)->GetNumberOfFiles(); | |
18245 | ||
18246 | wxPyEndAllowThreads(__tstate); | |
18247 | if (PyErr_Occurred()) SWIG_fail; | |
18248 | } | |
c32bde28 | 18249 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18250 | return resultobj; |
18251 | fail: | |
18252 | return NULL; | |
18253 | } | |
18254 | ||
18255 | ||
c32bde28 | 18256 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18257 | PyObject *resultobj; |
18258 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18259 | PyObject *result; | |
18260 | PyObject * obj0 = 0 ; | |
18261 | char *kwnames[] = { | |
18262 | (char *) "self", NULL | |
18263 | }; | |
18264 | ||
18265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
18266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18268 | { | |
18269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18270 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18271 | ||
18272 | wxPyEndAllowThreads(__tstate); | |
18273 | if (PyErr_Occurred()) SWIG_fail; | |
18274 | } | |
18275 | resultobj = result; | |
18276 | return resultobj; | |
18277 | fail: | |
18278 | return NULL; | |
18279 | } | |
18280 | ||
18281 | ||
c32bde28 | 18282 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18283 | PyObject *obj; |
18284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18285 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18286 | Py_INCREF(obj); | |
18287 | return Py_BuildValue((char *)""); | |
18288 | } | |
c32bde28 | 18289 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18290 | PyObject *resultobj; |
18291 | int arg1 = (int) 0 ; | |
18292 | wxUpdateUIEvent *result; | |
18293 | PyObject * obj0 = 0 ; | |
18294 | char *kwnames[] = { | |
18295 | (char *) "commandId", NULL | |
18296 | }; | |
18297 | ||
18298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
18299 | if (obj0) { | |
c32bde28 | 18300 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18301 | if (PyErr_Occurred()) SWIG_fail; |
18302 | } | |
18303 | { | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
18310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
18311 | return resultobj; | |
18312 | fail: | |
18313 | return NULL; | |
18314 | } | |
18315 | ||
18316 | ||
c32bde28 | 18317 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18318 | PyObject *resultobj; |
18319 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18320 | bool result; | |
18321 | PyObject * obj0 = 0 ; | |
18322 | char *kwnames[] = { | |
18323 | (char *) "self", NULL | |
18324 | }; | |
18325 | ||
18326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
18327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18329 | { | |
18330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18331 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18332 | ||
18333 | wxPyEndAllowThreads(__tstate); | |
18334 | if (PyErr_Occurred()) SWIG_fail; | |
18335 | } | |
18336 | { | |
18337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18338 | } | |
18339 | return resultobj; | |
18340 | fail: | |
18341 | return NULL; | |
18342 | } | |
18343 | ||
18344 | ||
c32bde28 | 18345 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18346 | PyObject *resultobj; |
18347 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18348 | bool result; | |
18349 | PyObject * obj0 = 0 ; | |
18350 | char *kwnames[] = { | |
18351 | (char *) "self", NULL | |
18352 | }; | |
18353 | ||
18354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18357 | { | |
18358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18359 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18360 | ||
18361 | wxPyEndAllowThreads(__tstate); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
18364 | { | |
18365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18366 | } | |
18367 | return resultobj; | |
18368 | fail: | |
18369 | return NULL; | |
18370 | } | |
18371 | ||
18372 | ||
c32bde28 | 18373 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18374 | PyObject *resultobj; |
18375 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18376 | wxString result; | |
18377 | PyObject * obj0 = 0 ; | |
18378 | char *kwnames[] = { | |
18379 | (char *) "self", NULL | |
18380 | }; | |
18381 | ||
18382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18385 | { | |
18386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18387 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18388 | ||
18389 | wxPyEndAllowThreads(__tstate); | |
18390 | if (PyErr_Occurred()) SWIG_fail; | |
18391 | } | |
18392 | { | |
18393 | #if wxUSE_UNICODE | |
18394 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18395 | #else | |
18396 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18397 | #endif | |
18398 | } | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
c32bde28 | 18405 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18406 | PyObject *resultobj; |
18407 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18408 | bool result; | |
18409 | PyObject * obj0 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18417 | { | |
18418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18419 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18420 | ||
18421 | wxPyEndAllowThreads(__tstate); | |
18422 | if (PyErr_Occurred()) SWIG_fail; | |
18423 | } | |
18424 | { | |
18425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18426 | } | |
18427 | return resultobj; | |
18428 | fail: | |
18429 | return NULL; | |
18430 | } | |
18431 | ||
18432 | ||
c32bde28 | 18433 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18434 | PyObject *resultobj; |
18435 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18436 | bool result; | |
18437 | PyObject * obj0 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18445 | { | |
18446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18447 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18448 | ||
18449 | wxPyEndAllowThreads(__tstate); | |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
18451 | } | |
18452 | { | |
18453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18454 | } | |
18455 | return resultobj; | |
18456 | fail: | |
18457 | return NULL; | |
18458 | } | |
18459 | ||
18460 | ||
c32bde28 | 18461 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18462 | PyObject *resultobj; |
18463 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18464 | bool result; | |
18465 | PyObject * obj0 = 0 ; | |
18466 | char *kwnames[] = { | |
18467 | (char *) "self", NULL | |
18468 | }; | |
18469 | ||
18470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18473 | { | |
18474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18475 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18476 | ||
18477 | wxPyEndAllowThreads(__tstate); | |
18478 | if (PyErr_Occurred()) SWIG_fail; | |
18479 | } | |
18480 | { | |
18481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18482 | } | |
18483 | return resultobj; | |
18484 | fail: | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
c32bde28 | 18489 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18490 | PyObject *resultobj; |
18491 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18492 | bool arg2 ; | |
18493 | PyObject * obj0 = 0 ; | |
18494 | PyObject * obj1 = 0 ; | |
18495 | char *kwnames[] = { | |
18496 | (char *) "self",(char *) "check", NULL | |
18497 | }; | |
18498 | ||
18499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18502 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18503 | if (PyErr_Occurred()) SWIG_fail; |
18504 | { | |
18505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18506 | (arg1)->Check(arg2); | |
18507 | ||
18508 | wxPyEndAllowThreads(__tstate); | |
18509 | if (PyErr_Occurred()) SWIG_fail; | |
18510 | } | |
18511 | Py_INCREF(Py_None); resultobj = Py_None; | |
18512 | return resultobj; | |
18513 | fail: | |
18514 | return NULL; | |
18515 | } | |
18516 | ||
18517 | ||
c32bde28 | 18518 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18519 | PyObject *resultobj; |
18520 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18521 | bool arg2 ; | |
18522 | PyObject * obj0 = 0 ; | |
18523 | PyObject * obj1 = 0 ; | |
18524 | char *kwnames[] = { | |
18525 | (char *) "self",(char *) "enable", NULL | |
18526 | }; | |
18527 | ||
18528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18531 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18532 | if (PyErr_Occurred()) SWIG_fail; |
18533 | { | |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | (arg1)->Enable(arg2); | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | Py_INCREF(Py_None); resultobj = Py_None; | |
18541 | return resultobj; | |
18542 | fail: | |
18543 | return NULL; | |
18544 | } | |
18545 | ||
18546 | ||
c32bde28 | 18547 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18548 | PyObject *resultobj; |
18549 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18550 | wxString *arg2 = 0 ; | |
ae8162c8 | 18551 | bool temp2 = false ; |
d55e5bfc RD |
18552 | PyObject * obj0 = 0 ; |
18553 | PyObject * obj1 = 0 ; | |
18554 | char *kwnames[] = { | |
18555 | (char *) "self",(char *) "text", NULL | |
18556 | }; | |
18557 | ||
18558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18561 | { | |
18562 | arg2 = wxString_in_helper(obj1); | |
18563 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18564 | temp2 = true; |
d55e5bfc RD |
18565 | } |
18566 | { | |
18567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18568 | (arg1)->SetText((wxString const &)*arg2); | |
18569 | ||
18570 | wxPyEndAllowThreads(__tstate); | |
18571 | if (PyErr_Occurred()) SWIG_fail; | |
18572 | } | |
18573 | Py_INCREF(Py_None); resultobj = Py_None; | |
18574 | { | |
18575 | if (temp2) | |
18576 | delete arg2; | |
18577 | } | |
18578 | return resultobj; | |
18579 | fail: | |
18580 | { | |
18581 | if (temp2) | |
18582 | delete arg2; | |
18583 | } | |
18584 | return NULL; | |
18585 | } | |
18586 | ||
18587 | ||
c32bde28 | 18588 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18589 | PyObject *resultobj; |
18590 | long arg1 ; | |
18591 | PyObject * obj0 = 0 ; | |
18592 | char *kwnames[] = { | |
18593 | (char *) "updateInterval", NULL | |
18594 | }; | |
18595 | ||
18596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
c32bde28 | 18597 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
18598 | if (PyErr_Occurred()) SWIG_fail; |
18599 | { | |
18600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18601 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18602 | ||
18603 | wxPyEndAllowThreads(__tstate); | |
18604 | if (PyErr_Occurred()) SWIG_fail; | |
18605 | } | |
18606 | Py_INCREF(Py_None); resultobj = Py_None; | |
18607 | return resultobj; | |
18608 | fail: | |
18609 | return NULL; | |
18610 | } | |
18611 | ||
18612 | ||
c32bde28 | 18613 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18614 | PyObject *resultobj; |
18615 | long result; | |
18616 | char *kwnames[] = { | |
18617 | NULL | |
18618 | }; | |
18619 | ||
18620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18621 | { | |
18622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18623 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18624 | ||
18625 | wxPyEndAllowThreads(__tstate); | |
18626 | if (PyErr_Occurred()) SWIG_fail; | |
18627 | } | |
c32bde28 | 18628 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
18629 | return resultobj; |
18630 | fail: | |
18631 | return NULL; | |
18632 | } | |
18633 | ||
18634 | ||
c32bde28 | 18635 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18636 | PyObject *resultobj; |
18637 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18638 | bool result; | |
18639 | PyObject * obj0 = 0 ; | |
18640 | char *kwnames[] = { | |
18641 | (char *) "win", NULL | |
18642 | }; | |
18643 | ||
18644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18647 | { | |
18648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18649 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18650 | ||
18651 | wxPyEndAllowThreads(__tstate); | |
18652 | if (PyErr_Occurred()) SWIG_fail; | |
18653 | } | |
18654 | { | |
18655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18656 | } | |
18657 | return resultobj; | |
18658 | fail: | |
18659 | return NULL; | |
18660 | } | |
18661 | ||
18662 | ||
c32bde28 | 18663 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18664 | PyObject *resultobj; |
18665 | char *kwnames[] = { | |
18666 | NULL | |
18667 | }; | |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18670 | { | |
18671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18672 | wxUpdateUIEvent::ResetUpdateTime(); | |
18673 | ||
18674 | wxPyEndAllowThreads(__tstate); | |
18675 | if (PyErr_Occurred()) SWIG_fail; | |
18676 | } | |
18677 | Py_INCREF(Py_None); resultobj = Py_None; | |
18678 | return resultobj; | |
18679 | fail: | |
18680 | return NULL; | |
18681 | } | |
18682 | ||
18683 | ||
c32bde28 | 18684 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18685 | PyObject *resultobj; |
18686 | int arg1 ; | |
18687 | PyObject * obj0 = 0 ; | |
18688 | char *kwnames[] = { | |
18689 | (char *) "mode", NULL | |
18690 | }; | |
18691 | ||
18692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 18693 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18694 | if (PyErr_Occurred()) SWIG_fail; |
18695 | { | |
18696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18697 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18698 | ||
18699 | wxPyEndAllowThreads(__tstate); | |
18700 | if (PyErr_Occurred()) SWIG_fail; | |
18701 | } | |
18702 | Py_INCREF(Py_None); resultobj = Py_None; | |
18703 | return resultobj; | |
18704 | fail: | |
18705 | return NULL; | |
18706 | } | |
18707 | ||
18708 | ||
c32bde28 | 18709 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18710 | PyObject *resultobj; |
18711 | int result; | |
18712 | char *kwnames[] = { | |
18713 | NULL | |
18714 | }; | |
18715 | ||
18716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18717 | { | |
18718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18719 | result = (int)wxUpdateUIEvent::GetMode(); | |
18720 | ||
18721 | wxPyEndAllowThreads(__tstate); | |
18722 | if (PyErr_Occurred()) SWIG_fail; | |
18723 | } | |
c32bde28 | 18724 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18725 | return resultobj; |
18726 | fail: | |
18727 | return NULL; | |
18728 | } | |
18729 | ||
18730 | ||
c32bde28 | 18731 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18732 | PyObject *obj; |
18733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18734 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18735 | Py_INCREF(obj); | |
18736 | return Py_BuildValue((char *)""); | |
18737 | } | |
c32bde28 | 18738 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18739 | PyObject *resultobj; |
18740 | wxSysColourChangedEvent *result; | |
18741 | char *kwnames[] = { | |
18742 | NULL | |
18743 | }; | |
18744 | ||
18745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18746 | { | |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
18753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18754 | return resultobj; | |
18755 | fail: | |
18756 | return NULL; | |
18757 | } | |
18758 | ||
18759 | ||
c32bde28 | 18760 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18761 | PyObject *obj; |
18762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18763 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18764 | Py_INCREF(obj); | |
18765 | return Py_BuildValue((char *)""); | |
18766 | } | |
c32bde28 | 18767 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18768 | PyObject *resultobj; |
18769 | int arg1 = (int) 0 ; | |
18770 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18771 | wxMouseCaptureChangedEvent *result; | |
18772 | PyObject * obj0 = 0 ; | |
18773 | PyObject * obj1 = 0 ; | |
18774 | char *kwnames[] = { | |
18775 | (char *) "winid",(char *) "gainedCapture", NULL | |
18776 | }; | |
18777 | ||
18778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18779 | if (obj0) { | |
c32bde28 | 18780 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18781 | if (PyErr_Occurred()) SWIG_fail; |
18782 | } | |
18783 | if (obj1) { | |
18784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18786 | } | |
18787 | { | |
18788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18789 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18790 | ||
18791 | wxPyEndAllowThreads(__tstate); | |
18792 | if (PyErr_Occurred()) SWIG_fail; | |
18793 | } | |
18794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18795 | return resultobj; | |
18796 | fail: | |
18797 | return NULL; | |
18798 | } | |
18799 | ||
18800 | ||
c32bde28 | 18801 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18802 | PyObject *resultobj; |
18803 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18804 | wxWindow *result; | |
18805 | PyObject * obj0 = 0 ; | |
18806 | char *kwnames[] = { | |
18807 | (char *) "self", NULL | |
18808 | }; | |
18809 | ||
18810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18813 | { | |
18814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18815 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18816 | ||
18817 | wxPyEndAllowThreads(__tstate); | |
18818 | if (PyErr_Occurred()) SWIG_fail; | |
18819 | } | |
18820 | { | |
412d302d | 18821 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18822 | } |
18823 | return resultobj; | |
18824 | fail: | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
c32bde28 | 18829 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18830 | PyObject *obj; |
18831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18832 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18833 | Py_INCREF(obj); | |
18834 | return Py_BuildValue((char *)""); | |
18835 | } | |
c32bde28 | 18836 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18837 | PyObject *resultobj; |
18838 | wxDisplayChangedEvent *result; | |
18839 | char *kwnames[] = { | |
18840 | NULL | |
18841 | }; | |
18842 | ||
18843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
18851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18852 | return resultobj; | |
18853 | fail: | |
18854 | return NULL; | |
18855 | } | |
18856 | ||
18857 | ||
c32bde28 | 18858 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18859 | PyObject *obj; |
18860 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18861 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18862 | Py_INCREF(obj); | |
18863 | return Py_BuildValue((char *)""); | |
18864 | } | |
c32bde28 | 18865 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18866 | PyObject *resultobj; |
18867 | int arg1 = (int) 0 ; | |
18868 | wxPaletteChangedEvent *result; | |
18869 | PyObject * obj0 = 0 ; | |
18870 | char *kwnames[] = { | |
18871 | (char *) "id", NULL | |
18872 | }; | |
18873 | ||
18874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18875 | if (obj0) { | |
c32bde28 | 18876 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18877 | if (PyErr_Occurred()) SWIG_fail; |
18878 | } | |
18879 | { | |
18880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18881 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18882 | ||
18883 | wxPyEndAllowThreads(__tstate); | |
18884 | if (PyErr_Occurred()) SWIG_fail; | |
18885 | } | |
18886 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18887 | return resultobj; | |
18888 | fail: | |
18889 | return NULL; | |
18890 | } | |
18891 | ||
18892 | ||
c32bde28 | 18893 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18894 | PyObject *resultobj; |
18895 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18896 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18897 | PyObject * obj0 = 0 ; | |
18898 | PyObject * obj1 = 0 ; | |
18899 | char *kwnames[] = { | |
18900 | (char *) "self",(char *) "win", NULL | |
18901 | }; | |
18902 | ||
18903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18906 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | (arg1)->SetChangedWindow(arg2); | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
18915 | Py_INCREF(Py_None); resultobj = Py_None; | |
18916 | return resultobj; | |
18917 | fail: | |
18918 | return NULL; | |
18919 | } | |
18920 | ||
18921 | ||
c32bde28 | 18922 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18923 | PyObject *resultobj; |
18924 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18925 | wxWindow *result; | |
18926 | PyObject * obj0 = 0 ; | |
18927 | char *kwnames[] = { | |
18928 | (char *) "self", NULL | |
18929 | }; | |
18930 | ||
18931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18934 | { | |
18935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18936 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18937 | ||
18938 | wxPyEndAllowThreads(__tstate); | |
18939 | if (PyErr_Occurred()) SWIG_fail; | |
18940 | } | |
18941 | { | |
412d302d | 18942 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18943 | } |
18944 | return resultobj; | |
18945 | fail: | |
18946 | return NULL; | |
18947 | } | |
18948 | ||
18949 | ||
c32bde28 | 18950 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18951 | PyObject *obj; |
18952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18953 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18954 | Py_INCREF(obj); | |
18955 | return Py_BuildValue((char *)""); | |
18956 | } | |
c32bde28 | 18957 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18958 | PyObject *resultobj; |
18959 | int arg1 = (int) 0 ; | |
18960 | wxQueryNewPaletteEvent *result; | |
18961 | PyObject * obj0 = 0 ; | |
18962 | char *kwnames[] = { | |
18963 | (char *) "winid", NULL | |
18964 | }; | |
18965 | ||
18966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18967 | if (obj0) { | |
c32bde28 | 18968 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18969 | if (PyErr_Occurred()) SWIG_fail; |
18970 | } | |
18971 | { | |
18972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18973 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18974 | ||
18975 | wxPyEndAllowThreads(__tstate); | |
18976 | if (PyErr_Occurred()) SWIG_fail; | |
18977 | } | |
18978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18979 | return resultobj; | |
18980 | fail: | |
18981 | return NULL; | |
18982 | } | |
18983 | ||
18984 | ||
c32bde28 | 18985 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18986 | PyObject *resultobj; |
18987 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18988 | bool arg2 ; | |
18989 | PyObject * obj0 = 0 ; | |
18990 | PyObject * obj1 = 0 ; | |
18991 | char *kwnames[] = { | |
18992 | (char *) "self",(char *) "realized", NULL | |
18993 | }; | |
18994 | ||
18995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18998 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18999 | if (PyErr_Occurred()) SWIG_fail; |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | (arg1)->SetPaletteRealized(arg2); | |
19003 | ||
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
19007 | Py_INCREF(Py_None); resultobj = Py_None; | |
19008 | return resultobj; | |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
c32bde28 | 19014 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19015 | PyObject *resultobj; |
19016 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19017 | bool result; | |
19018 | PyObject * obj0 = 0 ; | |
19019 | char *kwnames[] = { | |
19020 | (char *) "self", NULL | |
19021 | }; | |
19022 | ||
19023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
19024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
19025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19026 | { | |
19027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19028 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
19029 | ||
19030 | wxPyEndAllowThreads(__tstate); | |
19031 | if (PyErr_Occurred()) SWIG_fail; | |
19032 | } | |
19033 | { | |
19034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19035 | } | |
19036 | return resultobj; | |
19037 | fail: | |
19038 | return NULL; | |
19039 | } | |
19040 | ||
19041 | ||
c32bde28 | 19042 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19043 | PyObject *obj; |
19044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19045 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
19046 | Py_INCREF(obj); | |
19047 | return Py_BuildValue((char *)""); | |
19048 | } | |
c32bde28 | 19049 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19050 | PyObject *resultobj; |
19051 | wxNavigationKeyEvent *result; | |
19052 | char *kwnames[] = { | |
19053 | NULL | |
19054 | }; | |
19055 | ||
19056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
19057 | { | |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
19064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
19065 | return resultobj; | |
19066 | fail: | |
19067 | return NULL; | |
19068 | } | |
19069 | ||
19070 | ||
c32bde28 | 19071 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19072 | PyObject *resultobj; |
19073 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19074 | bool result; | |
19075 | PyObject * obj0 = 0 ; | |
19076 | char *kwnames[] = { | |
19077 | (char *) "self", NULL | |
19078 | }; | |
19079 | ||
19080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
19081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19083 | { | |
19084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19085 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
19086 | ||
19087 | wxPyEndAllowThreads(__tstate); | |
19088 | if (PyErr_Occurred()) SWIG_fail; | |
19089 | } | |
19090 | { | |
19091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19092 | } | |
19093 | return resultobj; | |
19094 | fail: | |
19095 | return NULL; | |
19096 | } | |
19097 | ||
19098 | ||
c32bde28 | 19099 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19100 | PyObject *resultobj; |
19101 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19102 | bool arg2 ; | |
19103 | PyObject * obj0 = 0 ; | |
19104 | PyObject * obj1 = 0 ; | |
19105 | char *kwnames[] = { | |
908b74cd | 19106 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
19107 | }; |
19108 | ||
19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
19110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19112 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19113 | if (PyErr_Occurred()) SWIG_fail; |
19114 | { | |
19115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19116 | (arg1)->SetDirection(arg2); | |
19117 | ||
19118 | wxPyEndAllowThreads(__tstate); | |
19119 | if (PyErr_Occurred()) SWIG_fail; | |
19120 | } | |
19121 | Py_INCREF(Py_None); resultobj = Py_None; | |
19122 | return resultobj; | |
19123 | fail: | |
19124 | return NULL; | |
19125 | } | |
19126 | ||
19127 | ||
c32bde28 | 19128 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19129 | PyObject *resultobj; |
19130 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19131 | bool result; | |
19132 | PyObject * obj0 = 0 ; | |
19133 | char *kwnames[] = { | |
19134 | (char *) "self", NULL | |
19135 | }; | |
19136 | ||
19137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
19138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19140 | { | |
19141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19142 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19143 | ||
19144 | wxPyEndAllowThreads(__tstate); | |
19145 | if (PyErr_Occurred()) SWIG_fail; | |
19146 | } | |
19147 | { | |
19148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19149 | } | |
19150 | return resultobj; | |
19151 | fail: | |
19152 | return NULL; | |
19153 | } | |
19154 | ||
19155 | ||
c32bde28 | 19156 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19157 | PyObject *resultobj; |
19158 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19159 | bool arg2 ; | |
19160 | PyObject * obj0 = 0 ; | |
19161 | PyObject * obj1 = 0 ; | |
19162 | char *kwnames[] = { | |
908b74cd | 19163 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
19164 | }; |
19165 | ||
19166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
19167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19169 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19170 | if (PyErr_Occurred()) SWIG_fail; |
19171 | { | |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19173 | (arg1)->SetWindowChange(arg2); | |
19174 | ||
19175 | wxPyEndAllowThreads(__tstate); | |
19176 | if (PyErr_Occurred()) SWIG_fail; | |
19177 | } | |
19178 | Py_INCREF(Py_None); resultobj = Py_None; | |
19179 | return resultobj; | |
19180 | fail: | |
19181 | return NULL; | |
19182 | } | |
19183 | ||
19184 | ||
c32bde28 | 19185 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19186 | PyObject *resultobj; |
19187 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19188 | long arg2 ; | |
19189 | PyObject * obj0 = 0 ; | |
19190 | PyObject * obj1 = 0 ; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "self",(char *) "flags", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19198 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19199 | if (PyErr_Occurred()) SWIG_fail; |
19200 | { | |
19201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19202 | (arg1)->SetFlags(arg2); | |
19203 | ||
19204 | wxPyEndAllowThreads(__tstate); | |
19205 | if (PyErr_Occurred()) SWIG_fail; | |
19206 | } | |
19207 | Py_INCREF(Py_None); resultobj = Py_None; | |
19208 | return resultobj; | |
19209 | fail: | |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
c32bde28 | 19214 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19215 | PyObject *resultobj; |
19216 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19217 | wxWindow *result; | |
19218 | PyObject * obj0 = 0 ; | |
19219 | char *kwnames[] = { | |
19220 | (char *) "self", NULL | |
19221 | }; | |
19222 | ||
19223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
19224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19226 | { | |
19227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19228 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19229 | ||
19230 | wxPyEndAllowThreads(__tstate); | |
19231 | if (PyErr_Occurred()) SWIG_fail; | |
19232 | } | |
19233 | { | |
412d302d | 19234 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19235 | } |
19236 | return resultobj; | |
19237 | fail: | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
c32bde28 | 19242 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19243 | PyObject *resultobj; |
19244 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19245 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19246 | PyObject * obj0 = 0 ; | |
19247 | PyObject * obj1 = 0 ; | |
19248 | char *kwnames[] = { | |
19249 | (char *) "self",(char *) "win", NULL | |
19250 | }; | |
19251 | ||
19252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
19253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19255 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19257 | { | |
19258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19259 | (arg1)->SetCurrentFocus(arg2); | |
19260 | ||
19261 | wxPyEndAllowThreads(__tstate); | |
19262 | if (PyErr_Occurred()) SWIG_fail; | |
19263 | } | |
19264 | Py_INCREF(Py_None); resultobj = Py_None; | |
19265 | return resultobj; | |
19266 | fail: | |
19267 | return NULL; | |
19268 | } | |
19269 | ||
19270 | ||
c32bde28 | 19271 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19272 | PyObject *obj; |
19273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19274 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19275 | Py_INCREF(obj); | |
19276 | return Py_BuildValue((char *)""); | |
19277 | } | |
c32bde28 | 19278 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19279 | PyObject *resultobj; |
19280 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19281 | wxWindowCreateEvent *result; | |
19282 | PyObject * obj0 = 0 ; | |
19283 | char *kwnames[] = { | |
19284 | (char *) "win", NULL | |
19285 | }; | |
19286 | ||
19287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19288 | if (obj0) { | |
19289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19291 | } | |
19292 | { | |
19293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19294 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19295 | ||
19296 | wxPyEndAllowThreads(__tstate); | |
19297 | if (PyErr_Occurred()) SWIG_fail; | |
19298 | } | |
19299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
19300 | return resultobj; | |
19301 | fail: | |
19302 | return NULL; | |
19303 | } | |
19304 | ||
19305 | ||
c32bde28 | 19306 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19307 | PyObject *resultobj; |
19308 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19309 | wxWindow *result; | |
19310 | PyObject * obj0 = 0 ; | |
19311 | char *kwnames[] = { | |
19312 | (char *) "self", NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
19317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19318 | { | |
19319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19320 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19321 | ||
19322 | wxPyEndAllowThreads(__tstate); | |
19323 | if (PyErr_Occurred()) SWIG_fail; | |
19324 | } | |
19325 | { | |
412d302d | 19326 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19327 | } |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
c32bde28 | 19334 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19335 | PyObject *obj; |
19336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19337 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19338 | Py_INCREF(obj); | |
19339 | return Py_BuildValue((char *)""); | |
19340 | } | |
c32bde28 | 19341 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19342 | PyObject *resultobj; |
19343 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19344 | wxWindowDestroyEvent *result; | |
19345 | PyObject * obj0 = 0 ; | |
19346 | char *kwnames[] = { | |
19347 | (char *) "win", NULL | |
19348 | }; | |
19349 | ||
19350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19351 | if (obj0) { | |
19352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19354 | } | |
19355 | { | |
19356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19357 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19358 | ||
19359 | wxPyEndAllowThreads(__tstate); | |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
19361 | } | |
19362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19363 | return resultobj; | |
19364 | fail: | |
19365 | return NULL; | |
19366 | } | |
19367 | ||
19368 | ||
c32bde28 | 19369 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19370 | PyObject *resultobj; |
19371 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19372 | wxWindow *result; | |
19373 | PyObject * obj0 = 0 ; | |
19374 | char *kwnames[] = { | |
19375 | (char *) "self", NULL | |
19376 | }; | |
19377 | ||
19378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19381 | { | |
19382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19383 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19384 | ||
19385 | wxPyEndAllowThreads(__tstate); | |
19386 | if (PyErr_Occurred()) SWIG_fail; | |
19387 | } | |
19388 | { | |
412d302d | 19389 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19390 | } |
19391 | return resultobj; | |
19392 | fail: | |
19393 | return NULL; | |
19394 | } | |
19395 | ||
19396 | ||
c32bde28 | 19397 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19398 | PyObject *obj; |
19399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19400 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19401 | Py_INCREF(obj); | |
19402 | return Py_BuildValue((char *)""); | |
19403 | } | |
c32bde28 | 19404 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19405 | PyObject *resultobj; |
19406 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19407 | int arg2 = (int) 0 ; | |
19408 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19409 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19410 | wxContextMenuEvent *result; | |
19411 | wxPoint temp3 ; | |
19412 | PyObject * obj0 = 0 ; | |
19413 | PyObject * obj1 = 0 ; | |
19414 | PyObject * obj2 = 0 ; | |
19415 | char *kwnames[] = { | |
19416 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19417 | }; | |
19418 | ||
19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19420 | if (obj0) { | |
c32bde28 | 19421 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19422 | if (PyErr_Occurred()) SWIG_fail; |
19423 | } | |
19424 | if (obj1) { | |
c32bde28 | 19425 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19426 | if (PyErr_Occurred()) SWIG_fail; |
19427 | } | |
19428 | if (obj2) { | |
19429 | { | |
19430 | arg3 = &temp3; | |
19431 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19432 | } | |
19433 | } | |
19434 | { | |
19435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19436 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19437 | ||
19438 | wxPyEndAllowThreads(__tstate); | |
19439 | if (PyErr_Occurred()) SWIG_fail; | |
19440 | } | |
19441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19442 | return resultobj; | |
19443 | fail: | |
19444 | return NULL; | |
19445 | } | |
19446 | ||
19447 | ||
c32bde28 | 19448 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19449 | PyObject *resultobj; |
19450 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19451 | wxPoint *result; | |
19452 | PyObject * obj0 = 0 ; | |
19453 | char *kwnames[] = { | |
19454 | (char *) "self", NULL | |
19455 | }; | |
19456 | ||
19457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19460 | { | |
19461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19462 | { | |
19463 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19464 | result = (wxPoint *) &_result_ref; | |
19465 | } | |
19466 | ||
19467 | wxPyEndAllowThreads(__tstate); | |
19468 | if (PyErr_Occurred()) SWIG_fail; | |
19469 | } | |
19470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19471 | return resultobj; | |
19472 | fail: | |
19473 | return NULL; | |
19474 | } | |
19475 | ||
19476 | ||
c32bde28 | 19477 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19478 | PyObject *resultobj; |
19479 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19480 | wxPoint *arg2 = 0 ; | |
19481 | wxPoint temp2 ; | |
19482 | PyObject * obj0 = 0 ; | |
19483 | PyObject * obj1 = 0 ; | |
19484 | char *kwnames[] = { | |
19485 | (char *) "self",(char *) "pos", NULL | |
19486 | }; | |
19487 | ||
19488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19491 | { | |
19492 | arg2 = &temp2; | |
19493 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19494 | } | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
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 * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19510 | PyObject *obj; |
19511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19512 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19513 | Py_INCREF(obj); | |
19514 | return Py_BuildValue((char *)""); | |
19515 | } | |
c32bde28 | 19516 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19517 | PyObject *resultobj; |
19518 | wxIdleEvent *result; | |
19519 | char *kwnames[] = { | |
19520 | NULL | |
19521 | }; | |
19522 | ||
19523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19524 | { | |
19525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19526 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19527 | ||
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19532 | return resultobj; | |
19533 | fail: | |
19534 | return NULL; | |
19535 | } | |
19536 | ||
19537 | ||
c32bde28 | 19538 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19539 | PyObject *resultobj; |
19540 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 19541 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19542 | PyObject * obj0 = 0 ; |
19543 | PyObject * obj1 = 0 ; | |
19544 | char *kwnames[] = { | |
19545 | (char *) "self",(char *) "needMore", NULL | |
19546 | }; | |
19547 | ||
19548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19551 | if (obj1) { | |
c32bde28 | 19552 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19553 | if (PyErr_Occurred()) SWIG_fail; |
19554 | } | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | (arg1)->RequestMore(arg2); | |
19558 | ||
19559 | wxPyEndAllowThreads(__tstate); | |
19560 | if (PyErr_Occurred()) SWIG_fail; | |
19561 | } | |
19562 | Py_INCREF(Py_None); resultobj = Py_None; | |
19563 | return resultobj; | |
19564 | fail: | |
19565 | return NULL; | |
19566 | } | |
19567 | ||
19568 | ||
c32bde28 | 19569 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19570 | PyObject *resultobj; |
19571 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19572 | bool result; | |
19573 | PyObject * obj0 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19581 | { | |
19582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19583 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19584 | ||
19585 | wxPyEndAllowThreads(__tstate); | |
19586 | if (PyErr_Occurred()) SWIG_fail; | |
19587 | } | |
19588 | { | |
19589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19590 | } | |
19591 | return resultobj; | |
19592 | fail: | |
19593 | return NULL; | |
19594 | } | |
19595 | ||
19596 | ||
c32bde28 | 19597 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19598 | PyObject *resultobj; |
19599 | int arg1 ; | |
19600 | PyObject * obj0 = 0 ; | |
19601 | char *kwnames[] = { | |
19602 | (char *) "mode", NULL | |
19603 | }; | |
19604 | ||
19605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 19606 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19607 | if (PyErr_Occurred()) SWIG_fail; |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19610 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19611 | ||
19612 | wxPyEndAllowThreads(__tstate); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | } | |
19615 | Py_INCREF(Py_None); resultobj = Py_None; | |
19616 | return resultobj; | |
19617 | fail: | |
19618 | return NULL; | |
19619 | } | |
19620 | ||
19621 | ||
c32bde28 | 19622 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19623 | PyObject *resultobj; |
19624 | int result; | |
19625 | char *kwnames[] = { | |
19626 | NULL | |
19627 | }; | |
19628 | ||
19629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19630 | { | |
19631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19632 | result = (int)wxIdleEvent::GetMode(); | |
19633 | ||
19634 | wxPyEndAllowThreads(__tstate); | |
19635 | if (PyErr_Occurred()) SWIG_fail; | |
19636 | } | |
c32bde28 | 19637 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19638 | return resultobj; |
19639 | fail: | |
19640 | return NULL; | |
19641 | } | |
19642 | ||
19643 | ||
c32bde28 | 19644 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19645 | PyObject *resultobj; |
19646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19647 | bool result; | |
19648 | PyObject * obj0 = 0 ; | |
19649 | char *kwnames[] = { | |
19650 | (char *) "win", NULL | |
19651 | }; | |
19652 | ||
19653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19656 | { | |
19657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19658 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19659 | ||
19660 | wxPyEndAllowThreads(__tstate); | |
19661 | if (PyErr_Occurred()) SWIG_fail; | |
19662 | } | |
19663 | { | |
19664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19665 | } | |
19666 | return resultobj; | |
19667 | fail: | |
19668 | return NULL; | |
19669 | } | |
19670 | ||
19671 | ||
c32bde28 | 19672 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19673 | PyObject *obj; |
19674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19675 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19676 | Py_INCREF(obj); | |
19677 | return Py_BuildValue((char *)""); | |
19678 | } | |
c32bde28 | 19679 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19680 | PyObject *resultobj; |
19681 | int arg1 = (int) 0 ; | |
19682 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19683 | wxPyEvent *result; | |
19684 | PyObject * obj0 = 0 ; | |
19685 | PyObject * obj1 = 0 ; | |
19686 | char *kwnames[] = { | |
19687 | (char *) "winid",(char *) "commandType", NULL | |
19688 | }; | |
19689 | ||
19690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19691 | if (obj0) { | |
c32bde28 | 19692 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19693 | if (PyErr_Occurred()) SWIG_fail; |
19694 | } | |
19695 | if (obj1) { | |
c32bde28 | 19696 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
19697 | if (PyErr_Occurred()) SWIG_fail; |
19698 | } | |
19699 | { | |
19700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19701 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19702 | ||
19703 | wxPyEndAllowThreads(__tstate); | |
19704 | if (PyErr_Occurred()) SWIG_fail; | |
19705 | } | |
19706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19707 | return resultobj; | |
19708 | fail: | |
19709 | return NULL; | |
19710 | } | |
19711 | ||
19712 | ||
c32bde28 | 19713 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19714 | PyObject *resultobj; |
19715 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19716 | PyObject * obj0 = 0 ; | |
19717 | char *kwnames[] = { | |
19718 | (char *) "self", NULL | |
19719 | }; | |
19720 | ||
19721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19724 | { | |
19725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19726 | delete arg1; | |
19727 | ||
19728 | wxPyEndAllowThreads(__tstate); | |
19729 | if (PyErr_Occurred()) SWIG_fail; | |
19730 | } | |
19731 | Py_INCREF(Py_None); resultobj = Py_None; | |
19732 | return resultobj; | |
19733 | fail: | |
19734 | return NULL; | |
19735 | } | |
19736 | ||
19737 | ||
c32bde28 | 19738 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19739 | PyObject *resultobj; |
19740 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19741 | PyObject *arg2 = (PyObject *) 0 ; | |
19742 | PyObject * obj0 = 0 ; | |
19743 | PyObject * obj1 = 0 ; | |
19744 | char *kwnames[] = { | |
19745 | (char *) "self",(char *) "self", NULL | |
19746 | }; | |
19747 | ||
19748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19751 | arg2 = obj1; | |
19752 | { | |
19753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19754 | (arg1)->SetSelf(arg2); | |
19755 | ||
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | Py_INCREF(Py_None); resultobj = Py_None; | |
19760 | return resultobj; | |
19761 | fail: | |
19762 | return NULL; | |
19763 | } | |
19764 | ||
19765 | ||
c32bde28 | 19766 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19767 | PyObject *resultobj; |
19768 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19769 | PyObject *result; | |
19770 | PyObject * obj0 = 0 ; | |
19771 | char *kwnames[] = { | |
19772 | (char *) "self", NULL | |
19773 | }; | |
19774 | ||
19775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19778 | { | |
19779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19780 | result = (PyObject *)(arg1)->GetSelf(); | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
19785 | resultobj = result; | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
c32bde28 | 19792 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19793 | PyObject *obj; |
19794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19795 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19796 | Py_INCREF(obj); | |
19797 | return Py_BuildValue((char *)""); | |
19798 | } | |
c32bde28 | 19799 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19800 | PyObject *resultobj; |
19801 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19802 | int arg2 = (int) 0 ; | |
19803 | wxPyCommandEvent *result; | |
19804 | PyObject * obj0 = 0 ; | |
19805 | PyObject * obj1 = 0 ; | |
19806 | char *kwnames[] = { | |
19807 | (char *) "commandType",(char *) "id", NULL | |
19808 | }; | |
19809 | ||
19810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19811 | if (obj0) { | |
c32bde28 | 19812 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19813 | if (PyErr_Occurred()) SWIG_fail; |
19814 | } | |
19815 | if (obj1) { | |
c32bde28 | 19816 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19817 | if (PyErr_Occurred()) SWIG_fail; |
19818 | } | |
19819 | { | |
19820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19821 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19822 | ||
19823 | wxPyEndAllowThreads(__tstate); | |
19824 | if (PyErr_Occurred()) SWIG_fail; | |
19825 | } | |
19826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19827 | return resultobj; | |
19828 | fail: | |
19829 | return NULL; | |
19830 | } | |
19831 | ||
19832 | ||
c32bde28 | 19833 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19834 | PyObject *resultobj; |
19835 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19836 | PyObject * obj0 = 0 ; | |
19837 | char *kwnames[] = { | |
19838 | (char *) "self", NULL | |
19839 | }; | |
19840 | ||
19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19844 | { | |
19845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19846 | delete arg1; | |
19847 | ||
19848 | wxPyEndAllowThreads(__tstate); | |
19849 | if (PyErr_Occurred()) SWIG_fail; | |
19850 | } | |
19851 | Py_INCREF(Py_None); resultobj = Py_None; | |
19852 | return resultobj; | |
19853 | fail: | |
19854 | return NULL; | |
19855 | } | |
19856 | ||
19857 | ||
c32bde28 | 19858 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19859 | PyObject *resultobj; |
19860 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19861 | PyObject *arg2 = (PyObject *) 0 ; | |
19862 | PyObject * obj0 = 0 ; | |
19863 | PyObject * obj1 = 0 ; | |
19864 | char *kwnames[] = { | |
19865 | (char *) "self",(char *) "self", NULL | |
19866 | }; | |
19867 | ||
19868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19871 | arg2 = obj1; | |
19872 | { | |
19873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19874 | (arg1)->SetSelf(arg2); | |
19875 | ||
19876 | wxPyEndAllowThreads(__tstate); | |
19877 | if (PyErr_Occurred()) SWIG_fail; | |
19878 | } | |
19879 | Py_INCREF(Py_None); resultobj = Py_None; | |
19880 | return resultobj; | |
19881 | fail: | |
19882 | return NULL; | |
19883 | } | |
19884 | ||
19885 | ||
c32bde28 | 19886 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19887 | PyObject *resultobj; |
19888 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19889 | PyObject *result; | |
19890 | PyObject * obj0 = 0 ; | |
19891 | char *kwnames[] = { | |
19892 | (char *) "self", NULL | |
19893 | }; | |
19894 | ||
19895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19898 | { | |
19899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19900 | result = (PyObject *)(arg1)->GetSelf(); | |
19901 | ||
19902 | wxPyEndAllowThreads(__tstate); | |
19903 | if (PyErr_Occurred()) SWIG_fail; | |
19904 | } | |
19905 | resultobj = result; | |
19906 | return resultobj; | |
19907 | fail: | |
19908 | return NULL; | |
19909 | } | |
19910 | ||
19911 | ||
c32bde28 | 19912 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19913 | PyObject *obj; |
19914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19915 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19916 | Py_INCREF(obj); | |
19917 | return Py_BuildValue((char *)""); | |
19918 | } | |
c32bde28 | 19919 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19920 | PyObject *resultobj; |
19921 | wxPyApp *result; | |
19922 | char *kwnames[] = { | |
19923 | NULL | |
19924 | }; | |
19925 | ||
19926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19927 | { | |
19928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19929 | result = (wxPyApp *)new_wxPyApp(); | |
19930 | ||
19931 | wxPyEndAllowThreads(__tstate); | |
19932 | if (PyErr_Occurred()) SWIG_fail; | |
19933 | } | |
b0f7404b | 19934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
19935 | return resultobj; |
19936 | fail: | |
19937 | return NULL; | |
19938 | } | |
19939 | ||
19940 | ||
c32bde28 | 19941 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19942 | PyObject *resultobj; |
19943 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19944 | PyObject * obj0 = 0 ; | |
19945 | char *kwnames[] = { | |
19946 | (char *) "self", NULL | |
19947 | }; | |
19948 | ||
19949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19952 | { | |
19953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19954 | delete arg1; | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | Py_INCREF(Py_None); resultobj = Py_None; | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
c32bde28 | 19966 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19967 | PyObject *resultobj; |
19968 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19969 | PyObject *arg2 = (PyObject *) 0 ; | |
19970 | PyObject *arg3 = (PyObject *) 0 ; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | PyObject * obj1 = 0 ; | |
19973 | PyObject * obj2 = 0 ; | |
19974 | char *kwnames[] = { | |
19975 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19976 | }; | |
19977 | ||
19978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19981 | arg2 = obj1; | |
19982 | arg3 = obj2; | |
19983 | { | |
19984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19985 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19986 | ||
19987 | wxPyEndAllowThreads(__tstate); | |
19988 | if (PyErr_Occurred()) SWIG_fail; | |
19989 | } | |
19990 | Py_INCREF(Py_None); resultobj = Py_None; | |
19991 | return resultobj; | |
19992 | fail: | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
c32bde28 | 19997 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19998 | PyObject *resultobj; |
19999 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20000 | wxString result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | char *kwnames[] = { | |
20003 | (char *) "self", NULL | |
20004 | }; | |
20005 | ||
20006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
20007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20009 | { | |
20010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20011 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
20012 | ||
20013 | wxPyEndAllowThreads(__tstate); | |
20014 | if (PyErr_Occurred()) SWIG_fail; | |
20015 | } | |
20016 | { | |
20017 | #if wxUSE_UNICODE | |
20018 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20019 | #else | |
20020 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20021 | #endif | |
20022 | } | |
20023 | return resultobj; | |
20024 | fail: | |
20025 | return NULL; | |
20026 | } | |
20027 | ||
20028 | ||
c32bde28 | 20029 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20030 | PyObject *resultobj; |
20031 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20032 | wxString *arg2 = 0 ; | |
ae8162c8 | 20033 | bool temp2 = false ; |
d55e5bfc RD |
20034 | PyObject * obj0 = 0 ; |
20035 | PyObject * obj1 = 0 ; | |
20036 | char *kwnames[] = { | |
20037 | (char *) "self",(char *) "name", NULL | |
20038 | }; | |
20039 | ||
20040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
20041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20043 | { | |
20044 | arg2 = wxString_in_helper(obj1); | |
20045 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20046 | temp2 = true; |
d55e5bfc RD |
20047 | } |
20048 | { | |
20049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20050 | (arg1)->SetAppName((wxString const &)*arg2); | |
20051 | ||
20052 | wxPyEndAllowThreads(__tstate); | |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
20054 | } | |
20055 | Py_INCREF(Py_None); resultobj = Py_None; | |
20056 | { | |
20057 | if (temp2) | |
20058 | delete arg2; | |
20059 | } | |
20060 | return resultobj; | |
20061 | fail: | |
20062 | { | |
20063 | if (temp2) | |
20064 | delete arg2; | |
20065 | } | |
20066 | return NULL; | |
20067 | } | |
20068 | ||
20069 | ||
c32bde28 | 20070 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20071 | PyObject *resultobj; |
20072 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20073 | wxString result; | |
20074 | PyObject * obj0 = 0 ; | |
20075 | char *kwnames[] = { | |
20076 | (char *) "self", NULL | |
20077 | }; | |
20078 | ||
20079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
20080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20082 | { | |
20083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20084 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
20085 | ||
20086 | wxPyEndAllowThreads(__tstate); | |
20087 | if (PyErr_Occurred()) SWIG_fail; | |
20088 | } | |
20089 | { | |
20090 | #if wxUSE_UNICODE | |
20091 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20092 | #else | |
20093 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20094 | #endif | |
20095 | } | |
20096 | return resultobj; | |
20097 | fail: | |
20098 | return NULL; | |
20099 | } | |
20100 | ||
20101 | ||
c32bde28 | 20102 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20103 | PyObject *resultobj; |
20104 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20105 | wxString *arg2 = 0 ; | |
ae8162c8 | 20106 | bool temp2 = false ; |
d55e5bfc RD |
20107 | PyObject * obj0 = 0 ; |
20108 | PyObject * obj1 = 0 ; | |
20109 | char *kwnames[] = { | |
20110 | (char *) "self",(char *) "name", NULL | |
20111 | }; | |
20112 | ||
20113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
20114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20116 | { | |
20117 | arg2 = wxString_in_helper(obj1); | |
20118 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20119 | temp2 = true; |
d55e5bfc RD |
20120 | } |
20121 | { | |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20123 | (arg1)->SetClassName((wxString const &)*arg2); | |
20124 | ||
20125 | wxPyEndAllowThreads(__tstate); | |
20126 | if (PyErr_Occurred()) SWIG_fail; | |
20127 | } | |
20128 | Py_INCREF(Py_None); resultobj = Py_None; | |
20129 | { | |
20130 | if (temp2) | |
20131 | delete arg2; | |
20132 | } | |
20133 | return resultobj; | |
20134 | fail: | |
20135 | { | |
20136 | if (temp2) | |
20137 | delete arg2; | |
20138 | } | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
c32bde28 | 20143 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20144 | PyObject *resultobj; |
20145 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20146 | wxString *result; | |
20147 | PyObject * obj0 = 0 ; | |
20148 | char *kwnames[] = { | |
20149 | (char *) "self", NULL | |
20150 | }; | |
20151 | ||
20152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
20153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20155 | { | |
20156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20157 | { | |
20158 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20159 | result = (wxString *) &_result_ref; | |
20160 | } | |
20161 | ||
20162 | wxPyEndAllowThreads(__tstate); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
20164 | } | |
20165 | { | |
20166 | #if wxUSE_UNICODE | |
20167 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20168 | #else | |
20169 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20170 | #endif | |
20171 | } | |
20172 | return resultobj; | |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
c32bde28 | 20178 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20179 | PyObject *resultobj; |
20180 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20181 | wxString *arg2 = 0 ; | |
ae8162c8 | 20182 | bool temp2 = false ; |
d55e5bfc RD |
20183 | PyObject * obj0 = 0 ; |
20184 | PyObject * obj1 = 0 ; | |
20185 | char *kwnames[] = { | |
20186 | (char *) "self",(char *) "name", NULL | |
20187 | }; | |
20188 | ||
20189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
20190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20192 | { | |
20193 | arg2 = wxString_in_helper(obj1); | |
20194 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20195 | temp2 = true; |
d55e5bfc RD |
20196 | } |
20197 | { | |
20198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20199 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20200 | ||
20201 | wxPyEndAllowThreads(__tstate); | |
20202 | if (PyErr_Occurred()) SWIG_fail; | |
20203 | } | |
20204 | Py_INCREF(Py_None); resultobj = Py_None; | |
20205 | { | |
20206 | if (temp2) | |
20207 | delete arg2; | |
20208 | } | |
20209 | return resultobj; | |
20210 | fail: | |
20211 | { | |
20212 | if (temp2) | |
20213 | delete arg2; | |
20214 | } | |
20215 | return NULL; | |
20216 | } | |
20217 | ||
20218 | ||
c32bde28 | 20219 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20220 | PyObject *resultobj; |
20221 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20222 | wxAppTraits *result; | |
20223 | PyObject * obj0 = 0 ; | |
20224 | char *kwnames[] = { | |
20225 | (char *) "self", NULL | |
20226 | }; | |
20227 | ||
20228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
20229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20231 | { | |
20232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20233 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20234 | ||
20235 | wxPyEndAllowThreads(__tstate); | |
20236 | if (PyErr_Occurred()) SWIG_fail; | |
20237 | } | |
20238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
20239 | return resultobj; | |
20240 | fail: | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
c32bde28 | 20245 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20246 | PyObject *resultobj; |
20247 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20248 | PyObject * obj0 = 0 ; | |
20249 | char *kwnames[] = { | |
20250 | (char *) "self", NULL | |
20251 | }; | |
20252 | ||
20253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
20254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20256 | { | |
20257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20258 | (arg1)->ProcessPendingEvents(); | |
20259 | ||
20260 | wxPyEndAllowThreads(__tstate); | |
20261 | if (PyErr_Occurred()) SWIG_fail; | |
20262 | } | |
20263 | Py_INCREF(Py_None); resultobj = Py_None; | |
20264 | return resultobj; | |
20265 | fail: | |
20266 | return NULL; | |
20267 | } | |
20268 | ||
20269 | ||
c32bde28 | 20270 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20271 | PyObject *resultobj; |
20272 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 20273 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20274 | bool result; |
20275 | PyObject * obj0 = 0 ; | |
20276 | PyObject * obj1 = 0 ; | |
20277 | char *kwnames[] = { | |
20278 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20279 | }; | |
20280 | ||
20281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
20282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20284 | if (obj1) { | |
c32bde28 | 20285 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20286 | if (PyErr_Occurred()) SWIG_fail; |
20287 | } | |
20288 | { | |
20289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20290 | result = (bool)(arg1)->Yield(arg2); | |
20291 | ||
20292 | wxPyEndAllowThreads(__tstate); | |
20293 | if (PyErr_Occurred()) SWIG_fail; | |
20294 | } | |
20295 | { | |
20296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20297 | } | |
20298 | return resultobj; | |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
c32bde28 | 20304 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20305 | PyObject *resultobj; |
20306 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20307 | PyObject * obj0 = 0 ; | |
20308 | char *kwnames[] = { | |
20309 | (char *) "self", NULL | |
20310 | }; | |
20311 | ||
20312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
20313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20315 | { | |
20316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20317 | (arg1)->WakeUpIdle(); | |
20318 | ||
20319 | wxPyEndAllowThreads(__tstate); | |
20320 | if (PyErr_Occurred()) SWIG_fail; | |
20321 | } | |
20322 | Py_INCREF(Py_None); resultobj = Py_None; | |
20323 | return resultobj; | |
20324 | fail: | |
20325 | return NULL; | |
20326 | } | |
20327 | ||
20328 | ||
84f85550 RD |
20329 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
20330 | PyObject *resultobj; | |
20331 | bool result; | |
20332 | char *kwnames[] = { | |
20333 | NULL | |
20334 | }; | |
20335 | ||
20336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
20337 | { | |
20338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20339 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
20340 | ||
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
20344 | { | |
20345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20346 | } | |
20347 | return resultobj; | |
20348 | fail: | |
20349 | return NULL; | |
20350 | } | |
20351 | ||
20352 | ||
c32bde28 | 20353 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20354 | PyObject *resultobj; |
20355 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20356 | int result; | |
20357 | PyObject * obj0 = 0 ; | |
20358 | char *kwnames[] = { | |
20359 | (char *) "self", NULL | |
20360 | }; | |
20361 | ||
20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20365 | { | |
20366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20367 | result = (int)(arg1)->MainLoop(); | |
20368 | ||
20369 | wxPyEndAllowThreads(__tstate); | |
20370 | if (PyErr_Occurred()) SWIG_fail; | |
20371 | } | |
c32bde28 | 20372 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20373 | return resultobj; |
20374 | fail: | |
20375 | return NULL; | |
20376 | } | |
20377 | ||
20378 | ||
c32bde28 | 20379 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20380 | PyObject *resultobj; |
20381 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20382 | PyObject * obj0 = 0 ; | |
20383 | char *kwnames[] = { | |
20384 | (char *) "self", NULL | |
20385 | }; | |
20386 | ||
20387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20390 | { | |
20391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20392 | (arg1)->Exit(); | |
20393 | ||
20394 | wxPyEndAllowThreads(__tstate); | |
20395 | if (PyErr_Occurred()) SWIG_fail; | |
20396 | } | |
20397 | Py_INCREF(Py_None); resultobj = Py_None; | |
20398 | return resultobj; | |
20399 | fail: | |
20400 | return NULL; | |
20401 | } | |
20402 | ||
20403 | ||
c32bde28 | 20404 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20405 | PyObject *resultobj; |
20406 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20407 | PyObject * obj0 = 0 ; | |
20408 | char *kwnames[] = { | |
20409 | (char *) "self", NULL | |
20410 | }; | |
20411 | ||
20412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | (arg1)->ExitMainLoop(); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | Py_INCREF(Py_None); resultobj = Py_None; | |
20423 | return resultobj; | |
20424 | fail: | |
20425 | return NULL; | |
20426 | } | |
20427 | ||
20428 | ||
c32bde28 | 20429 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20430 | PyObject *resultobj; |
20431 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20432 | bool result; | |
20433 | PyObject * obj0 = 0 ; | |
20434 | char *kwnames[] = { | |
20435 | (char *) "self", NULL | |
20436 | }; | |
20437 | ||
20438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20441 | { | |
20442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20443 | result = (bool)(arg1)->Pending(); | |
20444 | ||
20445 | wxPyEndAllowThreads(__tstate); | |
20446 | if (PyErr_Occurred()) SWIG_fail; | |
20447 | } | |
20448 | { | |
20449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20450 | } | |
20451 | return resultobj; | |
20452 | fail: | |
20453 | return NULL; | |
20454 | } | |
20455 | ||
20456 | ||
c32bde28 | 20457 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20458 | PyObject *resultobj; |
20459 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20460 | bool result; | |
20461 | PyObject * obj0 = 0 ; | |
20462 | char *kwnames[] = { | |
20463 | (char *) "self", NULL | |
20464 | }; | |
20465 | ||
20466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20469 | { | |
20470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20471 | result = (bool)(arg1)->Dispatch(); | |
20472 | ||
20473 | wxPyEndAllowThreads(__tstate); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
20476 | { | |
20477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20478 | } | |
20479 | return resultobj; | |
20480 | fail: | |
20481 | return NULL; | |
20482 | } | |
20483 | ||
20484 | ||
c32bde28 | 20485 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20486 | PyObject *resultobj; |
20487 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20488 | bool result; | |
20489 | PyObject * obj0 = 0 ; | |
20490 | char *kwnames[] = { | |
20491 | (char *) "self", NULL | |
20492 | }; | |
20493 | ||
20494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20497 | { | |
20498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20499 | result = (bool)(arg1)->ProcessIdle(); | |
20500 | ||
20501 | wxPyEndAllowThreads(__tstate); | |
20502 | if (PyErr_Occurred()) SWIG_fail; | |
20503 | } | |
20504 | { | |
20505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20506 | } | |
20507 | return resultobj; | |
20508 | fail: | |
20509 | return NULL; | |
20510 | } | |
20511 | ||
20512 | ||
c32bde28 | 20513 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20514 | PyObject *resultobj; |
20515 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20516 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20517 | wxIdleEvent *arg3 = 0 ; | |
20518 | bool result; | |
20519 | PyObject * obj0 = 0 ; | |
20520 | PyObject * obj1 = 0 ; | |
20521 | PyObject * obj2 = 0 ; | |
20522 | char *kwnames[] = { | |
20523 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20524 | }; | |
20525 | ||
20526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20531 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20533 | SWIG_fail; | |
20534 | if (arg3 == NULL) { | |
20535 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20536 | SWIG_fail; | |
20537 | } | |
20538 | { | |
20539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20540 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20541 | ||
20542 | wxPyEndAllowThreads(__tstate); | |
20543 | if (PyErr_Occurred()) SWIG_fail; | |
20544 | } | |
20545 | { | |
20546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20547 | } | |
20548 | return resultobj; | |
20549 | fail: | |
20550 | return NULL; | |
20551 | } | |
20552 | ||
20553 | ||
c32bde28 | 20554 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20555 | PyObject *resultobj; |
20556 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20557 | bool result; | |
20558 | PyObject * obj0 = 0 ; | |
20559 | char *kwnames[] = { | |
20560 | (char *) "self", NULL | |
20561 | }; | |
20562 | ||
20563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20566 | { | |
20567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20568 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20569 | ||
20570 | wxPyEndAllowThreads(__tstate); | |
20571 | if (PyErr_Occurred()) SWIG_fail; | |
20572 | } | |
20573 | { | |
20574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20575 | } | |
20576 | return resultobj; | |
20577 | fail: | |
20578 | return NULL; | |
20579 | } | |
20580 | ||
20581 | ||
c32bde28 | 20582 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20583 | PyObject *resultobj; |
20584 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20585 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20586 | PyObject * obj0 = 0 ; | |
20587 | PyObject * obj1 = 0 ; | |
20588 | char *kwnames[] = { | |
20589 | (char *) "self",(char *) "win", NULL | |
20590 | }; | |
20591 | ||
20592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20597 | { | |
20598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20599 | (arg1)->SetTopWindow(arg2); | |
20600 | ||
20601 | wxPyEndAllowThreads(__tstate); | |
20602 | if (PyErr_Occurred()) SWIG_fail; | |
20603 | } | |
20604 | Py_INCREF(Py_None); resultobj = Py_None; | |
20605 | return resultobj; | |
20606 | fail: | |
20607 | return NULL; | |
20608 | } | |
20609 | ||
20610 | ||
c32bde28 | 20611 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20612 | PyObject *resultobj; |
20613 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20614 | wxWindow *result; | |
20615 | PyObject * obj0 = 0 ; | |
20616 | char *kwnames[] = { | |
20617 | (char *) "self", NULL | |
20618 | }; | |
20619 | ||
20620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20623 | { | |
20624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20625 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
20630 | { | |
412d302d | 20631 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20632 | } |
20633 | return resultobj; | |
20634 | fail: | |
20635 | return NULL; | |
20636 | } | |
20637 | ||
20638 | ||
c32bde28 | 20639 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20640 | PyObject *resultobj; |
20641 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20642 | bool arg2 ; | |
20643 | PyObject * obj0 = 0 ; | |
20644 | PyObject * obj1 = 0 ; | |
20645 | char *kwnames[] = { | |
20646 | (char *) "self",(char *) "flag", NULL | |
20647 | }; | |
20648 | ||
20649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20652 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20653 | if (PyErr_Occurred()) SWIG_fail; |
20654 | { | |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | (arg1)->SetExitOnFrameDelete(arg2); | |
20657 | ||
20658 | wxPyEndAllowThreads(__tstate); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | Py_INCREF(Py_None); resultobj = Py_None; | |
20662 | return resultobj; | |
20663 | fail: | |
20664 | return NULL; | |
20665 | } | |
20666 | ||
20667 | ||
c32bde28 | 20668 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20669 | PyObject *resultobj; |
20670 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20671 | bool result; | |
20672 | PyObject * obj0 = 0 ; | |
20673 | char *kwnames[] = { | |
20674 | (char *) "self", NULL | |
20675 | }; | |
20676 | ||
20677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20680 | { | |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20683 | ||
20684 | wxPyEndAllowThreads(__tstate); | |
20685 | if (PyErr_Occurred()) SWIG_fail; | |
20686 | } | |
20687 | { | |
20688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20689 | } | |
20690 | return resultobj; | |
20691 | fail: | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
c32bde28 | 20696 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20697 | PyObject *resultobj; |
20698 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20699 | bool arg2 ; | |
20700 | PyObject * obj0 = 0 ; | |
20701 | PyObject * obj1 = 0 ; | |
20702 | char *kwnames[] = { | |
20703 | (char *) "self",(char *) "flag", NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20709 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20710 | if (PyErr_Occurred()) SWIG_fail; |
20711 | { | |
20712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20713 | (arg1)->SetUseBestVisual(arg2); | |
20714 | ||
20715 | wxPyEndAllowThreads(__tstate); | |
20716 | if (PyErr_Occurred()) SWIG_fail; | |
20717 | } | |
20718 | Py_INCREF(Py_None); resultobj = Py_None; | |
20719 | return resultobj; | |
20720 | fail: | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
c32bde28 | 20725 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20726 | PyObject *resultobj; |
20727 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20728 | bool result; | |
20729 | PyObject * obj0 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "self", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20737 | { | |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20740 | ||
20741 | wxPyEndAllowThreads(__tstate); | |
20742 | if (PyErr_Occurred()) SWIG_fail; | |
20743 | } | |
20744 | { | |
20745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20746 | } | |
20747 | return resultobj; | |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
c32bde28 | 20753 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20754 | PyObject *resultobj; |
20755 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20756 | int arg2 ; | |
20757 | PyObject * obj0 = 0 ; | |
20758 | PyObject * obj1 = 0 ; | |
20759 | char *kwnames[] = { | |
20760 | (char *) "self",(char *) "mode", NULL | |
20761 | }; | |
20762 | ||
20763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20766 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20767 | if (PyErr_Occurred()) SWIG_fail; |
20768 | { | |
20769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20770 | (arg1)->SetPrintMode(arg2); | |
20771 | ||
20772 | wxPyEndAllowThreads(__tstate); | |
20773 | if (PyErr_Occurred()) SWIG_fail; | |
20774 | } | |
20775 | Py_INCREF(Py_None); resultobj = Py_None; | |
20776 | return resultobj; | |
20777 | fail: | |
20778 | return NULL; | |
20779 | } | |
20780 | ||
20781 | ||
c32bde28 | 20782 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20783 | PyObject *resultobj; |
20784 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20785 | int result; | |
20786 | PyObject * obj0 = 0 ; | |
20787 | char *kwnames[] = { | |
20788 | (char *) "self", NULL | |
20789 | }; | |
20790 | ||
20791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20794 | { | |
20795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20796 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20797 | ||
20798 | wxPyEndAllowThreads(__tstate); | |
20799 | if (PyErr_Occurred()) SWIG_fail; | |
20800 | } | |
c32bde28 | 20801 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20802 | return resultobj; |
20803 | fail: | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
c32bde28 | 20808 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20809 | PyObject *resultobj; |
20810 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20811 | int arg2 ; | |
20812 | PyObject * obj0 = 0 ; | |
20813 | PyObject * obj1 = 0 ; | |
20814 | char *kwnames[] = { | |
20815 | (char *) "self",(char *) "mode", NULL | |
20816 | }; | |
20817 | ||
20818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20821 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20822 | if (PyErr_Occurred()) SWIG_fail; |
20823 | { | |
20824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20825 | (arg1)->SetAssertMode(arg2); | |
20826 | ||
20827 | wxPyEndAllowThreads(__tstate); | |
20828 | if (PyErr_Occurred()) SWIG_fail; | |
20829 | } | |
20830 | Py_INCREF(Py_None); resultobj = Py_None; | |
20831 | return resultobj; | |
20832 | fail: | |
20833 | return NULL; | |
20834 | } | |
20835 | ||
20836 | ||
c32bde28 | 20837 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20838 | PyObject *resultobj; |
20839 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20840 | int result; | |
20841 | PyObject * obj0 = 0 ; | |
20842 | char *kwnames[] = { | |
20843 | (char *) "self", NULL | |
20844 | }; | |
20845 | ||
20846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20849 | { | |
20850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20851 | result = (int)(arg1)->GetAssertMode(); | |
20852 | ||
20853 | wxPyEndAllowThreads(__tstate); | |
20854 | if (PyErr_Occurred()) SWIG_fail; | |
20855 | } | |
c32bde28 | 20856 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20857 | return resultobj; |
20858 | fail: | |
20859 | return NULL; | |
20860 | } | |
20861 | ||
20862 | ||
c32bde28 | 20863 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20864 | PyObject *resultobj; |
20865 | bool result; | |
20866 | char *kwnames[] = { | |
20867 | NULL | |
20868 | }; | |
20869 | ||
20870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20871 | { | |
20872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20873 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20874 | ||
20875 | wxPyEndAllowThreads(__tstate); | |
20876 | if (PyErr_Occurred()) SWIG_fail; | |
20877 | } | |
20878 | { | |
20879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20880 | } | |
20881 | return resultobj; | |
20882 | fail: | |
20883 | return NULL; | |
20884 | } | |
20885 | ||
20886 | ||
c32bde28 | 20887 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20888 | PyObject *resultobj; |
20889 | long result; | |
20890 | char *kwnames[] = { | |
20891 | NULL | |
20892 | }; | |
20893 | ||
20894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20895 | { | |
20896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20897 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20898 | ||
20899 | wxPyEndAllowThreads(__tstate); | |
20900 | if (PyErr_Occurred()) SWIG_fail; | |
20901 | } | |
c32bde28 | 20902 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20903 | return resultobj; |
20904 | fail: | |
20905 | return NULL; | |
20906 | } | |
20907 | ||
20908 | ||
c32bde28 | 20909 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20910 | PyObject *resultobj; |
20911 | long result; | |
20912 | char *kwnames[] = { | |
20913 | NULL | |
20914 | }; | |
20915 | ||
20916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20917 | { | |
20918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20919 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20920 | ||
20921 | wxPyEndAllowThreads(__tstate); | |
20922 | if (PyErr_Occurred()) SWIG_fail; | |
20923 | } | |
c32bde28 | 20924 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20925 | return resultobj; |
20926 | fail: | |
20927 | return NULL; | |
20928 | } | |
20929 | ||
20930 | ||
c32bde28 | 20931 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20932 | PyObject *resultobj; |
20933 | long result; | |
20934 | char *kwnames[] = { | |
20935 | NULL | |
20936 | }; | |
20937 | ||
20938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20939 | { | |
20940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20941 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20942 | ||
20943 | wxPyEndAllowThreads(__tstate); | |
20944 | if (PyErr_Occurred()) SWIG_fail; | |
20945 | } | |
c32bde28 | 20946 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20947 | return resultobj; |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
c32bde28 | 20953 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20954 | PyObject *resultobj; |
20955 | wxString result; | |
20956 | char *kwnames[] = { | |
20957 | NULL | |
20958 | }; | |
20959 | ||
20960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20961 | { | |
20962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20963 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20964 | ||
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
20968 | { | |
20969 | #if wxUSE_UNICODE | |
20970 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20971 | #else | |
20972 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20973 | #endif | |
20974 | } | |
20975 | return resultobj; | |
20976 | fail: | |
20977 | return NULL; | |
20978 | } | |
20979 | ||
20980 | ||
c32bde28 | 20981 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20982 | PyObject *resultobj; |
20983 | bool arg1 ; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "val", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c32bde28 | 20990 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
20991 | if (PyErr_Occurred()) SWIG_fail; |
20992 | { | |
20993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20994 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
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_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21007 | PyObject *resultobj; |
21008 | long arg1 ; | |
21009 | PyObject * obj0 = 0 ; | |
21010 | char *kwnames[] = { | |
21011 | (char *) "val", NULL | |
21012 | }; | |
21013 | ||
21014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21015 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21016 | if (PyErr_Occurred()) SWIG_fail; |
21017 | { | |
21018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21019 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
21020 | ||
21021 | wxPyEndAllowThreads(__tstate); | |
21022 | if (PyErr_Occurred()) SWIG_fail; | |
21023 | } | |
21024 | Py_INCREF(Py_None); resultobj = Py_None; | |
21025 | return resultobj; | |
21026 | fail: | |
21027 | return NULL; | |
21028 | } | |
21029 | ||
21030 | ||
c32bde28 | 21031 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21032 | PyObject *resultobj; |
21033 | long arg1 ; | |
21034 | PyObject * obj0 = 0 ; | |
21035 | char *kwnames[] = { | |
21036 | (char *) "val", NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21040 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21041 | if (PyErr_Occurred()) SWIG_fail; |
21042 | { | |
21043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21044 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
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_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21057 | PyObject *resultobj; |
21058 | long arg1 ; | |
21059 | PyObject * obj0 = 0 ; | |
21060 | char *kwnames[] = { | |
21061 | (char *) "val", NULL | |
21062 | }; | |
21063 | ||
21064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21065 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21066 | if (PyErr_Occurred()) SWIG_fail; |
21067 | { | |
21068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21069 | wxPyApp::SetMacExitMenuItemId(arg1); | |
21070 | ||
21071 | wxPyEndAllowThreads(__tstate); | |
21072 | if (PyErr_Occurred()) SWIG_fail; | |
21073 | } | |
21074 | Py_INCREF(Py_None); resultobj = Py_None; | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
c32bde28 | 21081 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21082 | PyObject *resultobj; |
21083 | wxString *arg1 = 0 ; | |
ae8162c8 | 21084 | bool temp1 = false ; |
d55e5bfc RD |
21085 | PyObject * obj0 = 0 ; |
21086 | char *kwnames[] = { | |
21087 | (char *) "val", NULL | |
21088 | }; | |
21089 | ||
21090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
21091 | { | |
21092 | arg1 = wxString_in_helper(obj0); | |
21093 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21094 | temp1 = true; |
d55e5bfc RD |
21095 | } |
21096 | { | |
21097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21098 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
21099 | ||
21100 | wxPyEndAllowThreads(__tstate); | |
21101 | if (PyErr_Occurred()) SWIG_fail; | |
21102 | } | |
21103 | Py_INCREF(Py_None); resultobj = Py_None; | |
21104 | { | |
21105 | if (temp1) | |
21106 | delete arg1; | |
21107 | } | |
21108 | return resultobj; | |
21109 | fail: | |
21110 | { | |
21111 | if (temp1) | |
21112 | delete arg1; | |
21113 | } | |
21114 | return NULL; | |
21115 | } | |
21116 | ||
21117 | ||
c32bde28 | 21118 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21119 | PyObject *resultobj; |
21120 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21121 | PyObject * obj0 = 0 ; | |
21122 | char *kwnames[] = { | |
21123 | (char *) "self", NULL | |
21124 | }; | |
21125 | ||
21126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
21127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
21128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21129 | { | |
21130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21131 | (arg1)->_BootstrapApp(); | |
21132 | ||
21133 | wxPyEndAllowThreads(__tstate); | |
21134 | if (PyErr_Occurred()) SWIG_fail; | |
21135 | } | |
21136 | Py_INCREF(Py_None); resultobj = Py_None; | |
21137 | return resultobj; | |
21138 | fail: | |
21139 | return NULL; | |
21140 | } | |
21141 | ||
21142 | ||
c32bde28 | 21143 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21144 | PyObject *resultobj; |
21145 | int result; | |
21146 | char *kwnames[] = { | |
21147 | NULL | |
21148 | }; | |
21149 | ||
21150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21151 | { | |
21152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21153 | result = (int)wxPyApp::GetComCtl32Version(); | |
21154 | ||
21155 | wxPyEndAllowThreads(__tstate); | |
21156 | if (PyErr_Occurred()) SWIG_fail; | |
21157 | } | |
c32bde28 | 21158 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21159 | return resultobj; |
21160 | fail: | |
21161 | return NULL; | |
21162 | } | |
21163 | ||
21164 | ||
c32bde28 | 21165 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21166 | PyObject *obj; |
21167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21168 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21169 | Py_INCREF(obj); | |
21170 | return Py_BuildValue((char *)""); | |
21171 | } | |
c32bde28 | 21172 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21173 | PyObject *resultobj; |
21174 | char *kwnames[] = { | |
21175 | NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21179 | { | |
21180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21181 | wxExit(); | |
21182 | ||
21183 | wxPyEndAllowThreads(__tstate); | |
21184 | if (PyErr_Occurred()) SWIG_fail; | |
21185 | } | |
21186 | Py_INCREF(Py_None); resultobj = Py_None; | |
21187 | return resultobj; | |
21188 | fail: | |
21189 | return NULL; | |
21190 | } | |
21191 | ||
21192 | ||
c32bde28 | 21193 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21194 | PyObject *resultobj; |
21195 | bool result; | |
21196 | char *kwnames[] = { | |
21197 | NULL | |
21198 | }; | |
21199 | ||
21200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21201 | { | |
21202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21203 | result = (bool)wxYield(); | |
21204 | ||
21205 | wxPyEndAllowThreads(__tstate); | |
21206 | if (PyErr_Occurred()) SWIG_fail; | |
21207 | } | |
21208 | { | |
21209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21210 | } | |
21211 | return resultobj; | |
21212 | fail: | |
21213 | return NULL; | |
21214 | } | |
21215 | ||
21216 | ||
c32bde28 | 21217 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21218 | PyObject *resultobj; |
21219 | bool result; | |
21220 | char *kwnames[] = { | |
21221 | NULL | |
21222 | }; | |
21223 | ||
21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21225 | { | |
21226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21227 | result = (bool)wxYieldIfNeeded(); | |
21228 | ||
21229 | wxPyEndAllowThreads(__tstate); | |
21230 | if (PyErr_Occurred()) SWIG_fail; | |
21231 | } | |
21232 | { | |
21233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21234 | } | |
21235 | return resultobj; | |
21236 | fail: | |
21237 | return NULL; | |
21238 | } | |
21239 | ||
21240 | ||
c32bde28 | 21241 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21242 | PyObject *resultobj; |
21243 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 21244 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21245 | bool result; |
21246 | PyObject * obj0 = 0 ; | |
21247 | PyObject * obj1 = 0 ; | |
21248 | char *kwnames[] = { | |
21249 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21250 | }; | |
21251 | ||
21252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21253 | if (obj0) { | |
21254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21256 | } | |
21257 | if (obj1) { | |
c32bde28 | 21258 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21259 | if (PyErr_Occurred()) SWIG_fail; |
21260 | } | |
21261 | { | |
21262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21263 | result = (bool)wxSafeYield(arg1,arg2); | |
21264 | ||
21265 | wxPyEndAllowThreads(__tstate); | |
21266 | if (PyErr_Occurred()) SWIG_fail; | |
21267 | } | |
21268 | { | |
21269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21270 | } | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | return NULL; | |
21274 | } | |
21275 | ||
21276 | ||
c32bde28 | 21277 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21278 | PyObject *resultobj; |
21279 | char *kwnames[] = { | |
21280 | NULL | |
21281 | }; | |
21282 | ||
21283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21284 | { | |
21285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21286 | wxWakeUpIdle(); | |
21287 | ||
21288 | wxPyEndAllowThreads(__tstate); | |
21289 | if (PyErr_Occurred()) SWIG_fail; | |
21290 | } | |
21291 | Py_INCREF(Py_None); resultobj = Py_None; | |
21292 | return resultobj; | |
21293 | fail: | |
21294 | return NULL; | |
21295 | } | |
21296 | ||
21297 | ||
c32bde28 | 21298 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21299 | PyObject *resultobj; |
21300 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21301 | wxEvent *arg2 = 0 ; | |
21302 | PyObject * obj0 = 0 ; | |
21303 | PyObject * obj1 = 0 ; | |
21304 | char *kwnames[] = { | |
21305 | (char *) "dest",(char *) "event", NULL | |
21306 | }; | |
21307 | ||
21308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21312 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21313 | SWIG_fail; | |
21314 | if (arg2 == NULL) { | |
21315 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21316 | SWIG_fail; | |
21317 | } | |
21318 | { | |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | wxPostEvent(arg1,*arg2); | |
21321 | ||
21322 | wxPyEndAllowThreads(__tstate); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | } | |
21325 | Py_INCREF(Py_None); resultobj = Py_None; | |
21326 | return resultobj; | |
21327 | fail: | |
21328 | return NULL; | |
21329 | } | |
21330 | ||
21331 | ||
c32bde28 | 21332 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21333 | PyObject *resultobj; |
21334 | char *kwnames[] = { | |
21335 | NULL | |
21336 | }; | |
21337 | ||
21338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21339 | { | |
21340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21341 | wxApp_CleanUp(); | |
21342 | ||
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
21346 | Py_INCREF(Py_None); resultobj = Py_None; | |
21347 | return resultobj; | |
21348 | fail: | |
21349 | return NULL; | |
21350 | } | |
21351 | ||
21352 | ||
c32bde28 | 21353 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21354 | PyObject *resultobj; |
21355 | wxPyApp *result; | |
21356 | char *kwnames[] = { | |
21357 | NULL | |
21358 | }; | |
21359 | ||
21360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21361 | { | |
21362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 21363 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21364 | |
21365 | wxPyEndAllowThreads(__tstate); | |
21366 | if (PyErr_Occurred()) SWIG_fail; | |
21367 | } | |
21368 | { | |
412d302d | 21369 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21370 | } |
21371 | return resultobj; | |
21372 | fail: | |
21373 | return NULL; | |
21374 | } | |
21375 | ||
21376 | ||
ae8162c8 RD |
21377 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21378 | PyObject *resultobj; | |
21379 | wxEventLoop *result; | |
21380 | char *kwnames[] = { | |
21381 | NULL | |
21382 | }; | |
21383 | ||
21384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21385 | { | |
21386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21387 | result = (wxEventLoop *)new wxEventLoop(); | |
21388 | ||
21389 | wxPyEndAllowThreads(__tstate); | |
21390 | if (PyErr_Occurred()) SWIG_fail; | |
21391 | } | |
21392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21393 | return resultobj; | |
21394 | fail: | |
21395 | return NULL; | |
21396 | } | |
21397 | ||
21398 | ||
21399 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21400 | PyObject *resultobj; | |
21401 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21402 | PyObject * obj0 = 0 ; | |
21403 | char *kwnames[] = { | |
21404 | (char *) "self", NULL | |
21405 | }; | |
21406 | ||
21407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21410 | { | |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | delete arg1; | |
21413 | ||
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
21417 | Py_INCREF(Py_None); resultobj = Py_None; | |
21418 | return resultobj; | |
21419 | fail: | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
21424 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21425 | PyObject *resultobj; | |
21426 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21427 | int result; | |
21428 | PyObject * obj0 = 0 ; | |
21429 | char *kwnames[] = { | |
21430 | (char *) "self", NULL | |
21431 | }; | |
21432 | ||
21433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21436 | { | |
21437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21438 | result = (int)(arg1)->Run(); | |
21439 | ||
21440 | wxPyEndAllowThreads(__tstate); | |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
21442 | } | |
21443 | resultobj = SWIG_From_int((int)result); | |
21444 | return resultobj; | |
21445 | fail: | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
21450 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21451 | PyObject *resultobj; | |
21452 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21453 | int arg2 = (int) 0 ; | |
21454 | PyObject * obj0 = 0 ; | |
21455 | PyObject * obj1 = 0 ; | |
21456 | char *kwnames[] = { | |
21457 | (char *) "self",(char *) "rc", NULL | |
21458 | }; | |
21459 | ||
21460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21463 | if (obj1) { | |
21464 | arg2 = (int)SWIG_As_int(obj1); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
21467 | { | |
21468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21469 | (arg1)->Exit(arg2); | |
21470 | ||
21471 | wxPyEndAllowThreads(__tstate); | |
21472 | if (PyErr_Occurred()) SWIG_fail; | |
21473 | } | |
21474 | Py_INCREF(Py_None); resultobj = Py_None; | |
21475 | return resultobj; | |
21476 | fail: | |
21477 | return NULL; | |
21478 | } | |
21479 | ||
21480 | ||
21481 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21482 | PyObject *resultobj; | |
21483 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21484 | bool result; | |
21485 | PyObject * obj0 = 0 ; | |
21486 | char *kwnames[] = { | |
21487 | (char *) "self", NULL | |
21488 | }; | |
21489 | ||
21490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21493 | { | |
21494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21495 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21496 | ||
21497 | wxPyEndAllowThreads(__tstate); | |
21498 | if (PyErr_Occurred()) SWIG_fail; | |
21499 | } | |
21500 | { | |
21501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21502 | } | |
21503 | return resultobj; | |
21504 | fail: | |
21505 | return NULL; | |
21506 | } | |
21507 | ||
21508 | ||
21509 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21510 | PyObject *resultobj; | |
21511 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21512 | bool result; | |
21513 | PyObject * obj0 = 0 ; | |
21514 | char *kwnames[] = { | |
21515 | (char *) "self", NULL | |
21516 | }; | |
21517 | ||
21518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21521 | { | |
21522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21523 | result = (bool)(arg1)->Dispatch(); | |
21524 | ||
21525 | wxPyEndAllowThreads(__tstate); | |
21526 | if (PyErr_Occurred()) SWIG_fail; | |
21527 | } | |
21528 | { | |
21529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21530 | } | |
21531 | return resultobj; | |
21532 | fail: | |
21533 | return NULL; | |
21534 | } | |
21535 | ||
21536 | ||
21537 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21538 | PyObject *resultobj; | |
21539 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21540 | bool result; | |
21541 | PyObject * obj0 = 0 ; | |
21542 | char *kwnames[] = { | |
21543 | (char *) "self", NULL | |
21544 | }; | |
21545 | ||
21546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21549 | { | |
21550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21551 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21552 | ||
21553 | wxPyEndAllowThreads(__tstate); | |
21554 | if (PyErr_Occurred()) SWIG_fail; | |
21555 | } | |
21556 | { | |
21557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21558 | } | |
21559 | return resultobj; | |
21560 | fail: | |
21561 | return NULL; | |
21562 | } | |
21563 | ||
21564 | ||
21565 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21566 | PyObject *resultobj; | |
21567 | wxEventLoop *result; | |
21568 | char *kwnames[] = { | |
21569 | NULL | |
21570 | }; | |
21571 | ||
21572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21573 | { | |
21574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21575 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21576 | ||
21577 | wxPyEndAllowThreads(__tstate); | |
21578 | if (PyErr_Occurred()) SWIG_fail; | |
21579 | } | |
21580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21581 | return resultobj; | |
21582 | fail: | |
21583 | return NULL; | |
21584 | } | |
21585 | ||
21586 | ||
21587 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21588 | PyObject *resultobj; | |
21589 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21590 | PyObject * obj0 = 0 ; | |
21591 | char *kwnames[] = { | |
21592 | (char *) "loop", NULL | |
21593 | }; | |
21594 | ||
21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21598 | { | |
21599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21600 | wxEventLoop::SetActive(arg1); | |
21601 | ||
21602 | wxPyEndAllowThreads(__tstate); | |
21603 | if (PyErr_Occurred()) SWIG_fail; | |
21604 | } | |
21605 | Py_INCREF(Py_None); resultobj = Py_None; | |
21606 | return resultobj; | |
21607 | fail: | |
21608 | return NULL; | |
21609 | } | |
21610 | ||
21611 | ||
21612 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21613 | PyObject *obj; | |
21614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21615 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21616 | Py_INCREF(obj); | |
21617 | return Py_BuildValue((char *)""); | |
21618 | } | |
c32bde28 | 21619 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21620 | PyObject *resultobj; |
21621 | int arg1 = (int) 0 ; | |
21622 | int arg2 = (int) 0 ; | |
21623 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21624 | wxAcceleratorEntry *result; |
21625 | PyObject * obj0 = 0 ; | |
21626 | PyObject * obj1 = 0 ; | |
21627 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21628 | char *kwnames[] = { |
c24da6d6 | 21629 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21630 | }; |
21631 | ||
c24da6d6 | 21632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21633 | if (obj0) { |
c32bde28 | 21634 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21635 | if (PyErr_Occurred()) SWIG_fail; |
21636 | } | |
21637 | if (obj1) { | |
c32bde28 | 21638 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21639 | if (PyErr_Occurred()) SWIG_fail; |
21640 | } | |
21641 | if (obj2) { | |
c32bde28 | 21642 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21643 | if (PyErr_Occurred()) SWIG_fail; |
21644 | } | |
d55e5bfc RD |
21645 | { |
21646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21647 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21648 | |
21649 | wxPyEndAllowThreads(__tstate); | |
21650 | if (PyErr_Occurred()) SWIG_fail; | |
21651 | } | |
21652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21653 | return resultobj; | |
21654 | fail: | |
21655 | return NULL; | |
21656 | } | |
21657 | ||
21658 | ||
c32bde28 | 21659 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21660 | PyObject *resultobj; |
21661 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21662 | PyObject * obj0 = 0 ; | |
21663 | char *kwnames[] = { | |
21664 | (char *) "self", NULL | |
21665 | }; | |
21666 | ||
21667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21670 | { | |
21671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21672 | delete arg1; | |
21673 | ||
21674 | wxPyEndAllowThreads(__tstate); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | } | |
21677 | Py_INCREF(Py_None); resultobj = Py_None; | |
21678 | return resultobj; | |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
c32bde28 | 21684 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21685 | PyObject *resultobj; |
21686 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21687 | int arg2 ; | |
21688 | int arg3 ; | |
21689 | int arg4 ; | |
d55e5bfc RD |
21690 | PyObject * obj0 = 0 ; |
21691 | PyObject * obj1 = 0 ; | |
21692 | PyObject * obj2 = 0 ; | |
21693 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21694 | char *kwnames[] = { |
c24da6d6 | 21695 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21696 | }; |
21697 | ||
c24da6d6 | 21698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21701 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21702 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21703 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21704 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21705 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21706 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21707 | { |
21708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21709 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21710 | |
21711 | wxPyEndAllowThreads(__tstate); | |
21712 | if (PyErr_Occurred()) SWIG_fail; | |
21713 | } | |
21714 | Py_INCREF(Py_None); resultobj = Py_None; | |
21715 | return resultobj; | |
21716 | fail: | |
21717 | return NULL; | |
21718 | } | |
21719 | ||
21720 | ||
c32bde28 | 21721 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21722 | PyObject *resultobj; |
21723 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21724 | int result; | |
21725 | PyObject * obj0 = 0 ; | |
21726 | char *kwnames[] = { | |
21727 | (char *) "self", NULL | |
21728 | }; | |
21729 | ||
21730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21733 | { | |
21734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21735 | result = (int)(arg1)->GetFlags(); | |
21736 | ||
21737 | wxPyEndAllowThreads(__tstate); | |
21738 | if (PyErr_Occurred()) SWIG_fail; | |
21739 | } | |
c32bde28 | 21740 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21741 | return resultobj; |
21742 | fail: | |
21743 | return NULL; | |
21744 | } | |
21745 | ||
21746 | ||
c32bde28 | 21747 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21748 | PyObject *resultobj; |
21749 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21750 | int result; | |
21751 | PyObject * obj0 = 0 ; | |
21752 | char *kwnames[] = { | |
21753 | (char *) "self", NULL | |
21754 | }; | |
21755 | ||
21756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21759 | { | |
21760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21761 | result = (int)(arg1)->GetKeyCode(); | |
21762 | ||
21763 | wxPyEndAllowThreads(__tstate); | |
21764 | if (PyErr_Occurred()) SWIG_fail; | |
21765 | } | |
c32bde28 | 21766 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21767 | return resultobj; |
21768 | fail: | |
21769 | return NULL; | |
21770 | } | |
21771 | ||
21772 | ||
c32bde28 | 21773 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21774 | PyObject *resultobj; |
21775 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21776 | int result; | |
21777 | PyObject * obj0 = 0 ; | |
21778 | char *kwnames[] = { | |
21779 | (char *) "self", NULL | |
21780 | }; | |
21781 | ||
21782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21785 | { | |
21786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21787 | result = (int)(arg1)->GetCommand(); | |
21788 | ||
21789 | wxPyEndAllowThreads(__tstate); | |
21790 | if (PyErr_Occurred()) SWIG_fail; | |
21791 | } | |
c32bde28 | 21792 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21793 | return resultobj; |
21794 | fail: | |
21795 | return NULL; | |
21796 | } | |
21797 | ||
21798 | ||
c32bde28 | 21799 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21800 | PyObject *obj; |
21801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21802 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21803 | Py_INCREF(obj); | |
21804 | return Py_BuildValue((char *)""); | |
21805 | } | |
c32bde28 | 21806 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21807 | PyObject *resultobj; |
21808 | int arg1 ; | |
21809 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21810 | wxAcceleratorTable *result; | |
21811 | PyObject * obj0 = 0 ; | |
21812 | char *kwnames[] = { | |
21813 | (char *) "n", NULL | |
21814 | }; | |
21815 | ||
21816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21817 | { | |
21818 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21819 | if (arg2) arg1 = PyList_Size(obj0); | |
21820 | else arg1 = 0; | |
21821 | } | |
21822 | { | |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21830 | { | |
21831 | delete [] arg2; | |
21832 | } | |
21833 | return resultobj; | |
21834 | fail: | |
21835 | { | |
21836 | delete [] arg2; | |
21837 | } | |
21838 | return NULL; | |
21839 | } | |
21840 | ||
21841 | ||
c32bde28 | 21842 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21843 | PyObject *resultobj; |
21844 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21845 | PyObject * obj0 = 0 ; | |
21846 | char *kwnames[] = { | |
21847 | (char *) "self", NULL | |
21848 | }; | |
21849 | ||
21850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21853 | { | |
21854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21855 | delete arg1; | |
21856 | ||
21857 | wxPyEndAllowThreads(__tstate); | |
21858 | if (PyErr_Occurred()) SWIG_fail; | |
21859 | } | |
21860 | Py_INCREF(Py_None); resultobj = Py_None; | |
21861 | return resultobj; | |
21862 | fail: | |
21863 | return NULL; | |
21864 | } | |
21865 | ||
21866 | ||
c32bde28 | 21867 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21868 | PyObject *resultobj; |
21869 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21870 | bool result; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | char *kwnames[] = { | |
21873 | (char *) "self", NULL | |
21874 | }; | |
21875 | ||
21876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21879 | { | |
21880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21881 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21882 | ||
21883 | wxPyEndAllowThreads(__tstate); | |
21884 | if (PyErr_Occurred()) SWIG_fail; | |
21885 | } | |
21886 | { | |
21887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21888 | } | |
21889 | return resultobj; | |
21890 | fail: | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
c32bde28 | 21895 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21896 | PyObject *obj; |
21897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21898 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21899 | Py_INCREF(obj); | |
21900 | return Py_BuildValue((char *)""); | |
21901 | } | |
c32bde28 | 21902 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
21903 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21904 | return 1; | |
21905 | } | |
21906 | ||
21907 | ||
21908 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21909 | PyObject *pyobj; | |
21910 | ||
21911 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21912 | return pyobj; | |
21913 | } | |
21914 | ||
21915 | ||
c32bde28 | 21916 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21917 | PyObject *resultobj; |
21918 | wxString *arg1 = 0 ; | |
21919 | wxAcceleratorEntry *result; | |
ae8162c8 | 21920 | bool temp1 = false ; |
d55e5bfc RD |
21921 | PyObject * obj0 = 0 ; |
21922 | char *kwnames[] = { | |
21923 | (char *) "label", NULL | |
21924 | }; | |
21925 | ||
21926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21927 | { | |
21928 | arg1 = wxString_in_helper(obj0); | |
21929 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21930 | temp1 = true; |
d55e5bfc RD |
21931 | } |
21932 | { | |
21933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21934 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
21939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21940 | { | |
21941 | if (temp1) | |
21942 | delete arg1; | |
21943 | } | |
21944 | return resultobj; | |
21945 | fail: | |
21946 | { | |
21947 | if (temp1) | |
21948 | delete arg1; | |
21949 | } | |
21950 | return NULL; | |
21951 | } | |
21952 | ||
21953 | ||
c32bde28 | 21954 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
21955 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21956 | return 1; | |
21957 | } | |
21958 | ||
21959 | ||
21960 | static PyObject *_wrap_PanelNameStr_get() { | |
21961 | PyObject *pyobj; | |
21962 | ||
21963 | { | |
21964 | #if wxUSE_UNICODE | |
21965 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21966 | #else | |
21967 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21968 | #endif | |
21969 | } | |
21970 | return pyobj; | |
21971 | } | |
21972 | ||
21973 | ||
c32bde28 | 21974 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21975 | PyObject *resultobj; |
21976 | wxVisualAttributes *result; | |
21977 | char *kwnames[] = { | |
21978 | NULL | |
21979 | }; | |
21980 | ||
21981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21982 | { | |
21983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21984 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21985 | ||
21986 | wxPyEndAllowThreads(__tstate); | |
21987 | if (PyErr_Occurred()) SWIG_fail; | |
21988 | } | |
21989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21990 | return resultobj; | |
21991 | fail: | |
21992 | return NULL; | |
21993 | } | |
21994 | ||
21995 | ||
c32bde28 | 21996 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21997 | PyObject *resultobj; |
21998 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21999 | PyObject * obj0 = 0 ; | |
22000 | char *kwnames[] = { | |
22001 | (char *) "self", NULL | |
22002 | }; | |
22003 | ||
22004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
22005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22007 | { | |
22008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22009 | delete_wxVisualAttributes(arg1); | |
22010 | ||
22011 | wxPyEndAllowThreads(__tstate); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
22014 | Py_INCREF(Py_None); resultobj = Py_None; | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
c32bde28 | 22021 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22022 | PyObject *resultobj; |
22023 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22024 | wxFont *arg2 = (wxFont *) 0 ; | |
22025 | PyObject * obj0 = 0 ; | |
22026 | PyObject * obj1 = 0 ; | |
22027 | char *kwnames[] = { | |
22028 | (char *) "self",(char *) "font", NULL | |
22029 | }; | |
22030 | ||
22031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
22032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
22035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22036 | if (arg1) (arg1)->font = *arg2; | |
22037 | ||
22038 | Py_INCREF(Py_None); resultobj = Py_None; | |
22039 | return resultobj; | |
22040 | fail: | |
22041 | return NULL; | |
22042 | } | |
22043 | ||
22044 | ||
c32bde28 | 22045 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22046 | PyObject *resultobj; |
22047 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22048 | wxFont *result; | |
22049 | PyObject * obj0 = 0 ; | |
22050 | char *kwnames[] = { | |
22051 | (char *) "self", NULL | |
22052 | }; | |
22053 | ||
22054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
22055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22057 | result = (wxFont *)& ((arg1)->font); | |
22058 | ||
22059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
22060 | return resultobj; | |
22061 | fail: | |
22062 | return NULL; | |
22063 | } | |
22064 | ||
22065 | ||
c32bde28 | 22066 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22067 | PyObject *resultobj; |
22068 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22069 | wxColour *arg2 = (wxColour *) 0 ; | |
22070 | PyObject * obj0 = 0 ; | |
22071 | PyObject * obj1 = 0 ; | |
22072 | char *kwnames[] = { | |
22073 | (char *) "self",(char *) "colFg", NULL | |
22074 | }; | |
22075 | ||
22076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
22077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22081 | if (arg1) (arg1)->colFg = *arg2; | |
22082 | ||
22083 | Py_INCREF(Py_None); resultobj = Py_None; | |
22084 | return resultobj; | |
22085 | fail: | |
22086 | return NULL; | |
22087 | } | |
22088 | ||
22089 | ||
c32bde28 | 22090 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22091 | PyObject *resultobj; |
22092 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22093 | wxColour *result; | |
22094 | PyObject * obj0 = 0 ; | |
22095 | char *kwnames[] = { | |
22096 | (char *) "self", NULL | |
22097 | }; | |
22098 | ||
22099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
22100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22102 | result = (wxColour *)& ((arg1)->colFg); | |
22103 | ||
22104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22105 | return resultobj; | |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
c32bde28 | 22111 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22112 | PyObject *resultobj; |
22113 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22114 | wxColour *arg2 = (wxColour *) 0 ; | |
22115 | PyObject * obj0 = 0 ; | |
22116 | PyObject * obj1 = 0 ; | |
22117 | char *kwnames[] = { | |
22118 | (char *) "self",(char *) "colBg", NULL | |
22119 | }; | |
22120 | ||
22121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
22122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22126 | if (arg1) (arg1)->colBg = *arg2; | |
22127 | ||
22128 | Py_INCREF(Py_None); resultobj = Py_None; | |
22129 | return resultobj; | |
22130 | fail: | |
22131 | return NULL; | |
22132 | } | |
22133 | ||
22134 | ||
c32bde28 | 22135 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22136 | PyObject *resultobj; |
22137 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22138 | wxColour *result; | |
22139 | PyObject * obj0 = 0 ; | |
22140 | char *kwnames[] = { | |
22141 | (char *) "self", NULL | |
22142 | }; | |
22143 | ||
22144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22147 | result = (wxColour *)& ((arg1)->colBg); | |
22148 | ||
22149 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22150 | return resultobj; | |
22151 | fail: | |
22152 | return NULL; | |
22153 | } | |
22154 | ||
22155 | ||
c32bde28 | 22156 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22157 | PyObject *obj; |
22158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22159 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22160 | Py_INCREF(obj); | |
22161 | return Py_BuildValue((char *)""); | |
22162 | } | |
c32bde28 | 22163 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22164 | PyObject *resultobj; |
22165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22166 | int arg2 = (int) (int)-1 ; | |
22167 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22168 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22169 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22170 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22171 | long arg5 = (long) 0 ; | |
22172 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22173 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22174 | wxWindow *result; | |
22175 | wxPoint temp3 ; | |
22176 | wxSize temp4 ; | |
ae8162c8 | 22177 | bool temp6 = false ; |
d55e5bfc RD |
22178 | PyObject * obj0 = 0 ; |
22179 | PyObject * obj1 = 0 ; | |
22180 | PyObject * obj2 = 0 ; | |
22181 | PyObject * obj3 = 0 ; | |
22182 | PyObject * obj4 = 0 ; | |
22183 | PyObject * obj5 = 0 ; | |
22184 | char *kwnames[] = { | |
22185 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22186 | }; | |
22187 | ||
22188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22191 | if (obj1) { | |
c32bde28 | 22192 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22193 | if (PyErr_Occurred()) SWIG_fail; |
22194 | } | |
22195 | if (obj2) { | |
22196 | { | |
22197 | arg3 = &temp3; | |
22198 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22199 | } | |
22200 | } | |
22201 | if (obj3) { | |
22202 | { | |
22203 | arg4 = &temp4; | |
22204 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22205 | } | |
22206 | } | |
22207 | if (obj4) { | |
c32bde28 | 22208 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22209 | if (PyErr_Occurred()) SWIG_fail; |
22210 | } | |
22211 | if (obj5) { | |
22212 | { | |
22213 | arg6 = wxString_in_helper(obj5); | |
22214 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 22215 | temp6 = true; |
d55e5bfc RD |
22216 | } |
22217 | } | |
22218 | { | |
0439c23b | 22219 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22221 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22222 | ||
22223 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22224 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22225 | } |
b0f7404b | 22226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22227 | { |
22228 | if (temp6) | |
22229 | delete arg6; | |
22230 | } | |
22231 | return resultobj; | |
22232 | fail: | |
22233 | { | |
22234 | if (temp6) | |
22235 | delete arg6; | |
22236 | } | |
22237 | return NULL; | |
22238 | } | |
22239 | ||
22240 | ||
c32bde28 | 22241 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22242 | PyObject *resultobj; |
22243 | wxWindow *result; | |
22244 | char *kwnames[] = { | |
22245 | NULL | |
22246 | }; | |
22247 | ||
22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22249 | { | |
0439c23b | 22250 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22252 | result = (wxWindow *)new wxWindow(); | |
22253 | ||
22254 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22255 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22256 | } |
b0f7404b | 22257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22258 | return resultobj; |
22259 | fail: | |
22260 | return NULL; | |
22261 | } | |
22262 | ||
22263 | ||
c32bde28 | 22264 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22265 | PyObject *resultobj; |
22266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22267 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22268 | int arg3 = (int) (int)-1 ; | |
22269 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22270 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22271 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22272 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22273 | long arg6 = (long) 0 ; | |
22274 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22275 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22276 | bool result; | |
22277 | wxPoint temp4 ; | |
22278 | wxSize temp5 ; | |
ae8162c8 | 22279 | bool temp7 = false ; |
d55e5bfc RD |
22280 | PyObject * obj0 = 0 ; |
22281 | PyObject * obj1 = 0 ; | |
22282 | PyObject * obj2 = 0 ; | |
22283 | PyObject * obj3 = 0 ; | |
22284 | PyObject * obj4 = 0 ; | |
22285 | PyObject * obj5 = 0 ; | |
22286 | PyObject * obj6 = 0 ; | |
22287 | char *kwnames[] = { | |
22288 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22289 | }; | |
22290 | ||
22291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22294 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22296 | if (obj2) { | |
c32bde28 | 22297 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22298 | if (PyErr_Occurred()) SWIG_fail; |
22299 | } | |
22300 | if (obj3) { | |
22301 | { | |
22302 | arg4 = &temp4; | |
22303 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22304 | } | |
22305 | } | |
22306 | if (obj4) { | |
22307 | { | |
22308 | arg5 = &temp5; | |
22309 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22310 | } | |
22311 | } | |
22312 | if (obj5) { | |
c32bde28 | 22313 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22314 | if (PyErr_Occurred()) SWIG_fail; |
22315 | } | |
22316 | if (obj6) { | |
22317 | { | |
22318 | arg7 = wxString_in_helper(obj6); | |
22319 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 22320 | temp7 = true; |
d55e5bfc RD |
22321 | } |
22322 | } | |
22323 | { | |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22325 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22326 | ||
22327 | wxPyEndAllowThreads(__tstate); | |
22328 | if (PyErr_Occurred()) SWIG_fail; | |
22329 | } | |
22330 | { | |
22331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22332 | } | |
22333 | { | |
22334 | if (temp7) | |
22335 | delete arg7; | |
22336 | } | |
22337 | return resultobj; | |
22338 | fail: | |
22339 | { | |
22340 | if (temp7) | |
22341 | delete arg7; | |
22342 | } | |
22343 | return NULL; | |
22344 | } | |
22345 | ||
22346 | ||
c32bde28 | 22347 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22348 | PyObject *resultobj; |
22349 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 22350 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22351 | bool result; |
22352 | PyObject * obj0 = 0 ; | |
22353 | PyObject * obj1 = 0 ; | |
22354 | char *kwnames[] = { | |
22355 | (char *) "self",(char *) "force", NULL | |
22356 | }; | |
22357 | ||
22358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22361 | if (obj1) { | |
c32bde28 | 22362 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22363 | if (PyErr_Occurred()) SWIG_fail; |
22364 | } | |
22365 | { | |
22366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22367 | result = (bool)(arg1)->Close(arg2); | |
22368 | ||
22369 | wxPyEndAllowThreads(__tstate); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
22371 | } | |
22372 | { | |
22373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22374 | } | |
22375 | return resultobj; | |
22376 | fail: | |
22377 | return NULL; | |
22378 | } | |
22379 | ||
22380 | ||
c32bde28 | 22381 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22382 | PyObject *resultobj; |
22383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22384 | bool result; | |
22385 | PyObject * obj0 = 0 ; | |
22386 | char *kwnames[] = { | |
22387 | (char *) "self", NULL | |
22388 | }; | |
22389 | ||
22390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22393 | { | |
22394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22395 | result = (bool)(arg1)->Destroy(); | |
22396 | ||
22397 | wxPyEndAllowThreads(__tstate); | |
22398 | if (PyErr_Occurred()) SWIG_fail; | |
22399 | } | |
22400 | { | |
22401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22402 | } | |
22403 | return resultobj; | |
22404 | fail: | |
22405 | return NULL; | |
22406 | } | |
22407 | ||
22408 | ||
c32bde28 | 22409 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22410 | PyObject *resultobj; |
22411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22412 | bool result; | |
22413 | PyObject * obj0 = 0 ; | |
22414 | char *kwnames[] = { | |
22415 | (char *) "self", NULL | |
22416 | }; | |
22417 | ||
22418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22421 | { | |
22422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22423 | result = (bool)(arg1)->DestroyChildren(); | |
22424 | ||
22425 | wxPyEndAllowThreads(__tstate); | |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
22427 | } | |
22428 | { | |
22429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22430 | } | |
22431 | return resultobj; | |
22432 | fail: | |
22433 | return NULL; | |
22434 | } | |
22435 | ||
22436 | ||
c32bde28 | 22437 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22438 | PyObject *resultobj; |
22439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22440 | bool result; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self", NULL | |
22444 | }; | |
22445 | ||
22446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22449 | { | |
22450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22451 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22452 | ||
22453 | wxPyEndAllowThreads(__tstate); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | } | |
22456 | { | |
22457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22458 | } | |
22459 | return resultobj; | |
22460 | fail: | |
22461 | return NULL; | |
22462 | } | |
22463 | ||
22464 | ||
c32bde28 | 22465 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22466 | PyObject *resultobj; |
22467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22468 | wxString *arg2 = 0 ; | |
ae8162c8 | 22469 | bool temp2 = false ; |
d55e5bfc RD |
22470 | PyObject * obj0 = 0 ; |
22471 | PyObject * obj1 = 0 ; | |
22472 | char *kwnames[] = { | |
22473 | (char *) "self",(char *) "title", NULL | |
22474 | }; | |
22475 | ||
22476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22479 | { | |
22480 | arg2 = wxString_in_helper(obj1); | |
22481 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22482 | temp2 = true; |
d55e5bfc RD |
22483 | } |
22484 | { | |
22485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22486 | (arg1)->SetTitle((wxString const &)*arg2); | |
22487 | ||
22488 | wxPyEndAllowThreads(__tstate); | |
22489 | if (PyErr_Occurred()) SWIG_fail; | |
22490 | } | |
22491 | Py_INCREF(Py_None); resultobj = Py_None; | |
22492 | { | |
22493 | if (temp2) | |
22494 | delete arg2; | |
22495 | } | |
22496 | return resultobj; | |
22497 | fail: | |
22498 | { | |
22499 | if (temp2) | |
22500 | delete arg2; | |
22501 | } | |
22502 | return NULL; | |
22503 | } | |
22504 | ||
22505 | ||
c32bde28 | 22506 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22507 | PyObject *resultobj; |
22508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22509 | wxString result; | |
22510 | PyObject * obj0 = 0 ; | |
22511 | char *kwnames[] = { | |
22512 | (char *) "self", NULL | |
22513 | }; | |
22514 | ||
22515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22518 | { | |
22519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22520 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22521 | ||
22522 | wxPyEndAllowThreads(__tstate); | |
22523 | if (PyErr_Occurred()) SWIG_fail; | |
22524 | } | |
22525 | { | |
22526 | #if wxUSE_UNICODE | |
22527 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22528 | #else | |
22529 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22530 | #endif | |
22531 | } | |
22532 | return resultobj; | |
22533 | fail: | |
22534 | return NULL; | |
22535 | } | |
22536 | ||
22537 | ||
c32bde28 | 22538 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22539 | PyObject *resultobj; |
22540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22541 | wxString *arg2 = 0 ; | |
ae8162c8 | 22542 | bool temp2 = false ; |
d55e5bfc RD |
22543 | PyObject * obj0 = 0 ; |
22544 | PyObject * obj1 = 0 ; | |
22545 | char *kwnames[] = { | |
22546 | (char *) "self",(char *) "label", NULL | |
22547 | }; | |
22548 | ||
22549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22552 | { | |
22553 | arg2 = wxString_in_helper(obj1); | |
22554 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22555 | temp2 = true; |
d55e5bfc RD |
22556 | } |
22557 | { | |
22558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22559 | (arg1)->SetLabel((wxString const &)*arg2); | |
22560 | ||
22561 | wxPyEndAllowThreads(__tstate); | |
22562 | if (PyErr_Occurred()) SWIG_fail; | |
22563 | } | |
22564 | Py_INCREF(Py_None); resultobj = Py_None; | |
22565 | { | |
22566 | if (temp2) | |
22567 | delete arg2; | |
22568 | } | |
22569 | return resultobj; | |
22570 | fail: | |
22571 | { | |
22572 | if (temp2) | |
22573 | delete arg2; | |
22574 | } | |
22575 | return NULL; | |
22576 | } | |
22577 | ||
22578 | ||
c32bde28 | 22579 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22580 | PyObject *resultobj; |
22581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22582 | wxString result; | |
22583 | PyObject * obj0 = 0 ; | |
22584 | char *kwnames[] = { | |
22585 | (char *) "self", NULL | |
22586 | }; | |
22587 | ||
22588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22591 | { | |
22592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22593 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22594 | ||
22595 | wxPyEndAllowThreads(__tstate); | |
22596 | if (PyErr_Occurred()) SWIG_fail; | |
22597 | } | |
22598 | { | |
22599 | #if wxUSE_UNICODE | |
22600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22601 | #else | |
22602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22603 | #endif | |
22604 | } | |
22605 | return resultobj; | |
22606 | fail: | |
22607 | return NULL; | |
22608 | } | |
22609 | ||
22610 | ||
c32bde28 | 22611 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22612 | PyObject *resultobj; |
22613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22614 | wxString *arg2 = 0 ; | |
ae8162c8 | 22615 | bool temp2 = false ; |
d55e5bfc RD |
22616 | PyObject * obj0 = 0 ; |
22617 | PyObject * obj1 = 0 ; | |
22618 | char *kwnames[] = { | |
22619 | (char *) "self",(char *) "name", NULL | |
22620 | }; | |
22621 | ||
22622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22625 | { | |
22626 | arg2 = wxString_in_helper(obj1); | |
22627 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22628 | temp2 = true; |
d55e5bfc RD |
22629 | } |
22630 | { | |
22631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22632 | (arg1)->SetName((wxString const &)*arg2); | |
22633 | ||
22634 | wxPyEndAllowThreads(__tstate); | |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
22636 | } | |
22637 | Py_INCREF(Py_None); resultobj = Py_None; | |
22638 | { | |
22639 | if (temp2) | |
22640 | delete arg2; | |
22641 | } | |
22642 | return resultobj; | |
22643 | fail: | |
22644 | { | |
22645 | if (temp2) | |
22646 | delete arg2; | |
22647 | } | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
c32bde28 | 22652 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22653 | PyObject *resultobj; |
22654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22655 | wxString result; | |
22656 | PyObject * obj0 = 0 ; | |
22657 | char *kwnames[] = { | |
22658 | (char *) "self", NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22664 | { | |
22665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22666 | result = ((wxWindow const *)arg1)->GetName(); | |
22667 | ||
22668 | wxPyEndAllowThreads(__tstate); | |
22669 | if (PyErr_Occurred()) SWIG_fail; | |
22670 | } | |
22671 | { | |
22672 | #if wxUSE_UNICODE | |
22673 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22674 | #else | |
22675 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22676 | #endif | |
22677 | } | |
22678 | return resultobj; | |
22679 | fail: | |
22680 | return NULL; | |
22681 | } | |
22682 | ||
22683 | ||
c32bde28 | 22684 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22685 | PyObject *resultobj; |
22686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22687 | int arg2 ; | |
22688 | PyObject * obj0 = 0 ; | |
22689 | PyObject * obj1 = 0 ; | |
22690 | char *kwnames[] = { | |
22691 | (char *) "self",(char *) "variant", NULL | |
22692 | }; | |
22693 | ||
22694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22697 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22698 | if (PyErr_Occurred()) SWIG_fail; |
22699 | { | |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
22706 | Py_INCREF(Py_None); resultobj = Py_None; | |
22707 | return resultobj; | |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
c32bde28 | 22713 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22714 | PyObject *resultobj; |
22715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22716 | int result; | |
22717 | PyObject * obj0 = 0 ; | |
22718 | char *kwnames[] = { | |
22719 | (char *) "self", NULL | |
22720 | }; | |
22721 | ||
22722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22725 | { | |
22726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22727 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22728 | ||
22729 | wxPyEndAllowThreads(__tstate); | |
22730 | if (PyErr_Occurred()) SWIG_fail; | |
22731 | } | |
c32bde28 | 22732 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22733 | return resultobj; |
22734 | fail: | |
22735 | return NULL; | |
22736 | } | |
22737 | ||
22738 | ||
c32bde28 | 22739 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22740 | PyObject *resultobj; |
22741 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22742 | int arg2 ; | |
22743 | PyObject * obj0 = 0 ; | |
22744 | PyObject * obj1 = 0 ; | |
22745 | char *kwnames[] = { | |
22746 | (char *) "self",(char *) "winid", NULL | |
22747 | }; | |
22748 | ||
22749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22752 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22753 | if (PyErr_Occurred()) SWIG_fail; |
22754 | { | |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | (arg1)->SetId(arg2); | |
22757 | ||
22758 | wxPyEndAllowThreads(__tstate); | |
22759 | if (PyErr_Occurred()) SWIG_fail; | |
22760 | } | |
22761 | Py_INCREF(Py_None); resultobj = Py_None; | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
c32bde28 | 22768 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22769 | PyObject *resultobj; |
22770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22771 | int result; | |
22772 | PyObject * obj0 = 0 ; | |
22773 | char *kwnames[] = { | |
22774 | (char *) "self", NULL | |
22775 | }; | |
22776 | ||
22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22780 | { | |
22781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22782 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22783 | ||
22784 | wxPyEndAllowThreads(__tstate); | |
22785 | if (PyErr_Occurred()) SWIG_fail; | |
22786 | } | |
c32bde28 | 22787 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22788 | return resultobj; |
22789 | fail: | |
22790 | return NULL; | |
22791 | } | |
22792 | ||
22793 | ||
c32bde28 | 22794 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22795 | PyObject *resultobj; |
22796 | int result; | |
22797 | char *kwnames[] = { | |
22798 | NULL | |
22799 | }; | |
22800 | ||
22801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22802 | { | |
22803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22804 | result = (int)wxWindow::NewControlId(); | |
22805 | ||
22806 | wxPyEndAllowThreads(__tstate); | |
22807 | if (PyErr_Occurred()) SWIG_fail; | |
22808 | } | |
c32bde28 | 22809 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22810 | return resultobj; |
22811 | fail: | |
22812 | return NULL; | |
22813 | } | |
22814 | ||
22815 | ||
c32bde28 | 22816 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22817 | PyObject *resultobj; |
22818 | int arg1 ; | |
22819 | int result; | |
22820 | PyObject * obj0 = 0 ; | |
22821 | char *kwnames[] = { | |
22822 | (char *) "winid", NULL | |
22823 | }; | |
22824 | ||
22825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 22826 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22827 | if (PyErr_Occurred()) SWIG_fail; |
22828 | { | |
22829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22830 | result = (int)wxWindow::NextControlId(arg1); | |
22831 | ||
22832 | wxPyEndAllowThreads(__tstate); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
c32bde28 | 22835 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22836 | return resultobj; |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
c32bde28 | 22842 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22843 | PyObject *resultobj; |
22844 | int arg1 ; | |
22845 | int result; | |
22846 | PyObject * obj0 = 0 ; | |
22847 | char *kwnames[] = { | |
22848 | (char *) "winid", NULL | |
22849 | }; | |
22850 | ||
22851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 22852 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22853 | if (PyErr_Occurred()) SWIG_fail; |
22854 | { | |
22855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22856 | result = (int)wxWindow::PrevControlId(arg1); | |
22857 | ||
22858 | wxPyEndAllowThreads(__tstate); | |
22859 | if (PyErr_Occurred()) SWIG_fail; | |
22860 | } | |
c32bde28 | 22861 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22862 | return resultobj; |
22863 | fail: | |
22864 | return NULL; | |
22865 | } | |
22866 | ||
22867 | ||
c32bde28 | 22868 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22869 | PyObject *resultobj; |
22870 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22871 | wxSize *arg2 = 0 ; | |
22872 | wxSize temp2 ; | |
22873 | PyObject * obj0 = 0 ; | |
22874 | PyObject * obj1 = 0 ; | |
22875 | char *kwnames[] = { | |
22876 | (char *) "self",(char *) "size", NULL | |
22877 | }; | |
22878 | ||
22879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22882 | { | |
22883 | arg2 = &temp2; | |
22884 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22885 | } | |
22886 | { | |
22887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22888 | (arg1)->SetSize((wxSize const &)*arg2); | |
22889 | ||
22890 | wxPyEndAllowThreads(__tstate); | |
22891 | if (PyErr_Occurred()) SWIG_fail; | |
22892 | } | |
22893 | Py_INCREF(Py_None); resultobj = Py_None; | |
22894 | return resultobj; | |
22895 | fail: | |
22896 | return NULL; | |
22897 | } | |
22898 | ||
22899 | ||
c32bde28 | 22900 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22901 | PyObject *resultobj; |
22902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22903 | int arg2 ; | |
22904 | int arg3 ; | |
22905 | int arg4 ; | |
22906 | int arg5 ; | |
22907 | int arg6 = (int) wxSIZE_AUTO ; | |
22908 | PyObject * obj0 = 0 ; | |
22909 | PyObject * obj1 = 0 ; | |
22910 | PyObject * obj2 = 0 ; | |
22911 | PyObject * obj3 = 0 ; | |
22912 | PyObject * obj4 = 0 ; | |
22913 | PyObject * obj5 = 0 ; | |
22914 | char *kwnames[] = { | |
22915 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22916 | }; | |
22917 | ||
22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22921 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22922 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22923 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 22924 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22925 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 22926 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22927 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
22928 | if (PyErr_Occurred()) SWIG_fail; |
22929 | if (obj5) { | |
c32bde28 | 22930 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
22931 | if (PyErr_Occurred()) SWIG_fail; |
22932 | } | |
22933 | { | |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | Py_INCREF(Py_None); resultobj = Py_None; | |
22941 | return resultobj; | |
22942 | fail: | |
22943 | return NULL; | |
22944 | } | |
22945 | ||
22946 | ||
c32bde28 | 22947 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22948 | PyObject *resultobj; |
22949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22950 | wxRect *arg2 = 0 ; | |
22951 | int arg3 = (int) wxSIZE_AUTO ; | |
22952 | wxRect temp2 ; | |
22953 | PyObject * obj0 = 0 ; | |
22954 | PyObject * obj1 = 0 ; | |
22955 | PyObject * obj2 = 0 ; | |
22956 | char *kwnames[] = { | |
22957 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22958 | }; | |
22959 | ||
22960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22963 | { | |
22964 | arg2 = &temp2; | |
22965 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22966 | } | |
22967 | if (obj2) { | |
c32bde28 | 22968 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22969 | if (PyErr_Occurred()) SWIG_fail; |
22970 | } | |
22971 | { | |
22972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22973 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22974 | ||
22975 | wxPyEndAllowThreads(__tstate); | |
22976 | if (PyErr_Occurred()) SWIG_fail; | |
22977 | } | |
22978 | Py_INCREF(Py_None); resultobj = Py_None; | |
22979 | return resultobj; | |
22980 | fail: | |
22981 | return NULL; | |
22982 | } | |
22983 | ||
22984 | ||
c32bde28 | 22985 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22986 | PyObject *resultobj; |
22987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22988 | int arg2 ; | |
22989 | int arg3 ; | |
22990 | PyObject * obj0 = 0 ; | |
22991 | PyObject * obj1 = 0 ; | |
22992 | PyObject * obj2 = 0 ; | |
22993 | char *kwnames[] = { | |
22994 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22995 | }; | |
22996 | ||
22997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23000 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23001 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23002 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23003 | if (PyErr_Occurred()) SWIG_fail; |
23004 | { | |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | (arg1)->SetSize(arg2,arg3); | |
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_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23019 | PyObject *resultobj; |
23020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23021 | wxPoint *arg2 = 0 ; | |
23022 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
23023 | wxPoint temp2 ; | |
23024 | PyObject * obj0 = 0 ; | |
23025 | PyObject * obj1 = 0 ; | |
23026 | PyObject * obj2 = 0 ; | |
23027 | char *kwnames[] = { | |
23028 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
23029 | }; | |
23030 | ||
23031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23034 | { | |
23035 | arg2 = &temp2; | |
23036 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23037 | } | |
23038 | if (obj2) { | |
c32bde28 | 23039 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23040 | if (PyErr_Occurred()) SWIG_fail; |
23041 | } | |
23042 | { | |
23043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23044 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
23045 | ||
23046 | wxPyEndAllowThreads(__tstate); | |
23047 | if (PyErr_Occurred()) SWIG_fail; | |
23048 | } | |
23049 | Py_INCREF(Py_None); resultobj = Py_None; | |
23050 | return resultobj; | |
23051 | fail: | |
23052 | return NULL; | |
23053 | } | |
23054 | ||
23055 | ||
c32bde28 | 23056 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23057 | PyObject *resultobj; |
23058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23059 | int arg2 ; | |
23060 | int arg3 ; | |
23061 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
23062 | PyObject * obj0 = 0 ; | |
23063 | PyObject * obj1 = 0 ; | |
23064 | PyObject * obj2 = 0 ; | |
23065 | PyObject * obj3 = 0 ; | |
23066 | char *kwnames[] = { | |
23067 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
23068 | }; | |
23069 | ||
23070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23073 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23074 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23075 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23076 | if (PyErr_Occurred()) SWIG_fail; |
23077 | if (obj3) { | |
c32bde28 | 23078 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23079 | if (PyErr_Occurred()) SWIG_fail; |
23080 | } | |
23081 | { | |
23082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23083 | (arg1)->Move(arg2,arg3,arg4); | |
23084 | ||
23085 | wxPyEndAllowThreads(__tstate); | |
23086 | if (PyErr_Occurred()) SWIG_fail; | |
23087 | } | |
23088 | Py_INCREF(Py_None); resultobj = Py_None; | |
23089 | return resultobj; | |
23090 | fail: | |
23091 | return NULL; | |
23092 | } | |
23093 | ||
23094 | ||
c32bde28 | 23095 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
23096 | PyObject *resultobj; |
23097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23098 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
23099 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
23100 | wxSize temp2 ; | |
23101 | PyObject * obj0 = 0 ; | |
23102 | PyObject * obj1 = 0 ; | |
23103 | char *kwnames[] = { | |
23104 | (char *) "self",(char *) "size", NULL | |
23105 | }; | |
23106 | ||
23107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
23108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23110 | if (obj1) { | |
23111 | { | |
23112 | arg2 = &temp2; | |
23113 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23114 | } | |
23115 | } | |
23116 | { | |
23117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23118 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
23119 | ||
23120 | wxPyEndAllowThreads(__tstate); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | } | |
23123 | Py_INCREF(Py_None); resultobj = Py_None; | |
23124 | return resultobj; | |
23125 | fail: | |
23126 | return NULL; | |
23127 | } | |
23128 | ||
23129 | ||
c32bde28 | 23130 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23131 | PyObject *resultobj; |
23132 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23133 | PyObject * obj0 = 0 ; | |
23134 | char *kwnames[] = { | |
23135 | (char *) "self", NULL | |
23136 | }; | |
23137 | ||
23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23141 | { | |
23142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23143 | (arg1)->Raise(); | |
23144 | ||
23145 | wxPyEndAllowThreads(__tstate); | |
23146 | if (PyErr_Occurred()) SWIG_fail; | |
23147 | } | |
23148 | Py_INCREF(Py_None); resultobj = Py_None; | |
23149 | return resultobj; | |
23150 | fail: | |
23151 | return NULL; | |
23152 | } | |
23153 | ||
23154 | ||
c32bde28 | 23155 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23156 | PyObject *resultobj; |
23157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23158 | PyObject * obj0 = 0 ; | |
23159 | char *kwnames[] = { | |
23160 | (char *) "self", NULL | |
23161 | }; | |
23162 | ||
23163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23166 | { | |
23167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23168 | (arg1)->Lower(); | |
23169 | ||
23170 | wxPyEndAllowThreads(__tstate); | |
23171 | if (PyErr_Occurred()) SWIG_fail; | |
23172 | } | |
23173 | Py_INCREF(Py_None); resultobj = Py_None; | |
23174 | return resultobj; | |
23175 | fail: | |
23176 | return NULL; | |
23177 | } | |
23178 | ||
23179 | ||
c32bde28 | 23180 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23181 | PyObject *resultobj; |
23182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23183 | wxSize *arg2 = 0 ; | |
23184 | wxSize temp2 ; | |
23185 | PyObject * obj0 = 0 ; | |
23186 | PyObject * obj1 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self",(char *) "size", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23194 | { | |
23195 | arg2 = &temp2; | |
23196 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23197 | } | |
23198 | { | |
23199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23200 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23201 | ||
23202 | wxPyEndAllowThreads(__tstate); | |
23203 | if (PyErr_Occurred()) SWIG_fail; | |
23204 | } | |
23205 | Py_INCREF(Py_None); resultobj = Py_None; | |
23206 | return resultobj; | |
23207 | fail: | |
23208 | return NULL; | |
23209 | } | |
23210 | ||
23211 | ||
c32bde28 | 23212 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23213 | PyObject *resultobj; |
23214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23215 | int arg2 ; | |
23216 | int arg3 ; | |
23217 | PyObject * obj0 = 0 ; | |
23218 | PyObject * obj1 = 0 ; | |
23219 | PyObject * obj2 = 0 ; | |
23220 | char *kwnames[] = { | |
23221 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23222 | }; | |
23223 | ||
23224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23227 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23228 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23229 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23230 | if (PyErr_Occurred()) SWIG_fail; |
23231 | { | |
23232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23233 | (arg1)->SetClientSize(arg2,arg3); | |
23234 | ||
23235 | wxPyEndAllowThreads(__tstate); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
23238 | Py_INCREF(Py_None); resultobj = Py_None; | |
23239 | return resultobj; | |
23240 | fail: | |
23241 | return NULL; | |
23242 | } | |
23243 | ||
23244 | ||
c32bde28 | 23245 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23246 | PyObject *resultobj; |
23247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23248 | wxRect *arg2 = 0 ; | |
23249 | wxRect temp2 ; | |
23250 | PyObject * obj0 = 0 ; | |
23251 | PyObject * obj1 = 0 ; | |
23252 | char *kwnames[] = { | |
23253 | (char *) "self",(char *) "rect", NULL | |
23254 | }; | |
23255 | ||
23256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23259 | { | |
23260 | arg2 = &temp2; | |
23261 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23262 | } | |
23263 | { | |
23264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23265 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23266 | ||
23267 | wxPyEndAllowThreads(__tstate); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | } | |
23270 | Py_INCREF(Py_None); resultobj = Py_None; | |
23271 | return resultobj; | |
23272 | fail: | |
23273 | return NULL; | |
23274 | } | |
23275 | ||
23276 | ||
c32bde28 | 23277 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23278 | PyObject *resultobj; |
23279 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23280 | wxPoint result; | |
23281 | PyObject * obj0 = 0 ; | |
23282 | char *kwnames[] = { | |
23283 | (char *) "self", NULL | |
23284 | }; | |
23285 | ||
23286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23289 | { | |
23290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23291 | result = (arg1)->GetPosition(); | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
23296 | { | |
23297 | wxPoint * resultptr; | |
23298 | resultptr = new wxPoint((wxPoint &) result); | |
23299 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23300 | } | |
23301 | return resultobj; | |
23302 | fail: | |
23303 | return NULL; | |
23304 | } | |
23305 | ||
23306 | ||
c32bde28 | 23307 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23308 | PyObject *resultobj; |
23309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23310 | int *arg2 = (int *) 0 ; | |
23311 | int *arg3 = (int *) 0 ; | |
23312 | int temp2 ; | |
c32bde28 | 23313 | int res2 = 0 ; |
d55e5bfc | 23314 | int temp3 ; |
c32bde28 | 23315 | int res3 = 0 ; |
d55e5bfc RD |
23316 | PyObject * obj0 = 0 ; |
23317 | char *kwnames[] = { | |
23318 | (char *) "self", NULL | |
23319 | }; | |
23320 | ||
c32bde28 RD |
23321 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23322 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23326 | { | |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23328 | (arg1)->GetPosition(arg2,arg3); | |
23329 | ||
23330 | wxPyEndAllowThreads(__tstate); | |
23331 | if (PyErr_Occurred()) SWIG_fail; | |
23332 | } | |
23333 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23334 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23335 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23336 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23337 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23338 | return resultobj; |
23339 | fail: | |
23340 | return NULL; | |
23341 | } | |
23342 | ||
23343 | ||
c32bde28 | 23344 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23345 | PyObject *resultobj; |
23346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23347 | wxSize result; | |
23348 | PyObject * obj0 = 0 ; | |
23349 | char *kwnames[] = { | |
23350 | (char *) "self", NULL | |
23351 | }; | |
23352 | ||
23353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23356 | { | |
23357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23358 | result = ((wxWindow const *)arg1)->GetSize(); | |
23359 | ||
23360 | wxPyEndAllowThreads(__tstate); | |
23361 | if (PyErr_Occurred()) SWIG_fail; | |
23362 | } | |
23363 | { | |
23364 | wxSize * resultptr; | |
23365 | resultptr = new wxSize((wxSize &) result); | |
23366 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23367 | } | |
23368 | return resultobj; | |
23369 | fail: | |
23370 | return NULL; | |
23371 | } | |
23372 | ||
23373 | ||
c32bde28 | 23374 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23375 | PyObject *resultobj; |
23376 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23377 | int *arg2 = (int *) 0 ; | |
23378 | int *arg3 = (int *) 0 ; | |
23379 | int temp2 ; | |
c32bde28 | 23380 | int res2 = 0 ; |
d55e5bfc | 23381 | int temp3 ; |
c32bde28 | 23382 | int res3 = 0 ; |
d55e5bfc RD |
23383 | PyObject * obj0 = 0 ; |
23384 | char *kwnames[] = { | |
23385 | (char *) "self", NULL | |
23386 | }; | |
23387 | ||
c32bde28 RD |
23388 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23389 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23393 | { | |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23396 | ||
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23401 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23402 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23403 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23404 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23405 | return resultobj; |
23406 | fail: | |
23407 | return NULL; | |
23408 | } | |
23409 | ||
23410 | ||
c32bde28 | 23411 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23412 | PyObject *resultobj; |
23413 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23414 | wxRect result; | |
23415 | PyObject * obj0 = 0 ; | |
23416 | char *kwnames[] = { | |
23417 | (char *) "self", NULL | |
23418 | }; | |
23419 | ||
23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23423 | { | |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | result = ((wxWindow const *)arg1)->GetRect(); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | { | |
23431 | wxRect * resultptr; | |
23432 | resultptr = new wxRect((wxRect &) result); | |
23433 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23434 | } | |
23435 | return resultobj; | |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
c32bde28 | 23441 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23442 | PyObject *resultobj; |
23443 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23444 | wxSize result; | |
23445 | PyObject * obj0 = 0 ; | |
23446 | char *kwnames[] = { | |
23447 | (char *) "self", NULL | |
23448 | }; | |
23449 | ||
23450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23453 | { | |
23454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23455 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23456 | ||
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
23460 | { | |
23461 | wxSize * resultptr; | |
23462 | resultptr = new wxSize((wxSize &) result); | |
23463 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23464 | } | |
23465 | return resultobj; | |
23466 | fail: | |
23467 | return NULL; | |
23468 | } | |
23469 | ||
23470 | ||
c32bde28 | 23471 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23472 | PyObject *resultobj; |
23473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23474 | int *arg2 = (int *) 0 ; | |
23475 | int *arg3 = (int *) 0 ; | |
23476 | int temp2 ; | |
c32bde28 | 23477 | int res2 = 0 ; |
d55e5bfc | 23478 | int temp3 ; |
c32bde28 | 23479 | int res3 = 0 ; |
d55e5bfc RD |
23480 | PyObject * obj0 = 0 ; |
23481 | char *kwnames[] = { | |
23482 | (char *) "self", NULL | |
23483 | }; | |
23484 | ||
c32bde28 RD |
23485 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23486 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23490 | { | |
23491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23492 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23493 | ||
23494 | wxPyEndAllowThreads(__tstate); | |
23495 | if (PyErr_Occurred()) SWIG_fail; | |
23496 | } | |
23497 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23498 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23499 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23500 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23501 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23502 | return resultobj; |
23503 | fail: | |
23504 | return NULL; | |
23505 | } | |
23506 | ||
23507 | ||
c32bde28 | 23508 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23509 | PyObject *resultobj; |
23510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23511 | wxPoint result; | |
23512 | PyObject * obj0 = 0 ; | |
23513 | char *kwnames[] = { | |
23514 | (char *) "self", NULL | |
23515 | }; | |
23516 | ||
23517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23520 | { | |
23521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23522 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23523 | ||
23524 | wxPyEndAllowThreads(__tstate); | |
23525 | if (PyErr_Occurred()) SWIG_fail; | |
23526 | } | |
23527 | { | |
23528 | wxPoint * resultptr; | |
23529 | resultptr = new wxPoint((wxPoint &) result); | |
23530 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23531 | } | |
23532 | return resultobj; | |
23533 | fail: | |
23534 | return NULL; | |
23535 | } | |
23536 | ||
23537 | ||
c32bde28 | 23538 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23539 | PyObject *resultobj; |
23540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23541 | wxRect result; | |
23542 | PyObject * obj0 = 0 ; | |
23543 | char *kwnames[] = { | |
23544 | (char *) "self", NULL | |
23545 | }; | |
23546 | ||
23547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23550 | { | |
23551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23552 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23553 | ||
23554 | wxPyEndAllowThreads(__tstate); | |
23555 | if (PyErr_Occurred()) SWIG_fail; | |
23556 | } | |
23557 | { | |
23558 | wxRect * resultptr; | |
23559 | resultptr = new wxRect((wxRect &) result); | |
23560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23561 | } | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
c32bde28 | 23568 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23569 | PyObject *resultobj; |
23570 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23571 | wxSize result; | |
23572 | PyObject * obj0 = 0 ; | |
23573 | char *kwnames[] = { | |
23574 | (char *) "self", NULL | |
23575 | }; | |
23576 | ||
23577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23580 | { | |
23581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23582 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23583 | ||
23584 | wxPyEndAllowThreads(__tstate); | |
23585 | if (PyErr_Occurred()) SWIG_fail; | |
23586 | } | |
23587 | { | |
23588 | wxSize * resultptr; | |
23589 | resultptr = new wxSize((wxSize &) result); | |
23590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23591 | } | |
23592 | return resultobj; | |
23593 | fail: | |
23594 | return NULL; | |
23595 | } | |
23596 | ||
23597 | ||
c32bde28 | 23598 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23599 | PyObject *resultobj; |
23600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23601 | int *arg2 = (int *) 0 ; | |
23602 | int *arg3 = (int *) 0 ; | |
23603 | int temp2 ; | |
c32bde28 | 23604 | int res2 = 0 ; |
d55e5bfc | 23605 | int temp3 ; |
c32bde28 | 23606 | int res3 = 0 ; |
d55e5bfc RD |
23607 | PyObject * obj0 = 0 ; |
23608 | char *kwnames[] = { | |
23609 | (char *) "self", NULL | |
23610 | }; | |
23611 | ||
c32bde28 RD |
23612 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23613 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23617 | { | |
23618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23619 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23620 | ||
23621 | wxPyEndAllowThreads(__tstate); | |
23622 | if (PyErr_Occurred()) SWIG_fail; | |
23623 | } | |
23624 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23625 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23626 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23627 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23628 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23629 | return resultobj; |
23630 | fail: | |
23631 | return NULL; | |
23632 | } | |
23633 | ||
23634 | ||
c32bde28 | 23635 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23636 | PyObject *resultobj; |
23637 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23638 | PyObject * obj0 = 0 ; | |
23639 | char *kwnames[] = { | |
23640 | (char *) "self", NULL | |
23641 | }; | |
23642 | ||
23643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23646 | { | |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23648 | (arg1)->InvalidateBestSize(); | |
23649 | ||
23650 | wxPyEndAllowThreads(__tstate); | |
23651 | if (PyErr_Occurred()) SWIG_fail; | |
23652 | } | |
23653 | Py_INCREF(Py_None); resultobj = Py_None; | |
23654 | return resultobj; | |
23655 | fail: | |
23656 | return NULL; | |
23657 | } | |
23658 | ||
23659 | ||
c32bde28 | 23660 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23661 | PyObject *resultobj; |
23662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23663 | wxSize result; | |
23664 | PyObject * obj0 = 0 ; | |
23665 | char *kwnames[] = { | |
23666 | (char *) "self", NULL | |
23667 | }; | |
23668 | ||
23669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23672 | { | |
23673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23674 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23675 | ||
23676 | wxPyEndAllowThreads(__tstate); | |
23677 | if (PyErr_Occurred()) SWIG_fail; | |
23678 | } | |
23679 | { | |
23680 | wxSize * resultptr; | |
23681 | resultptr = new wxSize((wxSize &) result); | |
23682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23683 | } | |
23684 | return resultobj; | |
23685 | fail: | |
23686 | return NULL; | |
23687 | } | |
23688 | ||
23689 | ||
c32bde28 | 23690 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23691 | PyObject *resultobj; |
23692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23693 | wxSize result; | |
23694 | PyObject * obj0 = 0 ; | |
23695 | char *kwnames[] = { | |
23696 | (char *) "self", NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23702 | { | |
23703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23704 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23705 | ||
23706 | wxPyEndAllowThreads(__tstate); | |
23707 | if (PyErr_Occurred()) SWIG_fail; | |
23708 | } | |
23709 | { | |
23710 | wxSize * resultptr; | |
23711 | resultptr = new wxSize((wxSize &) result); | |
23712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23713 | } | |
23714 | return resultobj; | |
23715 | fail: | |
23716 | return NULL; | |
23717 | } | |
23718 | ||
23719 | ||
c32bde28 | 23720 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23721 | PyObject *resultobj; |
23722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23723 | int arg2 = (int) wxBOTH ; | |
23724 | PyObject * obj0 = 0 ; | |
23725 | PyObject * obj1 = 0 ; | |
23726 | char *kwnames[] = { | |
23727 | (char *) "self",(char *) "direction", NULL | |
23728 | }; | |
23729 | ||
23730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23733 | if (obj1) { | |
c32bde28 | 23734 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23735 | if (PyErr_Occurred()) SWIG_fail; |
23736 | } | |
23737 | { | |
23738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23739 | (arg1)->Center(arg2); | |
23740 | ||
23741 | wxPyEndAllowThreads(__tstate); | |
23742 | if (PyErr_Occurred()) SWIG_fail; | |
23743 | } | |
23744 | Py_INCREF(Py_None); resultobj = Py_None; | |
23745 | return resultobj; | |
23746 | fail: | |
23747 | return NULL; | |
23748 | } | |
23749 | ||
23750 | ||
c32bde28 | 23751 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23752 | PyObject *resultobj; |
23753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23754 | int arg2 = (int) wxBOTH ; | |
23755 | PyObject * obj0 = 0 ; | |
23756 | PyObject * obj1 = 0 ; | |
23757 | char *kwnames[] = { | |
23758 | (char *) "self",(char *) "dir", NULL | |
23759 | }; | |
23760 | ||
23761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23764 | if (obj1) { | |
c32bde28 | 23765 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23766 | if (PyErr_Occurred()) SWIG_fail; |
23767 | } | |
23768 | { | |
23769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23770 | (arg1)->CenterOnScreen(arg2); | |
23771 | ||
23772 | wxPyEndAllowThreads(__tstate); | |
23773 | if (PyErr_Occurred()) SWIG_fail; | |
23774 | } | |
23775 | Py_INCREF(Py_None); resultobj = Py_None; | |
23776 | return resultobj; | |
23777 | fail: | |
23778 | return NULL; | |
23779 | } | |
23780 | ||
23781 | ||
c32bde28 | 23782 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23783 | PyObject *resultobj; |
23784 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23785 | int arg2 = (int) wxBOTH ; | |
23786 | PyObject * obj0 = 0 ; | |
23787 | PyObject * obj1 = 0 ; | |
23788 | char *kwnames[] = { | |
23789 | (char *) "self",(char *) "dir", NULL | |
23790 | }; | |
23791 | ||
23792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23795 | if (obj1) { | |
c32bde28 | 23796 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23797 | if (PyErr_Occurred()) SWIG_fail; |
23798 | } | |
23799 | { | |
23800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23801 | (arg1)->CenterOnParent(arg2); | |
23802 | ||
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
23806 | Py_INCREF(Py_None); resultobj = Py_None; | |
23807 | return resultobj; | |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
c32bde28 | 23813 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23814 | PyObject *resultobj; |
23815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23816 | PyObject * obj0 = 0 ; | |
23817 | char *kwnames[] = { | |
23818 | (char *) "self", NULL | |
23819 | }; | |
23820 | ||
23821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23824 | { | |
23825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23826 | (arg1)->Fit(); | |
23827 | ||
23828 | wxPyEndAllowThreads(__tstate); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
23830 | } | |
23831 | Py_INCREF(Py_None); resultobj = Py_None; | |
23832 | return resultobj; | |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
c32bde28 | 23838 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23839 | PyObject *resultobj; |
23840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23841 | PyObject * obj0 = 0 ; | |
23842 | char *kwnames[] = { | |
23843 | (char *) "self", NULL | |
23844 | }; | |
23845 | ||
23846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
23847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | (arg1)->FitInside(); | |
23852 | ||
23853 | wxPyEndAllowThreads(__tstate); | |
23854 | if (PyErr_Occurred()) SWIG_fail; | |
23855 | } | |
23856 | Py_INCREF(Py_None); resultobj = Py_None; | |
23857 | return resultobj; | |
23858 | fail: | |
23859 | return NULL; | |
23860 | } | |
23861 | ||
23862 | ||
c32bde28 | 23863 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23864 | PyObject *resultobj; |
23865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23866 | int arg2 ; | |
23867 | int arg3 ; | |
23868 | int arg4 = (int) -1 ; | |
23869 | int arg5 = (int) -1 ; | |
23870 | int arg6 = (int) -1 ; | |
23871 | int arg7 = (int) -1 ; | |
23872 | PyObject * obj0 = 0 ; | |
23873 | PyObject * obj1 = 0 ; | |
23874 | PyObject * obj2 = 0 ; | |
23875 | PyObject * obj3 = 0 ; | |
23876 | PyObject * obj4 = 0 ; | |
23877 | PyObject * obj5 = 0 ; | |
23878 | PyObject * obj6 = 0 ; | |
03837c5c RD |
23879 | char *kwnames[] = { |
23880 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23881 | }; | |
d55e5bfc | 23882 | |
03837c5c | 23883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
23884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23886 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23887 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23888 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23889 | if (PyErr_Occurred()) SWIG_fail; |
23890 | if (obj3) { | |
c32bde28 | 23891 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23892 | if (PyErr_Occurred()) SWIG_fail; |
23893 | } | |
23894 | if (obj4) { | |
c32bde28 | 23895 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23896 | if (PyErr_Occurred()) SWIG_fail; |
23897 | } | |
23898 | if (obj5) { | |
c32bde28 | 23899 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23900 | if (PyErr_Occurred()) SWIG_fail; |
23901 | } | |
23902 | if (obj6) { | |
c32bde28 | 23903 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
23904 | if (PyErr_Occurred()) SWIG_fail; |
23905 | } | |
23906 | { | |
23907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23908 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23909 | ||
23910 | wxPyEndAllowThreads(__tstate); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | } | |
23913 | Py_INCREF(Py_None); resultobj = Py_None; | |
23914 | return resultobj; | |
23915 | fail: | |
23916 | return NULL; | |
23917 | } | |
23918 | ||
23919 | ||
c32bde28 | 23920 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23921 | PyObject *resultobj; |
23922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23923 | wxSize *arg2 = 0 ; |
23924 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23925 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
23926 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23927 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23928 | wxSize temp2 ; |
23929 | wxSize temp3 ; | |
03837c5c | 23930 | wxSize temp4 ; |
d55e5bfc RD |
23931 | PyObject * obj0 = 0 ; |
23932 | PyObject * obj1 = 0 ; | |
23933 | PyObject * obj2 = 0 ; | |
03837c5c RD |
23934 | PyObject * obj3 = 0 ; |
23935 | char *kwnames[] = { | |
23936 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23937 | }; | |
d55e5bfc | 23938 | |
03837c5c | 23939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
23940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23942 | { |
23943 | arg2 = &temp2; | |
23944 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23945 | } |
908b74cd RD |
23946 | if (obj2) { |
23947 | { | |
23948 | arg3 = &temp3; | |
23949 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23950 | } | |
d55e5bfc | 23951 | } |
03837c5c RD |
23952 | if (obj3) { |
23953 | { | |
23954 | arg4 = &temp4; | |
23955 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23956 | } | |
23957 | } | |
d55e5bfc RD |
23958 | { |
23959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 23960 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
23961 | |
23962 | wxPyEndAllowThreads(__tstate); | |
23963 | if (PyErr_Occurred()) SWIG_fail; | |
23964 | } | |
23965 | Py_INCREF(Py_None); resultobj = Py_None; | |
23966 | return resultobj; | |
23967 | fail: | |
23968 | return NULL; | |
23969 | } | |
23970 | ||
23971 | ||
c32bde28 | 23972 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23973 | PyObject *resultobj; |
23974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23975 | int arg2 ; |
23976 | int arg3 ; | |
23977 | int arg4 = (int) -1 ; | |
23978 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
23979 | PyObject * obj0 = 0 ; |
23980 | PyObject * obj1 = 0 ; | |
23981 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23982 | PyObject * obj3 = 0 ; |
23983 | PyObject * obj4 = 0 ; | |
03837c5c RD |
23984 | char *kwnames[] = { |
23985 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
23986 | }; | |
d55e5bfc | 23987 | |
03837c5c | 23988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
23989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23991 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 23992 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23993 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
23994 | if (PyErr_Occurred()) SWIG_fail; |
23995 | if (obj3) { | |
c32bde28 | 23996 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 23997 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 23998 | } |
908b74cd | 23999 | if (obj4) { |
c32bde28 | 24000 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 24001 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24002 | } |
24003 | { | |
24004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24005 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
24006 | |
24007 | wxPyEndAllowThreads(__tstate); | |
24008 | if (PyErr_Occurred()) SWIG_fail; | |
24009 | } | |
24010 | Py_INCREF(Py_None); resultobj = Py_None; | |
24011 | return resultobj; | |
24012 | fail: | |
24013 | return NULL; | |
24014 | } | |
24015 | ||
24016 | ||
c32bde28 | 24017 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
24018 | PyObject *resultobj; |
24019 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24020 | wxSize *arg2 = 0 ; | |
24021 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
24022 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
24023 | wxSize temp2 ; | |
24024 | wxSize temp3 ; | |
24025 | PyObject * obj0 = 0 ; | |
24026 | PyObject * obj1 = 0 ; | |
24027 | PyObject * obj2 = 0 ; | |
24028 | char *kwnames[] = { | |
24029 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
24030 | }; | |
d55e5bfc | 24031 | |
03837c5c RD |
24032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
24033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24035 | { | |
24036 | arg2 = &temp2; | |
24037 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 24038 | } |
03837c5c | 24039 | if (obj2) { |
d55e5bfc | 24040 | { |
03837c5c RD |
24041 | arg3 = &temp3; |
24042 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
24043 | } |
24044 | } | |
03837c5c RD |
24045 | { |
24046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24047 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
24048 | ||
24049 | wxPyEndAllowThreads(__tstate); | |
24050 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 24051 | } |
03837c5c RD |
24052 | Py_INCREF(Py_None); resultobj = Py_None; |
24053 | return resultobj; | |
24054 | fail: | |
d55e5bfc RD |
24055 | return NULL; |
24056 | } | |
24057 | ||
24058 | ||
c32bde28 | 24059 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24060 | PyObject *resultobj; |
24061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24062 | wxSize result; |
d55e5bfc RD |
24063 | PyObject * obj0 = 0 ; |
24064 | char *kwnames[] = { | |
24065 | (char *) "self", NULL | |
24066 | }; | |
24067 | ||
908b74cd | 24068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24071 | { | |
24072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24073 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
24074 | |
24075 | wxPyEndAllowThreads(__tstate); | |
24076 | if (PyErr_Occurred()) SWIG_fail; | |
24077 | } | |
908b74cd RD |
24078 | { |
24079 | wxSize * resultptr; | |
24080 | resultptr = new wxSize((wxSize &) result); | |
24081 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24082 | } | |
d55e5bfc RD |
24083 | return resultobj; |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
c32bde28 | 24089 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24090 | PyObject *resultobj; |
24091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24092 | wxSize result; |
d55e5bfc RD |
24093 | PyObject * obj0 = 0 ; |
24094 | char *kwnames[] = { | |
24095 | (char *) "self", NULL | |
24096 | }; | |
24097 | ||
908b74cd | 24098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24101 | { | |
24102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24103 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
24104 | |
24105 | wxPyEndAllowThreads(__tstate); | |
24106 | if (PyErr_Occurred()) SWIG_fail; | |
24107 | } | |
908b74cd RD |
24108 | { |
24109 | wxSize * resultptr; | |
24110 | resultptr = new wxSize((wxSize &) result); | |
24111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24112 | } | |
d55e5bfc RD |
24113 | return resultobj; |
24114 | fail: | |
24115 | return NULL; | |
24116 | } | |
24117 | ||
24118 | ||
c32bde28 | 24119 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24120 | PyObject *resultobj; |
24121 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24122 | wxSize *arg2 = 0 ; | |
24123 | wxSize temp2 ; | |
24124 | PyObject * obj0 = 0 ; | |
24125 | PyObject * obj1 = 0 ; | |
24126 | char *kwnames[] = { | |
24127 | (char *) "self",(char *) "minSize", NULL | |
24128 | }; | |
24129 | ||
24130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
24131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24133 | { | |
24134 | arg2 = &temp2; | |
24135 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24136 | } | |
24137 | { | |
24138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24139 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24140 | ||
24141 | wxPyEndAllowThreads(__tstate); | |
24142 | if (PyErr_Occurred()) SWIG_fail; | |
24143 | } | |
24144 | Py_INCREF(Py_None); resultobj = Py_None; | |
24145 | return resultobj; | |
24146 | fail: | |
24147 | return NULL; | |
24148 | } | |
24149 | ||
24150 | ||
c32bde28 | 24151 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24152 | PyObject *resultobj; |
24153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24154 | wxSize *arg2 = 0 ; | |
24155 | wxSize temp2 ; | |
24156 | PyObject * obj0 = 0 ; | |
24157 | PyObject * obj1 = 0 ; | |
24158 | char *kwnames[] = { | |
24159 | (char *) "self",(char *) "maxSize", NULL | |
24160 | }; | |
24161 | ||
24162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24165 | { | |
24166 | arg2 = &temp2; | |
24167 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24168 | } | |
24169 | { | |
24170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24171 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24172 | ||
24173 | wxPyEndAllowThreads(__tstate); | |
24174 | if (PyErr_Occurred()) SWIG_fail; | |
24175 | } | |
24176 | Py_INCREF(Py_None); resultobj = Py_None; | |
24177 | return resultobj; | |
24178 | fail: | |
24179 | return NULL; | |
24180 | } | |
24181 | ||
24182 | ||
c32bde28 | 24183 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24184 | PyObject *resultobj; |
24185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24186 | int result; | |
24187 | PyObject * obj0 = 0 ; | |
24188 | char *kwnames[] = { | |
24189 | (char *) "self", NULL | |
24190 | }; | |
24191 | ||
908b74cd | 24192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24195 | { | |
24196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24197 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24198 | |
24199 | wxPyEndAllowThreads(__tstate); | |
24200 | if (PyErr_Occurred()) SWIG_fail; | |
24201 | } | |
c32bde28 | 24202 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24203 | return resultobj; |
24204 | fail: | |
24205 | return NULL; | |
24206 | } | |
24207 | ||
24208 | ||
c32bde28 | 24209 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24210 | PyObject *resultobj; |
24211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24212 | int result; | |
24213 | PyObject * obj0 = 0 ; | |
24214 | char *kwnames[] = { | |
24215 | (char *) "self", NULL | |
24216 | }; | |
24217 | ||
908b74cd | 24218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24221 | { | |
24222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24223 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24224 | |
24225 | wxPyEndAllowThreads(__tstate); | |
24226 | if (PyErr_Occurred()) SWIG_fail; | |
24227 | } | |
c32bde28 | 24228 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24229 | return resultobj; |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
c32bde28 | 24235 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24236 | PyObject *resultobj; |
24237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24238 | int result; |
d55e5bfc RD |
24239 | PyObject * obj0 = 0 ; |
24240 | char *kwnames[] = { | |
24241 | (char *) "self", NULL | |
24242 | }; | |
24243 | ||
908b74cd | 24244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24247 | { | |
24248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24249 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24250 | |
24251 | wxPyEndAllowThreads(__tstate); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | } | |
c32bde28 | 24254 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24255 | return resultobj; |
24256 | fail: | |
24257 | return NULL; | |
24258 | } | |
24259 | ||
24260 | ||
c32bde28 | 24261 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24262 | PyObject *resultobj; |
24263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24264 | int result; |
d55e5bfc RD |
24265 | PyObject * obj0 = 0 ; |
24266 | char *kwnames[] = { | |
24267 | (char *) "self", NULL | |
24268 | }; | |
24269 | ||
908b74cd | 24270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24273 | { | |
24274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24275 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24276 | |
24277 | wxPyEndAllowThreads(__tstate); | |
24278 | if (PyErr_Occurred()) SWIG_fail; | |
24279 | } | |
c32bde28 | 24280 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24281 | return resultobj; |
24282 | fail: | |
24283 | return NULL; | |
24284 | } | |
24285 | ||
24286 | ||
c32bde28 | 24287 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24288 | PyObject *resultobj; |
24289 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24290 | wxSize *arg2 = 0 ; | |
24291 | wxSize temp2 ; | |
24292 | PyObject * obj0 = 0 ; | |
24293 | PyObject * obj1 = 0 ; | |
24294 | char *kwnames[] = { | |
24295 | (char *) "self",(char *) "size", NULL | |
24296 | }; | |
24297 | ||
24298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24301 | { | |
24302 | arg2 = &temp2; | |
24303 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24304 | } | |
24305 | { | |
24306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24307 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24308 | ||
24309 | wxPyEndAllowThreads(__tstate); | |
24310 | if (PyErr_Occurred()) SWIG_fail; | |
24311 | } | |
24312 | Py_INCREF(Py_None); resultobj = Py_None; | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | return NULL; | |
24316 | } | |
24317 | ||
24318 | ||
c32bde28 | 24319 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24320 | PyObject *resultobj; |
24321 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24322 | int arg2 ; | |
24323 | int arg3 ; | |
24324 | PyObject * obj0 = 0 ; | |
24325 | PyObject * obj1 = 0 ; | |
24326 | PyObject * obj2 = 0 ; | |
24327 | char *kwnames[] = { | |
24328 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24329 | }; | |
24330 | ||
24331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24334 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24335 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24336 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24337 | if (PyErr_Occurred()) SWIG_fail; |
24338 | { | |
24339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24340 | (arg1)->SetVirtualSize(arg2,arg3); | |
24341 | ||
24342 | wxPyEndAllowThreads(__tstate); | |
24343 | if (PyErr_Occurred()) SWIG_fail; | |
24344 | } | |
24345 | Py_INCREF(Py_None); resultobj = Py_None; | |
24346 | return resultobj; | |
24347 | fail: | |
24348 | return NULL; | |
24349 | } | |
24350 | ||
24351 | ||
c32bde28 | 24352 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24353 | PyObject *resultobj; |
24354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24355 | wxSize result; | |
24356 | PyObject * obj0 = 0 ; | |
24357 | char *kwnames[] = { | |
24358 | (char *) "self", NULL | |
24359 | }; | |
24360 | ||
24361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24364 | { | |
24365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24366 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24367 | ||
24368 | wxPyEndAllowThreads(__tstate); | |
24369 | if (PyErr_Occurred()) SWIG_fail; | |
24370 | } | |
24371 | { | |
24372 | wxSize * resultptr; | |
24373 | resultptr = new wxSize((wxSize &) result); | |
24374 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24375 | } | |
24376 | return resultobj; | |
24377 | fail: | |
24378 | return NULL; | |
24379 | } | |
24380 | ||
24381 | ||
c32bde28 | 24382 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24383 | PyObject *resultobj; |
24384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24385 | int *arg2 = (int *) 0 ; | |
24386 | int *arg3 = (int *) 0 ; | |
24387 | int temp2 ; | |
c32bde28 | 24388 | int res2 = 0 ; |
d55e5bfc | 24389 | int temp3 ; |
c32bde28 | 24390 | int res3 = 0 ; |
d55e5bfc RD |
24391 | PyObject * obj0 = 0 ; |
24392 | char *kwnames[] = { | |
24393 | (char *) "self", NULL | |
24394 | }; | |
24395 | ||
c32bde28 RD |
24396 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24397 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24401 | { | |
24402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24403 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24404 | ||
24405 | wxPyEndAllowThreads(__tstate); | |
24406 | if (PyErr_Occurred()) SWIG_fail; | |
24407 | } | |
24408 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
24409 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24410 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24411 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24412 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24413 | return resultobj; |
24414 | fail: | |
24415 | return NULL; | |
24416 | } | |
24417 | ||
24418 | ||
c32bde28 | 24419 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24420 | PyObject *resultobj; |
24421 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24422 | wxSize result; | |
24423 | PyObject * obj0 = 0 ; | |
24424 | char *kwnames[] = { | |
24425 | (char *) "self", NULL | |
24426 | }; | |
24427 | ||
24428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24431 | { | |
24432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24433 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24434 | ||
24435 | wxPyEndAllowThreads(__tstate); | |
24436 | if (PyErr_Occurred()) SWIG_fail; | |
24437 | } | |
24438 | { | |
24439 | wxSize * resultptr; | |
24440 | resultptr = new wxSize((wxSize &) result); | |
24441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24442 | } | |
24443 | return resultobj; | |
24444 | fail: | |
24445 | return NULL; | |
24446 | } | |
24447 | ||
24448 | ||
c32bde28 | 24449 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24450 | PyObject *resultobj; |
24451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24452 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24453 | bool result; |
24454 | PyObject * obj0 = 0 ; | |
24455 | PyObject * obj1 = 0 ; | |
24456 | char *kwnames[] = { | |
24457 | (char *) "self",(char *) "show", NULL | |
24458 | }; | |
24459 | ||
24460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24463 | if (obj1) { | |
c32bde28 | 24464 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24465 | if (PyErr_Occurred()) SWIG_fail; |
24466 | } | |
24467 | { | |
24468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24469 | result = (bool)(arg1)->Show(arg2); | |
24470 | ||
24471 | wxPyEndAllowThreads(__tstate); | |
24472 | if (PyErr_Occurred()) SWIG_fail; | |
24473 | } | |
24474 | { | |
24475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24476 | } | |
24477 | return resultobj; | |
24478 | fail: | |
24479 | return NULL; | |
24480 | } | |
24481 | ||
24482 | ||
c32bde28 | 24483 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24484 | PyObject *resultobj; |
24485 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24486 | bool result; | |
24487 | PyObject * obj0 = 0 ; | |
24488 | char *kwnames[] = { | |
24489 | (char *) "self", NULL | |
24490 | }; | |
24491 | ||
24492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
24493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24495 | { | |
24496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24497 | result = (bool)(arg1)->Hide(); | |
24498 | ||
24499 | wxPyEndAllowThreads(__tstate); | |
24500 | if (PyErr_Occurred()) SWIG_fail; | |
24501 | } | |
24502 | { | |
24503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24504 | } | |
24505 | return resultobj; | |
24506 | fail: | |
24507 | return NULL; | |
24508 | } | |
24509 | ||
24510 | ||
c32bde28 | 24511 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24512 | PyObject *resultobj; |
24513 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24514 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24515 | bool result; |
24516 | PyObject * obj0 = 0 ; | |
24517 | PyObject * obj1 = 0 ; | |
24518 | char *kwnames[] = { | |
24519 | (char *) "self",(char *) "enable", NULL | |
24520 | }; | |
24521 | ||
24522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24525 | if (obj1) { | |
c32bde28 | 24526 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24527 | if (PyErr_Occurred()) SWIG_fail; |
24528 | } | |
24529 | { | |
24530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24531 | result = (bool)(arg1)->Enable(arg2); | |
24532 | ||
24533 | wxPyEndAllowThreads(__tstate); | |
24534 | if (PyErr_Occurred()) SWIG_fail; | |
24535 | } | |
24536 | { | |
24537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24538 | } | |
24539 | return resultobj; | |
24540 | fail: | |
24541 | return NULL; | |
24542 | } | |
24543 | ||
24544 | ||
c32bde28 | 24545 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24546 | PyObject *resultobj; |
24547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24548 | bool result; | |
24549 | PyObject * obj0 = 0 ; | |
24550 | char *kwnames[] = { | |
24551 | (char *) "self", NULL | |
24552 | }; | |
24553 | ||
24554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24557 | { | |
24558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24559 | result = (bool)(arg1)->Disable(); | |
24560 | ||
24561 | wxPyEndAllowThreads(__tstate); | |
24562 | if (PyErr_Occurred()) SWIG_fail; | |
24563 | } | |
24564 | { | |
24565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24566 | } | |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
c32bde28 | 24573 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24574 | PyObject *resultobj; |
24575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24576 | bool result; | |
24577 | PyObject * obj0 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "self", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24585 | { | |
24586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24587 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24588 | ||
24589 | wxPyEndAllowThreads(__tstate); | |
24590 | if (PyErr_Occurred()) SWIG_fail; | |
24591 | } | |
24592 | { | |
24593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24594 | } | |
24595 | return resultobj; | |
24596 | fail: | |
24597 | return NULL; | |
24598 | } | |
24599 | ||
24600 | ||
c32bde28 | 24601 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24602 | PyObject *resultobj; |
24603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24604 | bool result; | |
24605 | PyObject * obj0 = 0 ; | |
24606 | char *kwnames[] = { | |
24607 | (char *) "self", NULL | |
24608 | }; | |
24609 | ||
24610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24613 | { | |
24614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24615 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24616 | ||
24617 | wxPyEndAllowThreads(__tstate); | |
24618 | if (PyErr_Occurred()) SWIG_fail; | |
24619 | } | |
24620 | { | |
24621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24622 | } | |
24623 | return resultobj; | |
24624 | fail: | |
24625 | return NULL; | |
24626 | } | |
24627 | ||
24628 | ||
c32bde28 | 24629 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24630 | PyObject *resultobj; |
24631 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24632 | long arg2 ; | |
24633 | PyObject * obj0 = 0 ; | |
24634 | PyObject * obj1 = 0 ; | |
24635 | char *kwnames[] = { | |
24636 | (char *) "self",(char *) "style", NULL | |
24637 | }; | |
24638 | ||
24639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24642 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24643 | if (PyErr_Occurred()) SWIG_fail; |
24644 | { | |
24645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24646 | (arg1)->SetWindowStyleFlag(arg2); | |
24647 | ||
24648 | wxPyEndAllowThreads(__tstate); | |
24649 | if (PyErr_Occurred()) SWIG_fail; | |
24650 | } | |
24651 | Py_INCREF(Py_None); resultobj = Py_None; | |
24652 | return resultobj; | |
24653 | fail: | |
24654 | return NULL; | |
24655 | } | |
24656 | ||
24657 | ||
c32bde28 | 24658 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24659 | PyObject *resultobj; |
24660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24661 | long result; | |
24662 | PyObject * obj0 = 0 ; | |
24663 | char *kwnames[] = { | |
24664 | (char *) "self", NULL | |
24665 | }; | |
24666 | ||
24667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24670 | { | |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
c32bde28 | 24677 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24678 | return resultobj; |
24679 | fail: | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
c32bde28 | 24684 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24685 | PyObject *resultobj; |
24686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24687 | int arg2 ; | |
24688 | bool result; | |
24689 | PyObject * obj0 = 0 ; | |
24690 | PyObject * obj1 = 0 ; | |
24691 | char *kwnames[] = { | |
24692 | (char *) "self",(char *) "flag", NULL | |
24693 | }; | |
24694 | ||
24695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24698 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24699 | if (PyErr_Occurred()) SWIG_fail; |
24700 | { | |
24701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24702 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24703 | ||
24704 | wxPyEndAllowThreads(__tstate); | |
24705 | if (PyErr_Occurred()) SWIG_fail; | |
24706 | } | |
24707 | { | |
24708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24709 | } | |
24710 | return resultobj; | |
24711 | fail: | |
24712 | return NULL; | |
24713 | } | |
24714 | ||
24715 | ||
c32bde28 | 24716 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24717 | PyObject *resultobj; |
24718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24719 | bool result; | |
24720 | PyObject * obj0 = 0 ; | |
24721 | char *kwnames[] = { | |
24722 | (char *) "self", NULL | |
24723 | }; | |
24724 | ||
24725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24728 | { | |
24729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24730 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24731 | ||
24732 | wxPyEndAllowThreads(__tstate); | |
24733 | if (PyErr_Occurred()) SWIG_fail; | |
24734 | } | |
24735 | { | |
24736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24737 | } | |
24738 | return resultobj; | |
24739 | fail: | |
24740 | return NULL; | |
24741 | } | |
24742 | ||
24743 | ||
c32bde28 | 24744 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24745 | PyObject *resultobj; |
24746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24747 | long arg2 ; | |
24748 | PyObject * obj0 = 0 ; | |
24749 | PyObject * obj1 = 0 ; | |
24750 | char *kwnames[] = { | |
24751 | (char *) "self",(char *) "exStyle", NULL | |
24752 | }; | |
24753 | ||
24754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24757 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24758 | if (PyErr_Occurred()) SWIG_fail; |
24759 | { | |
24760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24761 | (arg1)->SetExtraStyle(arg2); | |
24762 | ||
24763 | wxPyEndAllowThreads(__tstate); | |
24764 | if (PyErr_Occurred()) SWIG_fail; | |
24765 | } | |
24766 | Py_INCREF(Py_None); resultobj = Py_None; | |
24767 | return resultobj; | |
24768 | fail: | |
24769 | return NULL; | |
24770 | } | |
24771 | ||
24772 | ||
c32bde28 | 24773 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24774 | PyObject *resultobj; |
24775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24776 | long result; | |
24777 | PyObject * obj0 = 0 ; | |
24778 | char *kwnames[] = { | |
24779 | (char *) "self", NULL | |
24780 | }; | |
24781 | ||
24782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24785 | { | |
24786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24787 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24788 | ||
24789 | wxPyEndAllowThreads(__tstate); | |
24790 | if (PyErr_Occurred()) SWIG_fail; | |
24791 | } | |
c32bde28 | 24792 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24793 | return resultobj; |
24794 | fail: | |
24795 | return NULL; | |
24796 | } | |
24797 | ||
24798 | ||
c32bde28 | 24799 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24800 | PyObject *resultobj; |
24801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24802 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24803 | PyObject * obj0 = 0 ; |
24804 | PyObject * obj1 = 0 ; | |
24805 | char *kwnames[] = { | |
24806 | (char *) "self",(char *) "modal", NULL | |
24807 | }; | |
24808 | ||
24809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24812 | if (obj1) { | |
c32bde28 | 24813 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24814 | if (PyErr_Occurred()) SWIG_fail; |
24815 | } | |
24816 | { | |
24817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24818 | (arg1)->MakeModal(arg2); | |
24819 | ||
24820 | wxPyEndAllowThreads(__tstate); | |
24821 | if (PyErr_Occurred()) SWIG_fail; | |
24822 | } | |
24823 | Py_INCREF(Py_None); resultobj = Py_None; | |
24824 | return resultobj; | |
24825 | fail: | |
24826 | return NULL; | |
24827 | } | |
24828 | ||
24829 | ||
c32bde28 | 24830 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24831 | PyObject *resultobj; |
24832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24833 | bool arg2 ; | |
24834 | PyObject * obj0 = 0 ; | |
24835 | PyObject * obj1 = 0 ; | |
24836 | char *kwnames[] = { | |
24837 | (char *) "self",(char *) "enableTheme", NULL | |
24838 | }; | |
24839 | ||
24840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24843 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24844 | if (PyErr_Occurred()) SWIG_fail; |
24845 | { | |
24846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24847 | (arg1)->SetThemeEnabled(arg2); | |
24848 | ||
24849 | wxPyEndAllowThreads(__tstate); | |
24850 | if (PyErr_Occurred()) SWIG_fail; | |
24851 | } | |
24852 | Py_INCREF(Py_None); resultobj = Py_None; | |
24853 | return resultobj; | |
24854 | fail: | |
24855 | return NULL; | |
24856 | } | |
24857 | ||
24858 | ||
c32bde28 | 24859 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24860 | PyObject *resultobj; |
24861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24862 | bool result; | |
24863 | PyObject * obj0 = 0 ; | |
24864 | char *kwnames[] = { | |
24865 | (char *) "self", NULL | |
24866 | }; | |
24867 | ||
24868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24871 | { | |
24872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24873 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24874 | ||
24875 | wxPyEndAllowThreads(__tstate); | |
24876 | if (PyErr_Occurred()) SWIG_fail; | |
24877 | } | |
24878 | { | |
24879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24880 | } | |
24881 | return resultobj; | |
24882 | fail: | |
24883 | return NULL; | |
24884 | } | |
24885 | ||
24886 | ||
c32bde28 | 24887 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24888 | PyObject *resultobj; |
24889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24890 | PyObject * obj0 = 0 ; | |
24891 | char *kwnames[] = { | |
24892 | (char *) "self", NULL | |
24893 | }; | |
24894 | ||
24895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24898 | { | |
24899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24900 | (arg1)->SetFocus(); | |
24901 | ||
24902 | wxPyEndAllowThreads(__tstate); | |
24903 | if (PyErr_Occurred()) SWIG_fail; | |
24904 | } | |
24905 | Py_INCREF(Py_None); resultobj = Py_None; | |
24906 | return resultobj; | |
24907 | fail: | |
24908 | return NULL; | |
24909 | } | |
24910 | ||
24911 | ||
c32bde28 | 24912 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24913 | PyObject *resultobj; |
24914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24915 | PyObject * obj0 = 0 ; | |
24916 | char *kwnames[] = { | |
24917 | (char *) "self", NULL | |
24918 | }; | |
24919 | ||
24920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24923 | { | |
24924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24925 | (arg1)->SetFocusFromKbd(); | |
24926 | ||
24927 | wxPyEndAllowThreads(__tstate); | |
24928 | if (PyErr_Occurred()) SWIG_fail; | |
24929 | } | |
24930 | Py_INCREF(Py_None); resultobj = Py_None; | |
24931 | return resultobj; | |
24932 | fail: | |
24933 | return NULL; | |
24934 | } | |
24935 | ||
24936 | ||
c32bde28 | 24937 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24938 | PyObject *resultobj; |
24939 | wxWindow *result; | |
24940 | char *kwnames[] = { | |
24941 | NULL | |
24942 | }; | |
24943 | ||
24944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24945 | { | |
0439c23b | 24946 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24948 | result = (wxWindow *)wxWindow::FindFocus(); | |
24949 | ||
24950 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24951 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24952 | } |
24953 | { | |
412d302d | 24954 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24955 | } |
24956 | return resultobj; | |
24957 | fail: | |
24958 | return NULL; | |
24959 | } | |
24960 | ||
24961 | ||
c32bde28 | 24962 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24963 | PyObject *resultobj; |
24964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24965 | bool result; | |
24966 | PyObject * obj0 = 0 ; | |
24967 | char *kwnames[] = { | |
24968 | (char *) "self", NULL | |
24969 | }; | |
24970 | ||
24971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24974 | { | |
24975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24976 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24977 | ||
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | { | |
24982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24983 | } | |
24984 | return resultobj; | |
24985 | fail: | |
24986 | return NULL; | |
24987 | } | |
24988 | ||
24989 | ||
c32bde28 | 24990 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24991 | PyObject *resultobj; |
24992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24993 | bool result; | |
24994 | PyObject * obj0 = 0 ; | |
24995 | char *kwnames[] = { | |
24996 | (char *) "self", NULL | |
24997 | }; | |
24998 | ||
24999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
25000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25002 | { | |
25003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25004 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
25005 | ||
25006 | wxPyEndAllowThreads(__tstate); | |
25007 | if (PyErr_Occurred()) SWIG_fail; | |
25008 | } | |
25009 | { | |
25010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25011 | } | |
25012 | return resultobj; | |
25013 | fail: | |
25014 | return NULL; | |
25015 | } | |
25016 | ||
25017 | ||
c32bde28 | 25018 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25019 | PyObject *resultobj; |
25020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25021 | wxWindow *result; | |
25022 | PyObject * obj0 = 0 ; | |
25023 | char *kwnames[] = { | |
25024 | (char *) "self", NULL | |
25025 | }; | |
25026 | ||
25027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
25028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25030 | { | |
25031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25032 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
25033 | ||
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | { | |
412d302d | 25038 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25039 | } |
25040 | return resultobj; | |
25041 | fail: | |
25042 | return NULL; | |
25043 | } | |
25044 | ||
25045 | ||
c32bde28 | 25046 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25047 | PyObject *resultobj; |
25048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25049 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25050 | wxWindow *result; | |
25051 | PyObject * obj0 = 0 ; | |
25052 | PyObject * obj1 = 0 ; | |
25053 | char *kwnames[] = { | |
25054 | (char *) "self",(char *) "child", NULL | |
25055 | }; | |
25056 | ||
25057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25060 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25062 | { | |
25063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25064 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
25065 | ||
25066 | wxPyEndAllowThreads(__tstate); | |
25067 | if (PyErr_Occurred()) SWIG_fail; | |
25068 | } | |
25069 | { | |
412d302d | 25070 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25071 | } |
25072 | return resultobj; | |
25073 | fail: | |
25074 | return NULL; | |
25075 | } | |
25076 | ||
25077 | ||
c32bde28 | 25078 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25079 | PyObject *resultobj; |
25080 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25081 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25082 | PyObject * obj0 = 0 ; | |
25083 | PyObject * obj1 = 0 ; | |
25084 | char *kwnames[] = { | |
25085 | (char *) "self",(char *) "win", NULL | |
25086 | }; | |
25087 | ||
25088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25091 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25093 | { | |
25094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25095 | (arg1)->SetTmpDefaultItem(arg2); | |
25096 | ||
25097 | wxPyEndAllowThreads(__tstate); | |
25098 | if (PyErr_Occurred()) SWIG_fail; | |
25099 | } | |
25100 | Py_INCREF(Py_None); resultobj = Py_None; | |
25101 | return resultobj; | |
25102 | fail: | |
25103 | return NULL; | |
25104 | } | |
25105 | ||
25106 | ||
c32bde28 | 25107 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
25108 | PyObject *resultobj; |
25109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25110 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
25111 | bool result; | |
25112 | PyObject * obj0 = 0 ; | |
25113 | PyObject * obj1 = 0 ; | |
25114 | char *kwnames[] = { | |
25115 | (char *) "self",(char *) "flags", NULL | |
25116 | }; | |
25117 | ||
25118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
25119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25121 | if (obj1) { | |
c32bde28 | 25122 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
25123 | if (PyErr_Occurred()) SWIG_fail; |
25124 | } | |
25125 | { | |
25126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25127 | result = (bool)(arg1)->Navigate(arg2); | |
25128 | ||
25129 | wxPyEndAllowThreads(__tstate); | |
25130 | if (PyErr_Occurred()) SWIG_fail; | |
25131 | } | |
25132 | { | |
25133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25134 | } | |
25135 | return resultobj; | |
25136 | fail: | |
25137 | return NULL; | |
25138 | } | |
25139 | ||
25140 | ||
c32bde28 | 25141 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25142 | PyObject *resultobj; |
25143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25144 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25145 | PyObject * obj0 = 0 ; | |
25146 | PyObject * obj1 = 0 ; | |
25147 | char *kwnames[] = { | |
25148 | (char *) "self",(char *) "win", NULL | |
25149 | }; | |
25150 | ||
25151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25156 | { | |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | (arg1)->MoveAfterInTabOrder(arg2); | |
25159 | ||
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | Py_INCREF(Py_None); resultobj = Py_None; | |
25164 | return resultobj; | |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
c32bde28 | 25170 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25171 | PyObject *resultobj; |
25172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25174 | PyObject * obj0 = 0 ; | |
25175 | PyObject * obj1 = 0 ; | |
25176 | char *kwnames[] = { | |
25177 | (char *) "self",(char *) "win", NULL | |
25178 | }; | |
25179 | ||
25180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25185 | { | |
25186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25187 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25188 | ||
25189 | wxPyEndAllowThreads(__tstate); | |
25190 | if (PyErr_Occurred()) SWIG_fail; | |
25191 | } | |
25192 | Py_INCREF(Py_None); resultobj = Py_None; | |
25193 | return resultobj; | |
25194 | fail: | |
25195 | return NULL; | |
25196 | } | |
25197 | ||
25198 | ||
c32bde28 | 25199 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25200 | PyObject *resultobj; |
25201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25202 | PyObject *result; | |
25203 | PyObject * obj0 = 0 ; | |
25204 | char *kwnames[] = { | |
25205 | (char *) "self", NULL | |
25206 | }; | |
25207 | ||
25208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25211 | { | |
25212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25213 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25214 | ||
25215 | wxPyEndAllowThreads(__tstate); | |
25216 | if (PyErr_Occurred()) SWIG_fail; | |
25217 | } | |
25218 | resultobj = result; | |
25219 | return resultobj; | |
25220 | fail: | |
25221 | return NULL; | |
25222 | } | |
25223 | ||
25224 | ||
c32bde28 | 25225 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25226 | PyObject *resultobj; |
25227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25228 | wxWindow *result; | |
25229 | PyObject * obj0 = 0 ; | |
25230 | char *kwnames[] = { | |
25231 | (char *) "self", NULL | |
25232 | }; | |
25233 | ||
25234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25237 | { | |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25240 | ||
25241 | wxPyEndAllowThreads(__tstate); | |
25242 | if (PyErr_Occurred()) SWIG_fail; | |
25243 | } | |
25244 | { | |
412d302d | 25245 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25246 | } |
25247 | return resultobj; | |
25248 | fail: | |
25249 | return NULL; | |
25250 | } | |
25251 | ||
25252 | ||
c32bde28 | 25253 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25254 | PyObject *resultobj; |
25255 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25256 | wxWindow *result; | |
25257 | PyObject * obj0 = 0 ; | |
25258 | char *kwnames[] = { | |
25259 | (char *) "self", NULL | |
25260 | }; | |
25261 | ||
25262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25265 | { | |
25266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25267 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25268 | ||
25269 | wxPyEndAllowThreads(__tstate); | |
25270 | if (PyErr_Occurred()) SWIG_fail; | |
25271 | } | |
25272 | { | |
412d302d | 25273 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25274 | } |
25275 | return resultobj; | |
25276 | fail: | |
25277 | return NULL; | |
25278 | } | |
25279 | ||
25280 | ||
c32bde28 | 25281 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25282 | PyObject *resultobj; |
25283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25284 | bool result; | |
25285 | PyObject * obj0 = 0 ; | |
25286 | char *kwnames[] = { | |
25287 | (char *) "self", NULL | |
25288 | }; | |
25289 | ||
25290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25293 | { | |
25294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25295 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25296 | ||
25297 | wxPyEndAllowThreads(__tstate); | |
25298 | if (PyErr_Occurred()) SWIG_fail; | |
25299 | } | |
25300 | { | |
25301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25302 | } | |
25303 | return resultobj; | |
25304 | fail: | |
25305 | return NULL; | |
25306 | } | |
25307 | ||
25308 | ||
c32bde28 | 25309 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25310 | PyObject *resultobj; |
25311 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25312 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25313 | bool result; | |
25314 | PyObject * obj0 = 0 ; | |
25315 | PyObject * obj1 = 0 ; | |
25316 | char *kwnames[] = { | |
25317 | (char *) "self",(char *) "newParent", NULL | |
25318 | }; | |
25319 | ||
25320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25325 | { | |
25326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25327 | result = (bool)(arg1)->Reparent(arg2); | |
25328 | ||
25329 | wxPyEndAllowThreads(__tstate); | |
25330 | if (PyErr_Occurred()) SWIG_fail; | |
25331 | } | |
25332 | { | |
25333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25334 | } | |
25335 | return resultobj; | |
25336 | fail: | |
25337 | return NULL; | |
25338 | } | |
25339 | ||
25340 | ||
c32bde28 | 25341 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25342 | PyObject *resultobj; |
25343 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25344 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25345 | PyObject * obj0 = 0 ; | |
25346 | PyObject * obj1 = 0 ; | |
25347 | char *kwnames[] = { | |
25348 | (char *) "self",(char *) "child", NULL | |
25349 | }; | |
25350 | ||
25351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25356 | { | |
25357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25358 | (arg1)->AddChild(arg2); | |
25359 | ||
25360 | wxPyEndAllowThreads(__tstate); | |
25361 | if (PyErr_Occurred()) SWIG_fail; | |
25362 | } | |
25363 | Py_INCREF(Py_None); resultobj = Py_None; | |
25364 | return resultobj; | |
25365 | fail: | |
25366 | return NULL; | |
25367 | } | |
25368 | ||
25369 | ||
c32bde28 | 25370 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25371 | PyObject *resultobj; |
25372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25373 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25374 | PyObject * obj0 = 0 ; | |
25375 | PyObject * obj1 = 0 ; | |
25376 | char *kwnames[] = { | |
25377 | (char *) "self",(char *) "child", NULL | |
25378 | }; | |
25379 | ||
25380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25385 | { | |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | (arg1)->RemoveChild(arg2); | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | Py_INCREF(Py_None); resultobj = Py_None; | |
25393 | return resultobj; | |
25394 | fail: | |
25395 | return NULL; | |
25396 | } | |
25397 | ||
25398 | ||
c32bde28 | 25399 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25400 | PyObject *resultobj; |
25401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25402 | long arg2 ; | |
25403 | wxWindow *result; | |
25404 | PyObject * obj0 = 0 ; | |
25405 | PyObject * obj1 = 0 ; | |
25406 | char *kwnames[] = { | |
25407 | (char *) "self",(char *) "winid", NULL | |
25408 | }; | |
25409 | ||
25410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25413 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25414 | if (PyErr_Occurred()) SWIG_fail; |
25415 | { | |
25416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25417 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25418 | ||
25419 | wxPyEndAllowThreads(__tstate); | |
25420 | if (PyErr_Occurred()) SWIG_fail; | |
25421 | } | |
25422 | { | |
412d302d | 25423 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25424 | } |
25425 | return resultobj; | |
25426 | fail: | |
25427 | return NULL; | |
25428 | } | |
25429 | ||
25430 | ||
c32bde28 | 25431 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25432 | PyObject *resultobj; |
25433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25434 | wxString *arg2 = 0 ; | |
25435 | wxWindow *result; | |
ae8162c8 | 25436 | bool temp2 = false ; |
d55e5bfc RD |
25437 | PyObject * obj0 = 0 ; |
25438 | PyObject * obj1 = 0 ; | |
25439 | char *kwnames[] = { | |
25440 | (char *) "self",(char *) "name", NULL | |
25441 | }; | |
25442 | ||
25443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25446 | { | |
25447 | arg2 = wxString_in_helper(obj1); | |
25448 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25449 | temp2 = true; |
d55e5bfc RD |
25450 | } |
25451 | { | |
25452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25453 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25454 | ||
25455 | wxPyEndAllowThreads(__tstate); | |
25456 | if (PyErr_Occurred()) SWIG_fail; | |
25457 | } | |
25458 | { | |
412d302d | 25459 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25460 | } |
25461 | { | |
25462 | if (temp2) | |
25463 | delete arg2; | |
25464 | } | |
25465 | return resultobj; | |
25466 | fail: | |
25467 | { | |
25468 | if (temp2) | |
25469 | delete arg2; | |
25470 | } | |
25471 | return NULL; | |
25472 | } | |
25473 | ||
25474 | ||
c32bde28 | 25475 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25476 | PyObject *resultobj; |
25477 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25478 | wxEvtHandler *result; | |
25479 | PyObject * obj0 = 0 ; | |
25480 | char *kwnames[] = { | |
25481 | (char *) "self", NULL | |
25482 | }; | |
25483 | ||
25484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25487 | { | |
25488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25489 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25490 | ||
25491 | wxPyEndAllowThreads(__tstate); | |
25492 | if (PyErr_Occurred()) SWIG_fail; | |
25493 | } | |
25494 | { | |
412d302d | 25495 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25496 | } |
25497 | return resultobj; | |
25498 | fail: | |
25499 | return NULL; | |
25500 | } | |
25501 | ||
25502 | ||
c32bde28 | 25503 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25504 | PyObject *resultobj; |
25505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25506 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25507 | PyObject * obj0 = 0 ; | |
25508 | PyObject * obj1 = 0 ; | |
25509 | char *kwnames[] = { | |
25510 | (char *) "self",(char *) "handler", NULL | |
25511 | }; | |
25512 | ||
25513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25518 | { | |
25519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25520 | (arg1)->SetEventHandler(arg2); | |
25521 | ||
25522 | wxPyEndAllowThreads(__tstate); | |
25523 | if (PyErr_Occurred()) SWIG_fail; | |
25524 | } | |
25525 | Py_INCREF(Py_None); resultobj = Py_None; | |
25526 | return resultobj; | |
25527 | fail: | |
25528 | return NULL; | |
25529 | } | |
25530 | ||
25531 | ||
c32bde28 | 25532 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25533 | PyObject *resultobj; |
25534 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25535 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25536 | PyObject * obj0 = 0 ; | |
25537 | PyObject * obj1 = 0 ; | |
25538 | char *kwnames[] = { | |
25539 | (char *) "self",(char *) "handler", NULL | |
25540 | }; | |
25541 | ||
25542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25545 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25547 | { | |
25548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25549 | (arg1)->PushEventHandler(arg2); | |
25550 | ||
25551 | wxPyEndAllowThreads(__tstate); | |
25552 | if (PyErr_Occurred()) SWIG_fail; | |
25553 | } | |
25554 | Py_INCREF(Py_None); resultobj = Py_None; | |
25555 | return resultobj; | |
25556 | fail: | |
25557 | return NULL; | |
25558 | } | |
25559 | ||
25560 | ||
c32bde28 | 25561 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25562 | PyObject *resultobj; |
25563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25564 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25565 | wxEvtHandler *result; |
25566 | PyObject * obj0 = 0 ; | |
25567 | PyObject * obj1 = 0 ; | |
25568 | char *kwnames[] = { | |
25569 | (char *) "self",(char *) "deleteHandler", NULL | |
25570 | }; | |
25571 | ||
25572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25575 | if (obj1) { | |
c32bde28 | 25576 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25577 | if (PyErr_Occurred()) SWIG_fail; |
25578 | } | |
25579 | { | |
25580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25581 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25582 | ||
25583 | wxPyEndAllowThreads(__tstate); | |
25584 | if (PyErr_Occurred()) SWIG_fail; | |
25585 | } | |
25586 | { | |
412d302d | 25587 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25588 | } |
25589 | return resultobj; | |
25590 | fail: | |
25591 | return NULL; | |
25592 | } | |
25593 | ||
25594 | ||
c32bde28 | 25595 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25596 | PyObject *resultobj; |
25597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25598 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25599 | bool result; | |
25600 | PyObject * obj0 = 0 ; | |
25601 | PyObject * obj1 = 0 ; | |
25602 | char *kwnames[] = { | |
25603 | (char *) "self",(char *) "handler", NULL | |
25604 | }; | |
25605 | ||
25606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25611 | { | |
25612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25613 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25614 | ||
25615 | wxPyEndAllowThreads(__tstate); | |
25616 | if (PyErr_Occurred()) SWIG_fail; | |
25617 | } | |
25618 | { | |
25619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25620 | } | |
25621 | return resultobj; | |
25622 | fail: | |
25623 | return NULL; | |
25624 | } | |
25625 | ||
25626 | ||
c32bde28 | 25627 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25628 | PyObject *resultobj; |
25629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25630 | wxValidator *arg2 = 0 ; | |
25631 | PyObject * obj0 = 0 ; | |
25632 | PyObject * obj1 = 0 ; | |
25633 | char *kwnames[] = { | |
25634 | (char *) "self",(char *) "validator", NULL | |
25635 | }; | |
25636 | ||
25637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25641 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25642 | SWIG_fail; | |
25643 | if (arg2 == NULL) { | |
25644 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25645 | SWIG_fail; | |
25646 | } | |
25647 | { | |
25648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25649 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
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_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25662 | PyObject *resultobj; |
25663 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25664 | wxValidator *result; | |
25665 | PyObject * obj0 = 0 ; | |
25666 | char *kwnames[] = { | |
25667 | (char *) "self", NULL | |
25668 | }; | |
25669 | ||
25670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25673 | { | |
25674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25675 | result = (wxValidator *)(arg1)->GetValidator(); | |
25676 | ||
25677 | wxPyEndAllowThreads(__tstate); | |
25678 | if (PyErr_Occurred()) SWIG_fail; | |
25679 | } | |
25680 | { | |
412d302d | 25681 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25682 | } |
25683 | return resultobj; | |
25684 | fail: | |
25685 | return NULL; | |
25686 | } | |
25687 | ||
25688 | ||
c32bde28 | 25689 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25690 | PyObject *resultobj; |
25691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25692 | bool result; | |
25693 | PyObject * obj0 = 0 ; | |
25694 | char *kwnames[] = { | |
25695 | (char *) "self", NULL | |
25696 | }; | |
25697 | ||
25698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25701 | { | |
25702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25703 | result = (bool)(arg1)->Validate(); | |
25704 | ||
25705 | wxPyEndAllowThreads(__tstate); | |
25706 | if (PyErr_Occurred()) SWIG_fail; | |
25707 | } | |
25708 | { | |
25709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25710 | } | |
25711 | return resultobj; | |
25712 | fail: | |
25713 | return NULL; | |
25714 | } | |
25715 | ||
25716 | ||
c32bde28 | 25717 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25718 | PyObject *resultobj; |
25719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25720 | bool result; | |
25721 | PyObject * obj0 = 0 ; | |
25722 | char *kwnames[] = { | |
25723 | (char *) "self", NULL | |
25724 | }; | |
25725 | ||
25726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25729 | { | |
25730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25731 | result = (bool)(arg1)->TransferDataToWindow(); | |
25732 | ||
25733 | wxPyEndAllowThreads(__tstate); | |
25734 | if (PyErr_Occurred()) SWIG_fail; | |
25735 | } | |
25736 | { | |
25737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25738 | } | |
25739 | return resultobj; | |
25740 | fail: | |
25741 | return NULL; | |
25742 | } | |
25743 | ||
25744 | ||
c32bde28 | 25745 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25746 | PyObject *resultobj; |
25747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25748 | bool result; | |
25749 | PyObject * obj0 = 0 ; | |
25750 | char *kwnames[] = { | |
25751 | (char *) "self", NULL | |
25752 | }; | |
25753 | ||
25754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25757 | { | |
25758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25759 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25760 | ||
25761 | wxPyEndAllowThreads(__tstate); | |
25762 | if (PyErr_Occurred()) SWIG_fail; | |
25763 | } | |
25764 | { | |
25765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25766 | } | |
25767 | return resultobj; | |
25768 | fail: | |
25769 | return NULL; | |
25770 | } | |
25771 | ||
25772 | ||
c32bde28 | 25773 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25774 | PyObject *resultobj; |
25775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25776 | PyObject * obj0 = 0 ; | |
25777 | char *kwnames[] = { | |
25778 | (char *) "self", NULL | |
25779 | }; | |
25780 | ||
25781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25784 | { | |
25785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25786 | (arg1)->InitDialog(); | |
25787 | ||
25788 | wxPyEndAllowThreads(__tstate); | |
25789 | if (PyErr_Occurred()) SWIG_fail; | |
25790 | } | |
25791 | Py_INCREF(Py_None); resultobj = Py_None; | |
25792 | return resultobj; | |
25793 | fail: | |
25794 | return NULL; | |
25795 | } | |
25796 | ||
25797 | ||
c32bde28 | 25798 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25799 | PyObject *resultobj; |
25800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25801 | wxAcceleratorTable *arg2 = 0 ; | |
25802 | PyObject * obj0 = 0 ; | |
25803 | PyObject * obj1 = 0 ; | |
25804 | char *kwnames[] = { | |
25805 | (char *) "self",(char *) "accel", NULL | |
25806 | }; | |
25807 | ||
25808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25811 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25812 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25813 | SWIG_fail; | |
25814 | if (arg2 == NULL) { | |
25815 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25816 | SWIG_fail; | |
25817 | } | |
25818 | { | |
25819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25820 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25821 | ||
25822 | wxPyEndAllowThreads(__tstate); | |
25823 | if (PyErr_Occurred()) SWIG_fail; | |
25824 | } | |
25825 | Py_INCREF(Py_None); resultobj = Py_None; | |
25826 | return resultobj; | |
25827 | fail: | |
25828 | return NULL; | |
25829 | } | |
25830 | ||
25831 | ||
c32bde28 | 25832 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25833 | PyObject *resultobj; |
25834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25835 | wxAcceleratorTable *result; | |
25836 | PyObject * obj0 = 0 ; | |
25837 | char *kwnames[] = { | |
25838 | (char *) "self", NULL | |
25839 | }; | |
25840 | ||
25841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
25842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25844 | { | |
25845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25846 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25847 | ||
25848 | wxPyEndAllowThreads(__tstate); | |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
25850 | } | |
25851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
25852 | return resultobj; | |
25853 | fail: | |
25854 | return NULL; | |
25855 | } | |
25856 | ||
25857 | ||
c32bde28 | 25858 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25859 | PyObject *resultobj; |
25860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25861 | int arg2 ; | |
25862 | int arg3 ; | |
25863 | int arg4 ; | |
25864 | bool result; | |
25865 | PyObject * obj0 = 0 ; | |
25866 | PyObject * obj1 = 0 ; | |
25867 | PyObject * obj2 = 0 ; | |
25868 | PyObject * obj3 = 0 ; | |
25869 | char *kwnames[] = { | |
25870 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25871 | }; | |
25872 | ||
25873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25876 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 25877 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25878 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 25879 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25880 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
25881 | if (PyErr_Occurred()) SWIG_fail; |
25882 | { | |
25883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25884 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25885 | ||
25886 | wxPyEndAllowThreads(__tstate); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
25889 | { | |
25890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25891 | } | |
25892 | return resultobj; | |
25893 | fail: | |
25894 | return NULL; | |
25895 | } | |
25896 | ||
25897 | ||
c32bde28 | 25898 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25899 | PyObject *resultobj; |
25900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25901 | int arg2 ; | |
25902 | bool result; | |
25903 | PyObject * obj0 = 0 ; | |
25904 | PyObject * obj1 = 0 ; | |
25905 | char *kwnames[] = { | |
25906 | (char *) "self",(char *) "hotkeyId", NULL | |
25907 | }; | |
25908 | ||
25909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25912 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25913 | if (PyErr_Occurred()) SWIG_fail; |
25914 | { | |
25915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25916 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25917 | ||
25918 | wxPyEndAllowThreads(__tstate); | |
25919 | if (PyErr_Occurred()) SWIG_fail; | |
25920 | } | |
25921 | { | |
25922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25923 | } | |
25924 | return resultobj; | |
25925 | fail: | |
25926 | return NULL; | |
25927 | } | |
25928 | ||
25929 | ||
c32bde28 | 25930 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25931 | PyObject *resultobj; |
25932 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25933 | wxPoint *arg2 = 0 ; | |
25934 | wxPoint result; | |
25935 | wxPoint temp2 ; | |
25936 | PyObject * obj0 = 0 ; | |
25937 | PyObject * obj1 = 0 ; | |
25938 | char *kwnames[] = { | |
25939 | (char *) "self",(char *) "pt", NULL | |
25940 | }; | |
25941 | ||
25942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25945 | { | |
25946 | arg2 = &temp2; | |
25947 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25948 | } | |
25949 | { | |
25950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25951 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25952 | ||
25953 | wxPyEndAllowThreads(__tstate); | |
25954 | if (PyErr_Occurred()) SWIG_fail; | |
25955 | } | |
25956 | { | |
25957 | wxPoint * resultptr; | |
25958 | resultptr = new wxPoint((wxPoint &) result); | |
25959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25960 | } | |
25961 | return resultobj; | |
25962 | fail: | |
25963 | return NULL; | |
25964 | } | |
25965 | ||
25966 | ||
c32bde28 | 25967 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25968 | PyObject *resultobj; |
25969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25970 | wxSize *arg2 = 0 ; | |
25971 | wxSize result; | |
25972 | wxSize temp2 ; | |
25973 | PyObject * obj0 = 0 ; | |
25974 | PyObject * obj1 = 0 ; | |
25975 | char *kwnames[] = { | |
25976 | (char *) "self",(char *) "sz", NULL | |
25977 | }; | |
25978 | ||
25979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25982 | { | |
25983 | arg2 = &temp2; | |
25984 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25985 | } | |
25986 | { | |
25987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25988 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25989 | ||
25990 | wxPyEndAllowThreads(__tstate); | |
25991 | if (PyErr_Occurred()) SWIG_fail; | |
25992 | } | |
25993 | { | |
25994 | wxSize * resultptr; | |
25995 | resultptr = new wxSize((wxSize &) result); | |
25996 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25997 | } | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
c32bde28 | 26004 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26005 | PyObject *resultobj; |
26006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26007 | wxPoint *arg2 = 0 ; | |
26008 | wxPoint result; | |
26009 | wxPoint temp2 ; | |
26010 | PyObject * obj0 = 0 ; | |
26011 | PyObject * obj1 = 0 ; | |
26012 | char *kwnames[] = { | |
26013 | (char *) "self",(char *) "pt", NULL | |
26014 | }; | |
26015 | ||
26016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
26017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26019 | { | |
26020 | arg2 = &temp2; | |
26021 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26022 | } | |
26023 | { | |
26024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26025 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26026 | ||
26027 | wxPyEndAllowThreads(__tstate); | |
26028 | if (PyErr_Occurred()) SWIG_fail; | |
26029 | } | |
26030 | { | |
26031 | wxPoint * resultptr; | |
26032 | resultptr = new wxPoint((wxPoint &) result); | |
26033 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26034 | } | |
26035 | return resultobj; | |
26036 | fail: | |
26037 | return NULL; | |
26038 | } | |
26039 | ||
26040 | ||
c32bde28 | 26041 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26042 | PyObject *resultobj; |
26043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26044 | wxSize *arg2 = 0 ; | |
26045 | wxSize result; | |
26046 | wxSize temp2 ; | |
26047 | PyObject * obj0 = 0 ; | |
26048 | PyObject * obj1 = 0 ; | |
26049 | char *kwnames[] = { | |
26050 | (char *) "self",(char *) "sz", NULL | |
26051 | }; | |
26052 | ||
26053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
26054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26056 | { | |
26057 | arg2 = &temp2; | |
26058 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26059 | } | |
26060 | { | |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | { | |
26068 | wxSize * resultptr; | |
26069 | resultptr = new wxSize((wxSize &) result); | |
26070 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26071 | } | |
26072 | return resultobj; | |
26073 | fail: | |
26074 | return NULL; | |
26075 | } | |
26076 | ||
26077 | ||
c32bde28 | 26078 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26079 | PyObject *resultobj; |
26080 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26081 | wxPoint *arg2 = 0 ; | |
26082 | wxPoint result; | |
26083 | wxPoint temp2 ; | |
26084 | PyObject * obj0 = 0 ; | |
26085 | PyObject * obj1 = 0 ; | |
26086 | char *kwnames[] = { | |
26087 | (char *) "self",(char *) "pt", NULL | |
26088 | }; | |
26089 | ||
26090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26093 | { | |
26094 | arg2 = &temp2; | |
26095 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26096 | } | |
26097 | { | |
26098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26099 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
26100 | ||
26101 | wxPyEndAllowThreads(__tstate); | |
26102 | if (PyErr_Occurred()) SWIG_fail; | |
26103 | } | |
26104 | { | |
26105 | wxPoint * resultptr; | |
26106 | resultptr = new wxPoint((wxPoint &) result); | |
26107 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26108 | } | |
26109 | return resultobj; | |
26110 | fail: | |
26111 | return NULL; | |
26112 | } | |
26113 | ||
26114 | ||
c32bde28 | 26115 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26116 | PyObject *resultobj; |
26117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26118 | wxSize *arg2 = 0 ; | |
26119 | wxSize result; | |
26120 | wxSize temp2 ; | |
26121 | PyObject * obj0 = 0 ; | |
26122 | PyObject * obj1 = 0 ; | |
26123 | char *kwnames[] = { | |
26124 | (char *) "self",(char *) "sz", NULL | |
26125 | }; | |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26130 | { | |
26131 | arg2 = &temp2; | |
26132 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26133 | } | |
26134 | { | |
26135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26136 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26137 | ||
26138 | wxPyEndAllowThreads(__tstate); | |
26139 | if (PyErr_Occurred()) SWIG_fail; | |
26140 | } | |
26141 | { | |
26142 | wxSize * resultptr; | |
26143 | resultptr = new wxSize((wxSize &) result); | |
26144 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26145 | } | |
26146 | return resultobj; | |
26147 | fail: | |
26148 | return NULL; | |
26149 | } | |
26150 | ||
26151 | ||
c32bde28 | 26152 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26153 | PyObject *resultobj; |
26154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26155 | int arg2 ; | |
26156 | int arg3 ; | |
26157 | PyObject * obj0 = 0 ; | |
26158 | PyObject * obj1 = 0 ; | |
26159 | PyObject * obj2 = 0 ; | |
26160 | char *kwnames[] = { | |
26161 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26162 | }; | |
26163 | ||
26164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26167 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26168 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26169 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26170 | if (PyErr_Occurred()) SWIG_fail; |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | (arg1)->WarpPointer(arg2,arg3); | |
26174 | ||
26175 | wxPyEndAllowThreads(__tstate); | |
26176 | if (PyErr_Occurred()) SWIG_fail; | |
26177 | } | |
26178 | Py_INCREF(Py_None); resultobj = Py_None; | |
26179 | return resultobj; | |
26180 | fail: | |
26181 | return NULL; | |
26182 | } | |
26183 | ||
26184 | ||
c32bde28 | 26185 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26186 | PyObject *resultobj; |
26187 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26188 | PyObject * obj0 = 0 ; | |
26189 | char *kwnames[] = { | |
26190 | (char *) "self", NULL | |
26191 | }; | |
26192 | ||
26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26196 | { | |
26197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26198 | (arg1)->CaptureMouse(); | |
26199 | ||
26200 | wxPyEndAllowThreads(__tstate); | |
26201 | if (PyErr_Occurred()) SWIG_fail; | |
26202 | } | |
26203 | Py_INCREF(Py_None); resultobj = Py_None; | |
26204 | return resultobj; | |
26205 | fail: | |
26206 | return NULL; | |
26207 | } | |
26208 | ||
26209 | ||
c32bde28 | 26210 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26211 | PyObject *resultobj; |
26212 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26213 | PyObject * obj0 = 0 ; | |
26214 | char *kwnames[] = { | |
26215 | (char *) "self", NULL | |
26216 | }; | |
26217 | ||
26218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26221 | { | |
26222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26223 | (arg1)->ReleaseMouse(); | |
26224 | ||
26225 | wxPyEndAllowThreads(__tstate); | |
26226 | if (PyErr_Occurred()) SWIG_fail; | |
26227 | } | |
26228 | Py_INCREF(Py_None); resultobj = Py_None; | |
26229 | return resultobj; | |
26230 | fail: | |
26231 | return NULL; | |
26232 | } | |
26233 | ||
26234 | ||
c32bde28 | 26235 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26236 | PyObject *resultobj; |
26237 | wxWindow *result; | |
26238 | char *kwnames[] = { | |
26239 | NULL | |
26240 | }; | |
26241 | ||
26242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26243 | { | |
0439c23b | 26244 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26246 | result = (wxWindow *)wxWindow::GetCapture(); | |
26247 | ||
26248 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26249 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26250 | } |
26251 | { | |
412d302d | 26252 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26253 | } |
26254 | return resultobj; | |
26255 | fail: | |
26256 | return NULL; | |
26257 | } | |
26258 | ||
26259 | ||
c32bde28 | 26260 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26261 | PyObject *resultobj; |
26262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26263 | bool result; | |
26264 | PyObject * obj0 = 0 ; | |
26265 | char *kwnames[] = { | |
26266 | (char *) "self", NULL | |
26267 | }; | |
26268 | ||
26269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26272 | { | |
26273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26274 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26275 | ||
26276 | wxPyEndAllowThreads(__tstate); | |
26277 | if (PyErr_Occurred()) SWIG_fail; | |
26278 | } | |
26279 | { | |
26280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26281 | } | |
26282 | return resultobj; | |
26283 | fail: | |
26284 | return NULL; | |
26285 | } | |
26286 | ||
26287 | ||
c32bde28 | 26288 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26289 | PyObject *resultobj; |
26290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26291 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26292 | wxRect *arg3 = (wxRect *) NULL ; |
26293 | PyObject * obj0 = 0 ; | |
26294 | PyObject * obj1 = 0 ; | |
26295 | PyObject * obj2 = 0 ; | |
26296 | char *kwnames[] = { | |
26297 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26298 | }; | |
26299 | ||
26300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26303 | if (obj1) { | |
c32bde28 | 26304 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26305 | if (PyErr_Occurred()) SWIG_fail; |
26306 | } | |
26307 | if (obj2) { | |
26308 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26310 | } | |
26311 | { | |
26312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26313 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26314 | ||
26315 | wxPyEndAllowThreads(__tstate); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
26317 | } | |
26318 | Py_INCREF(Py_None); resultobj = Py_None; | |
26319 | return resultobj; | |
26320 | fail: | |
26321 | return NULL; | |
26322 | } | |
26323 | ||
26324 | ||
c32bde28 | 26325 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26326 | PyObject *resultobj; |
26327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26328 | wxRect *arg2 = 0 ; | |
26329 | wxRect temp2 ; | |
26330 | PyObject * obj0 = 0 ; | |
26331 | PyObject * obj1 = 0 ; | |
26332 | char *kwnames[] = { | |
26333 | (char *) "self",(char *) "rect", NULL | |
26334 | }; | |
26335 | ||
26336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26339 | { | |
26340 | arg2 = &temp2; | |
26341 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26342 | } | |
26343 | { | |
26344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26345 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26346 | ||
26347 | wxPyEndAllowThreads(__tstate); | |
26348 | if (PyErr_Occurred()) SWIG_fail; | |
26349 | } | |
26350 | Py_INCREF(Py_None); resultobj = Py_None; | |
26351 | return resultobj; | |
26352 | fail: | |
26353 | return NULL; | |
26354 | } | |
26355 | ||
26356 | ||
c32bde28 | 26357 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26358 | PyObject *resultobj; |
26359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26360 | PyObject * obj0 = 0 ; | |
26361 | char *kwnames[] = { | |
26362 | (char *) "self", NULL | |
26363 | }; | |
26364 | ||
26365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | (arg1)->Update(); | |
26371 | ||
26372 | wxPyEndAllowThreads(__tstate); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | } | |
26375 | Py_INCREF(Py_None); resultobj = Py_None; | |
26376 | return resultobj; | |
26377 | fail: | |
26378 | return NULL; | |
26379 | } | |
26380 | ||
26381 | ||
c32bde28 | 26382 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26383 | PyObject *resultobj; |
26384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26385 | PyObject * obj0 = 0 ; | |
26386 | char *kwnames[] = { | |
26387 | (char *) "self", NULL | |
26388 | }; | |
26389 | ||
26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26393 | { | |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | (arg1)->ClearBackground(); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | Py_INCREF(Py_None); resultobj = Py_None; | |
26401 | return resultobj; | |
26402 | fail: | |
26403 | return NULL; | |
26404 | } | |
26405 | ||
26406 | ||
c32bde28 | 26407 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26408 | PyObject *resultobj; |
26409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26410 | PyObject * obj0 = 0 ; | |
26411 | char *kwnames[] = { | |
26412 | (char *) "self", NULL | |
26413 | }; | |
26414 | ||
26415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26418 | { | |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | (arg1)->Freeze(); | |
26421 | ||
26422 | wxPyEndAllowThreads(__tstate); | |
26423 | if (PyErr_Occurred()) SWIG_fail; | |
26424 | } | |
26425 | Py_INCREF(Py_None); resultobj = Py_None; | |
26426 | return resultobj; | |
26427 | fail: | |
26428 | return NULL; | |
26429 | } | |
26430 | ||
26431 | ||
c32bde28 | 26432 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26433 | PyObject *resultobj; |
26434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26435 | PyObject * obj0 = 0 ; | |
26436 | char *kwnames[] = { | |
26437 | (char *) "self", NULL | |
26438 | }; | |
26439 | ||
26440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26443 | { | |
26444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26445 | (arg1)->Thaw(); | |
26446 | ||
26447 | wxPyEndAllowThreads(__tstate); | |
26448 | if (PyErr_Occurred()) SWIG_fail; | |
26449 | } | |
26450 | Py_INCREF(Py_None); resultobj = Py_None; | |
26451 | return resultobj; | |
26452 | fail: | |
26453 | return NULL; | |
26454 | } | |
26455 | ||
26456 | ||
c32bde28 | 26457 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26458 | PyObject *resultobj; |
26459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26460 | wxDC *arg2 = 0 ; | |
26461 | PyObject * obj0 = 0 ; | |
26462 | PyObject * obj1 = 0 ; | |
26463 | char *kwnames[] = { | |
26464 | (char *) "self",(char *) "dc", NULL | |
26465 | }; | |
26466 | ||
26467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26472 | SWIG_fail; | |
26473 | if (arg2 == NULL) { | |
26474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26475 | SWIG_fail; | |
26476 | } | |
26477 | { | |
26478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26479 | (arg1)->PrepareDC(*arg2); | |
26480 | ||
26481 | wxPyEndAllowThreads(__tstate); | |
26482 | if (PyErr_Occurred()) SWIG_fail; | |
26483 | } | |
26484 | Py_INCREF(Py_None); resultobj = Py_None; | |
26485 | return resultobj; | |
26486 | fail: | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
c32bde28 | 26491 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26492 | PyObject *resultobj; |
26493 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26494 | wxRegion *result; | |
26495 | PyObject * obj0 = 0 ; | |
26496 | char *kwnames[] = { | |
26497 | (char *) "self", NULL | |
26498 | }; | |
26499 | ||
26500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26503 | { | |
26504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26505 | { | |
26506 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26507 | result = (wxRegion *) &_result_ref; | |
26508 | } | |
26509 | ||
26510 | wxPyEndAllowThreads(__tstate); | |
26511 | if (PyErr_Occurred()) SWIG_fail; | |
26512 | } | |
26513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26514 | return resultobj; | |
26515 | fail: | |
26516 | return NULL; | |
26517 | } | |
26518 | ||
26519 | ||
c32bde28 | 26520 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26521 | PyObject *resultobj; |
26522 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26523 | wxRect result; | |
26524 | PyObject * obj0 = 0 ; | |
26525 | char *kwnames[] = { | |
26526 | (char *) "self", NULL | |
26527 | }; | |
26528 | ||
26529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26532 | { | |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26535 | ||
26536 | wxPyEndAllowThreads(__tstate); | |
26537 | if (PyErr_Occurred()) SWIG_fail; | |
26538 | } | |
26539 | { | |
26540 | wxRect * resultptr; | |
26541 | resultptr = new wxRect((wxRect &) result); | |
26542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26543 | } | |
26544 | return resultobj; | |
26545 | fail: | |
26546 | return NULL; | |
26547 | } | |
26548 | ||
26549 | ||
c32bde28 | 26550 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26551 | PyObject *resultobj; |
26552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26553 | int arg2 ; | |
26554 | int arg3 ; | |
26555 | int arg4 = (int) 1 ; | |
26556 | int arg5 = (int) 1 ; | |
26557 | bool result; | |
26558 | PyObject * obj0 = 0 ; | |
26559 | PyObject * obj1 = 0 ; | |
26560 | PyObject * obj2 = 0 ; | |
26561 | PyObject * obj3 = 0 ; | |
26562 | PyObject * obj4 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26570 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26571 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26572 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26573 | if (PyErr_Occurred()) SWIG_fail; |
26574 | if (obj3) { | |
c32bde28 | 26575 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26576 | if (PyErr_Occurred()) SWIG_fail; |
26577 | } | |
26578 | if (obj4) { | |
c32bde28 | 26579 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26580 | if (PyErr_Occurred()) SWIG_fail; |
26581 | } | |
26582 | { | |
26583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26584 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26585 | ||
26586 | wxPyEndAllowThreads(__tstate); | |
26587 | if (PyErr_Occurred()) SWIG_fail; | |
26588 | } | |
26589 | { | |
26590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26591 | } | |
26592 | return resultobj; | |
26593 | fail: | |
26594 | return NULL; | |
26595 | } | |
26596 | ||
26597 | ||
c32bde28 | 26598 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26599 | PyObject *resultobj; |
26600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26601 | wxPoint *arg2 = 0 ; | |
26602 | bool result; | |
26603 | wxPoint temp2 ; | |
26604 | PyObject * obj0 = 0 ; | |
26605 | PyObject * obj1 = 0 ; | |
26606 | char *kwnames[] = { | |
26607 | (char *) "self",(char *) "pt", NULL | |
26608 | }; | |
26609 | ||
26610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26613 | { | |
26614 | arg2 = &temp2; | |
26615 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26616 | } | |
26617 | { | |
26618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26619 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26620 | ||
26621 | wxPyEndAllowThreads(__tstate); | |
26622 | if (PyErr_Occurred()) SWIG_fail; | |
26623 | } | |
26624 | { | |
26625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26626 | } | |
26627 | return resultobj; | |
26628 | fail: | |
26629 | return NULL; | |
26630 | } | |
26631 | ||
26632 | ||
c32bde28 | 26633 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26634 | PyObject *resultobj; |
26635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26636 | wxRect *arg2 = 0 ; | |
26637 | bool result; | |
26638 | wxRect temp2 ; | |
26639 | PyObject * obj0 = 0 ; | |
26640 | PyObject * obj1 = 0 ; | |
26641 | char *kwnames[] = { | |
26642 | (char *) "self",(char *) "rect", NULL | |
26643 | }; | |
26644 | ||
26645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26648 | { | |
26649 | arg2 = &temp2; | |
26650 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26651 | } | |
26652 | { | |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | { | |
26660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26661 | } | |
26662 | return resultobj; | |
26663 | fail: | |
26664 | return NULL; | |
26665 | } | |
26666 | ||
26667 | ||
c32bde28 | 26668 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26669 | PyObject *resultobj; |
26670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26671 | wxVisualAttributes result; | |
26672 | PyObject * obj0 = 0 ; | |
26673 | char *kwnames[] = { | |
26674 | (char *) "self", NULL | |
26675 | }; | |
26676 | ||
26677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26680 | { | |
26681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26682 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26683 | ||
26684 | wxPyEndAllowThreads(__tstate); | |
26685 | if (PyErr_Occurred()) SWIG_fail; | |
26686 | } | |
26687 | { | |
26688 | wxVisualAttributes * resultptr; | |
26689 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26690 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26691 | } | |
26692 | return resultobj; | |
26693 | fail: | |
26694 | return NULL; | |
26695 | } | |
26696 | ||
26697 | ||
c32bde28 | 26698 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26699 | PyObject *resultobj; |
26700 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26701 | wxVisualAttributes result; | |
26702 | PyObject * obj0 = 0 ; | |
26703 | char *kwnames[] = { | |
26704 | (char *) "variant", NULL | |
26705 | }; | |
26706 | ||
26707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26708 | if (obj0) { | |
c32bde28 | 26709 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26710 | if (PyErr_Occurred()) SWIG_fail; |
26711 | } | |
26712 | { | |
0439c23b | 26713 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26715 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26716 | ||
26717 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26718 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26719 | } |
26720 | { | |
26721 | wxVisualAttributes * resultptr; | |
26722 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26724 | } | |
26725 | return resultobj; | |
26726 | fail: | |
26727 | return NULL; | |
26728 | } | |
26729 | ||
26730 | ||
c32bde28 | 26731 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26732 | PyObject *resultobj; |
26733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26734 | wxColour *arg2 = 0 ; | |
26735 | bool result; | |
26736 | wxColour temp2 ; | |
26737 | PyObject * obj0 = 0 ; | |
26738 | PyObject * obj1 = 0 ; | |
26739 | char *kwnames[] = { | |
26740 | (char *) "self",(char *) "colour", NULL | |
26741 | }; | |
26742 | ||
26743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26746 | { | |
26747 | arg2 = &temp2; | |
26748 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26749 | } | |
26750 | { | |
26751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26752 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26753 | ||
26754 | wxPyEndAllowThreads(__tstate); | |
26755 | if (PyErr_Occurred()) SWIG_fail; | |
26756 | } | |
26757 | { | |
26758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26759 | } | |
26760 | return resultobj; | |
26761 | fail: | |
26762 | return NULL; | |
26763 | } | |
26764 | ||
26765 | ||
c32bde28 | 26766 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26767 | PyObject *resultobj; |
26768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26769 | wxColour *arg2 = 0 ; | |
26770 | wxColour temp2 ; | |
26771 | PyObject * obj0 = 0 ; | |
26772 | PyObject * obj1 = 0 ; | |
26773 | char *kwnames[] = { | |
26774 | (char *) "self",(char *) "colour", NULL | |
26775 | }; | |
26776 | ||
412d302d | 26777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26780 | { | |
26781 | arg2 = &temp2; | |
26782 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26783 | } | |
26784 | { | |
26785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26786 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26787 | |
26788 | wxPyEndAllowThreads(__tstate); | |
26789 | if (PyErr_Occurred()) SWIG_fail; | |
26790 | } | |
26791 | Py_INCREF(Py_None); resultobj = Py_None; | |
26792 | return resultobj; | |
26793 | fail: | |
26794 | return NULL; | |
26795 | } | |
26796 | ||
26797 | ||
c32bde28 | 26798 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26799 | PyObject *resultobj; |
26800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26801 | wxColour *arg2 = 0 ; | |
26802 | bool result; | |
26803 | wxColour temp2 ; | |
26804 | PyObject * obj0 = 0 ; | |
26805 | PyObject * obj1 = 0 ; | |
26806 | char *kwnames[] = { | |
26807 | (char *) "self",(char *) "colour", NULL | |
26808 | }; | |
26809 | ||
26810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26813 | { | |
26814 | arg2 = &temp2; | |
26815 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26816 | } | |
26817 | { | |
26818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26819 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26820 | ||
26821 | wxPyEndAllowThreads(__tstate); | |
26822 | if (PyErr_Occurred()) SWIG_fail; | |
26823 | } | |
26824 | { | |
26825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26826 | } | |
26827 | return resultobj; | |
26828 | fail: | |
26829 | return NULL; | |
26830 | } | |
26831 | ||
26832 | ||
c32bde28 | 26833 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26834 | PyObject *resultobj; |
26835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26836 | wxColour *arg2 = 0 ; | |
26837 | wxColour temp2 ; | |
26838 | PyObject * obj0 = 0 ; | |
26839 | PyObject * obj1 = 0 ; | |
26840 | char *kwnames[] = { | |
26841 | (char *) "self",(char *) "colour", NULL | |
26842 | }; | |
26843 | ||
fa47d7a7 | 26844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26847 | { | |
26848 | arg2 = &temp2; | |
26849 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26850 | } | |
26851 | { | |
26852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26853 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26854 | |
26855 | wxPyEndAllowThreads(__tstate); | |
26856 | if (PyErr_Occurred()) SWIG_fail; | |
26857 | } | |
26858 | Py_INCREF(Py_None); resultobj = Py_None; | |
26859 | return resultobj; | |
26860 | fail: | |
26861 | return NULL; | |
26862 | } | |
26863 | ||
26864 | ||
c32bde28 | 26865 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26866 | PyObject *resultobj; |
26867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26868 | wxColour result; | |
26869 | PyObject * obj0 = 0 ; | |
26870 | char *kwnames[] = { | |
26871 | (char *) "self", NULL | |
26872 | }; | |
26873 | ||
26874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
26875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26877 | { | |
26878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26879 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26880 | ||
26881 | wxPyEndAllowThreads(__tstate); | |
26882 | if (PyErr_Occurred()) SWIG_fail; | |
26883 | } | |
26884 | { | |
26885 | wxColour * resultptr; | |
26886 | resultptr = new wxColour((wxColour &) result); | |
26887 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26888 | } | |
26889 | return resultobj; | |
26890 | fail: | |
26891 | return NULL; | |
26892 | } | |
26893 | ||
26894 | ||
c32bde28 | 26895 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26896 | PyObject *resultobj; |
26897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26898 | wxColour result; | |
26899 | PyObject * obj0 = 0 ; | |
26900 | char *kwnames[] = { | |
26901 | (char *) "self", NULL | |
26902 | }; | |
26903 | ||
26904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
26905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26907 | { | |
26908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26909 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26910 | ||
26911 | wxPyEndAllowThreads(__tstate); | |
26912 | if (PyErr_Occurred()) SWIG_fail; | |
26913 | } | |
26914 | { | |
26915 | wxColour * resultptr; | |
26916 | resultptr = new wxColour((wxColour &) result); | |
26917 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26918 | } | |
26919 | return resultobj; | |
26920 | fail: | |
26921 | return NULL; | |
26922 | } | |
26923 | ||
26924 | ||
c32bde28 | 26925 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26926 | PyObject *resultobj; |
26927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26928 | int arg2 ; | |
26929 | bool result; | |
26930 | PyObject * obj0 = 0 ; | |
26931 | PyObject * obj1 = 0 ; | |
26932 | char *kwnames[] = { | |
26933 | (char *) "self",(char *) "style", NULL | |
26934 | }; | |
26935 | ||
26936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
26937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26939 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
26940 | if (PyErr_Occurred()) SWIG_fail; |
26941 | { | |
26942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26943 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
26944 | ||
26945 | wxPyEndAllowThreads(__tstate); | |
26946 | if (PyErr_Occurred()) SWIG_fail; | |
26947 | } | |
26948 | { | |
26949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26950 | } | |
26951 | return resultobj; | |
26952 | fail: | |
26953 | return NULL; | |
26954 | } | |
26955 | ||
26956 | ||
c32bde28 | 26957 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26958 | PyObject *resultobj; |
26959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26960 | int result; | |
26961 | PyObject * obj0 = 0 ; | |
26962 | char *kwnames[] = { | |
26963 | (char *) "self", NULL | |
26964 | }; | |
26965 | ||
26966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
26967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26969 | { | |
26970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26971 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
26972 | ||
26973 | wxPyEndAllowThreads(__tstate); | |
26974 | if (PyErr_Occurred()) SWIG_fail; | |
26975 | } | |
c32bde28 | 26976 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
26977 | return resultobj; |
26978 | fail: | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
c32bde28 | 26983 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26984 | PyObject *resultobj; |
26985 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26986 | wxCursor *arg2 = 0 ; | |
26987 | bool result; | |
26988 | PyObject * obj0 = 0 ; | |
26989 | PyObject * obj1 = 0 ; | |
26990 | char *kwnames[] = { | |
26991 | (char *) "self",(char *) "cursor", NULL | |
26992 | }; | |
26993 | ||
26994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26999 | SWIG_fail; | |
27000 | if (arg2 == NULL) { | |
27001 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27002 | SWIG_fail; | |
27003 | } | |
27004 | { | |
27005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27006 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
27007 | ||
27008 | wxPyEndAllowThreads(__tstate); | |
27009 | if (PyErr_Occurred()) SWIG_fail; | |
27010 | } | |
27011 | { | |
27012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27013 | } | |
27014 | return resultobj; | |
27015 | fail: | |
27016 | return NULL; | |
27017 | } | |
27018 | ||
27019 | ||
c32bde28 | 27020 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27021 | PyObject *resultobj; |
27022 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27023 | wxCursor result; |
d55e5bfc RD |
27024 | PyObject * obj0 = 0 ; |
27025 | char *kwnames[] = { | |
27026 | (char *) "self", NULL | |
27027 | }; | |
27028 | ||
27029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
27030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27032 | { | |
27033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27034 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
27035 | |
27036 | wxPyEndAllowThreads(__tstate); | |
27037 | if (PyErr_Occurred()) SWIG_fail; | |
27038 | } | |
27039 | { | |
a001823c RD |
27040 | wxCursor * resultptr; |
27041 | resultptr = new wxCursor((wxCursor &) result); | |
27042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
27043 | } |
27044 | return resultobj; | |
27045 | fail: | |
27046 | return NULL; | |
27047 | } | |
27048 | ||
27049 | ||
c32bde28 | 27050 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27051 | PyObject *resultobj; |
27052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27053 | wxFont *arg2 = 0 ; | |
27054 | bool result; | |
27055 | PyObject * obj0 = 0 ; | |
27056 | PyObject * obj1 = 0 ; | |
27057 | char *kwnames[] = { | |
27058 | (char *) "self",(char *) "font", NULL | |
27059 | }; | |
27060 | ||
27061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
27062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27065 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27066 | SWIG_fail; | |
27067 | if (arg2 == NULL) { | |
27068 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27069 | SWIG_fail; | |
27070 | } | |
27071 | { | |
27072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27073 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
27074 | ||
27075 | wxPyEndAllowThreads(__tstate); | |
27076 | if (PyErr_Occurred()) SWIG_fail; | |
27077 | } | |
27078 | { | |
27079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27080 | } | |
27081 | return resultobj; | |
27082 | fail: | |
27083 | return NULL; | |
27084 | } | |
27085 | ||
27086 | ||
c32bde28 | 27087 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27088 | PyObject *resultobj; |
27089 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27090 | wxFont *arg2 = 0 ; | |
27091 | PyObject * obj0 = 0 ; | |
27092 | PyObject * obj1 = 0 ; | |
27093 | char *kwnames[] = { | |
27094 | (char *) "self",(char *) "font", NULL | |
27095 | }; | |
27096 | ||
fa47d7a7 | 27097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
27098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27102 | SWIG_fail; | |
27103 | if (arg2 == NULL) { | |
27104 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27105 | SWIG_fail; | |
27106 | } | |
27107 | { | |
27108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27109 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
27110 | |
27111 | wxPyEndAllowThreads(__tstate); | |
27112 | if (PyErr_Occurred()) SWIG_fail; | |
27113 | } | |
27114 | Py_INCREF(Py_None); resultobj = Py_None; | |
27115 | return resultobj; | |
27116 | fail: | |
27117 | return NULL; | |
27118 | } | |
27119 | ||
27120 | ||
c32bde28 | 27121 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27122 | PyObject *resultobj; |
27123 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27124 | wxFont result; |
d55e5bfc RD |
27125 | PyObject * obj0 = 0 ; |
27126 | char *kwnames[] = { | |
27127 | (char *) "self", NULL | |
27128 | }; | |
27129 | ||
27130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
27131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27133 | { | |
27134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27135 | result = (arg1)->GetFont(); |
d55e5bfc RD |
27136 | |
27137 | wxPyEndAllowThreads(__tstate); | |
27138 | if (PyErr_Occurred()) SWIG_fail; | |
27139 | } | |
27140 | { | |
a001823c RD |
27141 | wxFont * resultptr; |
27142 | resultptr = new wxFont((wxFont &) result); | |
27143 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27144 | } |
27145 | return resultobj; | |
27146 | fail: | |
27147 | return NULL; | |
27148 | } | |
27149 | ||
27150 | ||
c32bde28 | 27151 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27152 | PyObject *resultobj; |
27153 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27154 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27155 | PyObject * obj0 = 0 ; | |
27156 | PyObject * obj1 = 0 ; | |
27157 | char *kwnames[] = { | |
27158 | (char *) "self",(char *) "caret", NULL | |
27159 | }; | |
27160 | ||
27161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27166 | { | |
27167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27168 | (arg1)->SetCaret(arg2); | |
27169 | ||
27170 | wxPyEndAllowThreads(__tstate); | |
27171 | if (PyErr_Occurred()) SWIG_fail; | |
27172 | } | |
27173 | Py_INCREF(Py_None); resultobj = Py_None; | |
27174 | return resultobj; | |
27175 | fail: | |
27176 | return NULL; | |
27177 | } | |
27178 | ||
27179 | ||
c32bde28 | 27180 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27181 | PyObject *resultobj; |
27182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27183 | wxCaret *result; | |
27184 | PyObject * obj0 = 0 ; | |
27185 | char *kwnames[] = { | |
27186 | (char *) "self", NULL | |
27187 | }; | |
27188 | ||
27189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27192 | { | |
27193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27194 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27195 | ||
27196 | wxPyEndAllowThreads(__tstate); | |
27197 | if (PyErr_Occurred()) SWIG_fail; | |
27198 | } | |
27199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27200 | return resultobj; | |
27201 | fail: | |
27202 | return NULL; | |
27203 | } | |
27204 | ||
27205 | ||
c32bde28 | 27206 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27207 | PyObject *resultobj; |
27208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27209 | int result; | |
27210 | PyObject * obj0 = 0 ; | |
27211 | char *kwnames[] = { | |
27212 | (char *) "self", NULL | |
27213 | }; | |
27214 | ||
27215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27218 | { | |
27219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27220 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27221 | ||
27222 | wxPyEndAllowThreads(__tstate); | |
27223 | if (PyErr_Occurred()) SWIG_fail; | |
27224 | } | |
c32bde28 | 27225 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27226 | return resultobj; |
27227 | fail: | |
27228 | return NULL; | |
27229 | } | |
27230 | ||
27231 | ||
c32bde28 | 27232 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27233 | PyObject *resultobj; |
27234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27235 | int result; | |
27236 | PyObject * obj0 = 0 ; | |
27237 | char *kwnames[] = { | |
27238 | (char *) "self", NULL | |
27239 | }; | |
27240 | ||
27241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27244 | { | |
27245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27246 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27247 | ||
27248 | wxPyEndAllowThreads(__tstate); | |
27249 | if (PyErr_Occurred()) SWIG_fail; | |
27250 | } | |
c32bde28 | 27251 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27252 | return resultobj; |
27253 | fail: | |
27254 | return NULL; | |
27255 | } | |
27256 | ||
27257 | ||
c32bde28 | 27258 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27259 | PyObject *resultobj; |
27260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27261 | wxString *arg2 = 0 ; | |
27262 | int *arg3 = (int *) 0 ; | |
27263 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 27264 | bool temp2 = false ; |
d55e5bfc | 27265 | int temp3 ; |
c32bde28 | 27266 | int res3 = 0 ; |
d55e5bfc | 27267 | int temp4 ; |
c32bde28 | 27268 | int res4 = 0 ; |
d55e5bfc RD |
27269 | PyObject * obj0 = 0 ; |
27270 | PyObject * obj1 = 0 ; | |
27271 | char *kwnames[] = { | |
27272 | (char *) "self",(char *) "string", NULL | |
27273 | }; | |
27274 | ||
c32bde28 RD |
27275 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27276 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27280 | { | |
27281 | arg2 = wxString_in_helper(obj1); | |
27282 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27283 | temp2 = true; |
d55e5bfc RD |
27284 | } |
27285 | { | |
27286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27287 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27288 | ||
27289 | wxPyEndAllowThreads(__tstate); | |
27290 | if (PyErr_Occurred()) SWIG_fail; | |
27291 | } | |
27292 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27293 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27294 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27295 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27296 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27297 | { |
27298 | if (temp2) | |
27299 | delete arg2; | |
27300 | } | |
27301 | return resultobj; | |
27302 | fail: | |
27303 | { | |
27304 | if (temp2) | |
27305 | delete arg2; | |
27306 | } | |
27307 | return NULL; | |
27308 | } | |
27309 | ||
27310 | ||
c32bde28 | 27311 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27312 | PyObject *resultobj; |
27313 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27314 | wxString *arg2 = 0 ; | |
27315 | int *arg3 = (int *) 0 ; | |
27316 | int *arg4 = (int *) 0 ; | |
27317 | int *arg5 = (int *) 0 ; | |
27318 | int *arg6 = (int *) 0 ; | |
27319 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 27320 | bool temp2 = false ; |
d55e5bfc | 27321 | int temp3 ; |
c32bde28 | 27322 | int res3 = 0 ; |
d55e5bfc | 27323 | int temp4 ; |
c32bde28 | 27324 | int res4 = 0 ; |
d55e5bfc | 27325 | int temp5 ; |
c32bde28 | 27326 | int res5 = 0 ; |
d55e5bfc | 27327 | int temp6 ; |
c32bde28 | 27328 | int res6 = 0 ; |
d55e5bfc RD |
27329 | PyObject * obj0 = 0 ; |
27330 | PyObject * obj1 = 0 ; | |
27331 | PyObject * obj2 = 0 ; | |
27332 | char *kwnames[] = { | |
27333 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27334 | }; | |
27335 | ||
c32bde28 RD |
27336 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27337 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27338 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27339 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27343 | { | |
27344 | arg2 = wxString_in_helper(obj1); | |
27345 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27346 | temp2 = true; |
d55e5bfc RD |
27347 | } |
27348 | if (obj2) { | |
27349 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27351 | } | |
27352 | { | |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27355 | ||
27356 | wxPyEndAllowThreads(__tstate); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27360 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27361 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27362 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27363 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27364 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27365 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27366 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27367 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27368 | { |
27369 | if (temp2) | |
27370 | delete arg2; | |
27371 | } | |
27372 | return resultobj; | |
27373 | fail: | |
27374 | { | |
27375 | if (temp2) | |
27376 | delete arg2; | |
27377 | } | |
27378 | return NULL; | |
27379 | } | |
27380 | ||
27381 | ||
c32bde28 | 27382 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27383 | PyObject *resultobj; |
27384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27385 | int *arg2 = (int *) 0 ; | |
27386 | int *arg3 = (int *) 0 ; | |
27387 | int temp2 ; | |
c32bde28 | 27388 | int res2 = 0 ; |
d55e5bfc | 27389 | int temp3 ; |
c32bde28 | 27390 | int res3 = 0 ; |
d55e5bfc RD |
27391 | PyObject * obj0 = 0 ; |
27392 | PyObject * obj1 = 0 ; | |
27393 | PyObject * obj2 = 0 ; | |
27394 | char *kwnames[] = { | |
27395 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27396 | }; | |
27397 | ||
27398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27401 | { | |
c32bde28 RD |
27402 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27403 | temp2 = SWIG_As_int(obj1); | |
27404 | if (PyErr_Occurred()) SWIG_fail; | |
27405 | arg2 = &temp2; | |
27406 | res2 = SWIG_NEWOBJ; | |
27407 | } | |
d55e5bfc RD |
27408 | } |
27409 | { | |
c32bde28 RD |
27410 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27411 | temp3 = SWIG_As_int(obj2); | |
27412 | if (PyErr_Occurred()) SWIG_fail; | |
27413 | arg3 = &temp3; | |
27414 | res3 = SWIG_NEWOBJ; | |
27415 | } | |
d55e5bfc RD |
27416 | } |
27417 | { | |
27418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27419 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27420 | ||
27421 | wxPyEndAllowThreads(__tstate); | |
27422 | if (PyErr_Occurred()) SWIG_fail; | |
27423 | } | |
27424 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27425 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27426 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27427 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27428 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27429 | return resultobj; |
27430 | fail: | |
27431 | return NULL; | |
27432 | } | |
27433 | ||
27434 | ||
c32bde28 | 27435 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27436 | PyObject *resultobj; |
27437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27438 | int *arg2 = (int *) 0 ; | |
27439 | int *arg3 = (int *) 0 ; | |
27440 | int temp2 ; | |
c32bde28 | 27441 | int res2 = 0 ; |
d55e5bfc | 27442 | int temp3 ; |
c32bde28 | 27443 | int res3 = 0 ; |
d55e5bfc RD |
27444 | PyObject * obj0 = 0 ; |
27445 | PyObject * obj1 = 0 ; | |
27446 | PyObject * obj2 = 0 ; | |
27447 | char *kwnames[] = { | |
27448 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27449 | }; | |
27450 | ||
27451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27454 | { | |
c32bde28 RD |
27455 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27456 | temp2 = SWIG_As_int(obj1); | |
27457 | if (PyErr_Occurred()) SWIG_fail; | |
27458 | arg2 = &temp2; | |
27459 | res2 = SWIG_NEWOBJ; | |
27460 | } | |
d55e5bfc RD |
27461 | } |
27462 | { | |
c32bde28 RD |
27463 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27464 | temp3 = SWIG_As_int(obj2); | |
27465 | if (PyErr_Occurred()) SWIG_fail; | |
27466 | arg3 = &temp3; | |
27467 | res3 = SWIG_NEWOBJ; | |
27468 | } | |
d55e5bfc RD |
27469 | } |
27470 | { | |
27471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27472 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27473 | ||
27474 | wxPyEndAllowThreads(__tstate); | |
27475 | if (PyErr_Occurred()) SWIG_fail; | |
27476 | } | |
27477 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27478 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27479 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27480 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27481 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27482 | return resultobj; |
27483 | fail: | |
27484 | return NULL; | |
27485 | } | |
27486 | ||
27487 | ||
c32bde28 | 27488 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27489 | PyObject *resultobj; |
27490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27491 | wxPoint *arg2 = 0 ; | |
27492 | wxPoint result; | |
27493 | wxPoint temp2 ; | |
27494 | PyObject * obj0 = 0 ; | |
27495 | PyObject * obj1 = 0 ; | |
27496 | char *kwnames[] = { | |
27497 | (char *) "self",(char *) "pt", NULL | |
27498 | }; | |
27499 | ||
27500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27503 | { | |
27504 | arg2 = &temp2; | |
27505 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27506 | } | |
27507 | { | |
27508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27509 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27510 | ||
27511 | wxPyEndAllowThreads(__tstate); | |
27512 | if (PyErr_Occurred()) SWIG_fail; | |
27513 | } | |
27514 | { | |
27515 | wxPoint * resultptr; | |
27516 | resultptr = new wxPoint((wxPoint &) result); | |
27517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27518 | } | |
27519 | return resultobj; | |
27520 | fail: | |
27521 | return NULL; | |
27522 | } | |
27523 | ||
27524 | ||
c32bde28 | 27525 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27526 | PyObject *resultobj; |
27527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27528 | wxPoint *arg2 = 0 ; | |
27529 | wxPoint result; | |
27530 | wxPoint temp2 ; | |
27531 | PyObject * obj0 = 0 ; | |
27532 | PyObject * obj1 = 0 ; | |
27533 | char *kwnames[] = { | |
27534 | (char *) "self",(char *) "pt", NULL | |
27535 | }; | |
27536 | ||
27537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27540 | { | |
27541 | arg2 = &temp2; | |
27542 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27543 | } | |
27544 | { | |
27545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27546 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27547 | ||
27548 | wxPyEndAllowThreads(__tstate); | |
27549 | if (PyErr_Occurred()) SWIG_fail; | |
27550 | } | |
27551 | { | |
27552 | wxPoint * resultptr; | |
27553 | resultptr = new wxPoint((wxPoint &) result); | |
27554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27555 | } | |
27556 | return resultobj; | |
27557 | fail: | |
27558 | return NULL; | |
27559 | } | |
27560 | ||
27561 | ||
c32bde28 | 27562 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27563 | PyObject *resultobj; |
27564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27565 | int arg2 ; | |
27566 | int arg3 ; | |
27567 | int result; | |
27568 | PyObject * obj0 = 0 ; | |
27569 | PyObject * obj1 = 0 ; | |
27570 | PyObject * obj2 = 0 ; | |
27571 | char *kwnames[] = { | |
27572 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27573 | }; | |
27574 | ||
27575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27578 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27579 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27580 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27581 | if (PyErr_Occurred()) SWIG_fail; |
27582 | { | |
27583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27584 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27585 | ||
27586 | wxPyEndAllowThreads(__tstate); | |
27587 | if (PyErr_Occurred()) SWIG_fail; | |
27588 | } | |
c32bde28 | 27589 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27590 | return resultobj; |
27591 | fail: | |
27592 | return NULL; | |
27593 | } | |
27594 | ||
27595 | ||
c32bde28 | 27596 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27597 | PyObject *resultobj; |
27598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27599 | wxPoint *arg2 = 0 ; | |
27600 | int result; | |
27601 | wxPoint temp2 ; | |
27602 | PyObject * obj0 = 0 ; | |
27603 | PyObject * obj1 = 0 ; | |
27604 | char *kwnames[] = { | |
27605 | (char *) "self",(char *) "pt", NULL | |
27606 | }; | |
27607 | ||
27608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27611 | { | |
27612 | arg2 = &temp2; | |
27613 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27614 | } | |
27615 | { | |
27616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27617 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27618 | ||
27619 | wxPyEndAllowThreads(__tstate); | |
27620 | if (PyErr_Occurred()) SWIG_fail; | |
27621 | } | |
c32bde28 | 27622 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27623 | return resultobj; |
27624 | fail: | |
27625 | return NULL; | |
27626 | } | |
27627 | ||
27628 | ||
c32bde28 | 27629 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27630 | PyObject *resultobj; |
27631 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27632 | long arg2 ; | |
27633 | int result; | |
27634 | PyObject * obj0 = 0 ; | |
27635 | PyObject * obj1 = 0 ; | |
27636 | ||
27637 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27640 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27641 | if (PyErr_Occurred()) SWIG_fail; |
27642 | { | |
27643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27644 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27645 | ||
27646 | wxPyEndAllowThreads(__tstate); | |
27647 | if (PyErr_Occurred()) SWIG_fail; | |
27648 | } | |
c32bde28 | 27649 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27650 | return resultobj; |
27651 | fail: | |
27652 | return NULL; | |
27653 | } | |
27654 | ||
27655 | ||
c32bde28 | 27656 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27657 | PyObject *resultobj; |
27658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27659 | int result; | |
27660 | PyObject * obj0 = 0 ; | |
27661 | ||
27662 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27665 | { | |
27666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27667 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27668 | ||
27669 | wxPyEndAllowThreads(__tstate); | |
27670 | if (PyErr_Occurred()) SWIG_fail; | |
27671 | } | |
c32bde28 | 27672 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27673 | return resultobj; |
27674 | fail: | |
27675 | return NULL; | |
27676 | } | |
27677 | ||
27678 | ||
27679 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27680 | int argc; | |
27681 | PyObject *argv[3]; | |
27682 | int ii; | |
27683 | ||
27684 | argc = PyObject_Length(args); | |
27685 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27686 | argv[ii] = PyTuple_GetItem(args,ii); | |
27687 | } | |
27688 | if (argc == 1) { | |
27689 | int _v; | |
27690 | { | |
27691 | void *ptr; | |
27692 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27693 | _v = 0; | |
27694 | PyErr_Clear(); | |
27695 | } else { | |
27696 | _v = 1; | |
27697 | } | |
27698 | } | |
27699 | if (_v) { | |
27700 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27701 | } | |
27702 | } | |
27703 | if (argc == 2) { | |
27704 | int _v; | |
27705 | { | |
27706 | void *ptr; | |
27707 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27708 | _v = 0; | |
27709 | PyErr_Clear(); | |
27710 | } else { | |
27711 | _v = 1; | |
27712 | } | |
27713 | } | |
27714 | if (_v) { | |
c32bde28 | 27715 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27716 | if (_v) { |
27717 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27718 | } | |
27719 | } | |
27720 | } | |
27721 | ||
27722 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27723 | return NULL; | |
27724 | } | |
27725 | ||
27726 | ||
c32bde28 | 27727 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27728 | PyObject *resultobj; |
27729 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27730 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27731 | PyObject * obj0 = 0 ; | |
27732 | PyObject * obj1 = 0 ; | |
27733 | char *kwnames[] = { | |
27734 | (char *) "self",(char *) "flags", NULL | |
27735 | }; | |
27736 | ||
27737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27740 | if (obj1) { | |
c32bde28 | 27741 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27742 | if (PyErr_Occurred()) SWIG_fail; |
27743 | } | |
27744 | { | |
27745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27746 | (arg1)->UpdateWindowUI(arg2); | |
27747 | ||
27748 | wxPyEndAllowThreads(__tstate); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
27751 | Py_INCREF(Py_None); resultobj = Py_None; | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
c32bde28 | 27758 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27759 | PyObject *resultobj; |
27760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27761 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27762 | int arg3 = (int) -1 ; |
27763 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27764 | bool result; |
27765 | PyObject * obj0 = 0 ; | |
27766 | PyObject * obj1 = 0 ; | |
27767 | PyObject * obj2 = 0 ; | |
27768 | PyObject * obj3 = 0 ; | |
27769 | char *kwnames[] = { | |
27770 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27771 | }; | |
27772 | ||
7a0b95b0 | 27773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 | 27778 | if (obj2) { |
c32bde28 | 27779 | arg3 = (int)SWIG_As_int(obj2); |
7a0b95b0 RD |
27780 | if (PyErr_Occurred()) SWIG_fail; |
27781 | } | |
27782 | if (obj3) { | |
c32bde28 | 27783 | arg4 = (int)SWIG_As_int(obj3); |
7a0b95b0 RD |
27784 | if (PyErr_Occurred()) SWIG_fail; |
27785 | } | |
d55e5bfc RD |
27786 | { |
27787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27788 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27789 | ||
27790 | wxPyEndAllowThreads(__tstate); | |
27791 | if (PyErr_Occurred()) SWIG_fail; | |
27792 | } | |
27793 | { | |
27794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27795 | } | |
27796 | return resultobj; | |
27797 | fail: | |
27798 | return NULL; | |
27799 | } | |
27800 | ||
27801 | ||
c32bde28 | 27802 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27803 | PyObject *resultobj; |
27804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27805 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27806 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27807 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27808 | bool result; |
27809 | wxPoint temp3 ; | |
27810 | PyObject * obj0 = 0 ; | |
27811 | PyObject * obj1 = 0 ; | |
27812 | PyObject * obj2 = 0 ; | |
27813 | char *kwnames[] = { | |
27814 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27815 | }; | |
27816 | ||
7a0b95b0 | 27817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 RD |
27822 | if (obj2) { |
27823 | { | |
27824 | arg3 = &temp3; | |
27825 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27826 | } | |
d55e5bfc RD |
27827 | } |
27828 | { | |
27829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27830 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27831 | ||
27832 | wxPyEndAllowThreads(__tstate); | |
27833 | if (PyErr_Occurred()) SWIG_fail; | |
27834 | } | |
27835 | { | |
27836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27837 | } | |
27838 | return resultobj; | |
27839 | fail: | |
27840 | return NULL; | |
27841 | } | |
27842 | ||
27843 | ||
c32bde28 | 27844 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27845 | PyObject *resultobj; |
27846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27847 | long result; | |
27848 | PyObject * obj0 = 0 ; | |
27849 | char *kwnames[] = { | |
27850 | (char *) "self", NULL | |
27851 | }; | |
27852 | ||
27853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
27854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27856 | { | |
27857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27858 | result = (long)wxWindow_GetHandle(arg1); | |
27859 | ||
27860 | wxPyEndAllowThreads(__tstate); | |
27861 | if (PyErr_Occurred()) SWIG_fail; | |
27862 | } | |
c32bde28 | 27863 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
27864 | return resultobj; |
27865 | fail: | |
27866 | return NULL; | |
27867 | } | |
27868 | ||
27869 | ||
7e63a440 RD |
27870 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
27871 | PyObject *resultobj; | |
27872 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27873 | long arg2 ; | |
27874 | PyObject * obj0 = 0 ; | |
27875 | PyObject * obj1 = 0 ; | |
27876 | char *kwnames[] = { | |
27877 | (char *) "self",(char *) "handle", NULL | |
27878 | }; | |
27879 | ||
27880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
27881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27883 | arg2 = (long)SWIG_As_long(obj1); | |
27884 | if (PyErr_Occurred()) SWIG_fail; | |
27885 | { | |
27886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27887 | wxWindow_AssociateHandle(arg1,arg2); | |
27888 | ||
27889 | wxPyEndAllowThreads(__tstate); | |
27890 | if (PyErr_Occurred()) SWIG_fail; | |
27891 | } | |
27892 | Py_INCREF(Py_None); resultobj = Py_None; | |
27893 | return resultobj; | |
27894 | fail: | |
27895 | return NULL; | |
27896 | } | |
27897 | ||
27898 | ||
27899 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
27900 | PyObject *resultobj; | |
27901 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27902 | PyObject * obj0 = 0 ; | |
27903 | char *kwnames[] = { | |
27904 | (char *) "self", NULL | |
27905 | }; | |
27906 | ||
27907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
27908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27910 | { | |
27911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27912 | (arg1)->DissociateHandle(); | |
27913 | ||
27914 | wxPyEndAllowThreads(__tstate); | |
27915 | if (PyErr_Occurred()) SWIG_fail; | |
27916 | } | |
27917 | Py_INCREF(Py_None); resultobj = Py_None; | |
27918 | return resultobj; | |
27919 | fail: | |
27920 | return NULL; | |
27921 | } | |
27922 | ||
27923 | ||
c32bde28 | 27924 | static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27925 | PyObject *resultobj; |
27926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27927 | wxPaintEvent *arg2 = 0 ; | |
27928 | PyObject * obj0 = 0 ; | |
27929 | PyObject * obj1 = 0 ; | |
27930 | char *kwnames[] = { | |
27931 | (char *) "self",(char *) "event", NULL | |
27932 | }; | |
27933 | ||
27934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
27935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
27938 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27939 | SWIG_fail; | |
27940 | if (arg2 == NULL) { | |
27941 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27942 | SWIG_fail; | |
27943 | } | |
27944 | { | |
27945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27946 | (arg1)->OnPaint(*arg2); | |
27947 | ||
27948 | wxPyEndAllowThreads(__tstate); | |
27949 | if (PyErr_Occurred()) SWIG_fail; | |
27950 | } | |
27951 | Py_INCREF(Py_None); resultobj = Py_None; | |
27952 | return resultobj; | |
27953 | fail: | |
27954 | return NULL; | |
27955 | } | |
27956 | ||
27957 | ||
c32bde28 | 27958 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27959 | PyObject *resultobj; |
27960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27961 | int arg2 ; | |
27962 | bool result; | |
27963 | PyObject * obj0 = 0 ; | |
27964 | PyObject * obj1 = 0 ; | |
27965 | char *kwnames[] = { | |
27966 | (char *) "self",(char *) "orient", NULL | |
27967 | }; | |
27968 | ||
27969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
27970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27972 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27973 | if (PyErr_Occurred()) SWIG_fail; |
27974 | { | |
27975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27976 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27977 | ||
27978 | wxPyEndAllowThreads(__tstate); | |
27979 | if (PyErr_Occurred()) SWIG_fail; | |
27980 | } | |
27981 | { | |
27982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27983 | } | |
27984 | return resultobj; | |
27985 | fail: | |
27986 | return NULL; | |
27987 | } | |
27988 | ||
27989 | ||
c32bde28 | 27990 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27991 | PyObject *resultobj; |
27992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27993 | int arg2 ; | |
27994 | int arg3 ; | |
27995 | int arg4 ; | |
27996 | int arg5 ; | |
ae8162c8 | 27997 | bool arg6 = (bool) true ; |
d55e5bfc RD |
27998 | PyObject * obj0 = 0 ; |
27999 | PyObject * obj1 = 0 ; | |
28000 | PyObject * obj2 = 0 ; | |
28001 | PyObject * obj3 = 0 ; | |
28002 | PyObject * obj4 = 0 ; | |
28003 | PyObject * obj5 = 0 ; | |
28004 | char *kwnames[] = { | |
79fccf9d | 28005 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
28006 | }; |
28007 | ||
28008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28011 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28012 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28013 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 28014 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28015 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 28016 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28017 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
28018 | if (PyErr_Occurred()) SWIG_fail; |
28019 | if (obj5) { | |
c32bde28 | 28020 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
28021 | if (PyErr_Occurred()) SWIG_fail; |
28022 | } | |
28023 | { | |
28024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28025 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
28026 | ||
28027 | wxPyEndAllowThreads(__tstate); | |
28028 | if (PyErr_Occurred()) SWIG_fail; | |
28029 | } | |
28030 | Py_INCREF(Py_None); resultobj = Py_None; | |
28031 | return resultobj; | |
28032 | fail: | |
28033 | return NULL; | |
28034 | } | |
28035 | ||
28036 | ||
c32bde28 | 28037 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28038 | PyObject *resultobj; |
28039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28040 | int arg2 ; | |
28041 | int arg3 ; | |
ae8162c8 | 28042 | bool arg4 = (bool) true ; |
d55e5bfc RD |
28043 | PyObject * obj0 = 0 ; |
28044 | PyObject * obj1 = 0 ; | |
28045 | PyObject * obj2 = 0 ; | |
28046 | PyObject * obj3 = 0 ; | |
28047 | char *kwnames[] = { | |
28048 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
28049 | }; | |
28050 | ||
28051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28054 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28055 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28056 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28057 | if (PyErr_Occurred()) SWIG_fail; |
28058 | if (obj3) { | |
c32bde28 | 28059 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
28060 | if (PyErr_Occurred()) SWIG_fail; |
28061 | } | |
28062 | { | |
28063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28064 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
28065 | ||
28066 | wxPyEndAllowThreads(__tstate); | |
28067 | if (PyErr_Occurred()) SWIG_fail; | |
28068 | } | |
28069 | Py_INCREF(Py_None); resultobj = Py_None; | |
28070 | return resultobj; | |
28071 | fail: | |
28072 | return NULL; | |
28073 | } | |
28074 | ||
28075 | ||
c32bde28 | 28076 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28077 | PyObject *resultobj; |
28078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28079 | int arg2 ; | |
28080 | int result; | |
28081 | PyObject * obj0 = 0 ; | |
28082 | PyObject * obj1 = 0 ; | |
28083 | char *kwnames[] = { | |
28084 | (char *) "self",(char *) "orientation", NULL | |
28085 | }; | |
28086 | ||
28087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
28088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28090 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28091 | if (PyErr_Occurred()) SWIG_fail; |
28092 | { | |
28093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28094 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
28095 | ||
28096 | wxPyEndAllowThreads(__tstate); | |
28097 | if (PyErr_Occurred()) SWIG_fail; | |
28098 | } | |
c32bde28 | 28099 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28100 | return resultobj; |
28101 | fail: | |
28102 | return NULL; | |
28103 | } | |
28104 | ||
28105 | ||
c32bde28 | 28106 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28107 | PyObject *resultobj; |
28108 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28109 | int arg2 ; | |
28110 | int result; | |
28111 | PyObject * obj0 = 0 ; | |
28112 | PyObject * obj1 = 0 ; | |
28113 | char *kwnames[] = { | |
28114 | (char *) "self",(char *) "orientation", NULL | |
28115 | }; | |
28116 | ||
28117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
28118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28120 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28121 | if (PyErr_Occurred()) SWIG_fail; |
28122 | { | |
28123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28124 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
28125 | ||
28126 | wxPyEndAllowThreads(__tstate); | |
28127 | if (PyErr_Occurred()) SWIG_fail; | |
28128 | } | |
c32bde28 | 28129 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28130 | return resultobj; |
28131 | fail: | |
28132 | return NULL; | |
28133 | } | |
28134 | ||
28135 | ||
c32bde28 | 28136 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28137 | PyObject *resultobj; |
28138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28139 | int arg2 ; | |
28140 | int result; | |
28141 | PyObject * obj0 = 0 ; | |
28142 | PyObject * obj1 = 0 ; | |
28143 | char *kwnames[] = { | |
28144 | (char *) "self",(char *) "orientation", NULL | |
28145 | }; | |
28146 | ||
28147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
28148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28150 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28151 | if (PyErr_Occurred()) SWIG_fail; |
28152 | { | |
28153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28154 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28155 | ||
28156 | wxPyEndAllowThreads(__tstate); | |
28157 | if (PyErr_Occurred()) SWIG_fail; | |
28158 | } | |
c32bde28 | 28159 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28160 | return resultobj; |
28161 | fail: | |
28162 | return NULL; | |
28163 | } | |
28164 | ||
28165 | ||
c32bde28 | 28166 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28167 | PyObject *resultobj; |
28168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28169 | int arg2 ; | |
28170 | int arg3 ; | |
28171 | wxRect *arg4 = (wxRect *) NULL ; | |
28172 | PyObject * obj0 = 0 ; | |
28173 | PyObject * obj1 = 0 ; | |
28174 | PyObject * obj2 = 0 ; | |
28175 | PyObject * obj3 = 0 ; | |
28176 | char *kwnames[] = { | |
28177 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28178 | }; | |
28179 | ||
28180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28183 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28184 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28185 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28186 | if (PyErr_Occurred()) SWIG_fail; |
28187 | if (obj3) { | |
28188 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28190 | } | |
28191 | { | |
28192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28193 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28194 | ||
28195 | wxPyEndAllowThreads(__tstate); | |
28196 | if (PyErr_Occurred()) SWIG_fail; | |
28197 | } | |
28198 | Py_INCREF(Py_None); resultobj = Py_None; | |
28199 | return resultobj; | |
28200 | fail: | |
28201 | return NULL; | |
28202 | } | |
28203 | ||
28204 | ||
c32bde28 | 28205 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28206 | PyObject *resultobj; |
28207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28208 | int arg2 ; | |
28209 | bool result; | |
28210 | PyObject * obj0 = 0 ; | |
28211 | PyObject * obj1 = 0 ; | |
28212 | char *kwnames[] = { | |
28213 | (char *) "self",(char *) "lines", NULL | |
28214 | }; | |
28215 | ||
28216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28219 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28220 | if (PyErr_Occurred()) SWIG_fail; |
28221 | { | |
28222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28223 | result = (bool)(arg1)->ScrollLines(arg2); | |
28224 | ||
28225 | wxPyEndAllowThreads(__tstate); | |
28226 | if (PyErr_Occurred()) SWIG_fail; | |
28227 | } | |
28228 | { | |
28229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28230 | } | |
28231 | return resultobj; | |
28232 | fail: | |
28233 | return NULL; | |
28234 | } | |
28235 | ||
28236 | ||
c32bde28 | 28237 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28238 | PyObject *resultobj; |
28239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28240 | int arg2 ; | |
28241 | bool result; | |
28242 | PyObject * obj0 = 0 ; | |
28243 | PyObject * obj1 = 0 ; | |
28244 | char *kwnames[] = { | |
28245 | (char *) "self",(char *) "pages", NULL | |
28246 | }; | |
28247 | ||
28248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
28249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28251 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28252 | if (PyErr_Occurred()) SWIG_fail; |
28253 | { | |
28254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28255 | result = (bool)(arg1)->ScrollPages(arg2); | |
28256 | ||
28257 | wxPyEndAllowThreads(__tstate); | |
28258 | if (PyErr_Occurred()) SWIG_fail; | |
28259 | } | |
28260 | { | |
28261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28262 | } | |
28263 | return resultobj; | |
28264 | fail: | |
28265 | return NULL; | |
28266 | } | |
28267 | ||
28268 | ||
c32bde28 | 28269 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28270 | PyObject *resultobj; |
28271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28272 | bool result; | |
28273 | PyObject * obj0 = 0 ; | |
28274 | char *kwnames[] = { | |
28275 | (char *) "self", NULL | |
28276 | }; | |
28277 | ||
28278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28281 | { | |
28282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28283 | result = (bool)(arg1)->LineUp(); | |
28284 | ||
28285 | wxPyEndAllowThreads(__tstate); | |
28286 | if (PyErr_Occurred()) SWIG_fail; | |
28287 | } | |
28288 | { | |
28289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28290 | } | |
28291 | return resultobj; | |
28292 | fail: | |
28293 | return NULL; | |
28294 | } | |
28295 | ||
28296 | ||
c32bde28 | 28297 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28298 | PyObject *resultobj; |
28299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28300 | bool result; | |
28301 | PyObject * obj0 = 0 ; | |
28302 | char *kwnames[] = { | |
28303 | (char *) "self", NULL | |
28304 | }; | |
28305 | ||
28306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28309 | { | |
28310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28311 | result = (bool)(arg1)->LineDown(); | |
28312 | ||
28313 | wxPyEndAllowThreads(__tstate); | |
28314 | if (PyErr_Occurred()) SWIG_fail; | |
28315 | } | |
28316 | { | |
28317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28318 | } | |
28319 | return resultobj; | |
28320 | fail: | |
28321 | return NULL; | |
28322 | } | |
28323 | ||
28324 | ||
c32bde28 | 28325 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28326 | PyObject *resultobj; |
28327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28328 | bool result; | |
28329 | PyObject * obj0 = 0 ; | |
28330 | char *kwnames[] = { | |
28331 | (char *) "self", NULL | |
28332 | }; | |
28333 | ||
28334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28337 | { | |
28338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28339 | result = (bool)(arg1)->PageUp(); | |
28340 | ||
28341 | wxPyEndAllowThreads(__tstate); | |
28342 | if (PyErr_Occurred()) SWIG_fail; | |
28343 | } | |
28344 | { | |
28345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28346 | } | |
28347 | return resultobj; | |
28348 | fail: | |
28349 | return NULL; | |
28350 | } | |
28351 | ||
28352 | ||
c32bde28 | 28353 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28354 | PyObject *resultobj; |
28355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28356 | bool result; | |
28357 | PyObject * obj0 = 0 ; | |
28358 | char *kwnames[] = { | |
28359 | (char *) "self", NULL | |
28360 | }; | |
28361 | ||
28362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28365 | { | |
28366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28367 | result = (bool)(arg1)->PageDown(); | |
28368 | ||
28369 | wxPyEndAllowThreads(__tstate); | |
28370 | if (PyErr_Occurred()) SWIG_fail; | |
28371 | } | |
28372 | { | |
28373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28374 | } | |
28375 | return resultobj; | |
28376 | fail: | |
28377 | return NULL; | |
28378 | } | |
28379 | ||
28380 | ||
c32bde28 | 28381 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28382 | PyObject *resultobj; |
28383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28384 | wxString *arg2 = 0 ; | |
ae8162c8 | 28385 | bool temp2 = false ; |
d55e5bfc RD |
28386 | PyObject * obj0 = 0 ; |
28387 | PyObject * obj1 = 0 ; | |
28388 | char *kwnames[] = { | |
28389 | (char *) "self",(char *) "text", NULL | |
28390 | }; | |
28391 | ||
28392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28395 | { | |
28396 | arg2 = wxString_in_helper(obj1); | |
28397 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28398 | temp2 = true; |
d55e5bfc RD |
28399 | } |
28400 | { | |
28401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28402 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28403 | ||
28404 | wxPyEndAllowThreads(__tstate); | |
28405 | if (PyErr_Occurred()) SWIG_fail; | |
28406 | } | |
28407 | Py_INCREF(Py_None); resultobj = Py_None; | |
28408 | { | |
28409 | if (temp2) | |
28410 | delete arg2; | |
28411 | } | |
28412 | return resultobj; | |
28413 | fail: | |
28414 | { | |
28415 | if (temp2) | |
28416 | delete arg2; | |
28417 | } | |
28418 | return NULL; | |
28419 | } | |
28420 | ||
28421 | ||
c32bde28 | 28422 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28423 | PyObject *resultobj; |
28424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28425 | wxString *arg2 = 0 ; | |
ae8162c8 | 28426 | bool temp2 = false ; |
d55e5bfc RD |
28427 | PyObject * obj0 = 0 ; |
28428 | PyObject * obj1 = 0 ; | |
28429 | char *kwnames[] = { | |
28430 | (char *) "self",(char *) "text", NULL | |
28431 | }; | |
28432 | ||
28433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28436 | { | |
28437 | arg2 = wxString_in_helper(obj1); | |
28438 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28439 | temp2 = true; |
d55e5bfc RD |
28440 | } |
28441 | { | |
28442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28443 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28444 | ||
28445 | wxPyEndAllowThreads(__tstate); | |
28446 | if (PyErr_Occurred()) SWIG_fail; | |
28447 | } | |
28448 | Py_INCREF(Py_None); resultobj = Py_None; | |
28449 | { | |
28450 | if (temp2) | |
28451 | delete arg2; | |
28452 | } | |
28453 | return resultobj; | |
28454 | fail: | |
28455 | { | |
28456 | if (temp2) | |
28457 | delete arg2; | |
28458 | } | |
28459 | return NULL; | |
28460 | } | |
28461 | ||
28462 | ||
c32bde28 | 28463 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28464 | PyObject *resultobj; |
28465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28466 | wxString result; | |
28467 | PyObject * obj0 = 0 ; | |
28468 | char *kwnames[] = { | |
28469 | (char *) "self", NULL | |
28470 | }; | |
28471 | ||
28472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28475 | { | |
28476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28477 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28478 | ||
28479 | wxPyEndAllowThreads(__tstate); | |
28480 | if (PyErr_Occurred()) SWIG_fail; | |
28481 | } | |
28482 | { | |
28483 | #if wxUSE_UNICODE | |
28484 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28485 | #else | |
28486 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28487 | #endif | |
28488 | } | |
28489 | return resultobj; | |
28490 | fail: | |
28491 | return NULL; | |
28492 | } | |
28493 | ||
28494 | ||
c32bde28 | 28495 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28496 | PyObject *resultobj; |
28497 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28498 | wxString *arg2 = 0 ; | |
ae8162c8 | 28499 | bool temp2 = false ; |
d55e5bfc RD |
28500 | PyObject * obj0 = 0 ; |
28501 | PyObject * obj1 = 0 ; | |
28502 | char *kwnames[] = { | |
28503 | (char *) "self",(char *) "tip", NULL | |
28504 | }; | |
28505 | ||
28506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28509 | { | |
28510 | arg2 = wxString_in_helper(obj1); | |
28511 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28512 | temp2 = true; |
d55e5bfc RD |
28513 | } |
28514 | { | |
28515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28516 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28517 | ||
28518 | wxPyEndAllowThreads(__tstate); | |
28519 | if (PyErr_Occurred()) SWIG_fail; | |
28520 | } | |
28521 | Py_INCREF(Py_None); resultobj = Py_None; | |
28522 | { | |
28523 | if (temp2) | |
28524 | delete arg2; | |
28525 | } | |
28526 | return resultobj; | |
28527 | fail: | |
28528 | { | |
28529 | if (temp2) | |
28530 | delete arg2; | |
28531 | } | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
c32bde28 | 28536 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28537 | PyObject *resultobj; |
28538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28539 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28540 | PyObject * obj0 = 0 ; | |
28541 | PyObject * obj1 = 0 ; | |
28542 | char *kwnames[] = { | |
28543 | (char *) "self",(char *) "tip", NULL | |
28544 | }; | |
28545 | ||
28546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28551 | { | |
28552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28553 | (arg1)->SetToolTip(arg2); | |
28554 | ||
28555 | wxPyEndAllowThreads(__tstate); | |
28556 | if (PyErr_Occurred()) SWIG_fail; | |
28557 | } | |
28558 | Py_INCREF(Py_None); resultobj = Py_None; | |
28559 | return resultobj; | |
28560 | fail: | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
c32bde28 | 28565 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28566 | PyObject *resultobj; |
28567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28568 | wxToolTip *result; | |
28569 | PyObject * obj0 = 0 ; | |
28570 | char *kwnames[] = { | |
28571 | (char *) "self", NULL | |
28572 | }; | |
28573 | ||
28574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
28575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28577 | { | |
28578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28579 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28580 | ||
28581 | wxPyEndAllowThreads(__tstate); | |
28582 | if (PyErr_Occurred()) SWIG_fail; | |
28583 | } | |
28584 | { | |
412d302d | 28585 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28586 | } |
28587 | return resultobj; | |
28588 | fail: | |
28589 | return NULL; | |
28590 | } | |
28591 | ||
28592 | ||
c32bde28 | 28593 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28594 | PyObject *resultobj; |
28595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28596 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28597 | PyObject * obj0 = 0 ; | |
28598 | PyObject * obj1 = 0 ; | |
28599 | char *kwnames[] = { | |
28600 | (char *) "self",(char *) "dropTarget", NULL | |
28601 | }; | |
28602 | ||
28603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28607 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28608 | { | |
28609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28610 | (arg1)->SetDropTarget(arg2); | |
28611 | ||
28612 | wxPyEndAllowThreads(__tstate); | |
28613 | if (PyErr_Occurred()) SWIG_fail; | |
28614 | } | |
28615 | Py_INCREF(Py_None); resultobj = Py_None; | |
28616 | return resultobj; | |
28617 | fail: | |
28618 | return NULL; | |
28619 | } | |
28620 | ||
28621 | ||
c32bde28 | 28622 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28623 | PyObject *resultobj; |
28624 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28625 | wxPyDropTarget *result; | |
28626 | PyObject * obj0 = 0 ; | |
28627 | char *kwnames[] = { | |
28628 | (char *) "self", NULL | |
28629 | }; | |
28630 | ||
28631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28634 | { | |
28635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28636 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28637 | ||
28638 | wxPyEndAllowThreads(__tstate); | |
28639 | if (PyErr_Occurred()) SWIG_fail; | |
28640 | } | |
28641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28642 | return resultobj; | |
28643 | fail: | |
28644 | return NULL; | |
28645 | } | |
28646 | ||
28647 | ||
c32bde28 | 28648 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28649 | PyObject *resultobj; |
28650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28651 | bool arg2 ; | |
28652 | PyObject * obj0 = 0 ; | |
28653 | PyObject * obj1 = 0 ; | |
28654 | char *kwnames[] = { | |
28655 | (char *) "self",(char *) "accept", NULL | |
28656 | }; | |
28657 | ||
28658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
28659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28661 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28662 | if (PyErr_Occurred()) SWIG_fail; |
28663 | { | |
28664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28665 | (arg1)->DragAcceptFiles(arg2); | |
28666 | ||
28667 | wxPyEndAllowThreads(__tstate); | |
28668 | if (PyErr_Occurred()) SWIG_fail; | |
28669 | } | |
28670 | Py_INCREF(Py_None); resultobj = Py_None; | |
28671 | return resultobj; | |
28672 | fail: | |
28673 | return NULL; | |
28674 | } | |
28675 | ||
28676 | ||
c32bde28 | 28677 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28678 | PyObject *resultobj; |
28679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28680 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28681 | PyObject * obj0 = 0 ; | |
28682 | PyObject * obj1 = 0 ; | |
28683 | char *kwnames[] = { | |
28684 | (char *) "self",(char *) "constraints", NULL | |
28685 | }; | |
28686 | ||
28687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28692 | { | |
28693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28694 | (arg1)->SetConstraints(arg2); | |
28695 | ||
28696 | wxPyEndAllowThreads(__tstate); | |
28697 | if (PyErr_Occurred()) SWIG_fail; | |
28698 | } | |
28699 | Py_INCREF(Py_None); resultobj = Py_None; | |
28700 | return resultobj; | |
28701 | fail: | |
28702 | return NULL; | |
28703 | } | |
28704 | ||
28705 | ||
c32bde28 | 28706 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28707 | PyObject *resultobj; |
28708 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28709 | wxLayoutConstraints *result; | |
28710 | PyObject * obj0 = 0 ; | |
28711 | char *kwnames[] = { | |
28712 | (char *) "self", NULL | |
28713 | }; | |
28714 | ||
28715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28718 | { | |
28719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28720 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28721 | ||
28722 | wxPyEndAllowThreads(__tstate); | |
28723 | if (PyErr_Occurred()) SWIG_fail; | |
28724 | } | |
28725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28726 | return resultobj; | |
28727 | fail: | |
28728 | return NULL; | |
28729 | } | |
28730 | ||
28731 | ||
c32bde28 | 28732 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28733 | PyObject *resultobj; |
28734 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28735 | bool arg2 ; | |
28736 | PyObject * obj0 = 0 ; | |
28737 | PyObject * obj1 = 0 ; | |
28738 | char *kwnames[] = { | |
28739 | (char *) "self",(char *) "autoLayout", NULL | |
28740 | }; | |
28741 | ||
28742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28745 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28746 | if (PyErr_Occurred()) SWIG_fail; |
28747 | { | |
28748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28749 | (arg1)->SetAutoLayout(arg2); | |
28750 | ||
28751 | wxPyEndAllowThreads(__tstate); | |
28752 | if (PyErr_Occurred()) SWIG_fail; | |
28753 | } | |
28754 | Py_INCREF(Py_None); resultobj = Py_None; | |
28755 | return resultobj; | |
28756 | fail: | |
28757 | return NULL; | |
28758 | } | |
28759 | ||
28760 | ||
c32bde28 | 28761 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28762 | PyObject *resultobj; |
28763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28764 | bool result; | |
28765 | PyObject * obj0 = 0 ; | |
28766 | char *kwnames[] = { | |
28767 | (char *) "self", NULL | |
28768 | }; | |
28769 | ||
28770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28773 | { | |
28774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28775 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28776 | ||
28777 | wxPyEndAllowThreads(__tstate); | |
28778 | if (PyErr_Occurred()) SWIG_fail; | |
28779 | } | |
28780 | { | |
28781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28782 | } | |
28783 | return resultobj; | |
28784 | fail: | |
28785 | return NULL; | |
28786 | } | |
28787 | ||
28788 | ||
c32bde28 | 28789 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28790 | PyObject *resultobj; |
28791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28792 | bool result; | |
28793 | PyObject * obj0 = 0 ; | |
28794 | char *kwnames[] = { | |
28795 | (char *) "self", NULL | |
28796 | }; | |
28797 | ||
28798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28801 | { | |
28802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28803 | result = (bool)(arg1)->Layout(); | |
28804 | ||
28805 | wxPyEndAllowThreads(__tstate); | |
28806 | if (PyErr_Occurred()) SWIG_fail; | |
28807 | } | |
28808 | { | |
28809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28810 | } | |
28811 | return resultobj; | |
28812 | fail: | |
28813 | return NULL; | |
28814 | } | |
28815 | ||
28816 | ||
c32bde28 | 28817 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28818 | PyObject *resultobj; |
28819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28820 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28821 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28822 | PyObject * obj0 = 0 ; |
28823 | PyObject * obj1 = 0 ; | |
28824 | PyObject * obj2 = 0 ; | |
28825 | char *kwnames[] = { | |
28826 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28827 | }; | |
28828 | ||
28829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28834 | if (obj2) { | |
c32bde28 | 28835 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28836 | if (PyErr_Occurred()) SWIG_fail; |
28837 | } | |
28838 | { | |
28839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28840 | (arg1)->SetSizer(arg2,arg3); | |
28841 | ||
28842 | wxPyEndAllowThreads(__tstate); | |
28843 | if (PyErr_Occurred()) SWIG_fail; | |
28844 | } | |
28845 | Py_INCREF(Py_None); resultobj = Py_None; | |
28846 | return resultobj; | |
28847 | fail: | |
28848 | return NULL; | |
28849 | } | |
28850 | ||
28851 | ||
c32bde28 | 28852 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28853 | PyObject *resultobj; |
28854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28855 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28856 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28857 | PyObject * obj0 = 0 ; |
28858 | PyObject * obj1 = 0 ; | |
28859 | PyObject * obj2 = 0 ; | |
28860 | char *kwnames[] = { | |
28861 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28862 | }; | |
28863 | ||
28864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28869 | if (obj2) { | |
c32bde28 | 28870 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28871 | if (PyErr_Occurred()) SWIG_fail; |
28872 | } | |
28873 | { | |
28874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28875 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28876 | ||
28877 | wxPyEndAllowThreads(__tstate); | |
28878 | if (PyErr_Occurred()) SWIG_fail; | |
28879 | } | |
28880 | Py_INCREF(Py_None); resultobj = Py_None; | |
28881 | return resultobj; | |
28882 | fail: | |
28883 | return NULL; | |
28884 | } | |
28885 | ||
28886 | ||
c32bde28 | 28887 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28888 | PyObject *resultobj; |
28889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28890 | wxSizer *result; | |
28891 | PyObject * obj0 = 0 ; | |
28892 | char *kwnames[] = { | |
28893 | (char *) "self", NULL | |
28894 | }; | |
28895 | ||
28896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
28897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28899 | { | |
28900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28901 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28902 | ||
28903 | wxPyEndAllowThreads(__tstate); | |
28904 | if (PyErr_Occurred()) SWIG_fail; | |
28905 | } | |
28906 | { | |
412d302d | 28907 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28908 | } |
28909 | return resultobj; | |
28910 | fail: | |
28911 | return NULL; | |
28912 | } | |
28913 | ||
28914 | ||
c32bde28 | 28915 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28916 | PyObject *resultobj; |
28917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28918 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28919 | PyObject * obj0 = 0 ; | |
28920 | PyObject * obj1 = 0 ; | |
28921 | char *kwnames[] = { | |
28922 | (char *) "self",(char *) "sizer", NULL | |
28923 | }; | |
28924 | ||
28925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
28926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28928 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28930 | { | |
28931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28932 | (arg1)->SetContainingSizer(arg2); | |
28933 | ||
28934 | wxPyEndAllowThreads(__tstate); | |
28935 | if (PyErr_Occurred()) SWIG_fail; | |
28936 | } | |
28937 | Py_INCREF(Py_None); resultobj = Py_None; | |
28938 | return resultobj; | |
28939 | fail: | |
28940 | return NULL; | |
28941 | } | |
28942 | ||
28943 | ||
c32bde28 | 28944 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28945 | PyObject *resultobj; |
28946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28947 | wxSizer *result; | |
28948 | PyObject * obj0 = 0 ; | |
28949 | char *kwnames[] = { | |
28950 | (char *) "self", NULL | |
28951 | }; | |
28952 | ||
28953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
28954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28956 | { | |
28957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28958 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28959 | ||
28960 | wxPyEndAllowThreads(__tstate); | |
28961 | if (PyErr_Occurred()) SWIG_fail; | |
28962 | } | |
28963 | { | |
412d302d | 28964 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28965 | } |
28966 | return resultobj; | |
28967 | fail: | |
28968 | return NULL; | |
28969 | } | |
28970 | ||
28971 | ||
c32bde28 | 28972 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28973 | PyObject *resultobj; |
28974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28975 | PyObject * obj0 = 0 ; | |
28976 | char *kwnames[] = { | |
28977 | (char *) "self", NULL | |
28978 | }; | |
28979 | ||
28980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28983 | { | |
28984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28985 | (arg1)->InheritAttributes(); | |
28986 | ||
28987 | wxPyEndAllowThreads(__tstate); | |
28988 | if (PyErr_Occurred()) SWIG_fail; | |
28989 | } | |
28990 | Py_INCREF(Py_None); resultobj = Py_None; | |
28991 | return resultobj; | |
28992 | fail: | |
28993 | return NULL; | |
28994 | } | |
28995 | ||
28996 | ||
c32bde28 | 28997 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28998 | PyObject *resultobj; |
28999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29000 | bool result; | |
29001 | PyObject * obj0 = 0 ; | |
29002 | char *kwnames[] = { | |
29003 | (char *) "self", NULL | |
29004 | }; | |
29005 | ||
29006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29009 | { | |
29010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29011 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
29012 | ||
29013 | wxPyEndAllowThreads(__tstate); | |
29014 | if (PyErr_Occurred()) SWIG_fail; | |
29015 | } | |
29016 | { | |
29017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29018 | } | |
29019 | return resultobj; | |
29020 | fail: | |
29021 | return NULL; | |
29022 | } | |
29023 | ||
29024 | ||
c32bde28 | 29025 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29026 | PyObject *obj; |
29027 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29028 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
29029 | Py_INCREF(obj); | |
29030 | return Py_BuildValue((char *)""); | |
29031 | } | |
c32bde28 | 29032 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29033 | PyObject *resultobj; |
29034 | long arg1 ; | |
29035 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29036 | wxWindow *result; | |
29037 | PyObject * obj0 = 0 ; | |
29038 | PyObject * obj1 = 0 ; | |
29039 | char *kwnames[] = { | |
29040 | (char *) "id",(char *) "parent", NULL | |
29041 | }; | |
29042 | ||
29043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 29044 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
29045 | if (PyErr_Occurred()) SWIG_fail; |
29046 | if (obj1) { | |
29047 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29049 | } | |
29050 | { | |
0439c23b | 29051 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29053 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
29054 | ||
29055 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29056 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29057 | } |
29058 | { | |
412d302d | 29059 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29060 | } |
29061 | return resultobj; | |
29062 | fail: | |
29063 | return NULL; | |
29064 | } | |
29065 | ||
29066 | ||
c32bde28 | 29067 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29068 | PyObject *resultobj; |
29069 | wxString *arg1 = 0 ; | |
29070 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29071 | wxWindow *result; | |
ae8162c8 | 29072 | bool temp1 = false ; |
d55e5bfc RD |
29073 | PyObject * obj0 = 0 ; |
29074 | PyObject * obj1 = 0 ; | |
29075 | char *kwnames[] = { | |
29076 | (char *) "name",(char *) "parent", NULL | |
29077 | }; | |
29078 | ||
29079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
29080 | { | |
29081 | arg1 = wxString_in_helper(obj0); | |
29082 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29083 | temp1 = true; |
d55e5bfc RD |
29084 | } |
29085 | if (obj1) { | |
29086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29088 | } | |
29089 | { | |
0439c23b | 29090 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29092 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
29093 | ||
29094 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29095 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29096 | } |
29097 | { | |
412d302d | 29098 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29099 | } |
29100 | { | |
29101 | if (temp1) | |
29102 | delete arg1; | |
29103 | } | |
29104 | return resultobj; | |
29105 | fail: | |
29106 | { | |
29107 | if (temp1) | |
29108 | delete arg1; | |
29109 | } | |
29110 | return NULL; | |
29111 | } | |
29112 | ||
29113 | ||
c32bde28 | 29114 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29115 | PyObject *resultobj; |
29116 | wxString *arg1 = 0 ; | |
29117 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29118 | wxWindow *result; | |
ae8162c8 | 29119 | bool temp1 = false ; |
d55e5bfc RD |
29120 | PyObject * obj0 = 0 ; |
29121 | PyObject * obj1 = 0 ; | |
29122 | char *kwnames[] = { | |
29123 | (char *) "label",(char *) "parent", NULL | |
29124 | }; | |
29125 | ||
29126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
29127 | { | |
29128 | arg1 = wxString_in_helper(obj0); | |
29129 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29130 | temp1 = true; |
d55e5bfc RD |
29131 | } |
29132 | if (obj1) { | |
29133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29135 | } | |
29136 | { | |
0439c23b | 29137 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29139 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
29140 | ||
29141 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29142 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29143 | } |
29144 | { | |
412d302d | 29145 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29146 | } |
29147 | { | |
29148 | if (temp1) | |
29149 | delete arg1; | |
29150 | } | |
29151 | return resultobj; | |
29152 | fail: | |
29153 | { | |
29154 | if (temp1) | |
29155 | delete arg1; | |
29156 | } | |
29157 | return NULL; | |
29158 | } | |
29159 | ||
29160 | ||
c32bde28 | 29161 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29162 | PyObject *resultobj; |
29163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29164 | unsigned long arg2 ; | |
29165 | wxWindow *result; | |
29166 | PyObject * obj0 = 0 ; | |
29167 | PyObject * obj1 = 0 ; | |
29168 | char *kwnames[] = { | |
29169 | (char *) "parent",(char *) "_hWnd", NULL | |
29170 | }; | |
29171 | ||
29172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
29173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29175 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29176 | if (PyErr_Occurred()) SWIG_fail; |
29177 | { | |
29178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29179 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
29180 | ||
29181 | wxPyEndAllowThreads(__tstate); | |
29182 | if (PyErr_Occurred()) SWIG_fail; | |
29183 | } | |
29184 | { | |
412d302d | 29185 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29186 | } |
29187 | return resultobj; | |
29188 | fail: | |
29189 | return NULL; | |
29190 | } | |
29191 | ||
29192 | ||
c32bde28 | 29193 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29194 | PyObject *resultobj; |
29195 | wxValidator *result; | |
29196 | char *kwnames[] = { | |
29197 | NULL | |
29198 | }; | |
29199 | ||
29200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29201 | { | |
29202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29203 | result = (wxValidator *)new wxValidator(); | |
29204 | ||
29205 | wxPyEndAllowThreads(__tstate); | |
29206 | if (PyErr_Occurred()) SWIG_fail; | |
29207 | } | |
b0f7404b | 29208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29209 | return resultobj; |
29210 | fail: | |
29211 | return NULL; | |
29212 | } | |
29213 | ||
29214 | ||
c32bde28 | 29215 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29216 | PyObject *resultobj; |
29217 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29218 | wxValidator *result; | |
29219 | PyObject * obj0 = 0 ; | |
29220 | char *kwnames[] = { | |
29221 | (char *) "self", NULL | |
29222 | }; | |
29223 | ||
29224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29227 | { | |
29228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29229 | result = (wxValidator *)(arg1)->Clone(); | |
29230 | ||
29231 | wxPyEndAllowThreads(__tstate); | |
29232 | if (PyErr_Occurred()) SWIG_fail; | |
29233 | } | |
29234 | { | |
412d302d | 29235 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29236 | } |
29237 | return resultobj; | |
29238 | fail: | |
29239 | return NULL; | |
29240 | } | |
29241 | ||
29242 | ||
c32bde28 | 29243 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29244 | PyObject *resultobj; |
29245 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29246 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29247 | bool result; | |
29248 | PyObject * obj0 = 0 ; | |
29249 | PyObject * obj1 = 0 ; | |
29250 | char *kwnames[] = { | |
29251 | (char *) "self",(char *) "parent", NULL | |
29252 | }; | |
29253 | ||
29254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29259 | { | |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | result = (bool)(arg1)->Validate(arg2); | |
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_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29276 | PyObject *resultobj; |
29277 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29278 | bool result; | |
29279 | PyObject * obj0 = 0 ; | |
29280 | char *kwnames[] = { | |
29281 | (char *) "self", NULL | |
29282 | }; | |
29283 | ||
29284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29287 | { | |
29288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29289 | result = (bool)(arg1)->TransferToWindow(); | |
29290 | ||
29291 | wxPyEndAllowThreads(__tstate); | |
29292 | if (PyErr_Occurred()) SWIG_fail; | |
29293 | } | |
29294 | { | |
29295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29296 | } | |
29297 | return resultobj; | |
29298 | fail: | |
29299 | return NULL; | |
29300 | } | |
29301 | ||
29302 | ||
c32bde28 | 29303 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29304 | PyObject *resultobj; |
29305 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29306 | bool result; | |
29307 | PyObject * obj0 = 0 ; | |
29308 | char *kwnames[] = { | |
29309 | (char *) "self", NULL | |
29310 | }; | |
29311 | ||
29312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29315 | { | |
29316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29317 | result = (bool)(arg1)->TransferFromWindow(); | |
29318 | ||
29319 | wxPyEndAllowThreads(__tstate); | |
29320 | if (PyErr_Occurred()) SWIG_fail; | |
29321 | } | |
29322 | { | |
29323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29324 | } | |
29325 | return resultobj; | |
29326 | fail: | |
29327 | return NULL; | |
29328 | } | |
29329 | ||
29330 | ||
c32bde28 | 29331 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29332 | PyObject *resultobj; |
29333 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29334 | wxWindow *result; | |
29335 | PyObject * obj0 = 0 ; | |
29336 | char *kwnames[] = { | |
29337 | (char *) "self", NULL | |
29338 | }; | |
29339 | ||
29340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29343 | { | |
29344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29345 | result = (wxWindow *)(arg1)->GetWindow(); | |
29346 | ||
29347 | wxPyEndAllowThreads(__tstate); | |
29348 | if (PyErr_Occurred()) SWIG_fail; | |
29349 | } | |
29350 | { | |
412d302d | 29351 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29352 | } |
29353 | return resultobj; | |
29354 | fail: | |
29355 | return NULL; | |
29356 | } | |
29357 | ||
29358 | ||
c32bde28 | 29359 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29360 | PyObject *resultobj; |
29361 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29362 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29363 | PyObject * obj0 = 0 ; | |
29364 | PyObject * obj1 = 0 ; | |
29365 | char *kwnames[] = { | |
29366 | (char *) "self",(char *) "window", NULL | |
29367 | }; | |
29368 | ||
29369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29372 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29374 | { | |
29375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29376 | (arg1)->SetWindow(arg2); | |
29377 | ||
29378 | wxPyEndAllowThreads(__tstate); | |
29379 | if (PyErr_Occurred()) SWIG_fail; | |
29380 | } | |
29381 | Py_INCREF(Py_None); resultobj = Py_None; | |
29382 | return resultobj; | |
29383 | fail: | |
29384 | return NULL; | |
29385 | } | |
29386 | ||
29387 | ||
c32bde28 | 29388 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29389 | PyObject *resultobj; |
29390 | bool result; | |
29391 | char *kwnames[] = { | |
29392 | NULL | |
29393 | }; | |
29394 | ||
29395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29396 | { | |
29397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29398 | result = (bool)wxValidator::IsSilent(); | |
29399 | ||
29400 | wxPyEndAllowThreads(__tstate); | |
29401 | if (PyErr_Occurred()) SWIG_fail; | |
29402 | } | |
29403 | { | |
29404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29405 | } | |
29406 | return resultobj; | |
29407 | fail: | |
29408 | return NULL; | |
29409 | } | |
29410 | ||
29411 | ||
c32bde28 | 29412 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29413 | PyObject *resultobj; |
ae8162c8 | 29414 | int arg1 = (int) true ; |
d55e5bfc RD |
29415 | PyObject * obj0 = 0 ; |
29416 | char *kwnames[] = { | |
29417 | (char *) "doIt", NULL | |
29418 | }; | |
29419 | ||
29420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29421 | if (obj0) { | |
c32bde28 | 29422 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29423 | if (PyErr_Occurred()) SWIG_fail; |
29424 | } | |
29425 | { | |
29426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29427 | wxValidator::SetBellOnError(arg1); | |
29428 | ||
29429 | wxPyEndAllowThreads(__tstate); | |
29430 | if (PyErr_Occurred()) SWIG_fail; | |
29431 | } | |
29432 | Py_INCREF(Py_None); resultobj = Py_None; | |
29433 | return resultobj; | |
29434 | fail: | |
29435 | return NULL; | |
29436 | } | |
29437 | ||
29438 | ||
c32bde28 | 29439 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29440 | PyObject *obj; |
29441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29442 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29443 | Py_INCREF(obj); | |
29444 | return Py_BuildValue((char *)""); | |
29445 | } | |
c32bde28 | 29446 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29447 | PyObject *resultobj; |
29448 | wxPyValidator *result; | |
29449 | char *kwnames[] = { | |
29450 | NULL | |
29451 | }; | |
29452 | ||
29453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29454 | { | |
29455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29456 | result = (wxPyValidator *)new wxPyValidator(); | |
29457 | ||
29458 | wxPyEndAllowThreads(__tstate); | |
29459 | if (PyErr_Occurred()) SWIG_fail; | |
29460 | } | |
29461 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29462 | return resultobj; | |
29463 | fail: | |
29464 | return NULL; | |
29465 | } | |
29466 | ||
29467 | ||
c32bde28 | 29468 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29469 | PyObject *resultobj; |
29470 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29471 | PyObject *arg2 = (PyObject *) 0 ; | |
29472 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 29473 | int arg4 = (int) true ; |
d55e5bfc RD |
29474 | PyObject * obj0 = 0 ; |
29475 | PyObject * obj1 = 0 ; | |
29476 | PyObject * obj2 = 0 ; | |
29477 | PyObject * obj3 = 0 ; | |
29478 | char *kwnames[] = { | |
29479 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29480 | }; | |
29481 | ||
29482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29485 | arg2 = obj1; | |
29486 | arg3 = obj2; | |
29487 | if (obj3) { | |
c32bde28 | 29488 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29489 | if (PyErr_Occurred()) SWIG_fail; |
29490 | } | |
29491 | { | |
29492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29493 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29494 | ||
29495 | wxPyEndAllowThreads(__tstate); | |
29496 | if (PyErr_Occurred()) SWIG_fail; | |
29497 | } | |
29498 | Py_INCREF(Py_None); resultobj = Py_None; | |
29499 | return resultobj; | |
29500 | fail: | |
29501 | return NULL; | |
29502 | } | |
29503 | ||
29504 | ||
c32bde28 | 29505 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29506 | PyObject *obj; |
29507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29508 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29509 | Py_INCREF(obj); | |
29510 | return Py_BuildValue((char *)""); | |
29511 | } | |
c32bde28 | 29512 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29513 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29514 | return 1; | |
29515 | } | |
29516 | ||
29517 | ||
29518 | static PyObject *_wrap_DefaultValidator_get() { | |
29519 | PyObject *pyobj; | |
29520 | ||
29521 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29522 | return pyobj; | |
29523 | } | |
29524 | ||
29525 | ||
c32bde28 | 29526 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29527 | PyObject *resultobj; |
29528 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29529 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29530 | long arg2 = (long) 0 ; | |
29531 | wxMenu *result; | |
ae8162c8 | 29532 | bool temp1 = false ; |
d55e5bfc RD |
29533 | PyObject * obj0 = 0 ; |
29534 | PyObject * obj1 = 0 ; | |
29535 | char *kwnames[] = { | |
29536 | (char *) "title",(char *) "style", NULL | |
29537 | }; | |
29538 | ||
29539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29540 | if (obj0) { | |
29541 | { | |
29542 | arg1 = wxString_in_helper(obj0); | |
29543 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29544 | temp1 = true; |
d55e5bfc RD |
29545 | } |
29546 | } | |
29547 | if (obj1) { | |
c32bde28 | 29548 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29549 | if (PyErr_Occurred()) SWIG_fail; |
29550 | } | |
29551 | { | |
0439c23b | 29552 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29554 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29555 | ||
29556 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29557 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29558 | } |
b0f7404b | 29559 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29560 | { |
29561 | if (temp1) | |
29562 | delete arg1; | |
29563 | } | |
29564 | return resultobj; | |
29565 | fail: | |
29566 | { | |
29567 | if (temp1) | |
29568 | delete arg1; | |
29569 | } | |
29570 | return NULL; | |
29571 | } | |
29572 | ||
29573 | ||
c32bde28 | 29574 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29575 | PyObject *resultobj; |
29576 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29577 | int arg2 ; | |
29578 | wxString *arg3 = 0 ; | |
29579 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29580 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29581 | int arg5 = (int) wxITEM_NORMAL ; | |
29582 | wxMenuItem *result; | |
ae8162c8 RD |
29583 | bool temp3 = false ; |
29584 | bool temp4 = false ; | |
d55e5bfc RD |
29585 | PyObject * obj0 = 0 ; |
29586 | PyObject * obj1 = 0 ; | |
29587 | PyObject * obj2 = 0 ; | |
29588 | PyObject * obj3 = 0 ; | |
29589 | PyObject * obj4 = 0 ; | |
29590 | char *kwnames[] = { | |
29591 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29592 | }; | |
29593 | ||
29594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29597 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29598 | if (PyErr_Occurred()) SWIG_fail; |
29599 | { | |
29600 | arg3 = wxString_in_helper(obj2); | |
29601 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29602 | temp3 = true; |
d55e5bfc RD |
29603 | } |
29604 | if (obj3) { | |
29605 | { | |
29606 | arg4 = wxString_in_helper(obj3); | |
29607 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29608 | temp4 = true; |
d55e5bfc RD |
29609 | } |
29610 | } | |
29611 | if (obj4) { | |
c32bde28 | 29612 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29613 | if (PyErr_Occurred()) SWIG_fail; |
29614 | } | |
29615 | { | |
29616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29617 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29618 | ||
29619 | wxPyEndAllowThreads(__tstate); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | } | |
29622 | { | |
412d302d | 29623 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29624 | } |
29625 | { | |
29626 | if (temp3) | |
29627 | delete arg3; | |
29628 | } | |
29629 | { | |
29630 | if (temp4) | |
29631 | delete arg4; | |
29632 | } | |
29633 | return resultobj; | |
29634 | fail: | |
29635 | { | |
29636 | if (temp3) | |
29637 | delete arg3; | |
29638 | } | |
29639 | { | |
29640 | if (temp4) | |
29641 | delete arg4; | |
29642 | } | |
29643 | return NULL; | |
29644 | } | |
29645 | ||
29646 | ||
c32bde28 | 29647 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29648 | PyObject *resultobj; |
29649 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29650 | wxMenuItem *result; | |
29651 | PyObject * obj0 = 0 ; | |
29652 | char *kwnames[] = { | |
29653 | (char *) "self", NULL | |
29654 | }; | |
29655 | ||
29656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29659 | { | |
29660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29661 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29662 | ||
29663 | wxPyEndAllowThreads(__tstate); | |
29664 | if (PyErr_Occurred()) SWIG_fail; | |
29665 | } | |
29666 | { | |
412d302d | 29667 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29668 | } |
29669 | return resultobj; | |
29670 | fail: | |
29671 | return NULL; | |
29672 | } | |
29673 | ||
29674 | ||
c32bde28 | 29675 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29676 | PyObject *resultobj; |
29677 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29678 | int arg2 ; | |
29679 | wxString *arg3 = 0 ; | |
29680 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29681 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29682 | wxMenuItem *result; | |
ae8162c8 RD |
29683 | bool temp3 = false ; |
29684 | bool temp4 = false ; | |
d55e5bfc RD |
29685 | PyObject * obj0 = 0 ; |
29686 | PyObject * obj1 = 0 ; | |
29687 | PyObject * obj2 = 0 ; | |
29688 | PyObject * obj3 = 0 ; | |
29689 | char *kwnames[] = { | |
29690 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29691 | }; | |
29692 | ||
29693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29696 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29697 | if (PyErr_Occurred()) SWIG_fail; |
29698 | { | |
29699 | arg3 = wxString_in_helper(obj2); | |
29700 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29701 | temp3 = true; |
d55e5bfc RD |
29702 | } |
29703 | if (obj3) { | |
29704 | { | |
29705 | arg4 = wxString_in_helper(obj3); | |
29706 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29707 | temp4 = true; |
d55e5bfc RD |
29708 | } |
29709 | } | |
29710 | { | |
29711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29712 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29713 | ||
29714 | wxPyEndAllowThreads(__tstate); | |
29715 | if (PyErr_Occurred()) SWIG_fail; | |
29716 | } | |
29717 | { | |
412d302d | 29718 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29719 | } |
29720 | { | |
29721 | if (temp3) | |
29722 | delete arg3; | |
29723 | } | |
29724 | { | |
29725 | if (temp4) | |
29726 | delete arg4; | |
29727 | } | |
29728 | return resultobj; | |
29729 | fail: | |
29730 | { | |
29731 | if (temp3) | |
29732 | delete arg3; | |
29733 | } | |
29734 | { | |
29735 | if (temp4) | |
29736 | delete arg4; | |
29737 | } | |
29738 | return NULL; | |
29739 | } | |
29740 | ||
29741 | ||
c32bde28 | 29742 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29743 | PyObject *resultobj; |
29744 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29745 | int arg2 ; | |
29746 | wxString *arg3 = 0 ; | |
29747 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29748 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29749 | wxMenuItem *result; | |
ae8162c8 RD |
29750 | bool temp3 = false ; |
29751 | bool temp4 = false ; | |
d55e5bfc RD |
29752 | PyObject * obj0 = 0 ; |
29753 | PyObject * obj1 = 0 ; | |
29754 | PyObject * obj2 = 0 ; | |
29755 | PyObject * obj3 = 0 ; | |
29756 | char *kwnames[] = { | |
29757 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29758 | }; | |
29759 | ||
29760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29763 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29764 | if (PyErr_Occurred()) SWIG_fail; |
29765 | { | |
29766 | arg3 = wxString_in_helper(obj2); | |
29767 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29768 | temp3 = true; |
d55e5bfc RD |
29769 | } |
29770 | if (obj3) { | |
29771 | { | |
29772 | arg4 = wxString_in_helper(obj3); | |
29773 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29774 | temp4 = true; |
d55e5bfc RD |
29775 | } |
29776 | } | |
29777 | { | |
29778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29779 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29780 | ||
29781 | wxPyEndAllowThreads(__tstate); | |
29782 | if (PyErr_Occurred()) SWIG_fail; | |
29783 | } | |
29784 | { | |
412d302d | 29785 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29786 | } |
29787 | { | |
29788 | if (temp3) | |
29789 | delete arg3; | |
29790 | } | |
29791 | { | |
29792 | if (temp4) | |
29793 | delete arg4; | |
29794 | } | |
29795 | return resultobj; | |
29796 | fail: | |
29797 | { | |
29798 | if (temp3) | |
29799 | delete arg3; | |
29800 | } | |
29801 | { | |
29802 | if (temp4) | |
29803 | delete arg4; | |
29804 | } | |
29805 | return NULL; | |
29806 | } | |
29807 | ||
29808 | ||
c32bde28 | 29809 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29810 | PyObject *resultobj; |
29811 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29812 | int arg2 ; | |
29813 | wxString *arg3 = 0 ; | |
29814 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29815 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29816 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29817 | wxMenuItem *result; | |
ae8162c8 RD |
29818 | bool temp3 = false ; |
29819 | bool temp5 = false ; | |
d55e5bfc RD |
29820 | PyObject * obj0 = 0 ; |
29821 | PyObject * obj1 = 0 ; | |
29822 | PyObject * obj2 = 0 ; | |
29823 | PyObject * obj3 = 0 ; | |
29824 | PyObject * obj4 = 0 ; | |
29825 | char *kwnames[] = { | |
29826 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29827 | }; | |
29828 | ||
29829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29832 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29833 | if (PyErr_Occurred()) SWIG_fail; |
29834 | { | |
29835 | arg3 = wxString_in_helper(obj2); | |
29836 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29837 | temp3 = true; |
d55e5bfc RD |
29838 | } |
29839 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29841 | if (obj4) { | |
29842 | { | |
29843 | arg5 = wxString_in_helper(obj4); | |
29844 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29845 | temp5 = true; |
d55e5bfc RD |
29846 | } |
29847 | } | |
29848 | { | |
29849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29850 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29851 | ||
29852 | wxPyEndAllowThreads(__tstate); | |
29853 | if (PyErr_Occurred()) SWIG_fail; | |
29854 | } | |
29855 | { | |
412d302d | 29856 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29857 | } |
29858 | { | |
29859 | if (temp3) | |
29860 | delete arg3; | |
29861 | } | |
29862 | { | |
29863 | if (temp5) | |
29864 | delete arg5; | |
29865 | } | |
29866 | return resultobj; | |
29867 | fail: | |
29868 | { | |
29869 | if (temp3) | |
29870 | delete arg3; | |
29871 | } | |
29872 | { | |
29873 | if (temp5) | |
29874 | delete arg5; | |
29875 | } | |
29876 | return NULL; | |
29877 | } | |
29878 | ||
29879 | ||
c32bde28 | 29880 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29881 | PyObject *resultobj; |
29882 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29883 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29884 | wxMenuItem *result; | |
29885 | PyObject * obj0 = 0 ; | |
29886 | PyObject * obj1 = 0 ; | |
29887 | char *kwnames[] = { | |
29888 | (char *) "self",(char *) "item", NULL | |
29889 | }; | |
29890 | ||
29891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
29892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29894 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29896 | { | |
29897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29898 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
29899 | ||
29900 | wxPyEndAllowThreads(__tstate); | |
29901 | if (PyErr_Occurred()) SWIG_fail; | |
29902 | } | |
29903 | { | |
412d302d | 29904 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29905 | } |
29906 | return resultobj; | |
29907 | fail: | |
29908 | return NULL; | |
29909 | } | |
29910 | ||
29911 | ||
c32bde28 | 29912 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29913 | PyObject *resultobj; |
29914 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29915 | PyObject * obj0 = 0 ; | |
29916 | char *kwnames[] = { | |
29917 | (char *) "self", NULL | |
29918 | }; | |
29919 | ||
29920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
29921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29923 | { | |
29924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29925 | (arg1)->Break(); | |
29926 | ||
29927 | wxPyEndAllowThreads(__tstate); | |
29928 | if (PyErr_Occurred()) SWIG_fail; | |
29929 | } | |
29930 | Py_INCREF(Py_None); resultobj = Py_None; | |
29931 | return resultobj; | |
29932 | fail: | |
29933 | return NULL; | |
29934 | } | |
29935 | ||
29936 | ||
c32bde28 | 29937 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29938 | PyObject *resultobj; |
29939 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29940 | size_t arg2 ; | |
29941 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
29942 | wxMenuItem *result; | |
29943 | PyObject * obj0 = 0 ; | |
29944 | PyObject * obj1 = 0 ; | |
29945 | PyObject * obj2 = 0 ; | |
29946 | char *kwnames[] = { | |
29947 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29948 | }; | |
29949 | ||
29950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29953 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29954 | if (PyErr_Occurred()) SWIG_fail; |
29955 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29957 | { | |
29958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29959 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
29960 | ||
29961 | wxPyEndAllowThreads(__tstate); | |
29962 | if (PyErr_Occurred()) SWIG_fail; | |
29963 | } | |
29964 | { | |
412d302d | 29965 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29966 | } |
29967 | return resultobj; | |
29968 | fail: | |
29969 | return NULL; | |
29970 | } | |
29971 | ||
29972 | ||
c32bde28 | 29973 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29974 | PyObject *resultobj; |
29975 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29976 | size_t arg2 ; | |
29977 | int arg3 ; | |
29978 | wxString *arg4 = 0 ; | |
29979 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29980 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29981 | int arg6 = (int) wxITEM_NORMAL ; | |
29982 | wxMenuItem *result; | |
ae8162c8 RD |
29983 | bool temp4 = false ; |
29984 | bool temp5 = false ; | |
d55e5bfc RD |
29985 | PyObject * obj0 = 0 ; |
29986 | PyObject * obj1 = 0 ; | |
29987 | PyObject * obj2 = 0 ; | |
29988 | PyObject * obj3 = 0 ; | |
29989 | PyObject * obj4 = 0 ; | |
29990 | PyObject * obj5 = 0 ; | |
29991 | char *kwnames[] = { | |
29992 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29993 | }; | |
29994 | ||
29995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29998 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29999 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30000 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30001 | if (PyErr_Occurred()) SWIG_fail; |
30002 | { | |
30003 | arg4 = wxString_in_helper(obj3); | |
30004 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30005 | temp4 = true; |
d55e5bfc RD |
30006 | } |
30007 | if (obj4) { | |
30008 | { | |
30009 | arg5 = wxString_in_helper(obj4); | |
30010 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30011 | temp5 = true; |
d55e5bfc RD |
30012 | } |
30013 | } | |
30014 | if (obj5) { | |
c32bde28 | 30015 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
30016 | if (PyErr_Occurred()) SWIG_fail; |
30017 | } | |
30018 | { | |
30019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30020 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
30021 | ||
30022 | wxPyEndAllowThreads(__tstate); | |
30023 | if (PyErr_Occurred()) SWIG_fail; | |
30024 | } | |
30025 | { | |
412d302d | 30026 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30027 | } |
30028 | { | |
30029 | if (temp4) | |
30030 | delete arg4; | |
30031 | } | |
30032 | { | |
30033 | if (temp5) | |
30034 | delete arg5; | |
30035 | } | |
30036 | return resultobj; | |
30037 | fail: | |
30038 | { | |
30039 | if (temp4) | |
30040 | delete arg4; | |
30041 | } | |
30042 | { | |
30043 | if (temp5) | |
30044 | delete arg5; | |
30045 | } | |
30046 | return NULL; | |
30047 | } | |
30048 | ||
30049 | ||
c32bde28 | 30050 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30051 | PyObject *resultobj; |
30052 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30053 | size_t arg2 ; | |
30054 | wxMenuItem *result; | |
30055 | PyObject * obj0 = 0 ; | |
30056 | PyObject * obj1 = 0 ; | |
30057 | char *kwnames[] = { | |
30058 | (char *) "self",(char *) "pos", NULL | |
30059 | }; | |
30060 | ||
30061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
30062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30064 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30065 | if (PyErr_Occurred()) SWIG_fail; |
30066 | { | |
30067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30068 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
30069 | ||
30070 | wxPyEndAllowThreads(__tstate); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
30072 | } | |
30073 | { | |
412d302d | 30074 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30075 | } |
30076 | return resultobj; | |
30077 | fail: | |
30078 | return NULL; | |
30079 | } | |
30080 | ||
30081 | ||
c32bde28 | 30082 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30083 | PyObject *resultobj; |
30084 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30085 | size_t arg2 ; | |
30086 | int arg3 ; | |
30087 | wxString *arg4 = 0 ; | |
30088 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30089 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30090 | wxMenuItem *result; | |
ae8162c8 RD |
30091 | bool temp4 = false ; |
30092 | bool temp5 = false ; | |
d55e5bfc RD |
30093 | PyObject * obj0 = 0 ; |
30094 | PyObject * obj1 = 0 ; | |
30095 | PyObject * obj2 = 0 ; | |
30096 | PyObject * obj3 = 0 ; | |
30097 | PyObject * obj4 = 0 ; | |
30098 | char *kwnames[] = { | |
30099 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30100 | }; | |
30101 | ||
30102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30105 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30106 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30107 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30108 | if (PyErr_Occurred()) SWIG_fail; |
30109 | { | |
30110 | arg4 = wxString_in_helper(obj3); | |
30111 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30112 | temp4 = true; |
d55e5bfc RD |
30113 | } |
30114 | if (obj4) { | |
30115 | { | |
30116 | arg5 = wxString_in_helper(obj4); | |
30117 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30118 | temp5 = true; |
d55e5bfc RD |
30119 | } |
30120 | } | |
30121 | { | |
30122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30123 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30124 | ||
30125 | wxPyEndAllowThreads(__tstate); | |
30126 | if (PyErr_Occurred()) SWIG_fail; | |
30127 | } | |
30128 | { | |
412d302d | 30129 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30130 | } |
30131 | { | |
30132 | if (temp4) | |
30133 | delete arg4; | |
30134 | } | |
30135 | { | |
30136 | if (temp5) | |
30137 | delete arg5; | |
30138 | } | |
30139 | return resultobj; | |
30140 | fail: | |
30141 | { | |
30142 | if (temp4) | |
30143 | delete arg4; | |
30144 | } | |
30145 | { | |
30146 | if (temp5) | |
30147 | delete arg5; | |
30148 | } | |
30149 | return NULL; | |
30150 | } | |
30151 | ||
30152 | ||
c32bde28 | 30153 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30154 | PyObject *resultobj; |
30155 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30156 | size_t arg2 ; | |
30157 | int arg3 ; | |
30158 | wxString *arg4 = 0 ; | |
30159 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30160 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30161 | wxMenuItem *result; | |
ae8162c8 RD |
30162 | bool temp4 = false ; |
30163 | bool temp5 = false ; | |
d55e5bfc RD |
30164 | PyObject * obj0 = 0 ; |
30165 | PyObject * obj1 = 0 ; | |
30166 | PyObject * obj2 = 0 ; | |
30167 | PyObject * obj3 = 0 ; | |
30168 | PyObject * obj4 = 0 ; | |
30169 | char *kwnames[] = { | |
30170 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30171 | }; | |
30172 | ||
30173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30176 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30177 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30178 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30179 | if (PyErr_Occurred()) SWIG_fail; |
30180 | { | |
30181 | arg4 = wxString_in_helper(obj3); | |
30182 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30183 | temp4 = true; |
d55e5bfc RD |
30184 | } |
30185 | if (obj4) { | |
30186 | { | |
30187 | arg5 = wxString_in_helper(obj4); | |
30188 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30189 | temp5 = true; |
d55e5bfc RD |
30190 | } |
30191 | } | |
30192 | { | |
30193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30194 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30195 | ||
30196 | wxPyEndAllowThreads(__tstate); | |
30197 | if (PyErr_Occurred()) SWIG_fail; | |
30198 | } | |
30199 | { | |
412d302d | 30200 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30201 | } |
30202 | { | |
30203 | if (temp4) | |
30204 | delete arg4; | |
30205 | } | |
30206 | { | |
30207 | if (temp5) | |
30208 | delete arg5; | |
30209 | } | |
30210 | return resultobj; | |
30211 | fail: | |
30212 | { | |
30213 | if (temp4) | |
30214 | delete arg4; | |
30215 | } | |
30216 | { | |
30217 | if (temp5) | |
30218 | delete arg5; | |
30219 | } | |
30220 | return NULL; | |
30221 | } | |
30222 | ||
30223 | ||
c32bde28 | 30224 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30225 | PyObject *resultobj; |
30226 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30227 | size_t arg2 ; | |
30228 | int arg3 ; | |
30229 | wxString *arg4 = 0 ; | |
30230 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30231 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30232 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30233 | wxMenuItem *result; | |
ae8162c8 RD |
30234 | bool temp4 = false ; |
30235 | bool temp6 = false ; | |
d55e5bfc RD |
30236 | PyObject * obj0 = 0 ; |
30237 | PyObject * obj1 = 0 ; | |
30238 | PyObject * obj2 = 0 ; | |
30239 | PyObject * obj3 = 0 ; | |
30240 | PyObject * obj4 = 0 ; | |
30241 | PyObject * obj5 = 0 ; | |
30242 | char *kwnames[] = { | |
30243 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30244 | }; | |
30245 | ||
30246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30249 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30250 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30251 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30252 | if (PyErr_Occurred()) SWIG_fail; |
30253 | { | |
30254 | arg4 = wxString_in_helper(obj3); | |
30255 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30256 | temp4 = true; |
d55e5bfc RD |
30257 | } |
30258 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30260 | if (obj5) { | |
30261 | { | |
30262 | arg6 = wxString_in_helper(obj5); | |
30263 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 30264 | temp6 = true; |
d55e5bfc RD |
30265 | } |
30266 | } | |
30267 | { | |
30268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30269 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30270 | ||
30271 | wxPyEndAllowThreads(__tstate); | |
30272 | if (PyErr_Occurred()) SWIG_fail; | |
30273 | } | |
30274 | { | |
412d302d | 30275 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30276 | } |
30277 | { | |
30278 | if (temp4) | |
30279 | delete arg4; | |
30280 | } | |
30281 | { | |
30282 | if (temp6) | |
30283 | delete arg6; | |
30284 | } | |
30285 | return resultobj; | |
30286 | fail: | |
30287 | { | |
30288 | if (temp4) | |
30289 | delete arg4; | |
30290 | } | |
30291 | { | |
30292 | if (temp6) | |
30293 | delete arg6; | |
30294 | } | |
30295 | return NULL; | |
30296 | } | |
30297 | ||
30298 | ||
c32bde28 | 30299 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30300 | PyObject *resultobj; |
30301 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30302 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30303 | wxMenuItem *result; | |
30304 | PyObject * obj0 = 0 ; | |
30305 | PyObject * obj1 = 0 ; | |
30306 | char *kwnames[] = { | |
30307 | (char *) "self",(char *) "item", NULL | |
30308 | }; | |
30309 | ||
30310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30313 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30315 | { | |
30316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30317 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30318 | ||
30319 | wxPyEndAllowThreads(__tstate); | |
30320 | if (PyErr_Occurred()) SWIG_fail; | |
30321 | } | |
30322 | { | |
412d302d | 30323 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30324 | } |
30325 | return resultobj; | |
30326 | fail: | |
30327 | return NULL; | |
30328 | } | |
30329 | ||
30330 | ||
c32bde28 | 30331 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30332 | PyObject *resultobj; |
30333 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30334 | int arg2 ; | |
30335 | wxString *arg3 = 0 ; | |
30336 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30337 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30338 | int arg5 = (int) wxITEM_NORMAL ; | |
30339 | wxMenuItem *result; | |
ae8162c8 RD |
30340 | bool temp3 = false ; |
30341 | bool temp4 = false ; | |
d55e5bfc RD |
30342 | PyObject * obj0 = 0 ; |
30343 | PyObject * obj1 = 0 ; | |
30344 | PyObject * obj2 = 0 ; | |
30345 | PyObject * obj3 = 0 ; | |
30346 | PyObject * obj4 = 0 ; | |
30347 | char *kwnames[] = { | |
30348 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30349 | }; | |
30350 | ||
30351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30354 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30355 | if (PyErr_Occurred()) SWIG_fail; |
30356 | { | |
30357 | arg3 = wxString_in_helper(obj2); | |
30358 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30359 | temp3 = true; |
d55e5bfc RD |
30360 | } |
30361 | if (obj3) { | |
30362 | { | |
30363 | arg4 = wxString_in_helper(obj3); | |
30364 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30365 | temp4 = true; |
d55e5bfc RD |
30366 | } |
30367 | } | |
30368 | if (obj4) { | |
c32bde28 | 30369 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30370 | if (PyErr_Occurred()) SWIG_fail; |
30371 | } | |
30372 | { | |
30373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30374 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
30375 | ||
30376 | wxPyEndAllowThreads(__tstate); | |
30377 | if (PyErr_Occurred()) SWIG_fail; | |
30378 | } | |
30379 | { | |
412d302d | 30380 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30381 | } |
30382 | { | |
30383 | if (temp3) | |
30384 | delete arg3; | |
30385 | } | |
30386 | { | |
30387 | if (temp4) | |
30388 | delete arg4; | |
30389 | } | |
30390 | return resultobj; | |
30391 | fail: | |
30392 | { | |
30393 | if (temp3) | |
30394 | delete arg3; | |
30395 | } | |
30396 | { | |
30397 | if (temp4) | |
30398 | delete arg4; | |
30399 | } | |
30400 | return NULL; | |
30401 | } | |
30402 | ||
30403 | ||
c32bde28 | 30404 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30405 | PyObject *resultobj; |
30406 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30407 | wxMenuItem *result; | |
30408 | PyObject * obj0 = 0 ; | |
30409 | char *kwnames[] = { | |
30410 | (char *) "self", NULL | |
30411 | }; | |
30412 | ||
30413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30416 | { | |
30417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30418 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30419 | ||
30420 | wxPyEndAllowThreads(__tstate); | |
30421 | if (PyErr_Occurred()) SWIG_fail; | |
30422 | } | |
30423 | { | |
412d302d | 30424 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30425 | } |
30426 | return resultobj; | |
30427 | fail: | |
30428 | return NULL; | |
30429 | } | |
30430 | ||
30431 | ||
c32bde28 | 30432 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30433 | PyObject *resultobj; |
30434 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30435 | int arg2 ; | |
30436 | wxString *arg3 = 0 ; | |
30437 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30438 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30439 | wxMenuItem *result; | |
ae8162c8 RD |
30440 | bool temp3 = false ; |
30441 | bool temp4 = false ; | |
d55e5bfc RD |
30442 | PyObject * obj0 = 0 ; |
30443 | PyObject * obj1 = 0 ; | |
30444 | PyObject * obj2 = 0 ; | |
30445 | PyObject * obj3 = 0 ; | |
30446 | char *kwnames[] = { | |
30447 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30448 | }; | |
30449 | ||
30450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30453 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30454 | if (PyErr_Occurred()) SWIG_fail; |
30455 | { | |
30456 | arg3 = wxString_in_helper(obj2); | |
30457 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30458 | temp3 = true; |
d55e5bfc RD |
30459 | } |
30460 | if (obj3) { | |
30461 | { | |
30462 | arg4 = wxString_in_helper(obj3); | |
30463 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30464 | temp4 = true; |
d55e5bfc RD |
30465 | } |
30466 | } | |
30467 | { | |
30468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30469 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30470 | ||
30471 | wxPyEndAllowThreads(__tstate); | |
30472 | if (PyErr_Occurred()) SWIG_fail; | |
30473 | } | |
30474 | { | |
412d302d | 30475 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30476 | } |
30477 | { | |
30478 | if (temp3) | |
30479 | delete arg3; | |
30480 | } | |
30481 | { | |
30482 | if (temp4) | |
30483 | delete arg4; | |
30484 | } | |
30485 | return resultobj; | |
30486 | fail: | |
30487 | { | |
30488 | if (temp3) | |
30489 | delete arg3; | |
30490 | } | |
30491 | { | |
30492 | if (temp4) | |
30493 | delete arg4; | |
30494 | } | |
30495 | return NULL; | |
30496 | } | |
30497 | ||
30498 | ||
c32bde28 | 30499 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30500 | PyObject *resultobj; |
30501 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30502 | int arg2 ; | |
30503 | wxString *arg3 = 0 ; | |
30504 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30505 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30506 | wxMenuItem *result; | |
ae8162c8 RD |
30507 | bool temp3 = false ; |
30508 | bool temp4 = false ; | |
d55e5bfc RD |
30509 | PyObject * obj0 = 0 ; |
30510 | PyObject * obj1 = 0 ; | |
30511 | PyObject * obj2 = 0 ; | |
30512 | PyObject * obj3 = 0 ; | |
30513 | char *kwnames[] = { | |
30514 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30515 | }; | |
30516 | ||
30517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30520 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30521 | if (PyErr_Occurred()) SWIG_fail; |
30522 | { | |
30523 | arg3 = wxString_in_helper(obj2); | |
30524 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30525 | temp3 = true; |
d55e5bfc RD |
30526 | } |
30527 | if (obj3) { | |
30528 | { | |
30529 | arg4 = wxString_in_helper(obj3); | |
30530 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30531 | temp4 = true; |
d55e5bfc RD |
30532 | } |
30533 | } | |
30534 | { | |
30535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30536 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30537 | ||
30538 | wxPyEndAllowThreads(__tstate); | |
30539 | if (PyErr_Occurred()) SWIG_fail; | |
30540 | } | |
30541 | { | |
412d302d | 30542 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30543 | } |
30544 | { | |
30545 | if (temp3) | |
30546 | delete arg3; | |
30547 | } | |
30548 | { | |
30549 | if (temp4) | |
30550 | delete arg4; | |
30551 | } | |
30552 | return resultobj; | |
30553 | fail: | |
30554 | { | |
30555 | if (temp3) | |
30556 | delete arg3; | |
30557 | } | |
30558 | { | |
30559 | if (temp4) | |
30560 | delete arg4; | |
30561 | } | |
30562 | return NULL; | |
30563 | } | |
30564 | ||
30565 | ||
c32bde28 | 30566 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30567 | PyObject *resultobj; |
30568 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30569 | int arg2 ; | |
30570 | wxString *arg3 = 0 ; | |
30571 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30572 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30573 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30574 | wxMenuItem *result; | |
ae8162c8 RD |
30575 | bool temp3 = false ; |
30576 | bool temp5 = false ; | |
d55e5bfc RD |
30577 | PyObject * obj0 = 0 ; |
30578 | PyObject * obj1 = 0 ; | |
30579 | PyObject * obj2 = 0 ; | |
30580 | PyObject * obj3 = 0 ; | |
30581 | PyObject * obj4 = 0 ; | |
30582 | char *kwnames[] = { | |
30583 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30584 | }; | |
30585 | ||
30586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30589 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30590 | if (PyErr_Occurred()) SWIG_fail; |
30591 | { | |
30592 | arg3 = wxString_in_helper(obj2); | |
30593 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30594 | temp3 = true; |
d55e5bfc RD |
30595 | } |
30596 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30598 | if (obj4) { | |
30599 | { | |
30600 | arg5 = wxString_in_helper(obj4); | |
30601 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30602 | temp5 = true; |
d55e5bfc RD |
30603 | } |
30604 | } | |
30605 | { | |
30606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30607 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30608 | ||
30609 | wxPyEndAllowThreads(__tstate); | |
30610 | if (PyErr_Occurred()) SWIG_fail; | |
30611 | } | |
30612 | { | |
412d302d | 30613 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30614 | } |
30615 | { | |
30616 | if (temp3) | |
30617 | delete arg3; | |
30618 | } | |
30619 | { | |
30620 | if (temp5) | |
30621 | delete arg5; | |
30622 | } | |
30623 | return resultobj; | |
30624 | fail: | |
30625 | { | |
30626 | if (temp3) | |
30627 | delete arg3; | |
30628 | } | |
30629 | { | |
30630 | if (temp5) | |
30631 | delete arg5; | |
30632 | } | |
30633 | return NULL; | |
30634 | } | |
30635 | ||
30636 | ||
c32bde28 | 30637 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30638 | PyObject *resultobj; |
30639 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30640 | int arg2 ; | |
30641 | wxMenuItem *result; | |
30642 | PyObject * obj0 = 0 ; | |
30643 | PyObject * obj1 = 0 ; | |
30644 | char *kwnames[] = { | |
30645 | (char *) "self",(char *) "id", NULL | |
30646 | }; | |
30647 | ||
30648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30651 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30652 | if (PyErr_Occurred()) SWIG_fail; |
30653 | { | |
30654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30655 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30656 | ||
30657 | wxPyEndAllowThreads(__tstate); | |
30658 | if (PyErr_Occurred()) SWIG_fail; | |
30659 | } | |
30660 | { | |
412d302d | 30661 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30662 | } |
30663 | return resultobj; | |
30664 | fail: | |
30665 | return NULL; | |
30666 | } | |
30667 | ||
30668 | ||
c32bde28 | 30669 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30670 | PyObject *resultobj; |
30671 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30672 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30673 | wxMenuItem *result; | |
30674 | PyObject * obj0 = 0 ; | |
30675 | PyObject * obj1 = 0 ; | |
30676 | char *kwnames[] = { | |
30677 | (char *) "self",(char *) "item", NULL | |
30678 | }; | |
30679 | ||
30680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30685 | { | |
30686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30687 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30688 | ||
30689 | wxPyEndAllowThreads(__tstate); | |
30690 | if (PyErr_Occurred()) SWIG_fail; | |
30691 | } | |
30692 | { | |
412d302d | 30693 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30694 | } |
30695 | return resultobj; | |
30696 | fail: | |
30697 | return NULL; | |
30698 | } | |
30699 | ||
30700 | ||
c32bde28 | 30701 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30702 | PyObject *resultobj; |
30703 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30704 | int arg2 ; | |
30705 | bool result; | |
30706 | PyObject * obj0 = 0 ; | |
30707 | PyObject * obj1 = 0 ; | |
30708 | char *kwnames[] = { | |
30709 | (char *) "self",(char *) "id", NULL | |
30710 | }; | |
30711 | ||
30712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30715 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30716 | if (PyErr_Occurred()) SWIG_fail; |
30717 | { | |
30718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30719 | result = (bool)(arg1)->Delete(arg2); | |
30720 | ||
30721 | wxPyEndAllowThreads(__tstate); | |
30722 | if (PyErr_Occurred()) SWIG_fail; | |
30723 | } | |
30724 | { | |
30725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30726 | } | |
30727 | return resultobj; | |
30728 | fail: | |
30729 | return NULL; | |
30730 | } | |
30731 | ||
30732 | ||
c32bde28 | 30733 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30734 | PyObject *resultobj; |
30735 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30736 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30737 | bool result; | |
30738 | PyObject * obj0 = 0 ; | |
30739 | PyObject * obj1 = 0 ; | |
30740 | char *kwnames[] = { | |
30741 | (char *) "self",(char *) "item", NULL | |
30742 | }; | |
30743 | ||
30744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30749 | { | |
30750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30751 | result = (bool)(arg1)->Delete(arg2); | |
30752 | ||
30753 | wxPyEndAllowThreads(__tstate); | |
30754 | if (PyErr_Occurred()) SWIG_fail; | |
30755 | } | |
30756 | { | |
30757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30758 | } | |
30759 | return resultobj; | |
30760 | fail: | |
30761 | return NULL; | |
30762 | } | |
30763 | ||
30764 | ||
c32bde28 | 30765 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30766 | PyObject *resultobj; |
30767 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30768 | PyObject * obj0 = 0 ; | |
30769 | char *kwnames[] = { | |
30770 | (char *) "self", NULL | |
30771 | }; | |
30772 | ||
30773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30776 | { | |
30777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30778 | wxMenu_Destroy(arg1); | |
30779 | ||
30780 | wxPyEndAllowThreads(__tstate); | |
30781 | if (PyErr_Occurred()) SWIG_fail; | |
30782 | } | |
30783 | Py_INCREF(Py_None); resultobj = Py_None; | |
30784 | return resultobj; | |
30785 | fail: | |
30786 | return NULL; | |
30787 | } | |
30788 | ||
30789 | ||
c32bde28 | 30790 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30791 | PyObject *resultobj; |
30792 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30793 | int arg2 ; | |
30794 | bool result; | |
30795 | PyObject * obj0 = 0 ; | |
30796 | PyObject * obj1 = 0 ; | |
30797 | char *kwnames[] = { | |
30798 | (char *) "self",(char *) "id", NULL | |
30799 | }; | |
30800 | ||
30801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30804 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30805 | if (PyErr_Occurred()) SWIG_fail; |
30806 | { | |
30807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30808 | result = (bool)(arg1)->Destroy(arg2); | |
30809 | ||
30810 | wxPyEndAllowThreads(__tstate); | |
30811 | if (PyErr_Occurred()) SWIG_fail; | |
30812 | } | |
30813 | { | |
30814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30815 | } | |
30816 | return resultobj; | |
30817 | fail: | |
30818 | return NULL; | |
30819 | } | |
30820 | ||
30821 | ||
c32bde28 | 30822 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30823 | PyObject *resultobj; |
30824 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30825 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30826 | bool result; | |
30827 | PyObject * obj0 = 0 ; | |
30828 | PyObject * obj1 = 0 ; | |
30829 | char *kwnames[] = { | |
30830 | (char *) "self",(char *) "item", NULL | |
30831 | }; | |
30832 | ||
30833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30838 | { | |
30839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30840 | result = (bool)(arg1)->Destroy(arg2); | |
30841 | ||
30842 | wxPyEndAllowThreads(__tstate); | |
30843 | if (PyErr_Occurred()) SWIG_fail; | |
30844 | } | |
30845 | { | |
30846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30847 | } | |
30848 | return resultobj; | |
30849 | fail: | |
30850 | return NULL; | |
30851 | } | |
30852 | ||
30853 | ||
c32bde28 | 30854 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30855 | PyObject *resultobj; |
30856 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30857 | size_t result; | |
30858 | PyObject * obj0 = 0 ; | |
30859 | char *kwnames[] = { | |
30860 | (char *) "self", NULL | |
30861 | }; | |
30862 | ||
30863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30866 | { | |
30867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30868 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30869 | ||
30870 | wxPyEndAllowThreads(__tstate); | |
30871 | if (PyErr_Occurred()) SWIG_fail; | |
30872 | } | |
c32bde28 | 30873 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
30874 | return resultobj; |
30875 | fail: | |
30876 | return NULL; | |
30877 | } | |
30878 | ||
30879 | ||
c32bde28 | 30880 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30881 | PyObject *resultobj; |
30882 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30883 | PyObject *result; | |
30884 | PyObject * obj0 = 0 ; | |
30885 | char *kwnames[] = { | |
30886 | (char *) "self", NULL | |
30887 | }; | |
30888 | ||
30889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
30890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30892 | { | |
30893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30894 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30895 | ||
30896 | wxPyEndAllowThreads(__tstate); | |
30897 | if (PyErr_Occurred()) SWIG_fail; | |
30898 | } | |
30899 | resultobj = result; | |
30900 | return resultobj; | |
30901 | fail: | |
30902 | return NULL; | |
30903 | } | |
30904 | ||
30905 | ||
c32bde28 | 30906 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30907 | PyObject *resultobj; |
30908 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30909 | wxString *arg2 = 0 ; | |
30910 | int result; | |
ae8162c8 | 30911 | bool temp2 = false ; |
d55e5bfc RD |
30912 | PyObject * obj0 = 0 ; |
30913 | PyObject * obj1 = 0 ; | |
30914 | char *kwnames[] = { | |
30915 | (char *) "self",(char *) "item", NULL | |
30916 | }; | |
30917 | ||
30918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
30919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30921 | { | |
30922 | arg2 = wxString_in_helper(obj1); | |
30923 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30924 | temp2 = true; |
d55e5bfc RD |
30925 | } |
30926 | { | |
30927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30928 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30929 | ||
30930 | wxPyEndAllowThreads(__tstate); | |
30931 | if (PyErr_Occurred()) SWIG_fail; | |
30932 | } | |
c32bde28 | 30933 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
30934 | { |
30935 | if (temp2) | |
30936 | delete arg2; | |
30937 | } | |
30938 | return resultobj; | |
30939 | fail: | |
30940 | { | |
30941 | if (temp2) | |
30942 | delete arg2; | |
30943 | } | |
30944 | return NULL; | |
30945 | } | |
30946 | ||
30947 | ||
c32bde28 | 30948 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30949 | PyObject *resultobj; |
30950 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30951 | int arg2 ; | |
30952 | wxMenuItem *result; | |
30953 | PyObject * obj0 = 0 ; | |
30954 | PyObject * obj1 = 0 ; | |
30955 | char *kwnames[] = { | |
30956 | (char *) "self",(char *) "id", NULL | |
30957 | }; | |
30958 | ||
30959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
30960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30963 | if (PyErr_Occurred()) SWIG_fail; |
30964 | { | |
30965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30966 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30967 | ||
30968 | wxPyEndAllowThreads(__tstate); | |
30969 | if (PyErr_Occurred()) SWIG_fail; | |
30970 | } | |
30971 | { | |
412d302d | 30972 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30973 | } |
30974 | return resultobj; | |
30975 | fail: | |
30976 | return NULL; | |
30977 | } | |
30978 | ||
30979 | ||
c32bde28 | 30980 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30981 | PyObject *resultobj; |
30982 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30983 | size_t arg2 ; | |
30984 | wxMenuItem *result; | |
30985 | PyObject * obj0 = 0 ; | |
30986 | PyObject * obj1 = 0 ; | |
30987 | char *kwnames[] = { | |
30988 | (char *) "self",(char *) "position", NULL | |
30989 | }; | |
30990 | ||
30991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
30992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30994 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30995 | if (PyErr_Occurred()) SWIG_fail; |
30996 | { | |
30997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30998 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30999 | ||
31000 | wxPyEndAllowThreads(__tstate); | |
31001 | if (PyErr_Occurred()) SWIG_fail; | |
31002 | } | |
31003 | { | |
412d302d | 31004 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31005 | } |
31006 | return resultobj; | |
31007 | fail: | |
31008 | return NULL; | |
31009 | } | |
31010 | ||
31011 | ||
c32bde28 | 31012 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31013 | PyObject *resultobj; |
31014 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31015 | int arg2 ; | |
31016 | bool arg3 ; | |
31017 | PyObject * obj0 = 0 ; | |
31018 | PyObject * obj1 = 0 ; | |
31019 | PyObject * obj2 = 0 ; | |
31020 | char *kwnames[] = { | |
31021 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31022 | }; | |
31023 | ||
31024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31027 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31028 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31029 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31030 | if (PyErr_Occurred()) SWIG_fail; |
31031 | { | |
31032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31033 | (arg1)->Enable(arg2,arg3); | |
31034 | ||
31035 | wxPyEndAllowThreads(__tstate); | |
31036 | if (PyErr_Occurred()) SWIG_fail; | |
31037 | } | |
31038 | Py_INCREF(Py_None); resultobj = Py_None; | |
31039 | return resultobj; | |
31040 | fail: | |
31041 | return NULL; | |
31042 | } | |
31043 | ||
31044 | ||
c32bde28 | 31045 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31046 | PyObject *resultobj; |
31047 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31048 | int arg2 ; | |
31049 | bool result; | |
31050 | PyObject * obj0 = 0 ; | |
31051 | PyObject * obj1 = 0 ; | |
31052 | char *kwnames[] = { | |
31053 | (char *) "self",(char *) "id", NULL | |
31054 | }; | |
31055 | ||
31056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31059 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31060 | if (PyErr_Occurred()) SWIG_fail; |
31061 | { | |
31062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31063 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
31064 | ||
31065 | wxPyEndAllowThreads(__tstate); | |
31066 | if (PyErr_Occurred()) SWIG_fail; | |
31067 | } | |
31068 | { | |
31069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31070 | } | |
31071 | return resultobj; | |
31072 | fail: | |
31073 | return NULL; | |
31074 | } | |
31075 | ||
31076 | ||
c32bde28 | 31077 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31078 | PyObject *resultobj; |
31079 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31080 | int arg2 ; | |
31081 | bool arg3 ; | |
31082 | PyObject * obj0 = 0 ; | |
31083 | PyObject * obj1 = 0 ; | |
31084 | PyObject * obj2 = 0 ; | |
31085 | char *kwnames[] = { | |
31086 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31087 | }; | |
31088 | ||
31089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31092 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31093 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31094 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31095 | if (PyErr_Occurred()) SWIG_fail; |
31096 | { | |
31097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31098 | (arg1)->Check(arg2,arg3); | |
31099 | ||
31100 | wxPyEndAllowThreads(__tstate); | |
31101 | if (PyErr_Occurred()) SWIG_fail; | |
31102 | } | |
31103 | Py_INCREF(Py_None); resultobj = Py_None; | |
31104 | return resultobj; | |
31105 | fail: | |
31106 | return NULL; | |
31107 | } | |
31108 | ||
31109 | ||
c32bde28 | 31110 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31111 | PyObject *resultobj; |
31112 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31113 | int arg2 ; | |
31114 | bool result; | |
31115 | PyObject * obj0 = 0 ; | |
31116 | PyObject * obj1 = 0 ; | |
31117 | char *kwnames[] = { | |
31118 | (char *) "self",(char *) "id", NULL | |
31119 | }; | |
31120 | ||
31121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31124 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31125 | if (PyErr_Occurred()) SWIG_fail; |
31126 | { | |
31127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31128 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
31129 | ||
31130 | wxPyEndAllowThreads(__tstate); | |
31131 | if (PyErr_Occurred()) SWIG_fail; | |
31132 | } | |
31133 | { | |
31134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31135 | } | |
31136 | return resultobj; | |
31137 | fail: | |
31138 | return NULL; | |
31139 | } | |
31140 | ||
31141 | ||
c32bde28 | 31142 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31143 | PyObject *resultobj; |
31144 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31145 | int arg2 ; | |
31146 | wxString *arg3 = 0 ; | |
ae8162c8 | 31147 | bool temp3 = false ; |
d55e5bfc RD |
31148 | PyObject * obj0 = 0 ; |
31149 | PyObject * obj1 = 0 ; | |
31150 | PyObject * obj2 = 0 ; | |
31151 | char *kwnames[] = { | |
31152 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31153 | }; | |
31154 | ||
31155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31158 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31159 | if (PyErr_Occurred()) SWIG_fail; |
31160 | { | |
31161 | arg3 = wxString_in_helper(obj2); | |
31162 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31163 | temp3 = true; |
d55e5bfc RD |
31164 | } |
31165 | { | |
31166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31167 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31168 | ||
31169 | wxPyEndAllowThreads(__tstate); | |
31170 | if (PyErr_Occurred()) SWIG_fail; | |
31171 | } | |
31172 | Py_INCREF(Py_None); resultobj = Py_None; | |
31173 | { | |
31174 | if (temp3) | |
31175 | delete arg3; | |
31176 | } | |
31177 | return resultobj; | |
31178 | fail: | |
31179 | { | |
31180 | if (temp3) | |
31181 | delete arg3; | |
31182 | } | |
31183 | return NULL; | |
31184 | } | |
31185 | ||
31186 | ||
c32bde28 | 31187 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31188 | PyObject *resultobj; |
31189 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31190 | int arg2 ; | |
31191 | wxString result; | |
31192 | PyObject * obj0 = 0 ; | |
31193 | PyObject * obj1 = 0 ; | |
31194 | char *kwnames[] = { | |
31195 | (char *) "self",(char *) "id", NULL | |
31196 | }; | |
31197 | ||
31198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31201 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31202 | if (PyErr_Occurred()) SWIG_fail; |
31203 | { | |
31204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31205 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31206 | ||
31207 | wxPyEndAllowThreads(__tstate); | |
31208 | if (PyErr_Occurred()) SWIG_fail; | |
31209 | } | |
31210 | { | |
31211 | #if wxUSE_UNICODE | |
31212 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31213 | #else | |
31214 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31215 | #endif | |
31216 | } | |
31217 | return resultobj; | |
31218 | fail: | |
31219 | return NULL; | |
31220 | } | |
31221 | ||
31222 | ||
c32bde28 | 31223 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31224 | PyObject *resultobj; |
31225 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31226 | int arg2 ; | |
31227 | wxString *arg3 = 0 ; | |
ae8162c8 | 31228 | bool temp3 = false ; |
d55e5bfc RD |
31229 | PyObject * obj0 = 0 ; |
31230 | PyObject * obj1 = 0 ; | |
31231 | PyObject * obj2 = 0 ; | |
31232 | char *kwnames[] = { | |
31233 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31234 | }; | |
31235 | ||
31236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31239 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31240 | if (PyErr_Occurred()) SWIG_fail; |
31241 | { | |
31242 | arg3 = wxString_in_helper(obj2); | |
31243 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31244 | temp3 = true; |
d55e5bfc RD |
31245 | } |
31246 | { | |
31247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31248 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31249 | ||
31250 | wxPyEndAllowThreads(__tstate); | |
31251 | if (PyErr_Occurred()) SWIG_fail; | |
31252 | } | |
31253 | Py_INCREF(Py_None); resultobj = Py_None; | |
31254 | { | |
31255 | if (temp3) | |
31256 | delete arg3; | |
31257 | } | |
31258 | return resultobj; | |
31259 | fail: | |
31260 | { | |
31261 | if (temp3) | |
31262 | delete arg3; | |
31263 | } | |
31264 | return NULL; | |
31265 | } | |
31266 | ||
31267 | ||
c32bde28 | 31268 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31269 | PyObject *resultobj; |
31270 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31271 | int arg2 ; | |
31272 | wxString result; | |
31273 | PyObject * obj0 = 0 ; | |
31274 | PyObject * obj1 = 0 ; | |
31275 | char *kwnames[] = { | |
31276 | (char *) "self",(char *) "id", NULL | |
31277 | }; | |
31278 | ||
31279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31282 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31283 | if (PyErr_Occurred()) SWIG_fail; |
31284 | { | |
31285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31286 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31287 | ||
31288 | wxPyEndAllowThreads(__tstate); | |
31289 | if (PyErr_Occurred()) SWIG_fail; | |
31290 | } | |
31291 | { | |
31292 | #if wxUSE_UNICODE | |
31293 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31294 | #else | |
31295 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31296 | #endif | |
31297 | } | |
31298 | return resultobj; | |
31299 | fail: | |
31300 | return NULL; | |
31301 | } | |
31302 | ||
31303 | ||
c32bde28 | 31304 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31305 | PyObject *resultobj; |
31306 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31307 | wxString *arg2 = 0 ; | |
ae8162c8 | 31308 | bool temp2 = false ; |
d55e5bfc RD |
31309 | PyObject * obj0 = 0 ; |
31310 | PyObject * obj1 = 0 ; | |
31311 | char *kwnames[] = { | |
31312 | (char *) "self",(char *) "title", NULL | |
31313 | }; | |
31314 | ||
31315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31318 | { | |
31319 | arg2 = wxString_in_helper(obj1); | |
31320 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31321 | temp2 = true; |
d55e5bfc RD |
31322 | } |
31323 | { | |
31324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31325 | (arg1)->SetTitle((wxString const &)*arg2); | |
31326 | ||
31327 | wxPyEndAllowThreads(__tstate); | |
31328 | if (PyErr_Occurred()) SWIG_fail; | |
31329 | } | |
31330 | Py_INCREF(Py_None); resultobj = Py_None; | |
31331 | { | |
31332 | if (temp2) | |
31333 | delete arg2; | |
31334 | } | |
31335 | return resultobj; | |
31336 | fail: | |
31337 | { | |
31338 | if (temp2) | |
31339 | delete arg2; | |
31340 | } | |
31341 | return NULL; | |
31342 | } | |
31343 | ||
31344 | ||
c32bde28 | 31345 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31346 | PyObject *resultobj; |
31347 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31348 | wxString result; | |
31349 | PyObject * obj0 = 0 ; | |
31350 | char *kwnames[] = { | |
31351 | (char *) "self", NULL | |
31352 | }; | |
31353 | ||
31354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31357 | { | |
31358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31359 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31360 | ||
31361 | wxPyEndAllowThreads(__tstate); | |
31362 | if (PyErr_Occurred()) SWIG_fail; | |
31363 | } | |
31364 | { | |
31365 | #if wxUSE_UNICODE | |
31366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31367 | #else | |
31368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31369 | #endif | |
31370 | } | |
31371 | return resultobj; | |
31372 | fail: | |
31373 | return NULL; | |
31374 | } | |
31375 | ||
31376 | ||
c32bde28 | 31377 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31378 | PyObject *resultobj; |
31379 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31380 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31381 | PyObject * obj0 = 0 ; | |
31382 | PyObject * obj1 = 0 ; | |
31383 | char *kwnames[] = { | |
31384 | (char *) "self",(char *) "handler", NULL | |
31385 | }; | |
31386 | ||
31387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31392 | { | |
31393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31394 | (arg1)->SetEventHandler(arg2); | |
31395 | ||
31396 | wxPyEndAllowThreads(__tstate); | |
31397 | if (PyErr_Occurred()) SWIG_fail; | |
31398 | } | |
31399 | Py_INCREF(Py_None); resultobj = Py_None; | |
31400 | return resultobj; | |
31401 | fail: | |
31402 | return NULL; | |
31403 | } | |
31404 | ||
31405 | ||
c32bde28 | 31406 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31407 | PyObject *resultobj; |
31408 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31409 | wxEvtHandler *result; | |
31410 | PyObject * obj0 = 0 ; | |
31411 | char *kwnames[] = { | |
31412 | (char *) "self", NULL | |
31413 | }; | |
31414 | ||
31415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31418 | { | |
31419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31420 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31421 | ||
31422 | wxPyEndAllowThreads(__tstate); | |
31423 | if (PyErr_Occurred()) SWIG_fail; | |
31424 | } | |
31425 | { | |
412d302d | 31426 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31427 | } |
31428 | return resultobj; | |
31429 | fail: | |
31430 | return NULL; | |
31431 | } | |
31432 | ||
31433 | ||
c32bde28 | 31434 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31435 | PyObject *resultobj; |
31436 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31437 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31438 | PyObject * obj0 = 0 ; | |
31439 | PyObject * obj1 = 0 ; | |
31440 | char *kwnames[] = { | |
31441 | (char *) "self",(char *) "win", NULL | |
31442 | }; | |
31443 | ||
31444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31447 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31449 | { | |
31450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31451 | (arg1)->SetInvokingWindow(arg2); | |
31452 | ||
31453 | wxPyEndAllowThreads(__tstate); | |
31454 | if (PyErr_Occurred()) SWIG_fail; | |
31455 | } | |
31456 | Py_INCREF(Py_None); resultobj = Py_None; | |
31457 | return resultobj; | |
31458 | fail: | |
31459 | return NULL; | |
31460 | } | |
31461 | ||
31462 | ||
c32bde28 | 31463 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31464 | PyObject *resultobj; |
31465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31466 | wxWindow *result; | |
31467 | PyObject * obj0 = 0 ; | |
31468 | char *kwnames[] = { | |
31469 | (char *) "self", NULL | |
31470 | }; | |
31471 | ||
31472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31475 | { | |
31476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31477 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31478 | ||
31479 | wxPyEndAllowThreads(__tstate); | |
31480 | if (PyErr_Occurred()) SWIG_fail; | |
31481 | } | |
31482 | { | |
412d302d | 31483 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31484 | } |
31485 | return resultobj; | |
31486 | fail: | |
31487 | return NULL; | |
31488 | } | |
31489 | ||
31490 | ||
c32bde28 | 31491 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31492 | PyObject *resultobj; |
31493 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31494 | long result; | |
31495 | PyObject * obj0 = 0 ; | |
31496 | char *kwnames[] = { | |
31497 | (char *) "self", NULL | |
31498 | }; | |
31499 | ||
31500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31503 | { | |
31504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31505 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31506 | ||
31507 | wxPyEndAllowThreads(__tstate); | |
31508 | if (PyErr_Occurred()) SWIG_fail; | |
31509 | } | |
c32bde28 | 31510 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31511 | return resultobj; |
31512 | fail: | |
31513 | return NULL; | |
31514 | } | |
31515 | ||
31516 | ||
c32bde28 | 31517 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31518 | PyObject *resultobj; |
31519 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31520 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31521 | PyObject * obj0 = 0 ; | |
31522 | PyObject * obj1 = 0 ; | |
31523 | char *kwnames[] = { | |
31524 | (char *) "self",(char *) "source", NULL | |
31525 | }; | |
31526 | ||
31527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31530 | if (obj1) { | |
31531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31533 | } | |
31534 | { | |
31535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31536 | (arg1)->UpdateUI(arg2); | |
31537 | ||
31538 | wxPyEndAllowThreads(__tstate); | |
31539 | if (PyErr_Occurred()) SWIG_fail; | |
31540 | } | |
31541 | Py_INCREF(Py_None); resultobj = Py_None; | |
31542 | return resultobj; | |
31543 | fail: | |
31544 | return NULL; | |
31545 | } | |
31546 | ||
31547 | ||
c32bde28 | 31548 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31549 | PyObject *resultobj; |
31550 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31551 | wxMenuBar *result; | |
31552 | PyObject * obj0 = 0 ; | |
31553 | char *kwnames[] = { | |
31554 | (char *) "self", NULL | |
31555 | }; | |
31556 | ||
31557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31560 | { | |
31561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31562 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31563 | ||
31564 | wxPyEndAllowThreads(__tstate); | |
31565 | if (PyErr_Occurred()) SWIG_fail; | |
31566 | } | |
31567 | { | |
412d302d | 31568 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31569 | } |
31570 | return resultobj; | |
31571 | fail: | |
31572 | return NULL; | |
31573 | } | |
31574 | ||
31575 | ||
c32bde28 | 31576 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31577 | PyObject *resultobj; |
31578 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31579 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31580 | PyObject * obj0 = 0 ; | |
31581 | PyObject * obj1 = 0 ; | |
31582 | char *kwnames[] = { | |
31583 | (char *) "self",(char *) "menubar", NULL | |
31584 | }; | |
31585 | ||
31586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31589 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31591 | { | |
31592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31593 | (arg1)->Attach(arg2); | |
31594 | ||
31595 | wxPyEndAllowThreads(__tstate); | |
31596 | if (PyErr_Occurred()) SWIG_fail; | |
31597 | } | |
31598 | Py_INCREF(Py_None); resultobj = Py_None; | |
31599 | return resultobj; | |
31600 | fail: | |
31601 | return NULL; | |
31602 | } | |
31603 | ||
31604 | ||
c32bde28 | 31605 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31606 | PyObject *resultobj; |
31607 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31608 | PyObject * obj0 = 0 ; | |
31609 | char *kwnames[] = { | |
31610 | (char *) "self", NULL | |
31611 | }; | |
31612 | ||
31613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31616 | { | |
31617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31618 | (arg1)->Detach(); | |
31619 | ||
31620 | wxPyEndAllowThreads(__tstate); | |
31621 | if (PyErr_Occurred()) SWIG_fail; | |
31622 | } | |
31623 | Py_INCREF(Py_None); resultobj = Py_None; | |
31624 | return resultobj; | |
31625 | fail: | |
31626 | return NULL; | |
31627 | } | |
31628 | ||
31629 | ||
c32bde28 | 31630 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31631 | PyObject *resultobj; |
31632 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31633 | bool result; | |
31634 | PyObject * obj0 = 0 ; | |
31635 | char *kwnames[] = { | |
31636 | (char *) "self", NULL | |
31637 | }; | |
31638 | ||
31639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31642 | { | |
31643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31644 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31645 | ||
31646 | wxPyEndAllowThreads(__tstate); | |
31647 | if (PyErr_Occurred()) SWIG_fail; | |
31648 | } | |
31649 | { | |
31650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31651 | } | |
31652 | return resultobj; | |
31653 | fail: | |
31654 | return NULL; | |
31655 | } | |
31656 | ||
31657 | ||
c32bde28 | 31658 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31659 | PyObject *resultobj; |
31660 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31661 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31662 | PyObject * obj0 = 0 ; | |
31663 | PyObject * obj1 = 0 ; | |
31664 | char *kwnames[] = { | |
31665 | (char *) "self",(char *) "parent", NULL | |
31666 | }; | |
31667 | ||
31668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31673 | { | |
31674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31675 | (arg1)->SetParent(arg2); | |
31676 | ||
31677 | wxPyEndAllowThreads(__tstate); | |
31678 | if (PyErr_Occurred()) SWIG_fail; | |
31679 | } | |
31680 | Py_INCREF(Py_None); resultobj = Py_None; | |
31681 | return resultobj; | |
31682 | fail: | |
31683 | return NULL; | |
31684 | } | |
31685 | ||
31686 | ||
c32bde28 | 31687 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31688 | PyObject *resultobj; |
31689 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31690 | wxMenu *result; | |
31691 | PyObject * obj0 = 0 ; | |
31692 | char *kwnames[] = { | |
31693 | (char *) "self", NULL | |
31694 | }; | |
31695 | ||
31696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31699 | { | |
31700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31701 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31702 | ||
31703 | wxPyEndAllowThreads(__tstate); | |
31704 | if (PyErr_Occurred()) SWIG_fail; | |
31705 | } | |
31706 | { | |
412d302d | 31707 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31708 | } |
31709 | return resultobj; | |
31710 | fail: | |
31711 | return NULL; | |
31712 | } | |
31713 | ||
31714 | ||
c32bde28 | 31715 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31716 | PyObject *obj; |
31717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31718 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31719 | Py_INCREF(obj); | |
31720 | return Py_BuildValue((char *)""); | |
31721 | } | |
c32bde28 | 31722 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31723 | PyObject *resultobj; |
31724 | long arg1 = (long) 0 ; | |
31725 | wxMenuBar *result; | |
31726 | PyObject * obj0 = 0 ; | |
31727 | char *kwnames[] = { | |
31728 | (char *) "style", NULL | |
31729 | }; | |
31730 | ||
31731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31732 | if (obj0) { | |
c32bde28 | 31733 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31734 | if (PyErr_Occurred()) SWIG_fail; |
31735 | } | |
31736 | { | |
0439c23b | 31737 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31739 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31740 | ||
31741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31742 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31743 | } |
b0f7404b | 31744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31745 | return resultobj; |
31746 | fail: | |
31747 | return NULL; | |
31748 | } | |
31749 | ||
31750 | ||
c32bde28 | 31751 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31752 | PyObject *resultobj; |
31753 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31754 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31755 | wxString *arg3 = 0 ; | |
31756 | bool result; | |
ae8162c8 | 31757 | bool temp3 = false ; |
d55e5bfc RD |
31758 | PyObject * obj0 = 0 ; |
31759 | PyObject * obj1 = 0 ; | |
31760 | PyObject * obj2 = 0 ; | |
31761 | char *kwnames[] = { | |
31762 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31763 | }; | |
31764 | ||
31765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31768 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31770 | { | |
31771 | arg3 = wxString_in_helper(obj2); | |
31772 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31773 | temp3 = true; |
d55e5bfc RD |
31774 | } |
31775 | { | |
31776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31777 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31778 | ||
31779 | wxPyEndAllowThreads(__tstate); | |
31780 | if (PyErr_Occurred()) SWIG_fail; | |
31781 | } | |
31782 | { | |
31783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31784 | } | |
31785 | { | |
31786 | if (temp3) | |
31787 | delete arg3; | |
31788 | } | |
31789 | return resultobj; | |
31790 | fail: | |
31791 | { | |
31792 | if (temp3) | |
31793 | delete arg3; | |
31794 | } | |
31795 | return NULL; | |
31796 | } | |
31797 | ||
31798 | ||
c32bde28 | 31799 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31800 | PyObject *resultobj; |
31801 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31802 | size_t arg2 ; | |
31803 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31804 | wxString *arg4 = 0 ; | |
31805 | bool result; | |
ae8162c8 | 31806 | bool temp4 = false ; |
d55e5bfc RD |
31807 | PyObject * obj0 = 0 ; |
31808 | PyObject * obj1 = 0 ; | |
31809 | PyObject * obj2 = 0 ; | |
31810 | PyObject * obj3 = 0 ; | |
31811 | char *kwnames[] = { | |
31812 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31813 | }; | |
31814 | ||
31815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31818 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31819 | if (PyErr_Occurred()) SWIG_fail; |
31820 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31822 | { | |
31823 | arg4 = wxString_in_helper(obj3); | |
31824 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31825 | temp4 = true; |
d55e5bfc RD |
31826 | } |
31827 | { | |
31828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31829 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31830 | ||
31831 | wxPyEndAllowThreads(__tstate); | |
31832 | if (PyErr_Occurred()) SWIG_fail; | |
31833 | } | |
31834 | { | |
31835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31836 | } | |
31837 | { | |
31838 | if (temp4) | |
31839 | delete arg4; | |
31840 | } | |
31841 | return resultobj; | |
31842 | fail: | |
31843 | { | |
31844 | if (temp4) | |
31845 | delete arg4; | |
31846 | } | |
31847 | return NULL; | |
31848 | } | |
31849 | ||
31850 | ||
c32bde28 | 31851 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31852 | PyObject *resultobj; |
31853 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31854 | size_t result; | |
31855 | PyObject * obj0 = 0 ; | |
31856 | char *kwnames[] = { | |
31857 | (char *) "self", NULL | |
31858 | }; | |
31859 | ||
31860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31863 | { | |
31864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31865 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31866 | ||
31867 | wxPyEndAllowThreads(__tstate); | |
31868 | if (PyErr_Occurred()) SWIG_fail; | |
31869 | } | |
c32bde28 | 31870 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31871 | return resultobj; |
31872 | fail: | |
31873 | return NULL; | |
31874 | } | |
31875 | ||
31876 | ||
c32bde28 | 31877 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31878 | PyObject *resultobj; |
31879 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31880 | size_t arg2 ; | |
31881 | wxMenu *result; | |
31882 | PyObject * obj0 = 0 ; | |
31883 | PyObject * obj1 = 0 ; | |
31884 | char *kwnames[] = { | |
31885 | (char *) "self",(char *) "pos", NULL | |
31886 | }; | |
31887 | ||
31888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31891 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31892 | if (PyErr_Occurred()) SWIG_fail; |
31893 | { | |
31894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31895 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31896 | ||
31897 | wxPyEndAllowThreads(__tstate); | |
31898 | if (PyErr_Occurred()) SWIG_fail; | |
31899 | } | |
31900 | { | |
412d302d | 31901 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31902 | } |
31903 | return resultobj; | |
31904 | fail: | |
31905 | return NULL; | |
31906 | } | |
31907 | ||
31908 | ||
c32bde28 | 31909 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31910 | PyObject *resultobj; |
31911 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31912 | size_t arg2 ; | |
31913 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31914 | wxString *arg4 = 0 ; | |
31915 | wxMenu *result; | |
ae8162c8 | 31916 | bool temp4 = false ; |
d55e5bfc RD |
31917 | PyObject * obj0 = 0 ; |
31918 | PyObject * obj1 = 0 ; | |
31919 | PyObject * obj2 = 0 ; | |
31920 | PyObject * obj3 = 0 ; | |
31921 | char *kwnames[] = { | |
31922 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31923 | }; | |
31924 | ||
31925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31928 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31929 | if (PyErr_Occurred()) SWIG_fail; |
31930 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31932 | { | |
31933 | arg4 = wxString_in_helper(obj3); | |
31934 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31935 | temp4 = true; |
d55e5bfc RD |
31936 | } |
31937 | { | |
31938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31939 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31940 | ||
31941 | wxPyEndAllowThreads(__tstate); | |
31942 | if (PyErr_Occurred()) SWIG_fail; | |
31943 | } | |
31944 | { | |
412d302d | 31945 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31946 | } |
31947 | { | |
31948 | if (temp4) | |
31949 | delete arg4; | |
31950 | } | |
31951 | return resultobj; | |
31952 | fail: | |
31953 | { | |
31954 | if (temp4) | |
31955 | delete arg4; | |
31956 | } | |
31957 | return NULL; | |
31958 | } | |
31959 | ||
31960 | ||
c32bde28 | 31961 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31962 | PyObject *resultobj; |
31963 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31964 | size_t arg2 ; | |
31965 | wxMenu *result; | |
31966 | PyObject * obj0 = 0 ; | |
31967 | PyObject * obj1 = 0 ; | |
31968 | char *kwnames[] = { | |
31969 | (char *) "self",(char *) "pos", NULL | |
31970 | }; | |
31971 | ||
31972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31975 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31976 | if (PyErr_Occurred()) SWIG_fail; |
31977 | { | |
31978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31979 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31980 | ||
31981 | wxPyEndAllowThreads(__tstate); | |
31982 | if (PyErr_Occurred()) SWIG_fail; | |
31983 | } | |
31984 | { | |
412d302d | 31985 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31986 | } |
31987 | return resultobj; | |
31988 | fail: | |
31989 | return NULL; | |
31990 | } | |
31991 | ||
31992 | ||
c32bde28 | 31993 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31994 | PyObject *resultobj; |
31995 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31996 | size_t arg2 ; | |
31997 | bool arg3 ; | |
31998 | PyObject * obj0 = 0 ; | |
31999 | PyObject * obj1 = 0 ; | |
32000 | PyObject * obj2 = 0 ; | |
32001 | char *kwnames[] = { | |
32002 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
32003 | }; | |
32004 | ||
32005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32008 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 32009 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32010 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32011 | if (PyErr_Occurred()) SWIG_fail; |
32012 | { | |
32013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32014 | (arg1)->EnableTop(arg2,arg3); | |
32015 | ||
32016 | wxPyEndAllowThreads(__tstate); | |
32017 | if (PyErr_Occurred()) SWIG_fail; | |
32018 | } | |
32019 | Py_INCREF(Py_None); resultobj = Py_None; | |
32020 | return resultobj; | |
32021 | fail: | |
32022 | return NULL; | |
32023 | } | |
32024 | ||
32025 | ||
c32bde28 | 32026 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32027 | PyObject *resultobj; |
32028 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32029 | size_t arg2 ; | |
32030 | bool result; | |
32031 | PyObject * obj0 = 0 ; | |
32032 | PyObject * obj1 = 0 ; | |
32033 | char *kwnames[] = { | |
32034 | (char *) "self",(char *) "pos", NULL | |
32035 | }; | |
32036 | ||
32037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
32038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32040 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32041 | if (PyErr_Occurred()) SWIG_fail; |
32042 | { | |
32043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32044 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
32045 | ||
32046 | wxPyEndAllowThreads(__tstate); | |
32047 | if (PyErr_Occurred()) SWIG_fail; | |
32048 | } | |
32049 | { | |
32050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32051 | } | |
32052 | return resultobj; | |
32053 | fail: | |
32054 | return NULL; | |
32055 | } | |
32056 | ||
32057 | ||
c32bde28 | 32058 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32059 | PyObject *resultobj; |
32060 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32061 | size_t arg2 ; | |
32062 | wxString *arg3 = 0 ; | |
ae8162c8 | 32063 | bool temp3 = false ; |
d55e5bfc RD |
32064 | PyObject * obj0 = 0 ; |
32065 | PyObject * obj1 = 0 ; | |
32066 | PyObject * obj2 = 0 ; | |
32067 | char *kwnames[] = { | |
32068 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
32069 | }; | |
32070 | ||
32071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32074 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32075 | if (PyErr_Occurred()) SWIG_fail; |
32076 | { | |
32077 | arg3 = wxString_in_helper(obj2); | |
32078 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32079 | temp3 = true; |
d55e5bfc RD |
32080 | } |
32081 | { | |
32082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32083 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
32084 | ||
32085 | wxPyEndAllowThreads(__tstate); | |
32086 | if (PyErr_Occurred()) SWIG_fail; | |
32087 | } | |
32088 | Py_INCREF(Py_None); resultobj = Py_None; | |
32089 | { | |
32090 | if (temp3) | |
32091 | delete arg3; | |
32092 | } | |
32093 | return resultobj; | |
32094 | fail: | |
32095 | { | |
32096 | if (temp3) | |
32097 | delete arg3; | |
32098 | } | |
32099 | return NULL; | |
32100 | } | |
32101 | ||
32102 | ||
c32bde28 | 32103 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32104 | PyObject *resultobj; |
32105 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32106 | size_t arg2 ; | |
32107 | wxString result; | |
32108 | PyObject * obj0 = 0 ; | |
32109 | PyObject * obj1 = 0 ; | |
32110 | char *kwnames[] = { | |
32111 | (char *) "self",(char *) "pos", NULL | |
32112 | }; | |
32113 | ||
32114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
32115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32117 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32118 | if (PyErr_Occurred()) SWIG_fail; |
32119 | { | |
32120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32121 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
32122 | ||
32123 | wxPyEndAllowThreads(__tstate); | |
32124 | if (PyErr_Occurred()) SWIG_fail; | |
32125 | } | |
32126 | { | |
32127 | #if wxUSE_UNICODE | |
32128 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32129 | #else | |
32130 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32131 | #endif | |
32132 | } | |
32133 | return resultobj; | |
32134 | fail: | |
32135 | return NULL; | |
32136 | } | |
32137 | ||
32138 | ||
c32bde28 | 32139 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32140 | PyObject *resultobj; |
32141 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32142 | wxString *arg2 = 0 ; | |
32143 | wxString *arg3 = 0 ; | |
32144 | int result; | |
ae8162c8 RD |
32145 | bool temp2 = false ; |
32146 | bool temp3 = false ; | |
d55e5bfc RD |
32147 | PyObject * obj0 = 0 ; |
32148 | PyObject * obj1 = 0 ; | |
32149 | PyObject * obj2 = 0 ; | |
32150 | char *kwnames[] = { | |
32151 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
32152 | }; | |
32153 | ||
32154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32157 | { | |
32158 | arg2 = wxString_in_helper(obj1); | |
32159 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32160 | temp2 = true; |
d55e5bfc RD |
32161 | } |
32162 | { | |
32163 | arg3 = wxString_in_helper(obj2); | |
32164 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32165 | temp3 = true; |
d55e5bfc RD |
32166 | } |
32167 | { | |
32168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32169 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
32170 | ||
32171 | wxPyEndAllowThreads(__tstate); | |
32172 | if (PyErr_Occurred()) SWIG_fail; | |
32173 | } | |
c32bde28 | 32174 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32175 | { |
32176 | if (temp2) | |
32177 | delete arg2; | |
32178 | } | |
32179 | { | |
32180 | if (temp3) | |
32181 | delete arg3; | |
32182 | } | |
32183 | return resultobj; | |
32184 | fail: | |
32185 | { | |
32186 | if (temp2) | |
32187 | delete arg2; | |
32188 | } | |
32189 | { | |
32190 | if (temp3) | |
32191 | delete arg3; | |
32192 | } | |
32193 | return NULL; | |
32194 | } | |
32195 | ||
32196 | ||
c32bde28 | 32197 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32198 | PyObject *resultobj; |
32199 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32200 | int arg2 ; | |
32201 | wxMenuItem *result; | |
32202 | PyObject * obj0 = 0 ; | |
32203 | PyObject * obj1 = 0 ; | |
32204 | char *kwnames[] = { | |
32205 | (char *) "self",(char *) "id", NULL | |
32206 | }; | |
32207 | ||
32208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32211 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32212 | if (PyErr_Occurred()) SWIG_fail; |
32213 | { | |
32214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32215 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32216 | ||
32217 | wxPyEndAllowThreads(__tstate); | |
32218 | if (PyErr_Occurred()) SWIG_fail; | |
32219 | } | |
32220 | { | |
412d302d | 32221 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32222 | } |
32223 | return resultobj; | |
32224 | fail: | |
32225 | return NULL; | |
32226 | } | |
32227 | ||
32228 | ||
c32bde28 | 32229 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32230 | PyObject *resultobj; |
32231 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32232 | wxString *arg2 = 0 ; | |
32233 | int result; | |
ae8162c8 | 32234 | bool temp2 = false ; |
d55e5bfc RD |
32235 | PyObject * obj0 = 0 ; |
32236 | PyObject * obj1 = 0 ; | |
32237 | char *kwnames[] = { | |
32238 | (char *) "self",(char *) "title", NULL | |
32239 | }; | |
32240 | ||
32241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32244 | { | |
32245 | arg2 = wxString_in_helper(obj1); | |
32246 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32247 | temp2 = true; |
d55e5bfc RD |
32248 | } |
32249 | { | |
32250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32251 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32252 | ||
32253 | wxPyEndAllowThreads(__tstate); | |
32254 | if (PyErr_Occurred()) SWIG_fail; | |
32255 | } | |
c32bde28 | 32256 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32257 | { |
32258 | if (temp2) | |
32259 | delete arg2; | |
32260 | } | |
32261 | return resultobj; | |
32262 | fail: | |
32263 | { | |
32264 | if (temp2) | |
32265 | delete arg2; | |
32266 | } | |
32267 | return NULL; | |
32268 | } | |
32269 | ||
32270 | ||
c32bde28 | 32271 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32272 | PyObject *resultobj; |
32273 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32274 | int arg2 ; | |
32275 | bool arg3 ; | |
32276 | PyObject * obj0 = 0 ; | |
32277 | PyObject * obj1 = 0 ; | |
32278 | PyObject * obj2 = 0 ; | |
32279 | char *kwnames[] = { | |
32280 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32281 | }; | |
32282 | ||
32283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32287 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32288 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32289 | if (PyErr_Occurred()) SWIG_fail; |
32290 | { | |
32291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32292 | (arg1)->Enable(arg2,arg3); | |
32293 | ||
32294 | wxPyEndAllowThreads(__tstate); | |
32295 | if (PyErr_Occurred()) SWIG_fail; | |
32296 | } | |
32297 | Py_INCREF(Py_None); resultobj = Py_None; | |
32298 | return resultobj; | |
32299 | fail: | |
32300 | return NULL; | |
32301 | } | |
32302 | ||
32303 | ||
c32bde28 | 32304 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32305 | PyObject *resultobj; |
32306 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32307 | int arg2 ; | |
32308 | bool arg3 ; | |
32309 | PyObject * obj0 = 0 ; | |
32310 | PyObject * obj1 = 0 ; | |
32311 | PyObject * obj2 = 0 ; | |
32312 | char *kwnames[] = { | |
32313 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32314 | }; | |
32315 | ||
32316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32319 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32320 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32321 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32322 | if (PyErr_Occurred()) SWIG_fail; |
32323 | { | |
32324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32325 | (arg1)->Check(arg2,arg3); | |
32326 | ||
32327 | wxPyEndAllowThreads(__tstate); | |
32328 | if (PyErr_Occurred()) SWIG_fail; | |
32329 | } | |
32330 | Py_INCREF(Py_None); resultobj = Py_None; | |
32331 | return resultobj; | |
32332 | fail: | |
32333 | return NULL; | |
32334 | } | |
32335 | ||
32336 | ||
c32bde28 | 32337 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32338 | PyObject *resultobj; |
32339 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32340 | int arg2 ; | |
32341 | bool result; | |
32342 | PyObject * obj0 = 0 ; | |
32343 | PyObject * obj1 = 0 ; | |
32344 | char *kwnames[] = { | |
32345 | (char *) "self",(char *) "id", NULL | |
32346 | }; | |
32347 | ||
32348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32351 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32352 | if (PyErr_Occurred()) SWIG_fail; |
32353 | { | |
32354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32355 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32356 | ||
32357 | wxPyEndAllowThreads(__tstate); | |
32358 | if (PyErr_Occurred()) SWIG_fail; | |
32359 | } | |
32360 | { | |
32361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32362 | } | |
32363 | return resultobj; | |
32364 | fail: | |
32365 | return NULL; | |
32366 | } | |
32367 | ||
32368 | ||
c32bde28 | 32369 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32370 | PyObject *resultobj; |
32371 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32372 | int arg2 ; | |
32373 | bool result; | |
32374 | PyObject * obj0 = 0 ; | |
32375 | PyObject * obj1 = 0 ; | |
32376 | char *kwnames[] = { | |
32377 | (char *) "self",(char *) "id", NULL | |
32378 | }; | |
32379 | ||
32380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32383 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32384 | if (PyErr_Occurred()) SWIG_fail; |
32385 | { | |
32386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32387 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32388 | ||
32389 | wxPyEndAllowThreads(__tstate); | |
32390 | if (PyErr_Occurred()) SWIG_fail; | |
32391 | } | |
32392 | { | |
32393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32394 | } | |
32395 | return resultobj; | |
32396 | fail: | |
32397 | return NULL; | |
32398 | } | |
32399 | ||
32400 | ||
c32bde28 | 32401 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32402 | PyObject *resultobj; |
32403 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32404 | int arg2 ; | |
32405 | wxString *arg3 = 0 ; | |
ae8162c8 | 32406 | bool temp3 = false ; |
d55e5bfc RD |
32407 | PyObject * obj0 = 0 ; |
32408 | PyObject * obj1 = 0 ; | |
32409 | PyObject * obj2 = 0 ; | |
32410 | char *kwnames[] = { | |
32411 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32412 | }; | |
32413 | ||
32414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32417 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32418 | if (PyErr_Occurred()) SWIG_fail; |
32419 | { | |
32420 | arg3 = wxString_in_helper(obj2); | |
32421 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32422 | temp3 = true; |
d55e5bfc RD |
32423 | } |
32424 | { | |
32425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32426 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32427 | ||
32428 | wxPyEndAllowThreads(__tstate); | |
32429 | if (PyErr_Occurred()) SWIG_fail; | |
32430 | } | |
32431 | Py_INCREF(Py_None); resultobj = Py_None; | |
32432 | { | |
32433 | if (temp3) | |
32434 | delete arg3; | |
32435 | } | |
32436 | return resultobj; | |
32437 | fail: | |
32438 | { | |
32439 | if (temp3) | |
32440 | delete arg3; | |
32441 | } | |
32442 | return NULL; | |
32443 | } | |
32444 | ||
32445 | ||
c32bde28 | 32446 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32447 | PyObject *resultobj; |
32448 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32449 | int arg2 ; | |
32450 | wxString result; | |
32451 | PyObject * obj0 = 0 ; | |
32452 | PyObject * obj1 = 0 ; | |
32453 | char *kwnames[] = { | |
32454 | (char *) "self",(char *) "id", NULL | |
32455 | }; | |
32456 | ||
32457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32460 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32461 | if (PyErr_Occurred()) SWIG_fail; |
32462 | { | |
32463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32464 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32465 | ||
32466 | wxPyEndAllowThreads(__tstate); | |
32467 | if (PyErr_Occurred()) SWIG_fail; | |
32468 | } | |
32469 | { | |
32470 | #if wxUSE_UNICODE | |
32471 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32472 | #else | |
32473 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32474 | #endif | |
32475 | } | |
32476 | return resultobj; | |
32477 | fail: | |
32478 | return NULL; | |
32479 | } | |
32480 | ||
32481 | ||
c32bde28 | 32482 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32483 | PyObject *resultobj; |
32484 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32485 | int arg2 ; | |
32486 | wxString *arg3 = 0 ; | |
ae8162c8 | 32487 | bool temp3 = false ; |
d55e5bfc RD |
32488 | PyObject * obj0 = 0 ; |
32489 | PyObject * obj1 = 0 ; | |
32490 | PyObject * obj2 = 0 ; | |
32491 | char *kwnames[] = { | |
32492 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32493 | }; | |
32494 | ||
32495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32498 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32499 | if (PyErr_Occurred()) SWIG_fail; |
32500 | { | |
32501 | arg3 = wxString_in_helper(obj2); | |
32502 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32503 | temp3 = true; |
d55e5bfc RD |
32504 | } |
32505 | { | |
32506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32507 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32508 | ||
32509 | wxPyEndAllowThreads(__tstate); | |
32510 | if (PyErr_Occurred()) SWIG_fail; | |
32511 | } | |
32512 | Py_INCREF(Py_None); resultobj = Py_None; | |
32513 | { | |
32514 | if (temp3) | |
32515 | delete arg3; | |
32516 | } | |
32517 | return resultobj; | |
32518 | fail: | |
32519 | { | |
32520 | if (temp3) | |
32521 | delete arg3; | |
32522 | } | |
32523 | return NULL; | |
32524 | } | |
32525 | ||
32526 | ||
c32bde28 | 32527 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32528 | PyObject *resultobj; |
32529 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32530 | int arg2 ; | |
32531 | wxString result; | |
32532 | PyObject * obj0 = 0 ; | |
32533 | PyObject * obj1 = 0 ; | |
32534 | char *kwnames[] = { | |
32535 | (char *) "self",(char *) "id", NULL | |
32536 | }; | |
32537 | ||
32538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32541 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32542 | if (PyErr_Occurred()) SWIG_fail; |
32543 | { | |
32544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32545 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32546 | ||
32547 | wxPyEndAllowThreads(__tstate); | |
32548 | if (PyErr_Occurred()) SWIG_fail; | |
32549 | } | |
32550 | { | |
32551 | #if wxUSE_UNICODE | |
32552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32553 | #else | |
32554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32555 | #endif | |
32556 | } | |
32557 | return resultobj; | |
32558 | fail: | |
32559 | return NULL; | |
32560 | } | |
32561 | ||
32562 | ||
c32bde28 | 32563 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32564 | PyObject *resultobj; |
32565 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32566 | wxFrame *result; | |
32567 | PyObject * obj0 = 0 ; | |
32568 | char *kwnames[] = { | |
32569 | (char *) "self", NULL | |
32570 | }; | |
32571 | ||
32572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32575 | { | |
32576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32577 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32578 | ||
32579 | wxPyEndAllowThreads(__tstate); | |
32580 | if (PyErr_Occurred()) SWIG_fail; | |
32581 | } | |
32582 | { | |
412d302d | 32583 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32584 | } |
32585 | return resultobj; | |
32586 | fail: | |
32587 | return NULL; | |
32588 | } | |
32589 | ||
32590 | ||
c32bde28 | 32591 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32592 | PyObject *resultobj; |
32593 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32594 | bool result; | |
32595 | PyObject * obj0 = 0 ; | |
32596 | char *kwnames[] = { | |
32597 | (char *) "self", NULL | |
32598 | }; | |
32599 | ||
32600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32603 | { | |
32604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32605 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32606 | ||
32607 | wxPyEndAllowThreads(__tstate); | |
32608 | if (PyErr_Occurred()) SWIG_fail; | |
32609 | } | |
32610 | { | |
32611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32612 | } | |
32613 | return resultobj; | |
32614 | fail: | |
32615 | return NULL; | |
32616 | } | |
32617 | ||
32618 | ||
c32bde28 | 32619 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32620 | PyObject *resultobj; |
32621 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32622 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32623 | PyObject * obj0 = 0 ; | |
32624 | PyObject * obj1 = 0 ; | |
32625 | char *kwnames[] = { | |
32626 | (char *) "self",(char *) "frame", NULL | |
32627 | }; | |
32628 | ||
32629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32634 | { | |
32635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32636 | (arg1)->Attach(arg2); | |
32637 | ||
32638 | wxPyEndAllowThreads(__tstate); | |
32639 | if (PyErr_Occurred()) SWIG_fail; | |
32640 | } | |
32641 | Py_INCREF(Py_None); resultobj = Py_None; | |
32642 | return resultobj; | |
32643 | fail: | |
32644 | return NULL; | |
32645 | } | |
32646 | ||
32647 | ||
c32bde28 | 32648 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32649 | PyObject *resultobj; |
32650 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32651 | PyObject * obj0 = 0 ; | |
32652 | char *kwnames[] = { | |
32653 | (char *) "self", NULL | |
32654 | }; | |
32655 | ||
32656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32659 | { | |
32660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32661 | (arg1)->Detach(); | |
32662 | ||
32663 | wxPyEndAllowThreads(__tstate); | |
32664 | if (PyErr_Occurred()) SWIG_fail; | |
32665 | } | |
32666 | Py_INCREF(Py_None); resultobj = Py_None; | |
32667 | return resultobj; | |
32668 | fail: | |
32669 | return NULL; | |
32670 | } | |
32671 | ||
32672 | ||
c32bde28 | 32673 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32674 | PyObject *obj; |
32675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32676 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32677 | Py_INCREF(obj); | |
32678 | return Py_BuildValue((char *)""); | |
32679 | } | |
c32bde28 | 32680 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32681 | PyObject *resultobj; |
32682 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32683 | int arg2 = (int) wxID_ANY ; | |
32684 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32685 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32686 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32687 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32688 | int arg5 = (int) wxITEM_NORMAL ; | |
32689 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32690 | wxMenuItem *result; | |
ae8162c8 RD |
32691 | bool temp3 = false ; |
32692 | bool temp4 = false ; | |
d55e5bfc RD |
32693 | PyObject * obj0 = 0 ; |
32694 | PyObject * obj1 = 0 ; | |
32695 | PyObject * obj2 = 0 ; | |
32696 | PyObject * obj3 = 0 ; | |
32697 | PyObject * obj4 = 0 ; | |
32698 | PyObject * obj5 = 0 ; | |
32699 | char *kwnames[] = { | |
32700 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32701 | }; | |
32702 | ||
32703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32704 | if (obj0) { | |
32705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32707 | } | |
32708 | if (obj1) { | |
c32bde28 | 32709 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32710 | if (PyErr_Occurred()) SWIG_fail; |
32711 | } | |
32712 | if (obj2) { | |
32713 | { | |
32714 | arg3 = wxString_in_helper(obj2); | |
32715 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32716 | temp3 = true; |
d55e5bfc RD |
32717 | } |
32718 | } | |
32719 | if (obj3) { | |
32720 | { | |
32721 | arg4 = wxString_in_helper(obj3); | |
32722 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32723 | temp4 = true; |
d55e5bfc RD |
32724 | } |
32725 | } | |
32726 | if (obj4) { | |
c32bde28 | 32727 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32728 | if (PyErr_Occurred()) SWIG_fail; |
32729 | } | |
32730 | if (obj5) { | |
32731 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32733 | } | |
32734 | { | |
32735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32736 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32737 | ||
32738 | wxPyEndAllowThreads(__tstate); | |
32739 | if (PyErr_Occurred()) SWIG_fail; | |
32740 | } | |
32741 | { | |
412d302d | 32742 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32743 | } |
32744 | { | |
32745 | if (temp3) | |
32746 | delete arg3; | |
32747 | } | |
32748 | { | |
32749 | if (temp4) | |
32750 | delete arg4; | |
32751 | } | |
32752 | return resultobj; | |
32753 | fail: | |
32754 | { | |
32755 | if (temp3) | |
32756 | delete arg3; | |
32757 | } | |
32758 | { | |
32759 | if (temp4) | |
32760 | delete arg4; | |
32761 | } | |
32762 | return NULL; | |
32763 | } | |
32764 | ||
32765 | ||
c32bde28 | 32766 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32767 | PyObject *resultobj; |
32768 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32769 | wxMenu *result; | |
32770 | PyObject * obj0 = 0 ; | |
32771 | char *kwnames[] = { | |
32772 | (char *) "self", NULL | |
32773 | }; | |
32774 | ||
32775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32778 | { | |
32779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32780 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32781 | ||
32782 | wxPyEndAllowThreads(__tstate); | |
32783 | if (PyErr_Occurred()) SWIG_fail; | |
32784 | } | |
32785 | { | |
412d302d | 32786 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32787 | } |
32788 | return resultobj; | |
32789 | fail: | |
32790 | return NULL; | |
32791 | } | |
32792 | ||
32793 | ||
c32bde28 | 32794 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32795 | PyObject *resultobj; |
32796 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32797 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32798 | PyObject * obj0 = 0 ; | |
32799 | PyObject * obj1 = 0 ; | |
32800 | char *kwnames[] = { | |
32801 | (char *) "self",(char *) "menu", NULL | |
32802 | }; | |
32803 | ||
32804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32809 | { | |
32810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32811 | (arg1)->SetMenu(arg2); | |
32812 | ||
32813 | wxPyEndAllowThreads(__tstate); | |
32814 | if (PyErr_Occurred()) SWIG_fail; | |
32815 | } | |
32816 | Py_INCREF(Py_None); resultobj = Py_None; | |
32817 | return resultobj; | |
32818 | fail: | |
32819 | return NULL; | |
32820 | } | |
32821 | ||
32822 | ||
c32bde28 | 32823 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32824 | PyObject *resultobj; |
32825 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32826 | int arg2 ; | |
32827 | PyObject * obj0 = 0 ; | |
32828 | PyObject * obj1 = 0 ; | |
32829 | char *kwnames[] = { | |
32830 | (char *) "self",(char *) "id", NULL | |
32831 | }; | |
32832 | ||
32833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32836 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32837 | if (PyErr_Occurred()) SWIG_fail; |
32838 | { | |
32839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32840 | (arg1)->SetId(arg2); | |
32841 | ||
32842 | wxPyEndAllowThreads(__tstate); | |
32843 | if (PyErr_Occurred()) SWIG_fail; | |
32844 | } | |
32845 | Py_INCREF(Py_None); resultobj = Py_None; | |
32846 | return resultobj; | |
32847 | fail: | |
32848 | return NULL; | |
32849 | } | |
32850 | ||
32851 | ||
c32bde28 | 32852 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32853 | PyObject *resultobj; |
32854 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32855 | int result; | |
32856 | PyObject * obj0 = 0 ; | |
32857 | char *kwnames[] = { | |
32858 | (char *) "self", NULL | |
32859 | }; | |
32860 | ||
32861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32864 | { | |
32865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32866 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32867 | ||
32868 | wxPyEndAllowThreads(__tstate); | |
32869 | if (PyErr_Occurred()) SWIG_fail; | |
32870 | } | |
c32bde28 | 32871 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32872 | return resultobj; |
32873 | fail: | |
32874 | return NULL; | |
32875 | } | |
32876 | ||
32877 | ||
c32bde28 | 32878 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32879 | PyObject *resultobj; |
32880 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32881 | bool result; | |
32882 | PyObject * obj0 = 0 ; | |
32883 | char *kwnames[] = { | |
32884 | (char *) "self", NULL | |
32885 | }; | |
32886 | ||
32887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
32888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32890 | { | |
32891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32892 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32893 | ||
32894 | wxPyEndAllowThreads(__tstate); | |
32895 | if (PyErr_Occurred()) SWIG_fail; | |
32896 | } | |
32897 | { | |
32898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32899 | } | |
32900 | return resultobj; | |
32901 | fail: | |
32902 | return NULL; | |
32903 | } | |
32904 | ||
32905 | ||
c32bde28 | 32906 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32907 | PyObject *resultobj; |
32908 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32909 | wxString *arg2 = 0 ; | |
ae8162c8 | 32910 | bool temp2 = false ; |
d55e5bfc RD |
32911 | PyObject * obj0 = 0 ; |
32912 | PyObject * obj1 = 0 ; | |
32913 | char *kwnames[] = { | |
32914 | (char *) "self",(char *) "str", NULL | |
32915 | }; | |
32916 | ||
32917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
32918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32920 | { | |
32921 | arg2 = wxString_in_helper(obj1); | |
32922 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32923 | temp2 = true; |
d55e5bfc RD |
32924 | } |
32925 | { | |
32926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32927 | (arg1)->SetText((wxString const &)*arg2); | |
32928 | ||
32929 | wxPyEndAllowThreads(__tstate); | |
32930 | if (PyErr_Occurred()) SWIG_fail; | |
32931 | } | |
32932 | Py_INCREF(Py_None); resultobj = Py_None; | |
32933 | { | |
32934 | if (temp2) | |
32935 | delete arg2; | |
32936 | } | |
32937 | return resultobj; | |
32938 | fail: | |
32939 | { | |
32940 | if (temp2) | |
32941 | delete arg2; | |
32942 | } | |
32943 | return NULL; | |
32944 | } | |
32945 | ||
32946 | ||
c32bde28 | 32947 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32948 | PyObject *resultobj; |
32949 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32950 | wxString result; | |
32951 | PyObject * obj0 = 0 ; | |
32952 | char *kwnames[] = { | |
32953 | (char *) "self", NULL | |
32954 | }; | |
32955 | ||
32956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
32957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32959 | { | |
32960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32961 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32962 | ||
32963 | wxPyEndAllowThreads(__tstate); | |
32964 | if (PyErr_Occurred()) SWIG_fail; | |
32965 | } | |
32966 | { | |
32967 | #if wxUSE_UNICODE | |
32968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32969 | #else | |
32970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32971 | #endif | |
32972 | } | |
32973 | return resultobj; | |
32974 | fail: | |
32975 | return NULL; | |
32976 | } | |
32977 | ||
32978 | ||
c32bde28 | 32979 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32980 | PyObject *resultobj; |
32981 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32982 | wxString *result; | |
32983 | PyObject * obj0 = 0 ; | |
32984 | char *kwnames[] = { | |
32985 | (char *) "self", NULL | |
32986 | }; | |
32987 | ||
32988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
32989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32991 | { | |
32992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32993 | { | |
32994 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32995 | result = (wxString *) &_result_ref; | |
32996 | } | |
32997 | ||
32998 | wxPyEndAllowThreads(__tstate); | |
32999 | if (PyErr_Occurred()) SWIG_fail; | |
33000 | } | |
33001 | { | |
33002 | #if wxUSE_UNICODE | |
33003 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33004 | #else | |
33005 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33006 | #endif | |
33007 | } | |
33008 | return resultobj; | |
33009 | fail: | |
33010 | return NULL; | |
33011 | } | |
33012 | ||
33013 | ||
c32bde28 | 33014 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33015 | PyObject *resultobj; |
33016 | wxString *arg1 = 0 ; | |
33017 | wxString result; | |
ae8162c8 | 33018 | bool temp1 = false ; |
d55e5bfc RD |
33019 | PyObject * obj0 = 0 ; |
33020 | char *kwnames[] = { | |
33021 | (char *) "text", NULL | |
33022 | }; | |
33023 | ||
33024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
33025 | { | |
33026 | arg1 = wxString_in_helper(obj0); | |
33027 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 33028 | temp1 = true; |
d55e5bfc RD |
33029 | } |
33030 | { | |
33031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33032 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
33033 | ||
33034 | wxPyEndAllowThreads(__tstate); | |
33035 | if (PyErr_Occurred()) SWIG_fail; | |
33036 | } | |
33037 | { | |
33038 | #if wxUSE_UNICODE | |
33039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33040 | #else | |
33041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33042 | #endif | |
33043 | } | |
33044 | { | |
33045 | if (temp1) | |
33046 | delete arg1; | |
33047 | } | |
33048 | return resultobj; | |
33049 | fail: | |
33050 | { | |
33051 | if (temp1) | |
33052 | delete arg1; | |
33053 | } | |
33054 | return NULL; | |
33055 | } | |
33056 | ||
33057 | ||
c32bde28 | 33058 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33059 | PyObject *resultobj; |
33060 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33061 | int result; | |
33062 | PyObject * obj0 = 0 ; | |
33063 | char *kwnames[] = { | |
33064 | (char *) "self", NULL | |
33065 | }; | |
33066 | ||
33067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
33068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33070 | { | |
33071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33072 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
33073 | ||
33074 | wxPyEndAllowThreads(__tstate); | |
33075 | if (PyErr_Occurred()) SWIG_fail; | |
33076 | } | |
c32bde28 | 33077 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33078 | return resultobj; |
33079 | fail: | |
33080 | return NULL; | |
33081 | } | |
33082 | ||
33083 | ||
c32bde28 | 33084 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33085 | PyObject *resultobj; |
33086 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33087 | int arg2 ; | |
33088 | PyObject * obj0 = 0 ; | |
33089 | PyObject * obj1 = 0 ; | |
33090 | char *kwnames[] = { | |
33091 | (char *) "self",(char *) "kind", NULL | |
33092 | }; | |
33093 | ||
33094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
33095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33097 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33098 | if (PyErr_Occurred()) SWIG_fail; |
33099 | { | |
33100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33101 | (arg1)->SetKind((wxItemKind )arg2); | |
33102 | ||
33103 | wxPyEndAllowThreads(__tstate); | |
33104 | if (PyErr_Occurred()) SWIG_fail; | |
33105 | } | |
33106 | Py_INCREF(Py_None); resultobj = Py_None; | |
33107 | return resultobj; | |
33108 | fail: | |
33109 | return NULL; | |
33110 | } | |
33111 | ||
33112 | ||
c32bde28 | 33113 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33114 | PyObject *resultobj; |
33115 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33116 | bool arg2 ; | |
33117 | PyObject * obj0 = 0 ; | |
33118 | PyObject * obj1 = 0 ; | |
33119 | char *kwnames[] = { | |
33120 | (char *) "self",(char *) "checkable", NULL | |
33121 | }; | |
33122 | ||
33123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
33124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33126 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33127 | if (PyErr_Occurred()) SWIG_fail; |
33128 | { | |
33129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33130 | (arg1)->SetCheckable(arg2); | |
33131 | ||
33132 | wxPyEndAllowThreads(__tstate); | |
33133 | if (PyErr_Occurred()) SWIG_fail; | |
33134 | } | |
33135 | Py_INCREF(Py_None); resultobj = Py_None; | |
33136 | return resultobj; | |
33137 | fail: | |
33138 | return NULL; | |
33139 | } | |
33140 | ||
33141 | ||
c32bde28 | 33142 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33143 | PyObject *resultobj; |
33144 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33145 | bool result; | |
33146 | PyObject * obj0 = 0 ; | |
33147 | char *kwnames[] = { | |
33148 | (char *) "self", NULL | |
33149 | }; | |
33150 | ||
33151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
33152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33154 | { | |
33155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33156 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
33157 | ||
33158 | wxPyEndAllowThreads(__tstate); | |
33159 | if (PyErr_Occurred()) SWIG_fail; | |
33160 | } | |
33161 | { | |
33162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33163 | } | |
33164 | return resultobj; | |
33165 | fail: | |
33166 | return NULL; | |
33167 | } | |
33168 | ||
33169 | ||
c32bde28 | 33170 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33171 | PyObject *resultobj; |
33172 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33173 | bool result; | |
33174 | PyObject * obj0 = 0 ; | |
33175 | char *kwnames[] = { | |
33176 | (char *) "self", NULL | |
33177 | }; | |
33178 | ||
33179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
33180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33182 | { | |
33183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33184 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
33185 | ||
33186 | wxPyEndAllowThreads(__tstate); | |
33187 | if (PyErr_Occurred()) SWIG_fail; | |
33188 | } | |
33189 | { | |
33190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33191 | } | |
33192 | return resultobj; | |
33193 | fail: | |
33194 | return NULL; | |
33195 | } | |
33196 | ||
33197 | ||
c32bde28 | 33198 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33199 | PyObject *resultobj; |
33200 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33201 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33202 | PyObject * obj0 = 0 ; | |
33203 | PyObject * obj1 = 0 ; | |
33204 | char *kwnames[] = { | |
33205 | (char *) "self",(char *) "menu", NULL | |
33206 | }; | |
33207 | ||
33208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33213 | { | |
33214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33215 | (arg1)->SetSubMenu(arg2); | |
33216 | ||
33217 | wxPyEndAllowThreads(__tstate); | |
33218 | if (PyErr_Occurred()) SWIG_fail; | |
33219 | } | |
33220 | Py_INCREF(Py_None); resultobj = Py_None; | |
33221 | return resultobj; | |
33222 | fail: | |
33223 | return NULL; | |
33224 | } | |
33225 | ||
33226 | ||
c32bde28 | 33227 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33228 | PyObject *resultobj; |
33229 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33230 | wxMenu *result; | |
33231 | PyObject * obj0 = 0 ; | |
33232 | char *kwnames[] = { | |
33233 | (char *) "self", NULL | |
33234 | }; | |
33235 | ||
33236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33239 | { | |
33240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33241 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33242 | ||
33243 | wxPyEndAllowThreads(__tstate); | |
33244 | if (PyErr_Occurred()) SWIG_fail; | |
33245 | } | |
33246 | { | |
412d302d | 33247 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33248 | } |
33249 | return resultobj; | |
33250 | fail: | |
33251 | return NULL; | |
33252 | } | |
33253 | ||
33254 | ||
c32bde28 | 33255 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33256 | PyObject *resultobj; |
33257 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33258 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33259 | PyObject * obj0 = 0 ; |
33260 | PyObject * obj1 = 0 ; | |
33261 | char *kwnames[] = { | |
33262 | (char *) "self",(char *) "enable", NULL | |
33263 | }; | |
33264 | ||
33265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33268 | if (obj1) { | |
c32bde28 | 33269 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33270 | if (PyErr_Occurred()) SWIG_fail; |
33271 | } | |
33272 | { | |
33273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33274 | (arg1)->Enable(arg2); | |
33275 | ||
33276 | wxPyEndAllowThreads(__tstate); | |
33277 | if (PyErr_Occurred()) SWIG_fail; | |
33278 | } | |
33279 | Py_INCREF(Py_None); resultobj = Py_None; | |
33280 | return resultobj; | |
33281 | fail: | |
33282 | return NULL; | |
33283 | } | |
33284 | ||
33285 | ||
c32bde28 | 33286 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33287 | PyObject *resultobj; |
33288 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33289 | bool result; | |
33290 | PyObject * obj0 = 0 ; | |
33291 | char *kwnames[] = { | |
33292 | (char *) "self", NULL | |
33293 | }; | |
33294 | ||
33295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33298 | { | |
33299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33300 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33301 | ||
33302 | wxPyEndAllowThreads(__tstate); | |
33303 | if (PyErr_Occurred()) SWIG_fail; | |
33304 | } | |
33305 | { | |
33306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33307 | } | |
33308 | return resultobj; | |
33309 | fail: | |
33310 | return NULL; | |
33311 | } | |
33312 | ||
33313 | ||
c32bde28 | 33314 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33315 | PyObject *resultobj; |
33316 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33317 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33318 | PyObject * obj0 = 0 ; |
33319 | PyObject * obj1 = 0 ; | |
33320 | char *kwnames[] = { | |
33321 | (char *) "self",(char *) "check", NULL | |
33322 | }; | |
33323 | ||
33324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33327 | if (obj1) { | |
c32bde28 | 33328 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33329 | if (PyErr_Occurred()) SWIG_fail; |
33330 | } | |
33331 | { | |
33332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33333 | (arg1)->Check(arg2); | |
33334 | ||
33335 | wxPyEndAllowThreads(__tstate); | |
33336 | if (PyErr_Occurred()) SWIG_fail; | |
33337 | } | |
33338 | Py_INCREF(Py_None); resultobj = Py_None; | |
33339 | return resultobj; | |
33340 | fail: | |
33341 | return NULL; | |
33342 | } | |
33343 | ||
33344 | ||
c32bde28 | 33345 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33346 | PyObject *resultobj; |
33347 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33348 | bool result; | |
33349 | PyObject * obj0 = 0 ; | |
33350 | char *kwnames[] = { | |
33351 | (char *) "self", NULL | |
33352 | }; | |
33353 | ||
33354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33357 | { | |
33358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33359 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33360 | ||
33361 | wxPyEndAllowThreads(__tstate); | |
33362 | if (PyErr_Occurred()) SWIG_fail; | |
33363 | } | |
33364 | { | |
33365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33366 | } | |
33367 | return resultobj; | |
33368 | fail: | |
33369 | return NULL; | |
33370 | } | |
33371 | ||
33372 | ||
c32bde28 | 33373 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33374 | PyObject *resultobj; |
33375 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33376 | PyObject * obj0 = 0 ; | |
33377 | char *kwnames[] = { | |
33378 | (char *) "self", NULL | |
33379 | }; | |
33380 | ||
33381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33384 | { | |
33385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33386 | (arg1)->Toggle(); | |
33387 | ||
33388 | wxPyEndAllowThreads(__tstate); | |
33389 | if (PyErr_Occurred()) SWIG_fail; | |
33390 | } | |
33391 | Py_INCREF(Py_None); resultobj = Py_None; | |
33392 | return resultobj; | |
33393 | fail: | |
33394 | return NULL; | |
33395 | } | |
33396 | ||
33397 | ||
c32bde28 | 33398 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33399 | PyObject *resultobj; |
33400 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33401 | wxString *arg2 = 0 ; | |
ae8162c8 | 33402 | bool temp2 = false ; |
d55e5bfc RD |
33403 | PyObject * obj0 = 0 ; |
33404 | PyObject * obj1 = 0 ; | |
33405 | char *kwnames[] = { | |
33406 | (char *) "self",(char *) "str", NULL | |
33407 | }; | |
33408 | ||
33409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33412 | { | |
33413 | arg2 = wxString_in_helper(obj1); | |
33414 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33415 | temp2 = true; |
d55e5bfc RD |
33416 | } |
33417 | { | |
33418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33419 | (arg1)->SetHelp((wxString const &)*arg2); | |
33420 | ||
33421 | wxPyEndAllowThreads(__tstate); | |
33422 | if (PyErr_Occurred()) SWIG_fail; | |
33423 | } | |
33424 | Py_INCREF(Py_None); resultobj = Py_None; | |
33425 | { | |
33426 | if (temp2) | |
33427 | delete arg2; | |
33428 | } | |
33429 | return resultobj; | |
33430 | fail: | |
33431 | { | |
33432 | if (temp2) | |
33433 | delete arg2; | |
33434 | } | |
33435 | return NULL; | |
33436 | } | |
33437 | ||
33438 | ||
c32bde28 | 33439 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33440 | PyObject *resultobj; |
33441 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33442 | wxString *result; | |
33443 | PyObject * obj0 = 0 ; | |
33444 | char *kwnames[] = { | |
33445 | (char *) "self", NULL | |
33446 | }; | |
33447 | ||
33448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33451 | { | |
33452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33453 | { | |
33454 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33455 | result = (wxString *) &_result_ref; | |
33456 | } | |
33457 | ||
33458 | wxPyEndAllowThreads(__tstate); | |
33459 | if (PyErr_Occurred()) SWIG_fail; | |
33460 | } | |
33461 | { | |
33462 | #if wxUSE_UNICODE | |
33463 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33464 | #else | |
33465 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33466 | #endif | |
33467 | } | |
33468 | return resultobj; | |
33469 | fail: | |
33470 | return NULL; | |
33471 | } | |
33472 | ||
33473 | ||
c32bde28 | 33474 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33475 | PyObject *resultobj; |
33476 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33477 | wxAcceleratorEntry *result; | |
33478 | PyObject * obj0 = 0 ; | |
33479 | char *kwnames[] = { | |
33480 | (char *) "self", NULL | |
33481 | }; | |
33482 | ||
33483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33486 | { | |
33487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33488 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33489 | ||
33490 | wxPyEndAllowThreads(__tstate); | |
33491 | if (PyErr_Occurred()) SWIG_fail; | |
33492 | } | |
33493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33494 | return resultobj; | |
33495 | fail: | |
33496 | return NULL; | |
33497 | } | |
33498 | ||
33499 | ||
c32bde28 | 33500 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33501 | PyObject *resultobj; |
33502 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33503 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33504 | PyObject * obj0 = 0 ; | |
33505 | PyObject * obj1 = 0 ; | |
33506 | char *kwnames[] = { | |
33507 | (char *) "self",(char *) "accel", NULL | |
33508 | }; | |
33509 | ||
33510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33515 | { | |
33516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33517 | (arg1)->SetAccel(arg2); | |
33518 | ||
33519 | wxPyEndAllowThreads(__tstate); | |
33520 | if (PyErr_Occurred()) SWIG_fail; | |
33521 | } | |
33522 | Py_INCREF(Py_None); resultobj = Py_None; | |
33523 | return resultobj; | |
33524 | fail: | |
33525 | return NULL; | |
33526 | } | |
33527 | ||
33528 | ||
c32bde28 | 33529 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33530 | PyObject *resultobj; |
33531 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33532 | wxFont *arg2 = 0 ; | |
33533 | PyObject * obj0 = 0 ; | |
33534 | PyObject * obj1 = 0 ; | |
33535 | char *kwnames[] = { | |
33536 | (char *) "self",(char *) "font", NULL | |
33537 | }; | |
33538 | ||
33539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
33540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33542 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
33543 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33544 | SWIG_fail; | |
33545 | if (arg2 == NULL) { | |
33546 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33547 | SWIG_fail; | |
33548 | } | |
33549 | { | |
33550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33551 | (arg1)->SetFont((wxFont const &)*arg2); | |
33552 | ||
33553 | wxPyEndAllowThreads(__tstate); | |
33554 | if (PyErr_Occurred()) SWIG_fail; | |
33555 | } | |
33556 | Py_INCREF(Py_None); resultobj = Py_None; | |
33557 | return resultobj; | |
33558 | fail: | |
33559 | return NULL; | |
33560 | } | |
33561 | ||
33562 | ||
c32bde28 | 33563 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33564 | PyObject *resultobj; |
33565 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33566 | wxFont result; | |
33567 | PyObject * obj0 = 0 ; | |
33568 | char *kwnames[] = { | |
33569 | (char *) "self", NULL | |
33570 | }; | |
33571 | ||
33572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
33573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33575 | { | |
33576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33577 | result = (arg1)->GetFont(); | |
33578 | ||
33579 | wxPyEndAllowThreads(__tstate); | |
33580 | if (PyErr_Occurred()) SWIG_fail; | |
33581 | } | |
33582 | { | |
33583 | wxFont * resultptr; | |
33584 | resultptr = new wxFont((wxFont &) result); | |
33585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
33586 | } | |
33587 | return resultobj; | |
33588 | fail: | |
33589 | return NULL; | |
33590 | } | |
33591 | ||
33592 | ||
c32bde28 | 33593 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33594 | PyObject *resultobj; |
33595 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33596 | wxColour *arg2 = 0 ; | |
33597 | wxColour temp2 ; | |
33598 | PyObject * obj0 = 0 ; | |
33599 | PyObject * obj1 = 0 ; | |
33600 | char *kwnames[] = { | |
33601 | (char *) "self",(char *) "colText", NULL | |
33602 | }; | |
33603 | ||
33604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
33605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33607 | { | |
33608 | arg2 = &temp2; | |
33609 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33610 | } | |
33611 | { | |
33612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33613 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
33614 | ||
33615 | wxPyEndAllowThreads(__tstate); | |
33616 | if (PyErr_Occurred()) SWIG_fail; | |
33617 | } | |
33618 | Py_INCREF(Py_None); resultobj = Py_None; | |
33619 | return resultobj; | |
33620 | fail: | |
33621 | return NULL; | |
33622 | } | |
33623 | ||
33624 | ||
c32bde28 | 33625 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33626 | PyObject *resultobj; |
33627 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33628 | wxColour result; | |
33629 | PyObject * obj0 = 0 ; | |
33630 | char *kwnames[] = { | |
33631 | (char *) "self", NULL | |
33632 | }; | |
33633 | ||
33634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
33635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33637 | { | |
33638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33639 | result = (arg1)->GetTextColour(); | |
33640 | ||
33641 | wxPyEndAllowThreads(__tstate); | |
33642 | if (PyErr_Occurred()) SWIG_fail; | |
33643 | } | |
33644 | { | |
33645 | wxColour * resultptr; | |
33646 | resultptr = new wxColour((wxColour &) result); | |
33647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33648 | } | |
33649 | return resultobj; | |
33650 | fail: | |
33651 | return NULL; | |
33652 | } | |
33653 | ||
33654 | ||
c32bde28 | 33655 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33656 | PyObject *resultobj; |
33657 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33658 | wxColour *arg2 = 0 ; | |
33659 | wxColour temp2 ; | |
33660 | PyObject * obj0 = 0 ; | |
33661 | PyObject * obj1 = 0 ; | |
33662 | char *kwnames[] = { | |
33663 | (char *) "self",(char *) "colBack", NULL | |
33664 | }; | |
33665 | ||
33666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
33667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33669 | { | |
33670 | arg2 = &temp2; | |
33671 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33672 | } | |
33673 | { | |
33674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33675 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
33676 | ||
33677 | wxPyEndAllowThreads(__tstate); | |
33678 | if (PyErr_Occurred()) SWIG_fail; | |
33679 | } | |
33680 | Py_INCREF(Py_None); resultobj = Py_None; | |
33681 | return resultobj; | |
33682 | fail: | |
33683 | return NULL; | |
33684 | } | |
33685 | ||
33686 | ||
c32bde28 | 33687 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33688 | PyObject *resultobj; |
33689 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33690 | wxColour result; | |
33691 | PyObject * obj0 = 0 ; | |
33692 | char *kwnames[] = { | |
33693 | (char *) "self", NULL | |
33694 | }; | |
33695 | ||
33696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
33697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33699 | { | |
33700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33701 | result = (arg1)->GetBackgroundColour(); | |
33702 | ||
33703 | wxPyEndAllowThreads(__tstate); | |
33704 | if (PyErr_Occurred()) SWIG_fail; | |
33705 | } | |
33706 | { | |
33707 | wxColour * resultptr; | |
33708 | resultptr = new wxColour((wxColour &) result); | |
33709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33710 | } | |
33711 | return resultobj; | |
33712 | fail: | |
33713 | return NULL; | |
33714 | } | |
33715 | ||
33716 | ||
c32bde28 | 33717 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33718 | PyObject *resultobj; |
33719 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33720 | wxBitmap *arg2 = 0 ; | |
33721 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
33722 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
33723 | PyObject * obj0 = 0 ; | |
33724 | PyObject * obj1 = 0 ; | |
33725 | PyObject * obj2 = 0 ; | |
33726 | char *kwnames[] = { | |
33727 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
33728 | }; | |
33729 | ||
33730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33734 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33735 | SWIG_fail; | |
33736 | if (arg2 == NULL) { | |
33737 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33738 | SWIG_fail; | |
33739 | } | |
33740 | if (obj2) { | |
33741 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
33742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33743 | SWIG_fail; | |
33744 | if (arg3 == NULL) { | |
33745 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33746 | SWIG_fail; | |
33747 | } | |
33748 | } | |
33749 | { | |
33750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33751 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
33752 | ||
33753 | wxPyEndAllowThreads(__tstate); | |
33754 | if (PyErr_Occurred()) SWIG_fail; | |
33755 | } | |
33756 | Py_INCREF(Py_None); resultobj = Py_None; | |
33757 | return resultobj; | |
33758 | fail: | |
33759 | return NULL; | |
33760 | } | |
33761 | ||
33762 | ||
c32bde28 | 33763 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33764 | PyObject *resultobj; |
33765 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33766 | wxBitmap *arg2 = 0 ; | |
33767 | PyObject * obj0 = 0 ; | |
33768 | PyObject * obj1 = 0 ; | |
33769 | char *kwnames[] = { | |
33770 | (char *) "self",(char *) "bmpDisabled", NULL | |
33771 | }; | |
33772 | ||
33773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33777 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33778 | SWIG_fail; | |
33779 | if (arg2 == NULL) { | |
33780 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33781 | SWIG_fail; | |
33782 | } | |
33783 | { | |
33784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33785 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
33786 | ||
33787 | wxPyEndAllowThreads(__tstate); | |
33788 | if (PyErr_Occurred()) SWIG_fail; | |
33789 | } | |
33790 | Py_INCREF(Py_None); resultobj = Py_None; | |
33791 | return resultobj; | |
33792 | fail: | |
33793 | return NULL; | |
33794 | } | |
33795 | ||
33796 | ||
c32bde28 | 33797 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33798 | PyObject *resultobj; |
33799 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33800 | wxBitmap *result; | |
33801 | PyObject * obj0 = 0 ; | |
33802 | char *kwnames[] = { | |
33803 | (char *) "self", NULL | |
33804 | }; | |
33805 | ||
33806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
33807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33809 | { | |
33810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33811 | { | |
33812 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
33813 | result = (wxBitmap *) &_result_ref; | |
33814 | } | |
33815 | ||
33816 | wxPyEndAllowThreads(__tstate); | |
33817 | if (PyErr_Occurred()) SWIG_fail; | |
33818 | } | |
33819 | { | |
33820 | wxBitmap* resultptr = new wxBitmap(*result); | |
33821 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33822 | } | |
33823 | return resultobj; | |
33824 | fail: | |
33825 | return NULL; | |
33826 | } | |
33827 | ||
33828 | ||
c32bde28 | 33829 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33830 | PyObject *resultobj; |
33831 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33832 | int arg2 ; | |
33833 | PyObject * obj0 = 0 ; | |
33834 | PyObject * obj1 = 0 ; | |
33835 | char *kwnames[] = { | |
33836 | (char *) "self",(char *) "nWidth", NULL | |
33837 | }; | |
33838 | ||
33839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
33840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33842 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33843 | if (PyErr_Occurred()) SWIG_fail; |
33844 | { | |
33845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33846 | (arg1)->SetMarginWidth(arg2); | |
33847 | ||
33848 | wxPyEndAllowThreads(__tstate); | |
33849 | if (PyErr_Occurred()) SWIG_fail; | |
33850 | } | |
33851 | Py_INCREF(Py_None); resultobj = Py_None; | |
33852 | return resultobj; | |
33853 | fail: | |
33854 | return NULL; | |
33855 | } | |
33856 | ||
33857 | ||
c32bde28 | 33858 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33859 | PyObject *resultobj; |
33860 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33861 | int result; | |
33862 | PyObject * obj0 = 0 ; | |
33863 | char *kwnames[] = { | |
33864 | (char *) "self", NULL | |
33865 | }; | |
33866 | ||
33867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
33868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33870 | { | |
33871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33872 | result = (int)(arg1)->GetMarginWidth(); | |
33873 | ||
33874 | wxPyEndAllowThreads(__tstate); | |
33875 | if (PyErr_Occurred()) SWIG_fail; | |
33876 | } | |
c32bde28 | 33877 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33878 | return resultobj; |
33879 | fail: | |
33880 | return NULL; | |
33881 | } | |
33882 | ||
33883 | ||
c32bde28 | 33884 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33885 | PyObject *resultobj; |
33886 | int result; | |
33887 | char *kwnames[] = { | |
33888 | NULL | |
33889 | }; | |
33890 | ||
33891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33892 | { | |
33893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33894 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
33895 | ||
33896 | wxPyEndAllowThreads(__tstate); | |
33897 | if (PyErr_Occurred()) SWIG_fail; | |
33898 | } | |
c32bde28 | 33899 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33900 | return resultobj; |
33901 | fail: | |
33902 | return NULL; | |
33903 | } | |
33904 | ||
33905 | ||
c32bde28 | 33906 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33907 | PyObject *resultobj; |
33908 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33909 | bool result; | |
33910 | PyObject * obj0 = 0 ; | |
33911 | char *kwnames[] = { | |
33912 | (char *) "self", NULL | |
33913 | }; | |
33914 | ||
33915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
33916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33918 | { | |
33919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33920 | result = (bool)(arg1)->IsOwnerDrawn(); | |
33921 | ||
33922 | wxPyEndAllowThreads(__tstate); | |
33923 | if (PyErr_Occurred()) SWIG_fail; | |
33924 | } | |
33925 | { | |
33926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33927 | } | |
33928 | return resultobj; | |
33929 | fail: | |
33930 | return NULL; | |
33931 | } | |
33932 | ||
33933 | ||
c32bde28 | 33934 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33935 | PyObject *resultobj; |
33936 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33937 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33938 | PyObject * obj0 = 0 ; |
33939 | PyObject * obj1 = 0 ; | |
33940 | char *kwnames[] = { | |
33941 | (char *) "self",(char *) "ownerDrawn", NULL | |
33942 | }; | |
33943 | ||
33944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
33945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33947 | if (obj1) { | |
c32bde28 | 33948 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33949 | if (PyErr_Occurred()) SWIG_fail; |
33950 | } | |
33951 | { | |
33952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33953 | (arg1)->SetOwnerDrawn(arg2); | |
33954 | ||
33955 | wxPyEndAllowThreads(__tstate); | |
33956 | if (PyErr_Occurred()) SWIG_fail; | |
33957 | } | |
33958 | Py_INCREF(Py_None); resultobj = Py_None; | |
33959 | return resultobj; | |
33960 | fail: | |
33961 | return NULL; | |
33962 | } | |
33963 | ||
33964 | ||
c32bde28 | 33965 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33966 | PyObject *resultobj; |
33967 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33968 | PyObject * obj0 = 0 ; | |
33969 | char *kwnames[] = { | |
33970 | (char *) "self", NULL | |
33971 | }; | |
33972 | ||
33973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
33974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33976 | { | |
33977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33978 | (arg1)->ResetOwnerDrawn(); | |
33979 | ||
33980 | wxPyEndAllowThreads(__tstate); | |
33981 | if (PyErr_Occurred()) SWIG_fail; | |
33982 | } | |
33983 | Py_INCREF(Py_None); resultobj = Py_None; | |
33984 | return resultobj; | |
33985 | fail: | |
33986 | return NULL; | |
33987 | } | |
33988 | ||
33989 | ||
c32bde28 | 33990 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33991 | PyObject *resultobj; |
33992 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33993 | wxBitmap *arg2 = 0 ; | |
33994 | PyObject * obj0 = 0 ; | |
33995 | PyObject * obj1 = 0 ; | |
33996 | char *kwnames[] = { | |
33997 | (char *) "self",(char *) "bitmap", NULL | |
33998 | }; | |
33999 | ||
34000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
34001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
34004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34005 | SWIG_fail; | |
34006 | if (arg2 == NULL) { | |
34007 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34008 | SWIG_fail; | |
34009 | } | |
34010 | { | |
34011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34012 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
34013 | ||
34014 | wxPyEndAllowThreads(__tstate); | |
34015 | if (PyErr_Occurred()) SWIG_fail; | |
34016 | } | |
34017 | Py_INCREF(Py_None); resultobj = Py_None; | |
34018 | return resultobj; | |
34019 | fail: | |
34020 | return NULL; | |
34021 | } | |
34022 | ||
34023 | ||
c32bde28 | 34024 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34025 | PyObject *resultobj; |
34026 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34027 | wxBitmap *result; | |
34028 | PyObject * obj0 = 0 ; | |
34029 | char *kwnames[] = { | |
34030 | (char *) "self", NULL | |
34031 | }; | |
34032 | ||
34033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
34034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34036 | { | |
34037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34038 | { | |
34039 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
34040 | result = (wxBitmap *) &_result_ref; | |
34041 | } | |
34042 | ||
34043 | wxPyEndAllowThreads(__tstate); | |
34044 | if (PyErr_Occurred()) SWIG_fail; | |
34045 | } | |
34046 | { | |
34047 | wxBitmap* resultptr = new wxBitmap(*result); | |
34048 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
34049 | } | |
34050 | return resultobj; | |
34051 | fail: | |
34052 | return NULL; | |
34053 | } | |
34054 | ||
34055 | ||
c32bde28 | 34056 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34057 | PyObject *obj; |
34058 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34059 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
34060 | Py_INCREF(obj); | |
34061 | return Py_BuildValue((char *)""); | |
34062 | } | |
c32bde28 | 34063 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
34064 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
34065 | return 1; | |
34066 | } | |
34067 | ||
34068 | ||
34069 | static PyObject *_wrap_ControlNameStr_get() { | |
34070 | PyObject *pyobj; | |
34071 | ||
34072 | { | |
34073 | #if wxUSE_UNICODE | |
34074 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
34075 | #else | |
34076 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
34077 | #endif | |
34078 | } | |
34079 | return pyobj; | |
34080 | } | |
34081 | ||
34082 | ||
c32bde28 | 34083 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34084 | PyObject *resultobj; |
34085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 34086 | int arg2 = (int) -1 ; |
d55e5bfc RD |
34087 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
34088 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
34089 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
34090 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
34091 | long arg5 = (long) 0 ; | |
34092 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
34093 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
34094 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
34095 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
34096 | wxControl *result; | |
34097 | wxPoint temp3 ; | |
34098 | wxSize temp4 ; | |
ae8162c8 | 34099 | bool temp7 = false ; |
d55e5bfc RD |
34100 | PyObject * obj0 = 0 ; |
34101 | PyObject * obj1 = 0 ; | |
34102 | PyObject * obj2 = 0 ; | |
34103 | PyObject * obj3 = 0 ; | |
34104 | PyObject * obj4 = 0 ; | |
34105 | PyObject * obj5 = 0 ; | |
34106 | PyObject * obj6 = 0 ; | |
34107 | char *kwnames[] = { | |
34108 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34109 | }; | |
34110 | ||
248ed943 | 34111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
34112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
34113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34114 | if (obj1) { |
c32bde28 | 34115 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
34116 | if (PyErr_Occurred()) SWIG_fail; |
34117 | } | |
d55e5bfc RD |
34118 | if (obj2) { |
34119 | { | |
34120 | arg3 = &temp3; | |
34121 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34122 | } | |
34123 | } | |
34124 | if (obj3) { | |
34125 | { | |
34126 | arg4 = &temp4; | |
34127 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34128 | } | |
34129 | } | |
34130 | if (obj4) { | |
c32bde28 | 34131 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
34132 | if (PyErr_Occurred()) SWIG_fail; |
34133 | } | |
34134 | if (obj5) { | |
34135 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
34136 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34137 | SWIG_fail; | |
34138 | if (arg6 == NULL) { | |
34139 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34140 | SWIG_fail; | |
34141 | } | |
34142 | } | |
34143 | if (obj6) { | |
34144 | { | |
34145 | arg7 = wxString_in_helper(obj6); | |
34146 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 34147 | temp7 = true; |
d55e5bfc RD |
34148 | } |
34149 | } | |
34150 | { | |
0439c23b | 34151 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34153 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
34154 | ||
34155 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34156 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34157 | } |
b0f7404b | 34158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34159 | { |
34160 | if (temp7) | |
34161 | delete arg7; | |
34162 | } | |
34163 | return resultobj; | |
34164 | fail: | |
34165 | { | |
34166 | if (temp7) | |
34167 | delete arg7; | |
34168 | } | |
34169 | return NULL; | |
34170 | } | |
34171 | ||
34172 | ||
c32bde28 | 34173 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34174 | PyObject *resultobj; |
34175 | wxControl *result; | |
34176 | char *kwnames[] = { | |
34177 | NULL | |
34178 | }; | |
34179 | ||
34180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
34181 | { | |
0439c23b | 34182 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34184 | result = (wxControl *)new wxControl(); | |
34185 | ||
34186 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34187 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34188 | } |
b0f7404b | 34189 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34190 | return resultobj; |
34191 | fail: | |
34192 | return NULL; | |
34193 | } | |
34194 | ||
34195 | ||
c32bde28 | 34196 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34197 | PyObject *resultobj; |
34198 | wxControl *arg1 = (wxControl *) 0 ; | |
34199 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 34200 | int arg3 = (int) -1 ; |
d55e5bfc RD |
34201 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
34202 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34203 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34204 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34205 | long arg6 = (long) 0 ; | |
34206 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34207 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34208 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
34209 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34210 | bool result; | |
34211 | wxPoint temp4 ; | |
34212 | wxSize temp5 ; | |
ae8162c8 | 34213 | bool temp8 = false ; |
d55e5bfc RD |
34214 | PyObject * obj0 = 0 ; |
34215 | PyObject * obj1 = 0 ; | |
34216 | PyObject * obj2 = 0 ; | |
34217 | PyObject * obj3 = 0 ; | |
34218 | PyObject * obj4 = 0 ; | |
34219 | PyObject * obj5 = 0 ; | |
34220 | PyObject * obj6 = 0 ; | |
34221 | PyObject * obj7 = 0 ; | |
34222 | char *kwnames[] = { | |
34223 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34224 | }; | |
34225 | ||
248ed943 | 34226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
34227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
34228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34229 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34231 | if (obj2) { |
c32bde28 | 34232 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
34233 | if (PyErr_Occurred()) SWIG_fail; |
34234 | } | |
d55e5bfc RD |
34235 | if (obj3) { |
34236 | { | |
34237 | arg4 = &temp4; | |
34238 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34239 | } | |
34240 | } | |
34241 | if (obj4) { | |
34242 | { | |
34243 | arg5 = &temp5; | |
34244 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34245 | } | |
34246 | } | |
34247 | if (obj5) { | |
c32bde28 | 34248 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
34249 | if (PyErr_Occurred()) SWIG_fail; |
34250 | } | |
34251 | if (obj6) { | |
34252 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
34253 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34254 | SWIG_fail; | |
34255 | if (arg7 == NULL) { | |
34256 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34257 | SWIG_fail; | |
34258 | } | |
34259 | } | |
34260 | if (obj7) { | |
34261 | { | |
34262 | arg8 = wxString_in_helper(obj7); | |
34263 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 34264 | temp8 = true; |
d55e5bfc RD |
34265 | } |
34266 | } | |
34267 | { | |
34268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34269 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34270 | ||
34271 | wxPyEndAllowThreads(__tstate); | |
34272 | if (PyErr_Occurred()) SWIG_fail; | |
34273 | } | |
34274 | { | |
34275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34276 | } | |
34277 | { | |
34278 | if (temp8) | |
34279 | delete arg8; | |
34280 | } | |
34281 | return resultobj; | |
34282 | fail: | |
34283 | { | |
34284 | if (temp8) | |
34285 | delete arg8; | |
34286 | } | |
34287 | return NULL; | |
34288 | } | |
34289 | ||
34290 | ||
c32bde28 | 34291 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34292 | PyObject *resultobj; |
34293 | wxControl *arg1 = (wxControl *) 0 ; | |
34294 | wxCommandEvent *arg2 = 0 ; | |
34295 | PyObject * obj0 = 0 ; | |
34296 | PyObject * obj1 = 0 ; | |
34297 | char *kwnames[] = { | |
34298 | (char *) "self",(char *) "event", NULL | |
34299 | }; | |
34300 | ||
34301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
34302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
34305 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34306 | SWIG_fail; | |
34307 | if (arg2 == NULL) { | |
34308 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34309 | SWIG_fail; | |
34310 | } | |
34311 | { | |
34312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34313 | (arg1)->Command(*arg2); | |
34314 | ||
34315 | wxPyEndAllowThreads(__tstate); | |
34316 | if (PyErr_Occurred()) SWIG_fail; | |
34317 | } | |
34318 | Py_INCREF(Py_None); resultobj = Py_None; | |
34319 | return resultobj; | |
34320 | fail: | |
34321 | return NULL; | |
34322 | } | |
34323 | ||
34324 | ||
c32bde28 | 34325 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34326 | PyObject *resultobj; |
34327 | wxControl *arg1 = (wxControl *) 0 ; | |
34328 | wxString result; | |
34329 | PyObject * obj0 = 0 ; | |
34330 | char *kwnames[] = { | |
34331 | (char *) "self", NULL | |
34332 | }; | |
34333 | ||
34334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
34335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34337 | { | |
34338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34339 | result = (arg1)->GetLabel(); | |
34340 | ||
34341 | wxPyEndAllowThreads(__tstate); | |
34342 | if (PyErr_Occurred()) SWIG_fail; | |
34343 | } | |
34344 | { | |
34345 | #if wxUSE_UNICODE | |
34346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34347 | #else | |
34348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34349 | #endif | |
34350 | } | |
34351 | return resultobj; | |
34352 | fail: | |
34353 | return NULL; | |
34354 | } | |
34355 | ||
34356 | ||
c32bde28 | 34357 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34358 | PyObject *resultobj; |
34359 | wxControl *arg1 = (wxControl *) 0 ; | |
34360 | wxString *arg2 = 0 ; | |
ae8162c8 | 34361 | bool temp2 = false ; |
d55e5bfc RD |
34362 | PyObject * obj0 = 0 ; |
34363 | PyObject * obj1 = 0 ; | |
34364 | char *kwnames[] = { | |
34365 | (char *) "self",(char *) "label", NULL | |
34366 | }; | |
34367 | ||
34368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
34369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34371 | { | |
34372 | arg2 = wxString_in_helper(obj1); | |
34373 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34374 | temp2 = true; |
d55e5bfc RD |
34375 | } |
34376 | { | |
34377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34378 | (arg1)->SetLabel((wxString const &)*arg2); | |
34379 | ||
34380 | wxPyEndAllowThreads(__tstate); | |
34381 | if (PyErr_Occurred()) SWIG_fail; | |
34382 | } | |
34383 | Py_INCREF(Py_None); resultobj = Py_None; | |
34384 | { | |
34385 | if (temp2) | |
34386 | delete arg2; | |
34387 | } | |
34388 | return resultobj; | |
34389 | fail: | |
34390 | { | |
34391 | if (temp2) | |
34392 | delete arg2; | |
34393 | } | |
34394 | return NULL; | |
34395 | } | |
34396 | ||
34397 | ||
c32bde28 | 34398 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34399 | PyObject *resultobj; |
34400 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
34401 | wxVisualAttributes result; | |
34402 | PyObject * obj0 = 0 ; | |
34403 | char *kwnames[] = { | |
34404 | (char *) "variant", NULL | |
34405 | }; | |
34406 | ||
34407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
34408 | if (obj0) { | |
c32bde28 | 34409 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
34410 | if (PyErr_Occurred()) SWIG_fail; |
34411 | } | |
34412 | { | |
a001823c | 34413 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34415 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
34416 | ||
34417 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34418 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34419 | } |
34420 | { | |
34421 | wxVisualAttributes * resultptr; | |
34422 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
34423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
34424 | } | |
34425 | return resultobj; | |
34426 | fail: | |
34427 | return NULL; | |
34428 | } | |
34429 | ||
34430 | ||
c32bde28 | 34431 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34432 | PyObject *obj; |
34433 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34434 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
34435 | Py_INCREF(obj); | |
34436 | return Py_BuildValue((char *)""); | |
34437 | } | |
c32bde28 | 34438 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34439 | PyObject *resultobj; |
34440 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34441 | wxString *arg2 = 0 ; | |
34442 | PyObject *arg3 = (PyObject *) NULL ; | |
34443 | int result; | |
ae8162c8 | 34444 | bool temp2 = false ; |
d55e5bfc RD |
34445 | PyObject * obj0 = 0 ; |
34446 | PyObject * obj1 = 0 ; | |
34447 | PyObject * obj2 = 0 ; | |
34448 | char *kwnames[] = { | |
34449 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
34450 | }; | |
34451 | ||
34452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34455 | { | |
34456 | arg2 = wxString_in_helper(obj1); | |
34457 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34458 | temp2 = true; |
d55e5bfc RD |
34459 | } |
34460 | if (obj2) { | |
34461 | arg3 = obj2; | |
34462 | } | |
34463 | { | |
34464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34465 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
34466 | ||
34467 | wxPyEndAllowThreads(__tstate); | |
34468 | if (PyErr_Occurred()) SWIG_fail; | |
34469 | } | |
c32bde28 | 34470 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34471 | { |
34472 | if (temp2) | |
34473 | delete arg2; | |
34474 | } | |
34475 | return resultobj; | |
34476 | fail: | |
34477 | { | |
34478 | if (temp2) | |
34479 | delete arg2; | |
34480 | } | |
34481 | return NULL; | |
34482 | } | |
34483 | ||
34484 | ||
c32bde28 | 34485 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34486 | PyObject *resultobj; |
34487 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34488 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 34489 | bool temp2 = false ; |
d55e5bfc RD |
34490 | PyObject * obj0 = 0 ; |
34491 | PyObject * obj1 = 0 ; | |
34492 | char *kwnames[] = { | |
34493 | (char *) "self",(char *) "strings", NULL | |
34494 | }; | |
34495 | ||
34496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
34497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34499 | { | |
34500 | if (! PySequence_Check(obj1)) { | |
34501 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
34502 | SWIG_fail; | |
34503 | } | |
34504 | arg2 = new wxArrayString; | |
ae8162c8 | 34505 | temp2 = true; |
d55e5bfc RD |
34506 | int i, len=PySequence_Length(obj1); |
34507 | for (i=0; i<len; i++) { | |
34508 | PyObject* item = PySequence_GetItem(obj1, i); | |
34509 | #if wxUSE_UNICODE | |
34510 | PyObject* str = PyObject_Unicode(item); | |
34511 | #else | |
34512 | PyObject* str = PyObject_Str(item); | |
34513 | #endif | |
34514 | if (PyErr_Occurred()) SWIG_fail; | |
34515 | arg2->Add(Py2wxString(str)); | |
34516 | Py_DECREF(item); | |
34517 | Py_DECREF(str); | |
34518 | } | |
34519 | } | |
34520 | { | |
34521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34522 | (arg1)->Append((wxArrayString const &)*arg2); | |
34523 | ||
34524 | wxPyEndAllowThreads(__tstate); | |
34525 | if (PyErr_Occurred()) SWIG_fail; | |
34526 | } | |
34527 | Py_INCREF(Py_None); resultobj = Py_None; | |
34528 | { | |
34529 | if (temp2) delete arg2; | |
34530 | } | |
34531 | return resultobj; | |
34532 | fail: | |
34533 | { | |
34534 | if (temp2) delete arg2; | |
34535 | } | |
34536 | return NULL; | |
34537 | } | |
34538 | ||
34539 | ||
c32bde28 | 34540 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34541 | PyObject *resultobj; |
34542 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34543 | wxString *arg2 = 0 ; | |
34544 | int arg3 ; | |
34545 | PyObject *arg4 = (PyObject *) NULL ; | |
34546 | int result; | |
ae8162c8 | 34547 | bool temp2 = false ; |
d55e5bfc RD |
34548 | PyObject * obj0 = 0 ; |
34549 | PyObject * obj1 = 0 ; | |
34550 | PyObject * obj2 = 0 ; | |
34551 | PyObject * obj3 = 0 ; | |
34552 | char *kwnames[] = { | |
34553 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
34554 | }; | |
34555 | ||
34556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34559 | { | |
34560 | arg2 = wxString_in_helper(obj1); | |
34561 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34562 | temp2 = true; |
d55e5bfc | 34563 | } |
c32bde28 | 34564 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34565 | if (PyErr_Occurred()) SWIG_fail; |
34566 | if (obj3) { | |
34567 | arg4 = obj3; | |
34568 | } | |
34569 | { | |
34570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34571 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
34572 | ||
34573 | wxPyEndAllowThreads(__tstate); | |
34574 | if (PyErr_Occurred()) SWIG_fail; | |
34575 | } | |
c32bde28 | 34576 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34577 | { |
34578 | if (temp2) | |
34579 | delete arg2; | |
34580 | } | |
34581 | return resultobj; | |
34582 | fail: | |
34583 | { | |
34584 | if (temp2) | |
34585 | delete arg2; | |
34586 | } | |
34587 | return NULL; | |
34588 | } | |
34589 | ||
34590 | ||
c32bde28 | 34591 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34592 | PyObject *resultobj; |
34593 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34594 | PyObject * obj0 = 0 ; | |
34595 | char *kwnames[] = { | |
34596 | (char *) "self", NULL | |
34597 | }; | |
34598 | ||
34599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
34600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34602 | { | |
34603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34604 | (arg1)->Clear(); | |
34605 | ||
34606 | wxPyEndAllowThreads(__tstate); | |
34607 | if (PyErr_Occurred()) SWIG_fail; | |
34608 | } | |
34609 | Py_INCREF(Py_None); resultobj = Py_None; | |
34610 | return resultobj; | |
34611 | fail: | |
34612 | return NULL; | |
34613 | } | |
34614 | ||
34615 | ||
c32bde28 | 34616 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34617 | PyObject *resultobj; |
34618 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34619 | int arg2 ; | |
34620 | PyObject * obj0 = 0 ; | |
34621 | PyObject * obj1 = 0 ; | |
34622 | char *kwnames[] = { | |
34623 | (char *) "self",(char *) "n", NULL | |
34624 | }; | |
34625 | ||
34626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
34627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34629 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34630 | if (PyErr_Occurred()) SWIG_fail; |
34631 | { | |
34632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34633 | (arg1)->Delete(arg2); | |
34634 | ||
34635 | wxPyEndAllowThreads(__tstate); | |
34636 | if (PyErr_Occurred()) SWIG_fail; | |
34637 | } | |
34638 | Py_INCREF(Py_None); resultobj = Py_None; | |
34639 | return resultobj; | |
34640 | fail: | |
34641 | return NULL; | |
34642 | } | |
34643 | ||
34644 | ||
c32bde28 | 34645 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34646 | PyObject *resultobj; |
34647 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34648 | int result; | |
34649 | PyObject * obj0 = 0 ; | |
34650 | char *kwnames[] = { | |
34651 | (char *) "self", NULL | |
34652 | }; | |
34653 | ||
34654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34657 | { | |
34658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34659 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34660 | ||
34661 | wxPyEndAllowThreads(__tstate); | |
34662 | if (PyErr_Occurred()) SWIG_fail; | |
34663 | } | |
c32bde28 | 34664 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34665 | return resultobj; |
34666 | fail: | |
34667 | return NULL; | |
34668 | } | |
34669 | ||
34670 | ||
c32bde28 | 34671 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34672 | PyObject *resultobj; |
34673 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34674 | bool result; | |
34675 | PyObject * obj0 = 0 ; | |
34676 | char *kwnames[] = { | |
34677 | (char *) "self", NULL | |
34678 | }; | |
34679 | ||
34680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34683 | { | |
34684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34685 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34686 | ||
34687 | wxPyEndAllowThreads(__tstate); | |
34688 | if (PyErr_Occurred()) SWIG_fail; | |
34689 | } | |
34690 | { | |
34691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34692 | } | |
34693 | return resultobj; | |
34694 | fail: | |
34695 | return NULL; | |
34696 | } | |
34697 | ||
34698 | ||
c32bde28 | 34699 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34700 | PyObject *resultobj; |
34701 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34702 | int arg2 ; | |
34703 | wxString result; | |
34704 | PyObject * obj0 = 0 ; | |
34705 | PyObject * obj1 = 0 ; | |
34706 | char *kwnames[] = { | |
34707 | (char *) "self",(char *) "n", NULL | |
34708 | }; | |
34709 | ||
34710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34713 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34714 | if (PyErr_Occurred()) SWIG_fail; |
34715 | { | |
34716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34717 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34718 | ||
34719 | wxPyEndAllowThreads(__tstate); | |
34720 | if (PyErr_Occurred()) SWIG_fail; | |
34721 | } | |
34722 | { | |
34723 | #if wxUSE_UNICODE | |
34724 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34725 | #else | |
34726 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34727 | #endif | |
34728 | } | |
34729 | return resultobj; | |
34730 | fail: | |
34731 | return NULL; | |
34732 | } | |
34733 | ||
34734 | ||
c32bde28 | 34735 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34736 | PyObject *resultobj; |
34737 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34738 | wxArrayString result; | |
34739 | PyObject * obj0 = 0 ; | |
34740 | char *kwnames[] = { | |
34741 | (char *) "self", NULL | |
34742 | }; | |
34743 | ||
34744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34747 | { | |
34748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34749 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34750 | ||
34751 | wxPyEndAllowThreads(__tstate); | |
34752 | if (PyErr_Occurred()) SWIG_fail; | |
34753 | } | |
34754 | { | |
34755 | resultobj = wxArrayString2PyList_helper(result); | |
34756 | } | |
34757 | return resultobj; | |
34758 | fail: | |
34759 | return NULL; | |
34760 | } | |
34761 | ||
34762 | ||
c32bde28 | 34763 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34764 | PyObject *resultobj; |
34765 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34766 | int arg2 ; | |
34767 | wxString *arg3 = 0 ; | |
ae8162c8 | 34768 | bool temp3 = false ; |
d55e5bfc RD |
34769 | PyObject * obj0 = 0 ; |
34770 | PyObject * obj1 = 0 ; | |
34771 | PyObject * obj2 = 0 ; | |
34772 | char *kwnames[] = { | |
34773 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34774 | }; | |
34775 | ||
34776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34779 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34780 | if (PyErr_Occurred()) SWIG_fail; |
34781 | { | |
34782 | arg3 = wxString_in_helper(obj2); | |
34783 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34784 | temp3 = true; |
d55e5bfc RD |
34785 | } |
34786 | { | |
34787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34788 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34789 | ||
34790 | wxPyEndAllowThreads(__tstate); | |
34791 | if (PyErr_Occurred()) SWIG_fail; | |
34792 | } | |
34793 | Py_INCREF(Py_None); resultobj = Py_None; | |
34794 | { | |
34795 | if (temp3) | |
34796 | delete arg3; | |
34797 | } | |
34798 | return resultobj; | |
34799 | fail: | |
34800 | { | |
34801 | if (temp3) | |
34802 | delete arg3; | |
34803 | } | |
34804 | return NULL; | |
34805 | } | |
34806 | ||
34807 | ||
c32bde28 | 34808 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34809 | PyObject *resultobj; |
34810 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34811 | wxString *arg2 = 0 ; | |
34812 | int result; | |
ae8162c8 | 34813 | bool temp2 = false ; |
d55e5bfc RD |
34814 | PyObject * obj0 = 0 ; |
34815 | PyObject * obj1 = 0 ; | |
34816 | char *kwnames[] = { | |
34817 | (char *) "self",(char *) "s", NULL | |
34818 | }; | |
34819 | ||
34820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34823 | { | |
34824 | arg2 = wxString_in_helper(obj1); | |
34825 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34826 | temp2 = true; |
d55e5bfc RD |
34827 | } |
34828 | { | |
34829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34830 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34831 | ||
34832 | wxPyEndAllowThreads(__tstate); | |
34833 | if (PyErr_Occurred()) SWIG_fail; | |
34834 | } | |
c32bde28 | 34835 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34836 | { |
34837 | if (temp2) | |
34838 | delete arg2; | |
34839 | } | |
34840 | return resultobj; | |
34841 | fail: | |
34842 | { | |
34843 | if (temp2) | |
34844 | delete arg2; | |
34845 | } | |
34846 | return NULL; | |
34847 | } | |
34848 | ||
34849 | ||
c32bde28 | 34850 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34851 | PyObject *resultobj; |
34852 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34853 | int arg2 ; | |
34854 | PyObject * obj0 = 0 ; | |
34855 | PyObject * obj1 = 0 ; | |
34856 | char *kwnames[] = { | |
34857 | (char *) "self",(char *) "n", NULL | |
34858 | }; | |
34859 | ||
34860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34863 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34864 | if (PyErr_Occurred()) SWIG_fail; |
34865 | { | |
34866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34867 | (arg1)->Select(arg2); | |
34868 | ||
34869 | wxPyEndAllowThreads(__tstate); | |
34870 | if (PyErr_Occurred()) SWIG_fail; | |
34871 | } | |
34872 | Py_INCREF(Py_None); resultobj = Py_None; | |
34873 | return resultobj; | |
34874 | fail: | |
34875 | return NULL; | |
34876 | } | |
34877 | ||
34878 | ||
c32bde28 | 34879 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34880 | PyObject *resultobj; |
34881 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34882 | int result; | |
34883 | PyObject * obj0 = 0 ; | |
34884 | char *kwnames[] = { | |
34885 | (char *) "self", NULL | |
34886 | }; | |
34887 | ||
34888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34891 | { | |
34892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34893 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34894 | ||
34895 | wxPyEndAllowThreads(__tstate); | |
34896 | if (PyErr_Occurred()) SWIG_fail; | |
34897 | } | |
c32bde28 | 34898 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34899 | return resultobj; |
34900 | fail: | |
34901 | return NULL; | |
34902 | } | |
34903 | ||
34904 | ||
c32bde28 | 34905 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34906 | PyObject *resultobj; |
34907 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34908 | wxString result; | |
34909 | PyObject * obj0 = 0 ; | |
34910 | char *kwnames[] = { | |
34911 | (char *) "self", NULL | |
34912 | }; | |
34913 | ||
34914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34917 | { | |
34918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34919 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34920 | ||
34921 | wxPyEndAllowThreads(__tstate); | |
34922 | if (PyErr_Occurred()) SWIG_fail; | |
34923 | } | |
34924 | { | |
34925 | #if wxUSE_UNICODE | |
34926 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34927 | #else | |
34928 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34929 | #endif | |
34930 | } | |
34931 | return resultobj; | |
34932 | fail: | |
34933 | return NULL; | |
34934 | } | |
34935 | ||
34936 | ||
c32bde28 | 34937 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34938 | PyObject *resultobj; |
34939 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34940 | int arg2 ; | |
34941 | PyObject *result; | |
34942 | PyObject * obj0 = 0 ; | |
34943 | PyObject * obj1 = 0 ; | |
34944 | char *kwnames[] = { | |
34945 | (char *) "self",(char *) "n", NULL | |
34946 | }; | |
34947 | ||
34948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34951 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34952 | if (PyErr_Occurred()) SWIG_fail; |
34953 | { | |
34954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34955 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34956 | ||
34957 | wxPyEndAllowThreads(__tstate); | |
34958 | if (PyErr_Occurred()) SWIG_fail; | |
34959 | } | |
34960 | resultobj = result; | |
34961 | return resultobj; | |
34962 | fail: | |
34963 | return NULL; | |
34964 | } | |
34965 | ||
34966 | ||
c32bde28 | 34967 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34968 | PyObject *resultobj; |
34969 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34970 | int arg2 ; | |
34971 | PyObject *arg3 = (PyObject *) 0 ; | |
34972 | PyObject * obj0 = 0 ; | |
34973 | PyObject * obj1 = 0 ; | |
34974 | PyObject * obj2 = 0 ; | |
34975 | char *kwnames[] = { | |
34976 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34977 | }; | |
34978 | ||
34979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34982 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34983 | if (PyErr_Occurred()) SWIG_fail; |
34984 | arg3 = obj2; | |
34985 | { | |
34986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34987 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34988 | ||
34989 | wxPyEndAllowThreads(__tstate); | |
34990 | if (PyErr_Occurred()) SWIG_fail; | |
34991 | } | |
34992 | Py_INCREF(Py_None); resultobj = Py_None; | |
34993 | return resultobj; | |
34994 | fail: | |
34995 | return NULL; | |
34996 | } | |
34997 | ||
34998 | ||
c32bde28 | 34999 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35000 | PyObject *obj; |
35001 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35002 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
35003 | Py_INCREF(obj); | |
35004 | return Py_BuildValue((char *)""); | |
35005 | } | |
c32bde28 | 35006 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35007 | PyObject *obj; |
35008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35009 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
35010 | Py_INCREF(obj); | |
35011 | return Py_BuildValue((char *)""); | |
35012 | } | |
c32bde28 | 35013 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35014 | PyObject *resultobj; |
35015 | wxSizerItem *result; | |
35016 | char *kwnames[] = { | |
35017 | NULL | |
35018 | }; | |
35019 | ||
35020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
35021 | { | |
35022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35023 | result = (wxSizerItem *)new wxSizerItem(); | |
35024 | ||
35025 | wxPyEndAllowThreads(__tstate); | |
35026 | if (PyErr_Occurred()) SWIG_fail; | |
35027 | } | |
35028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35029 | return resultobj; | |
35030 | fail: | |
35031 | return NULL; | |
35032 | } | |
35033 | ||
35034 | ||
c32bde28 | 35035 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 35036 | PyObject *resultobj; |
248ed943 | 35037 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
35038 | int arg2 ; |
35039 | int arg3 ; | |
35040 | int arg4 ; | |
248ed943 | 35041 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
35042 | wxSizerItem *result; |
35043 | PyObject * obj0 = 0 ; | |
35044 | PyObject * obj1 = 0 ; | |
35045 | PyObject * obj2 = 0 ; | |
35046 | PyObject * obj3 = 0 ; | |
35047 | PyObject * obj4 = 0 ; | |
d55e5bfc | 35048 | char *kwnames[] = { |
248ed943 | 35049 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
35050 | }; |
35051 | ||
248ed943 RD |
35052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
35053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
35054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35055 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35056 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35057 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35058 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35059 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35060 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
35061 | if (obj4) { |
35062 | arg5 = obj4; | |
35063 | } | |
d55e5bfc RD |
35064 | { |
35065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35066 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35067 | |
35068 | wxPyEndAllowThreads(__tstate); | |
35069 | if (PyErr_Occurred()) SWIG_fail; | |
35070 | } | |
35071 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35072 | return resultobj; | |
35073 | fail: | |
35074 | return NULL; | |
35075 | } | |
35076 | ||
35077 | ||
c32bde28 | 35078 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 35079 | PyObject *resultobj; |
248ed943 | 35080 | int arg1 ; |
d55e5bfc RD |
35081 | int arg2 ; |
35082 | int arg3 ; | |
35083 | int arg4 ; | |
248ed943 RD |
35084 | int arg5 ; |
35085 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
35086 | wxSizerItem *result; |
35087 | PyObject * obj0 = 0 ; | |
35088 | PyObject * obj1 = 0 ; | |
35089 | PyObject * obj2 = 0 ; | |
35090 | PyObject * obj3 = 0 ; | |
35091 | PyObject * obj4 = 0 ; | |
248ed943 | 35092 | PyObject * obj5 = 0 ; |
d55e5bfc | 35093 | char *kwnames[] = { |
248ed943 | 35094 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
35095 | }; |
35096 | ||
248ed943 | 35097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c32bde28 | 35098 | arg1 = (int)SWIG_As_int(obj0); |
248ed943 | 35099 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35100 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35101 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35102 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35103 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35104 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35105 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35106 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
35107 | if (PyErr_Occurred()) SWIG_fail; |
35108 | if (obj5) { | |
35109 | arg6 = obj5; | |
35110 | } | |
d55e5bfc RD |
35111 | { |
35112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35113 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
35114 | |
35115 | wxPyEndAllowThreads(__tstate); | |
35116 | if (PyErr_Occurred()) SWIG_fail; | |
35117 | } | |
35118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35119 | return resultobj; | |
35120 | fail: | |
35121 | return NULL; | |
35122 | } | |
35123 | ||
35124 | ||
c32bde28 | 35125 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35126 | PyObject *resultobj; |
35127 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35128 | int arg2 ; | |
35129 | int arg3 ; | |
35130 | int arg4 ; | |
248ed943 | 35131 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
35132 | wxSizerItem *result; |
35133 | PyObject * obj0 = 0 ; | |
35134 | PyObject * obj1 = 0 ; | |
35135 | PyObject * obj2 = 0 ; | |
35136 | PyObject * obj3 = 0 ; | |
35137 | PyObject * obj4 = 0 ; | |
35138 | char *kwnames[] = { | |
35139 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35140 | }; | |
35141 | ||
248ed943 | 35142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
35143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35145 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35146 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35147 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35148 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35149 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35150 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
35151 | if (obj4) { |
35152 | arg5 = obj4; | |
35153 | } | |
d55e5bfc RD |
35154 | { |
35155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35156 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35157 | |
35158 | wxPyEndAllowThreads(__tstate); | |
35159 | if (PyErr_Occurred()) SWIG_fail; | |
35160 | } | |
35161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35162 | return resultobj; | |
35163 | fail: | |
35164 | return NULL; | |
35165 | } | |
35166 | ||
35167 | ||
c32bde28 | 35168 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35169 | PyObject *resultobj; |
35170 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35171 | PyObject * obj0 = 0 ; | |
35172 | char *kwnames[] = { | |
35173 | (char *) "self", NULL | |
35174 | }; | |
35175 | ||
35176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
35177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35179 | { | |
35180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35181 | (arg1)->DeleteWindows(); | |
35182 | ||
35183 | wxPyEndAllowThreads(__tstate); | |
35184 | if (PyErr_Occurred()) SWIG_fail; | |
35185 | } | |
35186 | Py_INCREF(Py_None); resultobj = Py_None; | |
35187 | return resultobj; | |
35188 | fail: | |
35189 | return NULL; | |
35190 | } | |
35191 | ||
35192 | ||
c32bde28 | 35193 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35194 | PyObject *resultobj; |
35195 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35196 | PyObject * obj0 = 0 ; | |
35197 | char *kwnames[] = { | |
35198 | (char *) "self", NULL | |
35199 | }; | |
35200 | ||
35201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
35202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35204 | { | |
35205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35206 | (arg1)->DetachSizer(); | |
35207 | ||
35208 | wxPyEndAllowThreads(__tstate); | |
35209 | if (PyErr_Occurred()) SWIG_fail; | |
35210 | } | |
35211 | Py_INCREF(Py_None); resultobj = Py_None; | |
35212 | return resultobj; | |
35213 | fail: | |
35214 | return NULL; | |
35215 | } | |
35216 | ||
35217 | ||
c32bde28 | 35218 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35219 | PyObject *resultobj; |
35220 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35221 | wxSize result; | |
35222 | PyObject * obj0 = 0 ; | |
35223 | char *kwnames[] = { | |
35224 | (char *) "self", NULL | |
35225 | }; | |
35226 | ||
35227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
35228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35230 | { | |
35231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35232 | result = (arg1)->GetSize(); | |
35233 | ||
35234 | wxPyEndAllowThreads(__tstate); | |
35235 | if (PyErr_Occurred()) SWIG_fail; | |
35236 | } | |
35237 | { | |
35238 | wxSize * resultptr; | |
35239 | resultptr = new wxSize((wxSize &) result); | |
35240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35241 | } | |
35242 | return resultobj; | |
35243 | fail: | |
35244 | return NULL; | |
35245 | } | |
35246 | ||
35247 | ||
c32bde28 | 35248 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35249 | PyObject *resultobj; |
35250 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35251 | wxSize result; | |
35252 | PyObject * obj0 = 0 ; | |
35253 | char *kwnames[] = { | |
35254 | (char *) "self", NULL | |
35255 | }; | |
35256 | ||
35257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
35258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35260 | { | |
35261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35262 | result = (arg1)->CalcMin(); | |
35263 | ||
35264 | wxPyEndAllowThreads(__tstate); | |
35265 | if (PyErr_Occurred()) SWIG_fail; | |
35266 | } | |
35267 | { | |
35268 | wxSize * resultptr; | |
35269 | resultptr = new wxSize((wxSize &) result); | |
35270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35271 | } | |
35272 | return resultobj; | |
35273 | fail: | |
35274 | return NULL; | |
35275 | } | |
35276 | ||
35277 | ||
c32bde28 | 35278 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35279 | PyObject *resultobj; |
35280 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35281 | wxPoint arg2 ; | |
35282 | wxSize arg3 ; | |
35283 | wxPoint *argp2 ; | |
35284 | wxSize *argp3 ; | |
35285 | PyObject * obj0 = 0 ; | |
35286 | PyObject * obj1 = 0 ; | |
35287 | PyObject * obj2 = 0 ; | |
35288 | char *kwnames[] = { | |
35289 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
35290 | }; | |
35291 | ||
35292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35295 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
35296 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35297 | arg2 = *argp2; | |
35298 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
35299 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35300 | arg3 = *argp3; | |
35301 | { | |
35302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35303 | (arg1)->SetDimension(arg2,arg3); | |
35304 | ||
35305 | wxPyEndAllowThreads(__tstate); | |
35306 | if (PyErr_Occurred()) SWIG_fail; | |
35307 | } | |
35308 | Py_INCREF(Py_None); resultobj = Py_None; | |
35309 | return resultobj; | |
35310 | fail: | |
35311 | return NULL; | |
35312 | } | |
35313 | ||
35314 | ||
c32bde28 | 35315 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35316 | PyObject *resultobj; |
35317 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35318 | wxSize result; | |
35319 | PyObject * obj0 = 0 ; | |
35320 | char *kwnames[] = { | |
35321 | (char *) "self", NULL | |
35322 | }; | |
35323 | ||
35324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
35325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35327 | { | |
35328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35329 | result = (arg1)->GetMinSize(); | |
35330 | ||
35331 | wxPyEndAllowThreads(__tstate); | |
35332 | if (PyErr_Occurred()) SWIG_fail; | |
35333 | } | |
35334 | { | |
35335 | wxSize * resultptr; | |
35336 | resultptr = new wxSize((wxSize &) result); | |
35337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35338 | } | |
35339 | return resultobj; | |
35340 | fail: | |
35341 | return NULL; | |
35342 | } | |
35343 | ||
35344 | ||
c32bde28 | 35345 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
35346 | PyObject *resultobj; |
35347 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35348 | wxSize result; | |
35349 | PyObject * obj0 = 0 ; | |
35350 | char *kwnames[] = { | |
35351 | (char *) "self", NULL | |
35352 | }; | |
35353 | ||
35354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
35355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35357 | { | |
35358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35359 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
35360 | ||
35361 | wxPyEndAllowThreads(__tstate); | |
35362 | if (PyErr_Occurred()) SWIG_fail; | |
35363 | } | |
35364 | { | |
35365 | wxSize * resultptr; | |
35366 | resultptr = new wxSize((wxSize &) result); | |
35367 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35368 | } | |
35369 | return resultobj; | |
35370 | fail: | |
35371 | return NULL; | |
35372 | } | |
35373 | ||
35374 | ||
c32bde28 | 35375 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35376 | PyObject *resultobj; |
35377 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35378 | int arg2 ; | |
35379 | int arg3 ; | |
35380 | PyObject * obj0 = 0 ; | |
35381 | PyObject * obj1 = 0 ; | |
35382 | PyObject * obj2 = 0 ; | |
35383 | char *kwnames[] = { | |
35384 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35385 | }; | |
35386 | ||
35387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35390 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35391 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35392 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35393 | if (PyErr_Occurred()) SWIG_fail; |
35394 | { | |
35395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35396 | (arg1)->SetInitSize(arg2,arg3); | |
35397 | ||
35398 | wxPyEndAllowThreads(__tstate); | |
35399 | if (PyErr_Occurred()) SWIG_fail; | |
35400 | } | |
35401 | Py_INCREF(Py_None); resultobj = Py_None; | |
35402 | return resultobj; | |
35403 | fail: | |
35404 | return NULL; | |
35405 | } | |
35406 | ||
35407 | ||
c32bde28 | 35408 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35409 | PyObject *resultobj; |
35410 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35411 | int arg2 ; | |
35412 | int arg3 ; | |
35413 | PyObject * obj0 = 0 ; | |
35414 | PyObject * obj1 = 0 ; | |
35415 | PyObject * obj2 = 0 ; | |
35416 | char *kwnames[] = { | |
35417 | (char *) "self",(char *) "width",(char *) "height", NULL | |
35418 | }; | |
35419 | ||
35420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35423 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35424 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35425 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35426 | if (PyErr_Occurred()) SWIG_fail; |
35427 | { | |
35428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35429 | (arg1)->SetRatio(arg2,arg3); | |
35430 | ||
35431 | wxPyEndAllowThreads(__tstate); | |
35432 | if (PyErr_Occurred()) SWIG_fail; | |
35433 | } | |
35434 | Py_INCREF(Py_None); resultobj = Py_None; | |
35435 | return resultobj; | |
35436 | fail: | |
35437 | return NULL; | |
35438 | } | |
35439 | ||
35440 | ||
c32bde28 | 35441 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35442 | PyObject *resultobj; |
35443 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35444 | wxSize arg2 ; | |
35445 | wxSize *argp2 ; | |
35446 | PyObject * obj0 = 0 ; | |
35447 | PyObject * obj1 = 0 ; | |
35448 | char *kwnames[] = { | |
35449 | (char *) "self",(char *) "size", NULL | |
35450 | }; | |
35451 | ||
35452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
35453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35455 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
35456 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35457 | arg2 = *argp2; | |
35458 | { | |
35459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35460 | (arg1)->SetRatio(arg2); | |
35461 | ||
35462 | wxPyEndAllowThreads(__tstate); | |
35463 | if (PyErr_Occurred()) SWIG_fail; | |
35464 | } | |
35465 | Py_INCREF(Py_None); resultobj = Py_None; | |
35466 | return resultobj; | |
35467 | fail: | |
35468 | return NULL; | |
35469 | } | |
35470 | ||
35471 | ||
c32bde28 | 35472 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35473 | PyObject *resultobj; |
35474 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35475 | float arg2 ; | |
35476 | PyObject * obj0 = 0 ; | |
35477 | PyObject * obj1 = 0 ; | |
35478 | char *kwnames[] = { | |
35479 | (char *) "self",(char *) "ratio", NULL | |
35480 | }; | |
35481 | ||
35482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
35483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35485 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
35486 | if (PyErr_Occurred()) SWIG_fail; |
35487 | { | |
35488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35489 | (arg1)->SetRatio(arg2); | |
35490 | ||
35491 | wxPyEndAllowThreads(__tstate); | |
35492 | if (PyErr_Occurred()) SWIG_fail; | |
35493 | } | |
35494 | Py_INCREF(Py_None); resultobj = Py_None; | |
35495 | return resultobj; | |
35496 | fail: | |
35497 | return NULL; | |
35498 | } | |
35499 | ||
35500 | ||
c32bde28 | 35501 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35502 | PyObject *resultobj; |
35503 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35504 | float result; | |
35505 | PyObject * obj0 = 0 ; | |
35506 | char *kwnames[] = { | |
35507 | (char *) "self", NULL | |
35508 | }; | |
35509 | ||
35510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
35511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35513 | { | |
35514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35515 | result = (float)(arg1)->GetRatio(); | |
35516 | ||
35517 | wxPyEndAllowThreads(__tstate); | |
35518 | if (PyErr_Occurred()) SWIG_fail; | |
35519 | } | |
c32bde28 | 35520 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
35521 | return resultobj; |
35522 | fail: | |
35523 | return NULL; | |
35524 | } | |
35525 | ||
35526 | ||
c1cb24a4 RD |
35527 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
35528 | PyObject *resultobj; | |
35529 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35530 | wxRect result; | |
35531 | PyObject * obj0 = 0 ; | |
35532 | char *kwnames[] = { | |
35533 | (char *) "self", NULL | |
35534 | }; | |
35535 | ||
35536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
35537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35539 | { | |
35540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35541 | result = (arg1)->GetRect(); | |
35542 | ||
35543 | wxPyEndAllowThreads(__tstate); | |
35544 | if (PyErr_Occurred()) SWIG_fail; | |
35545 | } | |
35546 | { | |
35547 | wxRect * resultptr; | |
35548 | resultptr = new wxRect((wxRect &) result); | |
35549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
35550 | } | |
35551 | return resultobj; | |
35552 | fail: | |
35553 | return NULL; | |
35554 | } | |
35555 | ||
35556 | ||
c32bde28 | 35557 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35558 | PyObject *resultobj; |
35559 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35560 | bool result; | |
35561 | PyObject * obj0 = 0 ; | |
35562 | char *kwnames[] = { | |
35563 | (char *) "self", NULL | |
35564 | }; | |
35565 | ||
35566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
35567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35569 | { | |
35570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35571 | result = (bool)(arg1)->IsWindow(); | |
35572 | ||
35573 | wxPyEndAllowThreads(__tstate); | |
35574 | if (PyErr_Occurred()) SWIG_fail; | |
35575 | } | |
35576 | { | |
35577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35578 | } | |
35579 | return resultobj; | |
35580 | fail: | |
35581 | return NULL; | |
35582 | } | |
35583 | ||
35584 | ||
c32bde28 | 35585 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35586 | PyObject *resultobj; |
35587 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35588 | bool result; | |
35589 | PyObject * obj0 = 0 ; | |
35590 | char *kwnames[] = { | |
35591 | (char *) "self", NULL | |
35592 | }; | |
35593 | ||
35594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
35595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35597 | { | |
35598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35599 | result = (bool)(arg1)->IsSizer(); | |
35600 | ||
35601 | wxPyEndAllowThreads(__tstate); | |
35602 | if (PyErr_Occurred()) SWIG_fail; | |
35603 | } | |
35604 | { | |
35605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35606 | } | |
35607 | return resultobj; | |
35608 | fail: | |
35609 | return NULL; | |
35610 | } | |
35611 | ||
35612 | ||
c32bde28 | 35613 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35614 | PyObject *resultobj; |
35615 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35616 | bool result; | |
35617 | PyObject * obj0 = 0 ; | |
35618 | char *kwnames[] = { | |
35619 | (char *) "self", NULL | |
35620 | }; | |
35621 | ||
35622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",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 = (bool)(arg1)->IsSpacer(); | |
35628 | ||
35629 | wxPyEndAllowThreads(__tstate); | |
35630 | if (PyErr_Occurred()) SWIG_fail; | |
35631 | } | |
35632 | { | |
35633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35634 | } | |
35635 | return resultobj; | |
35636 | fail: | |
35637 | return NULL; | |
35638 | } | |
35639 | ||
35640 | ||
c32bde28 | 35641 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35642 | PyObject *resultobj; |
35643 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35644 | int arg2 ; | |
35645 | PyObject * obj0 = 0 ; | |
35646 | PyObject * obj1 = 0 ; | |
35647 | char *kwnames[] = { | |
35648 | (char *) "self",(char *) "proportion", NULL | |
35649 | }; | |
35650 | ||
35651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
35652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35654 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35655 | if (PyErr_Occurred()) SWIG_fail; |
35656 | { | |
35657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35658 | (arg1)->SetProportion(arg2); | |
35659 | ||
35660 | wxPyEndAllowThreads(__tstate); | |
35661 | if (PyErr_Occurred()) SWIG_fail; | |
35662 | } | |
35663 | Py_INCREF(Py_None); resultobj = Py_None; | |
35664 | return resultobj; | |
35665 | fail: | |
35666 | return NULL; | |
35667 | } | |
35668 | ||
35669 | ||
c32bde28 | 35670 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35671 | PyObject *resultobj; |
35672 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35673 | int result; | |
35674 | PyObject * obj0 = 0 ; | |
35675 | char *kwnames[] = { | |
35676 | (char *) "self", NULL | |
35677 | }; | |
35678 | ||
35679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35682 | { | |
35683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35684 | result = (int)(arg1)->GetProportion(); | |
35685 | ||
35686 | wxPyEndAllowThreads(__tstate); | |
35687 | if (PyErr_Occurred()) SWIG_fail; | |
35688 | } | |
c32bde28 | 35689 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35690 | return resultobj; |
35691 | fail: | |
35692 | return NULL; | |
35693 | } | |
35694 | ||
35695 | ||
c32bde28 | 35696 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35697 | PyObject *resultobj; |
35698 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35699 | int arg2 ; | |
35700 | PyObject * obj0 = 0 ; | |
35701 | PyObject * obj1 = 0 ; | |
35702 | char *kwnames[] = { | |
35703 | (char *) "self",(char *) "flag", NULL | |
35704 | }; | |
35705 | ||
35706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35709 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35710 | if (PyErr_Occurred()) SWIG_fail; |
35711 | { | |
35712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35713 | (arg1)->SetFlag(arg2); | |
35714 | ||
35715 | wxPyEndAllowThreads(__tstate); | |
35716 | if (PyErr_Occurred()) SWIG_fail; | |
35717 | } | |
35718 | Py_INCREF(Py_None); resultobj = Py_None; | |
35719 | return resultobj; | |
35720 | fail: | |
35721 | return NULL; | |
35722 | } | |
35723 | ||
35724 | ||
c32bde28 | 35725 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35726 | PyObject *resultobj; |
35727 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35728 | int result; | |
35729 | PyObject * obj0 = 0 ; | |
35730 | char *kwnames[] = { | |
35731 | (char *) "self", NULL | |
35732 | }; | |
35733 | ||
35734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35737 | { | |
35738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35739 | result = (int)(arg1)->GetFlag(); | |
35740 | ||
35741 | wxPyEndAllowThreads(__tstate); | |
35742 | if (PyErr_Occurred()) SWIG_fail; | |
35743 | } | |
c32bde28 | 35744 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35745 | return resultobj; |
35746 | fail: | |
35747 | return NULL; | |
35748 | } | |
35749 | ||
35750 | ||
c32bde28 | 35751 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35752 | PyObject *resultobj; |
35753 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35754 | int arg2 ; | |
35755 | PyObject * obj0 = 0 ; | |
35756 | PyObject * obj1 = 0 ; | |
35757 | char *kwnames[] = { | |
35758 | (char *) "self",(char *) "border", NULL | |
35759 | }; | |
35760 | ||
35761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35764 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35765 | if (PyErr_Occurred()) SWIG_fail; |
35766 | { | |
35767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35768 | (arg1)->SetBorder(arg2); | |
35769 | ||
35770 | wxPyEndAllowThreads(__tstate); | |
35771 | if (PyErr_Occurred()) SWIG_fail; | |
35772 | } | |
35773 | Py_INCREF(Py_None); resultobj = Py_None; | |
35774 | return resultobj; | |
35775 | fail: | |
35776 | return NULL; | |
35777 | } | |
35778 | ||
35779 | ||
c32bde28 | 35780 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35781 | PyObject *resultobj; |
35782 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35783 | int result; | |
35784 | PyObject * obj0 = 0 ; | |
35785 | char *kwnames[] = { | |
35786 | (char *) "self", NULL | |
35787 | }; | |
35788 | ||
35789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35792 | { | |
35793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35794 | result = (int)(arg1)->GetBorder(); | |
35795 | ||
35796 | wxPyEndAllowThreads(__tstate); | |
35797 | if (PyErr_Occurred()) SWIG_fail; | |
35798 | } | |
c32bde28 | 35799 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35800 | return resultobj; |
35801 | fail: | |
35802 | return NULL; | |
35803 | } | |
35804 | ||
35805 | ||
c32bde28 | 35806 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35807 | PyObject *resultobj; |
35808 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35809 | wxWindow *result; | |
35810 | PyObject * obj0 = 0 ; | |
35811 | char *kwnames[] = { | |
35812 | (char *) "self", NULL | |
35813 | }; | |
35814 | ||
35815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35818 | { | |
35819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35820 | result = (wxWindow *)(arg1)->GetWindow(); | |
35821 | ||
35822 | wxPyEndAllowThreads(__tstate); | |
35823 | if (PyErr_Occurred()) SWIG_fail; | |
35824 | } | |
35825 | { | |
412d302d | 35826 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35827 | } |
35828 | return resultobj; | |
35829 | fail: | |
35830 | return NULL; | |
35831 | } | |
35832 | ||
35833 | ||
c32bde28 | 35834 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35835 | PyObject *resultobj; |
35836 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35837 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35838 | PyObject * obj0 = 0 ; | |
35839 | PyObject * obj1 = 0 ; | |
35840 | char *kwnames[] = { | |
35841 | (char *) "self",(char *) "window", NULL | |
35842 | }; | |
35843 | ||
35844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35849 | { | |
35850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35851 | (arg1)->SetWindow(arg2); | |
35852 | ||
35853 | wxPyEndAllowThreads(__tstate); | |
35854 | if (PyErr_Occurred()) SWIG_fail; | |
35855 | } | |
35856 | Py_INCREF(Py_None); resultobj = Py_None; | |
35857 | return resultobj; | |
35858 | fail: | |
35859 | return NULL; | |
35860 | } | |
35861 | ||
35862 | ||
c32bde28 | 35863 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35864 | PyObject *resultobj; |
35865 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35866 | wxSizer *result; | |
35867 | PyObject * obj0 = 0 ; | |
35868 | char *kwnames[] = { | |
35869 | (char *) "self", NULL | |
35870 | }; | |
35871 | ||
35872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35875 | { | |
35876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35877 | result = (wxSizer *)(arg1)->GetSizer(); | |
35878 | ||
35879 | wxPyEndAllowThreads(__tstate); | |
35880 | if (PyErr_Occurred()) SWIG_fail; | |
35881 | } | |
35882 | { | |
412d302d | 35883 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35884 | } |
35885 | return resultobj; | |
35886 | fail: | |
35887 | return NULL; | |
35888 | } | |
35889 | ||
35890 | ||
c32bde28 | 35891 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35892 | PyObject *resultobj; |
35893 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35894 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35895 | PyObject * obj0 = 0 ; | |
35896 | PyObject * obj1 = 0 ; | |
35897 | char *kwnames[] = { | |
35898 | (char *) "self",(char *) "sizer", NULL | |
35899 | }; | |
35900 | ||
35901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35906 | { | |
35907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35908 | (arg1)->SetSizer(arg2); | |
35909 | ||
35910 | wxPyEndAllowThreads(__tstate); | |
35911 | if (PyErr_Occurred()) SWIG_fail; | |
35912 | } | |
35913 | Py_INCREF(Py_None); resultobj = Py_None; | |
35914 | return resultobj; | |
35915 | fail: | |
35916 | return NULL; | |
35917 | } | |
35918 | ||
35919 | ||
c32bde28 | 35920 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35921 | PyObject *resultobj; |
35922 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35923 | wxSize *result; | |
35924 | PyObject * obj0 = 0 ; | |
35925 | char *kwnames[] = { | |
35926 | (char *) "self", NULL | |
35927 | }; | |
35928 | ||
35929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35932 | { | |
35933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35934 | { | |
35935 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35936 | result = (wxSize *) &_result_ref; | |
35937 | } | |
35938 | ||
35939 | wxPyEndAllowThreads(__tstate); | |
35940 | if (PyErr_Occurred()) SWIG_fail; | |
35941 | } | |
35942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35943 | return resultobj; | |
35944 | fail: | |
35945 | return NULL; | |
35946 | } | |
35947 | ||
35948 | ||
c32bde28 | 35949 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35950 | PyObject *resultobj; |
35951 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35952 | wxSize *arg2 = 0 ; | |
35953 | wxSize temp2 ; | |
35954 | PyObject * obj0 = 0 ; | |
35955 | PyObject * obj1 = 0 ; | |
35956 | char *kwnames[] = { | |
35957 | (char *) "self",(char *) "size", NULL | |
35958 | }; | |
35959 | ||
35960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35963 | { | |
35964 | arg2 = &temp2; | |
35965 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35966 | } | |
35967 | { | |
35968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35969 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35970 | ||
35971 | wxPyEndAllowThreads(__tstate); | |
35972 | if (PyErr_Occurred()) SWIG_fail; | |
35973 | } | |
35974 | Py_INCREF(Py_None); resultobj = Py_None; | |
35975 | return resultobj; | |
35976 | fail: | |
35977 | return NULL; | |
35978 | } | |
35979 | ||
35980 | ||
c32bde28 | 35981 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35982 | PyObject *resultobj; |
35983 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35984 | bool arg2 ; | |
35985 | PyObject * obj0 = 0 ; | |
35986 | PyObject * obj1 = 0 ; | |
35987 | char *kwnames[] = { | |
35988 | (char *) "self",(char *) "show", NULL | |
35989 | }; | |
35990 | ||
35991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35994 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
35995 | if (PyErr_Occurred()) SWIG_fail; |
35996 | { | |
35997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35998 | (arg1)->Show(arg2); | |
35999 | ||
36000 | wxPyEndAllowThreads(__tstate); | |
36001 | if (PyErr_Occurred()) SWIG_fail; | |
36002 | } | |
36003 | Py_INCREF(Py_None); resultobj = Py_None; | |
36004 | return resultobj; | |
36005 | fail: | |
36006 | return NULL; | |
36007 | } | |
36008 | ||
36009 | ||
c32bde28 | 36010 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36011 | PyObject *resultobj; |
36012 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36013 | bool result; | |
36014 | PyObject * obj0 = 0 ; | |
36015 | char *kwnames[] = { | |
36016 | (char *) "self", NULL | |
36017 | }; | |
36018 | ||
36019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
36020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36022 | { | |
36023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36024 | result = (bool)(arg1)->IsShown(); | |
36025 | ||
36026 | wxPyEndAllowThreads(__tstate); | |
36027 | if (PyErr_Occurred()) SWIG_fail; | |
36028 | } | |
36029 | { | |
36030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36031 | } | |
36032 | return resultobj; | |
36033 | fail: | |
36034 | return NULL; | |
36035 | } | |
36036 | ||
36037 | ||
c32bde28 | 36038 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36039 | PyObject *resultobj; |
36040 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36041 | wxPoint result; | |
36042 | PyObject * obj0 = 0 ; | |
36043 | char *kwnames[] = { | |
36044 | (char *) "self", NULL | |
36045 | }; | |
36046 | ||
36047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
36048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36050 | { | |
36051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36052 | result = (arg1)->GetPosition(); | |
36053 | ||
36054 | wxPyEndAllowThreads(__tstate); | |
36055 | if (PyErr_Occurred()) SWIG_fail; | |
36056 | } | |
36057 | { | |
36058 | wxPoint * resultptr; | |
36059 | resultptr = new wxPoint((wxPoint &) result); | |
36060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36061 | } | |
36062 | return resultobj; | |
36063 | fail: | |
36064 | return NULL; | |
36065 | } | |
36066 | ||
36067 | ||
c32bde28 | 36068 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36069 | PyObject *resultobj; |
36070 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36071 | PyObject *result; | |
36072 | PyObject * obj0 = 0 ; | |
36073 | char *kwnames[] = { | |
36074 | (char *) "self", NULL | |
36075 | }; | |
36076 | ||
36077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
36078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36080 | { | |
36081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36082 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
36083 | ||
36084 | wxPyEndAllowThreads(__tstate); | |
36085 | if (PyErr_Occurred()) SWIG_fail; | |
36086 | } | |
36087 | resultobj = result; | |
36088 | return resultobj; | |
36089 | fail: | |
36090 | return NULL; | |
36091 | } | |
36092 | ||
36093 | ||
c32bde28 | 36094 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36095 | PyObject *obj; |
36096 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36097 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
36098 | Py_INCREF(obj); | |
36099 | return Py_BuildValue((char *)""); | |
36100 | } | |
c32bde28 | 36101 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36102 | PyObject *resultobj; |
36103 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36104 | PyObject *arg2 = (PyObject *) 0 ; | |
36105 | PyObject * obj0 = 0 ; | |
36106 | PyObject * obj1 = 0 ; | |
36107 | char *kwnames[] = { | |
36108 | (char *) "self",(char *) "_self", NULL | |
36109 | }; | |
36110 | ||
36111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
36112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36114 | arg2 = obj1; | |
36115 | { | |
36116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36117 | wxSizer__setOORInfo(arg1,arg2); | |
36118 | ||
36119 | wxPyEndAllowThreads(__tstate); | |
36120 | if (PyErr_Occurred()) SWIG_fail; | |
36121 | } | |
36122 | Py_INCREF(Py_None); resultobj = Py_None; | |
36123 | return resultobj; | |
36124 | fail: | |
36125 | return NULL; | |
36126 | } | |
36127 | ||
36128 | ||
c32bde28 | 36129 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36130 | PyObject *resultobj; |
36131 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36132 | PyObject *arg2 = (PyObject *) 0 ; | |
36133 | int arg3 = (int) 0 ; | |
36134 | int arg4 = (int) 0 ; | |
36135 | int arg5 = (int) 0 ; | |
36136 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 36137 | wxSizerItem *result; |
d55e5bfc RD |
36138 | PyObject * obj0 = 0 ; |
36139 | PyObject * obj1 = 0 ; | |
36140 | PyObject * obj2 = 0 ; | |
36141 | PyObject * obj3 = 0 ; | |
36142 | PyObject * obj4 = 0 ; | |
36143 | PyObject * obj5 = 0 ; | |
36144 | char *kwnames[] = { | |
36145 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36146 | }; | |
36147 | ||
36148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36151 | arg2 = obj1; | |
36152 | if (obj2) { | |
c32bde28 | 36153 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36154 | if (PyErr_Occurred()) SWIG_fail; |
36155 | } | |
36156 | if (obj3) { | |
c32bde28 | 36157 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36158 | if (PyErr_Occurred()) SWIG_fail; |
36159 | } | |
36160 | if (obj4) { | |
c32bde28 | 36161 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36162 | if (PyErr_Occurred()) SWIG_fail; |
36163 | } | |
36164 | if (obj5) { | |
36165 | arg6 = obj5; | |
36166 | } | |
36167 | { | |
36168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36169 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
36170 | |
36171 | wxPyEndAllowThreads(__tstate); | |
36172 | if (PyErr_Occurred()) SWIG_fail; | |
36173 | } | |
c1cb24a4 | 36174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36175 | return resultobj; |
36176 | fail: | |
36177 | return NULL; | |
36178 | } | |
36179 | ||
36180 | ||
c32bde28 | 36181 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36182 | PyObject *resultobj; |
36183 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36184 | int arg2 ; | |
36185 | PyObject *arg3 = (PyObject *) 0 ; | |
36186 | int arg4 = (int) 0 ; | |
36187 | int arg5 = (int) 0 ; | |
36188 | int arg6 = (int) 0 ; | |
36189 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 36190 | wxSizerItem *result; |
d55e5bfc RD |
36191 | PyObject * obj0 = 0 ; |
36192 | PyObject * obj1 = 0 ; | |
36193 | PyObject * obj2 = 0 ; | |
36194 | PyObject * obj3 = 0 ; | |
36195 | PyObject * obj4 = 0 ; | |
36196 | PyObject * obj5 = 0 ; | |
36197 | PyObject * obj6 = 0 ; | |
36198 | char *kwnames[] = { | |
36199 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36200 | }; | |
36201 | ||
36202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36205 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36206 | if (PyErr_Occurred()) SWIG_fail; |
36207 | arg3 = obj2; | |
36208 | if (obj3) { | |
c32bde28 | 36209 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36210 | if (PyErr_Occurred()) SWIG_fail; |
36211 | } | |
36212 | if (obj4) { | |
c32bde28 | 36213 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36214 | if (PyErr_Occurred()) SWIG_fail; |
36215 | } | |
36216 | if (obj5) { | |
c32bde28 | 36217 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
36218 | if (PyErr_Occurred()) SWIG_fail; |
36219 | } | |
36220 | if (obj6) { | |
36221 | arg7 = obj6; | |
36222 | } | |
36223 | { | |
36224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36225 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
36226 | |
36227 | wxPyEndAllowThreads(__tstate); | |
36228 | if (PyErr_Occurred()) SWIG_fail; | |
36229 | } | |
c1cb24a4 | 36230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36231 | return resultobj; |
36232 | fail: | |
36233 | return NULL; | |
36234 | } | |
36235 | ||
36236 | ||
c32bde28 | 36237 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36238 | PyObject *resultobj; |
36239 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36240 | PyObject *arg2 = (PyObject *) 0 ; | |
36241 | int arg3 = (int) 0 ; | |
36242 | int arg4 = (int) 0 ; | |
36243 | int arg5 = (int) 0 ; | |
36244 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 36245 | wxSizerItem *result; |
d55e5bfc RD |
36246 | PyObject * obj0 = 0 ; |
36247 | PyObject * obj1 = 0 ; | |
36248 | PyObject * obj2 = 0 ; | |
36249 | PyObject * obj3 = 0 ; | |
36250 | PyObject * obj4 = 0 ; | |
36251 | PyObject * obj5 = 0 ; | |
36252 | char *kwnames[] = { | |
36253 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36254 | }; | |
36255 | ||
36256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36259 | arg2 = obj1; | |
36260 | if (obj2) { | |
c32bde28 | 36261 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36262 | if (PyErr_Occurred()) SWIG_fail; |
36263 | } | |
36264 | if (obj3) { | |
c32bde28 | 36265 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36266 | if (PyErr_Occurred()) SWIG_fail; |
36267 | } | |
36268 | if (obj4) { | |
c32bde28 | 36269 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36270 | if (PyErr_Occurred()) SWIG_fail; |
36271 | } | |
36272 | if (obj5) { | |
36273 | arg6 = obj5; | |
36274 | } | |
36275 | { | |
36276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36277 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
36278 | |
36279 | wxPyEndAllowThreads(__tstate); | |
36280 | if (PyErr_Occurred()) SWIG_fail; | |
36281 | } | |
c1cb24a4 | 36282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36283 | return resultobj; |
36284 | fail: | |
36285 | return NULL; | |
36286 | } | |
36287 | ||
36288 | ||
c32bde28 | 36289 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36290 | PyObject *resultobj; |
36291 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36292 | PyObject *arg2 = (PyObject *) 0 ; | |
36293 | bool result; | |
36294 | PyObject * obj0 = 0 ; | |
36295 | PyObject * obj1 = 0 ; | |
36296 | char *kwnames[] = { | |
36297 | (char *) "self",(char *) "item", NULL | |
36298 | }; | |
36299 | ||
36300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
36301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36303 | arg2 = obj1; | |
36304 | { | |
36305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36306 | result = (bool)wxSizer_Remove(arg1,arg2); | |
36307 | ||
36308 | wxPyEndAllowThreads(__tstate); | |
36309 | if (PyErr_Occurred()) SWIG_fail; | |
36310 | } | |
36311 | { | |
36312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36313 | } | |
36314 | return resultobj; | |
36315 | fail: | |
36316 | return NULL; | |
36317 | } | |
36318 | ||
36319 | ||
c32bde28 | 36320 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
36321 | PyObject *resultobj; |
36322 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36323 | PyObject *arg2 = (PyObject *) 0 ; | |
36324 | bool result; | |
36325 | PyObject * obj0 = 0 ; | |
36326 | PyObject * obj1 = 0 ; | |
36327 | char *kwnames[] = { | |
36328 | (char *) "self",(char *) "item", NULL | |
36329 | }; | |
36330 | ||
36331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
36332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36334 | arg2 = obj1; | |
36335 | { | |
36336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36337 | result = (bool)wxSizer_Detach(arg1,arg2); | |
36338 | ||
36339 | wxPyEndAllowThreads(__tstate); | |
36340 | if (PyErr_Occurred()) SWIG_fail; | |
36341 | } | |
36342 | { | |
36343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36344 | } | |
36345 | return resultobj; | |
36346 | fail: | |
36347 | return NULL; | |
36348 | } | |
36349 | ||
36350 | ||
c1cb24a4 RD |
36351 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
36352 | PyObject *resultobj; | |
36353 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36354 | PyObject *arg2 = (PyObject *) 0 ; | |
36355 | wxSizerItem *result; | |
36356 | PyObject * obj0 = 0 ; | |
36357 | PyObject * obj1 = 0 ; | |
36358 | char *kwnames[] = { | |
36359 | (char *) "self",(char *) "item", NULL | |
36360 | }; | |
36361 | ||
36362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
36363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36365 | arg2 = obj1; | |
36366 | { | |
36367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36368 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
36369 | ||
36370 | wxPyEndAllowThreads(__tstate); | |
36371 | if (PyErr_Occurred()) SWIG_fail; | |
36372 | } | |
36373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
36374 | return resultobj; | |
36375 | fail: | |
36376 | return NULL; | |
36377 | } | |
36378 | ||
36379 | ||
c32bde28 | 36380 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36381 | PyObject *resultobj; |
36382 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36383 | PyObject *arg2 = (PyObject *) 0 ; | |
36384 | wxSize *arg3 = 0 ; | |
36385 | wxSize temp3 ; | |
36386 | PyObject * obj0 = 0 ; | |
36387 | PyObject * obj1 = 0 ; | |
36388 | PyObject * obj2 = 0 ; | |
36389 | char *kwnames[] = { | |
36390 | (char *) "self",(char *) "item",(char *) "size", NULL | |
36391 | }; | |
36392 | ||
36393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36396 | arg2 = obj1; | |
36397 | { | |
36398 | arg3 = &temp3; | |
36399 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36400 | } | |
36401 | { | |
36402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36403 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
36404 | ||
36405 | wxPyEndAllowThreads(__tstate); | |
36406 | if (PyErr_Occurred()) SWIG_fail; | |
36407 | } | |
36408 | Py_INCREF(Py_None); resultobj = Py_None; | |
36409 | return resultobj; | |
36410 | fail: | |
36411 | return NULL; | |
36412 | } | |
36413 | ||
36414 | ||
c32bde28 | 36415 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36416 | PyObject *resultobj; |
36417 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36418 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36419 | wxSizerItem *result; |
d55e5bfc RD |
36420 | PyObject * obj0 = 0 ; |
36421 | PyObject * obj1 = 0 ; | |
36422 | char *kwnames[] = { | |
36423 | (char *) "self",(char *) "item", NULL | |
36424 | }; | |
36425 | ||
36426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36431 | { | |
36432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36433 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
36434 | |
36435 | wxPyEndAllowThreads(__tstate); | |
36436 | if (PyErr_Occurred()) SWIG_fail; | |
36437 | } | |
c1cb24a4 | 36438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36439 | return resultobj; |
36440 | fail: | |
36441 | return NULL; | |
36442 | } | |
36443 | ||
36444 | ||
c32bde28 | 36445 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36446 | PyObject *resultobj; |
36447 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36448 | size_t arg2 ; | |
36449 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36450 | wxSizerItem *result; |
d55e5bfc RD |
36451 | PyObject * obj0 = 0 ; |
36452 | PyObject * obj1 = 0 ; | |
36453 | PyObject * obj2 = 0 ; | |
36454 | char *kwnames[] = { | |
36455 | (char *) "self",(char *) "index",(char *) "item", NULL | |
36456 | }; | |
36457 | ||
36458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36461 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36462 | if (PyErr_Occurred()) SWIG_fail; |
36463 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
36464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36465 | { | |
36466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36467 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d55e5bfc RD |
36468 | |
36469 | wxPyEndAllowThreads(__tstate); | |
36470 | if (PyErr_Occurred()) SWIG_fail; | |
36471 | } | |
c1cb24a4 | 36472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36473 | return resultobj; |
36474 | fail: | |
36475 | return NULL; | |
36476 | } | |
36477 | ||
36478 | ||
c32bde28 | 36479 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36480 | PyObject *resultobj; |
36481 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36482 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36483 | wxSizerItem *result; |
d55e5bfc RD |
36484 | PyObject * obj0 = 0 ; |
36485 | PyObject * obj1 = 0 ; | |
36486 | char *kwnames[] = { | |
36487 | (char *) "self",(char *) "item", NULL | |
36488 | }; | |
36489 | ||
36490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
36491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36493 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36495 | { | |
36496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36497 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d55e5bfc RD |
36498 | |
36499 | wxPyEndAllowThreads(__tstate); | |
36500 | if (PyErr_Occurred()) SWIG_fail; | |
36501 | } | |
c1cb24a4 | 36502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36503 | return resultobj; |
36504 | fail: | |
36505 | return NULL; | |
36506 | } | |
36507 | ||
36508 | ||
c32bde28 | 36509 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36510 | PyObject *resultobj; |
36511 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36512 | int arg2 ; | |
36513 | int arg3 ; | |
36514 | int arg4 ; | |
36515 | int arg5 ; | |
36516 | PyObject * obj0 = 0 ; | |
36517 | PyObject * obj1 = 0 ; | |
36518 | PyObject * obj2 = 0 ; | |
36519 | PyObject * obj3 = 0 ; | |
36520 | PyObject * obj4 = 0 ; | |
36521 | char *kwnames[] = { | |
36522 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36523 | }; | |
36524 | ||
36525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36528 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 36529 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36530 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 36531 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36532 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 36533 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36534 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36535 | if (PyErr_Occurred()) SWIG_fail; |
36536 | { | |
36537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36538 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
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_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36551 | PyObject *resultobj; |
36552 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36553 | wxSize *arg2 = 0 ; | |
36554 | wxSize temp2 ; | |
36555 | PyObject * obj0 = 0 ; | |
36556 | PyObject * obj1 = 0 ; | |
36557 | char *kwnames[] = { | |
36558 | (char *) "self",(char *) "size", NULL | |
36559 | }; | |
36560 | ||
36561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
36562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36564 | { | |
36565 | arg2 = &temp2; | |
36566 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36567 | } | |
36568 | { | |
36569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36570 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
36571 | ||
36572 | wxPyEndAllowThreads(__tstate); | |
36573 | if (PyErr_Occurred()) SWIG_fail; | |
36574 | } | |
36575 | Py_INCREF(Py_None); resultobj = Py_None; | |
36576 | return resultobj; | |
36577 | fail: | |
36578 | return NULL; | |
36579 | } | |
36580 | ||
36581 | ||
c32bde28 | 36582 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36583 | PyObject *resultobj; |
36584 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36585 | wxSize result; | |
36586 | PyObject * obj0 = 0 ; | |
36587 | char *kwnames[] = { | |
36588 | (char *) "self", NULL | |
36589 | }; | |
36590 | ||
36591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
36592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36594 | { | |
36595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36596 | result = (arg1)->GetSize(); | |
36597 | ||
36598 | wxPyEndAllowThreads(__tstate); | |
36599 | if (PyErr_Occurred()) SWIG_fail; | |
36600 | } | |
36601 | { | |
36602 | wxSize * resultptr; | |
36603 | resultptr = new wxSize((wxSize &) result); | |
36604 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36605 | } | |
36606 | return resultobj; | |
36607 | fail: | |
36608 | return NULL; | |
36609 | } | |
36610 | ||
36611 | ||
c32bde28 | 36612 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36613 | PyObject *resultobj; |
36614 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36615 | wxPoint result; | |
36616 | PyObject * obj0 = 0 ; | |
36617 | char *kwnames[] = { | |
36618 | (char *) "self", NULL | |
36619 | }; | |
36620 | ||
36621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
36622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36624 | { | |
36625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36626 | result = (arg1)->GetPosition(); | |
36627 | ||
36628 | wxPyEndAllowThreads(__tstate); | |
36629 | if (PyErr_Occurred()) SWIG_fail; | |
36630 | } | |
36631 | { | |
36632 | wxPoint * resultptr; | |
36633 | resultptr = new wxPoint((wxPoint &) result); | |
36634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36635 | } | |
36636 | return resultobj; | |
36637 | fail: | |
36638 | return NULL; | |
36639 | } | |
36640 | ||
36641 | ||
c32bde28 | 36642 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36643 | PyObject *resultobj; |
36644 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36645 | wxSize result; | |
36646 | PyObject * obj0 = 0 ; | |
36647 | char *kwnames[] = { | |
36648 | (char *) "self", NULL | |
36649 | }; | |
36650 | ||
36651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
36652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36654 | { | |
36655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36656 | result = (arg1)->GetMinSize(); | |
36657 | ||
36658 | wxPyEndAllowThreads(__tstate); | |
36659 | if (PyErr_Occurred()) SWIG_fail; | |
36660 | } | |
36661 | { | |
36662 | wxSize * resultptr; | |
36663 | resultptr = new wxSize((wxSize &) result); | |
36664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36665 | } | |
36666 | return resultobj; | |
36667 | fail: | |
36668 | return NULL; | |
36669 | } | |
36670 | ||
36671 | ||
c32bde28 | 36672 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36673 | PyObject *resultobj; |
36674 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36675 | PyObject * obj0 = 0 ; | |
36676 | char *kwnames[] = { | |
36677 | (char *) "self", NULL | |
36678 | }; | |
36679 | ||
36680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36683 | { | |
36684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36685 | (arg1)->RecalcSizes(); | |
36686 | ||
36687 | wxPyEndAllowThreads(__tstate); | |
36688 | if (PyErr_Occurred()) SWIG_fail; | |
36689 | } | |
36690 | Py_INCREF(Py_None); resultobj = Py_None; | |
36691 | return resultobj; | |
36692 | fail: | |
36693 | return NULL; | |
36694 | } | |
36695 | ||
36696 | ||
c32bde28 | 36697 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36698 | PyObject *resultobj; |
36699 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36700 | wxSize result; | |
36701 | PyObject * obj0 = 0 ; | |
36702 | char *kwnames[] = { | |
36703 | (char *) "self", NULL | |
36704 | }; | |
36705 | ||
36706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36709 | { | |
36710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36711 | result = (arg1)->CalcMin(); | |
36712 | ||
36713 | wxPyEndAllowThreads(__tstate); | |
36714 | if (PyErr_Occurred()) SWIG_fail; | |
36715 | } | |
36716 | { | |
36717 | wxSize * resultptr; | |
36718 | resultptr = new wxSize((wxSize &) result); | |
36719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36720 | } | |
36721 | return resultobj; | |
36722 | fail: | |
36723 | return NULL; | |
36724 | } | |
36725 | ||
36726 | ||
c32bde28 | 36727 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36728 | PyObject *resultobj; |
36729 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36730 | PyObject * obj0 = 0 ; | |
36731 | char *kwnames[] = { | |
36732 | (char *) "self", NULL | |
36733 | }; | |
36734 | ||
36735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36738 | { | |
36739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36740 | (arg1)->Layout(); | |
36741 | ||
36742 | wxPyEndAllowThreads(__tstate); | |
36743 | if (PyErr_Occurred()) SWIG_fail; | |
36744 | } | |
36745 | Py_INCREF(Py_None); resultobj = Py_None; | |
36746 | return resultobj; | |
36747 | fail: | |
36748 | return NULL; | |
36749 | } | |
36750 | ||
36751 | ||
c32bde28 | 36752 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36753 | PyObject *resultobj; |
36754 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36755 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36756 | wxSize result; | |
36757 | PyObject * obj0 = 0 ; | |
36758 | PyObject * obj1 = 0 ; | |
36759 | char *kwnames[] = { | |
36760 | (char *) "self",(char *) "window", NULL | |
36761 | }; | |
36762 | ||
36763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36768 | { | |
36769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36770 | result = (arg1)->Fit(arg2); | |
36771 | ||
36772 | wxPyEndAllowThreads(__tstate); | |
36773 | if (PyErr_Occurred()) SWIG_fail; | |
36774 | } | |
36775 | { | |
36776 | wxSize * resultptr; | |
36777 | resultptr = new wxSize((wxSize &) result); | |
36778 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36779 | } | |
36780 | return resultobj; | |
36781 | fail: | |
36782 | return NULL; | |
36783 | } | |
36784 | ||
36785 | ||
c32bde28 | 36786 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36787 | PyObject *resultobj; |
36788 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36789 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36790 | PyObject * obj0 = 0 ; | |
36791 | PyObject * obj1 = 0 ; | |
36792 | char *kwnames[] = { | |
36793 | (char *) "self",(char *) "window", NULL | |
36794 | }; | |
36795 | ||
36796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36801 | { | |
36802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36803 | (arg1)->FitInside(arg2); | |
36804 | ||
36805 | wxPyEndAllowThreads(__tstate); | |
36806 | if (PyErr_Occurred()) SWIG_fail; | |
36807 | } | |
36808 | Py_INCREF(Py_None); resultobj = Py_None; | |
36809 | return resultobj; | |
36810 | fail: | |
36811 | return NULL; | |
36812 | } | |
36813 | ||
36814 | ||
c32bde28 | 36815 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36816 | PyObject *resultobj; |
36817 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36818 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36819 | PyObject * obj0 = 0 ; | |
36820 | PyObject * obj1 = 0 ; | |
36821 | char *kwnames[] = { | |
36822 | (char *) "self",(char *) "window", NULL | |
36823 | }; | |
36824 | ||
36825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36830 | { | |
36831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36832 | (arg1)->SetSizeHints(arg2); | |
36833 | ||
36834 | wxPyEndAllowThreads(__tstate); | |
36835 | if (PyErr_Occurred()) SWIG_fail; | |
36836 | } | |
36837 | Py_INCREF(Py_None); resultobj = Py_None; | |
36838 | return resultobj; | |
36839 | fail: | |
36840 | return NULL; | |
36841 | } | |
36842 | ||
36843 | ||
c32bde28 | 36844 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36845 | PyObject *resultobj; |
36846 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36847 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36848 | PyObject * obj0 = 0 ; | |
36849 | PyObject * obj1 = 0 ; | |
36850 | char *kwnames[] = { | |
36851 | (char *) "self",(char *) "window", NULL | |
36852 | }; | |
36853 | ||
36854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36859 | { | |
36860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36861 | (arg1)->SetVirtualSizeHints(arg2); | |
36862 | ||
36863 | wxPyEndAllowThreads(__tstate); | |
36864 | if (PyErr_Occurred()) SWIG_fail; | |
36865 | } | |
36866 | Py_INCREF(Py_None); resultobj = Py_None; | |
36867 | return resultobj; | |
36868 | fail: | |
36869 | return NULL; | |
36870 | } | |
36871 | ||
36872 | ||
c32bde28 | 36873 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36874 | PyObject *resultobj; |
36875 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 36876 | bool arg2 = (bool) false ; |
d55e5bfc RD |
36877 | PyObject * obj0 = 0 ; |
36878 | PyObject * obj1 = 0 ; | |
36879 | char *kwnames[] = { | |
248ed943 | 36880 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36881 | }; |
36882 | ||
36883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36886 | if (obj1) { | |
c32bde28 | 36887 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36888 | if (PyErr_Occurred()) SWIG_fail; |
36889 | } | |
36890 | { | |
36891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36892 | (arg1)->Clear(arg2); | |
36893 | ||
36894 | wxPyEndAllowThreads(__tstate); | |
36895 | if (PyErr_Occurred()) SWIG_fail; | |
36896 | } | |
36897 | Py_INCREF(Py_None); resultobj = Py_None; | |
36898 | return resultobj; | |
36899 | fail: | |
36900 | return NULL; | |
36901 | } | |
36902 | ||
36903 | ||
c32bde28 | 36904 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36905 | PyObject *resultobj; |
36906 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36907 | PyObject * obj0 = 0 ; | |
36908 | char *kwnames[] = { | |
36909 | (char *) "self", NULL | |
36910 | }; | |
36911 | ||
36912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36915 | { | |
36916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36917 | (arg1)->DeleteWindows(); | |
36918 | ||
36919 | wxPyEndAllowThreads(__tstate); | |
36920 | if (PyErr_Occurred()) SWIG_fail; | |
36921 | } | |
36922 | Py_INCREF(Py_None); resultobj = Py_None; | |
36923 | return resultobj; | |
36924 | fail: | |
36925 | return NULL; | |
36926 | } | |
36927 | ||
36928 | ||
c32bde28 | 36929 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36930 | PyObject *resultobj; |
36931 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36932 | PyObject *result; | |
36933 | PyObject * obj0 = 0 ; | |
36934 | char *kwnames[] = { | |
36935 | (char *) "self", NULL | |
36936 | }; | |
36937 | ||
36938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36941 | { | |
36942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36943 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36944 | ||
36945 | wxPyEndAllowThreads(__tstate); | |
36946 | if (PyErr_Occurred()) SWIG_fail; | |
36947 | } | |
36948 | resultobj = result; | |
36949 | return resultobj; | |
36950 | fail: | |
36951 | return NULL; | |
36952 | } | |
36953 | ||
36954 | ||
c32bde28 | 36955 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36956 | PyObject *resultobj; |
36957 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36958 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
36959 | bool arg3 = (bool) true ; |
36960 | bool arg4 = (bool) false ; | |
7e63a440 | 36961 | bool result; |
d55e5bfc RD |
36962 | PyObject * obj0 = 0 ; |
36963 | PyObject * obj1 = 0 ; | |
36964 | PyObject * obj2 = 0 ; | |
7e63a440 | 36965 | PyObject * obj3 = 0 ; |
d55e5bfc | 36966 | char *kwnames[] = { |
7e63a440 | 36967 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
36968 | }; |
36969 | ||
7e63a440 | 36970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
36971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36973 | arg2 = obj1; | |
36974 | if (obj2) { | |
c32bde28 | 36975 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
36976 | if (PyErr_Occurred()) SWIG_fail; |
36977 | } | |
7e63a440 RD |
36978 | if (obj3) { |
36979 | arg4 = (bool)SWIG_As_bool(obj3); | |
36980 | if (PyErr_Occurred()) SWIG_fail; | |
36981 | } | |
d55e5bfc RD |
36982 | { |
36983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 36984 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
36985 | |
36986 | wxPyEndAllowThreads(__tstate); | |
36987 | if (PyErr_Occurred()) SWIG_fail; | |
36988 | } | |
7e63a440 RD |
36989 | { |
36990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36991 | } | |
d55e5bfc RD |
36992 | return resultobj; |
36993 | fail: | |
36994 | return NULL; | |
36995 | } | |
36996 | ||
36997 | ||
c32bde28 | 36998 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36999 | PyObject *resultobj; |
37000 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37001 | PyObject *arg2 = (PyObject *) 0 ; | |
37002 | bool result; | |
37003 | PyObject * obj0 = 0 ; | |
37004 | PyObject * obj1 = 0 ; | |
37005 | char *kwnames[] = { | |
37006 | (char *) "self",(char *) "item", NULL | |
37007 | }; | |
37008 | ||
37009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
37010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37012 | arg2 = obj1; | |
37013 | { | |
37014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37015 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
37016 | ||
37017 | wxPyEndAllowThreads(__tstate); | |
37018 | if (PyErr_Occurred()) SWIG_fail; | |
37019 | } | |
37020 | { | |
37021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37022 | } | |
37023 | return resultobj; | |
37024 | fail: | |
37025 | return NULL; | |
37026 | } | |
37027 | ||
37028 | ||
c32bde28 | 37029 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37030 | PyObject *resultobj; |
37031 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37032 | bool arg2 ; | |
37033 | PyObject * obj0 = 0 ; | |
37034 | PyObject * obj1 = 0 ; | |
37035 | char *kwnames[] = { | |
37036 | (char *) "self",(char *) "show", NULL | |
37037 | }; | |
37038 | ||
37039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
37040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37042 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
37043 | if (PyErr_Occurred()) SWIG_fail; |
37044 | { | |
37045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37046 | (arg1)->ShowItems(arg2); | |
37047 | ||
37048 | wxPyEndAllowThreads(__tstate); | |
37049 | if (PyErr_Occurred()) SWIG_fail; | |
37050 | } | |
37051 | Py_INCREF(Py_None); resultobj = Py_None; | |
37052 | return resultobj; | |
37053 | fail: | |
37054 | return NULL; | |
37055 | } | |
37056 | ||
37057 | ||
c32bde28 | 37058 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37059 | PyObject *obj; |
37060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37061 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
37062 | Py_INCREF(obj); | |
37063 | return Py_BuildValue((char *)""); | |
37064 | } | |
c32bde28 | 37065 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37066 | PyObject *resultobj; |
37067 | wxPySizer *result; | |
37068 | char *kwnames[] = { | |
37069 | NULL | |
37070 | }; | |
37071 | ||
37072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
37073 | { | |
37074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37075 | result = (wxPySizer *)new wxPySizer(); | |
37076 | ||
37077 | wxPyEndAllowThreads(__tstate); | |
37078 | if (PyErr_Occurred()) SWIG_fail; | |
37079 | } | |
37080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
37081 | return resultobj; | |
37082 | fail: | |
37083 | return NULL; | |
37084 | } | |
37085 | ||
37086 | ||
c32bde28 | 37087 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37088 | PyObject *resultobj; |
37089 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
37090 | PyObject *arg2 = (PyObject *) 0 ; | |
37091 | PyObject *arg3 = (PyObject *) 0 ; | |
37092 | PyObject * obj0 = 0 ; | |
37093 | PyObject * obj1 = 0 ; | |
37094 | PyObject * obj2 = 0 ; | |
37095 | char *kwnames[] = { | |
37096 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
37097 | }; | |
37098 | ||
37099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
37101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37102 | arg2 = obj1; | |
37103 | arg3 = obj2; | |
37104 | { | |
37105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37106 | (arg1)->_setCallbackInfo(arg2,arg3); | |
37107 | ||
37108 | wxPyEndAllowThreads(__tstate); | |
37109 | if (PyErr_Occurred()) SWIG_fail; | |
37110 | } | |
37111 | Py_INCREF(Py_None); resultobj = Py_None; | |
37112 | return resultobj; | |
37113 | fail: | |
37114 | return NULL; | |
37115 | } | |
37116 | ||
37117 | ||
c32bde28 | 37118 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37119 | PyObject *obj; |
37120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37121 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
37122 | Py_INCREF(obj); | |
37123 | return Py_BuildValue((char *)""); | |
37124 | } | |
c32bde28 | 37125 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37126 | PyObject *resultobj; |
37127 | int arg1 = (int) wxHORIZONTAL ; | |
37128 | wxBoxSizer *result; | |
37129 | PyObject * obj0 = 0 ; | |
37130 | char *kwnames[] = { | |
37131 | (char *) "orient", NULL | |
37132 | }; | |
37133 | ||
37134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
37135 | if (obj0) { | |
c32bde28 | 37136 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37137 | if (PyErr_Occurred()) SWIG_fail; |
37138 | } | |
37139 | { | |
37140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37141 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
37142 | ||
37143 | wxPyEndAllowThreads(__tstate); | |
37144 | if (PyErr_Occurred()) SWIG_fail; | |
37145 | } | |
37146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
37147 | return resultobj; | |
37148 | fail: | |
37149 | return NULL; | |
37150 | } | |
37151 | ||
37152 | ||
c32bde28 | 37153 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37154 | PyObject *resultobj; |
37155 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
37156 | int result; | |
37157 | PyObject * obj0 = 0 ; | |
37158 | char *kwnames[] = { | |
37159 | (char *) "self", NULL | |
37160 | }; | |
37161 | ||
37162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
37163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
37164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37165 | { | |
37166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37167 | result = (int)(arg1)->GetOrientation(); | |
37168 | ||
37169 | wxPyEndAllowThreads(__tstate); | |
37170 | if (PyErr_Occurred()) SWIG_fail; | |
37171 | } | |
c32bde28 | 37172 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37173 | return resultobj; |
37174 | fail: | |
37175 | return NULL; | |
37176 | } | |
37177 | ||
37178 | ||
c32bde28 | 37179 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37180 | PyObject *resultobj; |
37181 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
37182 | int arg2 ; | |
37183 | PyObject * obj0 = 0 ; | |
37184 | PyObject * obj1 = 0 ; | |
37185 | char *kwnames[] = { | |
37186 | (char *) "self",(char *) "orient", NULL | |
37187 | }; | |
37188 | ||
37189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
37190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
37191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37192 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37193 | if (PyErr_Occurred()) SWIG_fail; |
37194 | { | |
37195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37196 | (arg1)->SetOrientation(arg2); | |
37197 | ||
37198 | wxPyEndAllowThreads(__tstate); | |
37199 | if (PyErr_Occurred()) SWIG_fail; | |
37200 | } | |
37201 | Py_INCREF(Py_None); resultobj = Py_None; | |
37202 | return resultobj; | |
37203 | fail: | |
37204 | return NULL; | |
37205 | } | |
37206 | ||
37207 | ||
c32bde28 | 37208 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37209 | PyObject *obj; |
37210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37211 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
37212 | Py_INCREF(obj); | |
37213 | return Py_BuildValue((char *)""); | |
37214 | } | |
c32bde28 | 37215 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37216 | PyObject *resultobj; |
37217 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
37218 | int arg2 = (int) wxHORIZONTAL ; | |
37219 | wxStaticBoxSizer *result; | |
37220 | PyObject * obj0 = 0 ; | |
37221 | PyObject * obj1 = 0 ; | |
37222 | char *kwnames[] = { | |
37223 | (char *) "box",(char *) "orient", NULL | |
37224 | }; | |
37225 | ||
37226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
37227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
37228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37229 | if (obj1) { | |
c32bde28 | 37230 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37231 | if (PyErr_Occurred()) SWIG_fail; |
37232 | } | |
37233 | { | |
37234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37235 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
37236 | ||
37237 | wxPyEndAllowThreads(__tstate); | |
37238 | if (PyErr_Occurred()) SWIG_fail; | |
37239 | } | |
37240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
37241 | return resultobj; | |
37242 | fail: | |
37243 | return NULL; | |
37244 | } | |
37245 | ||
37246 | ||
c32bde28 | 37247 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37248 | PyObject *resultobj; |
37249 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
37250 | wxStaticBox *result; | |
37251 | PyObject * obj0 = 0 ; | |
37252 | char *kwnames[] = { | |
37253 | (char *) "self", NULL | |
37254 | }; | |
37255 | ||
37256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
37257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
37258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37259 | { | |
37260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37261 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
37262 | ||
37263 | wxPyEndAllowThreads(__tstate); | |
37264 | if (PyErr_Occurred()) SWIG_fail; | |
37265 | } | |
37266 | { | |
412d302d | 37267 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
37268 | } |
37269 | return resultobj; | |
37270 | fail: | |
37271 | return NULL; | |
37272 | } | |
37273 | ||
37274 | ||
c32bde28 | 37275 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37276 | PyObject *obj; |
37277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37278 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
37279 | Py_INCREF(obj); | |
37280 | return Py_BuildValue((char *)""); | |
37281 | } | |
c32bde28 | 37282 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37283 | PyObject *resultobj; |
37284 | int arg1 = (int) 1 ; | |
37285 | int arg2 = (int) 0 ; | |
37286 | int arg3 = (int) 0 ; | |
37287 | int arg4 = (int) 0 ; | |
37288 | wxGridSizer *result; | |
37289 | PyObject * obj0 = 0 ; | |
37290 | PyObject * obj1 = 0 ; | |
37291 | PyObject * obj2 = 0 ; | |
37292 | PyObject * obj3 = 0 ; | |
37293 | char *kwnames[] = { | |
37294 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37295 | }; | |
37296 | ||
37297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37298 | if (obj0) { | |
c32bde28 | 37299 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37300 | if (PyErr_Occurred()) SWIG_fail; |
37301 | } | |
37302 | if (obj1) { | |
c32bde28 | 37303 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37304 | if (PyErr_Occurred()) SWIG_fail; |
37305 | } | |
37306 | if (obj2) { | |
c32bde28 | 37307 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37308 | if (PyErr_Occurred()) SWIG_fail; |
37309 | } | |
37310 | if (obj3) { | |
c32bde28 | 37311 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37312 | if (PyErr_Occurred()) SWIG_fail; |
37313 | } | |
37314 | { | |
37315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37316 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
37317 | ||
37318 | wxPyEndAllowThreads(__tstate); | |
37319 | if (PyErr_Occurred()) SWIG_fail; | |
37320 | } | |
37321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
37322 | return resultobj; | |
37323 | fail: | |
37324 | return NULL; | |
37325 | } | |
37326 | ||
37327 | ||
c32bde28 | 37328 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37329 | PyObject *resultobj; |
37330 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37331 | int arg2 ; | |
37332 | PyObject * obj0 = 0 ; | |
37333 | PyObject * obj1 = 0 ; | |
37334 | char *kwnames[] = { | |
37335 | (char *) "self",(char *) "cols", NULL | |
37336 | }; | |
37337 | ||
37338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
37339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37341 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37342 | if (PyErr_Occurred()) SWIG_fail; |
37343 | { | |
37344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37345 | (arg1)->SetCols(arg2); | |
37346 | ||
37347 | wxPyEndAllowThreads(__tstate); | |
37348 | if (PyErr_Occurred()) SWIG_fail; | |
37349 | } | |
37350 | Py_INCREF(Py_None); resultobj = Py_None; | |
37351 | return resultobj; | |
37352 | fail: | |
37353 | return NULL; | |
37354 | } | |
37355 | ||
37356 | ||
c32bde28 | 37357 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37358 | PyObject *resultobj; |
37359 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37360 | int arg2 ; | |
37361 | PyObject * obj0 = 0 ; | |
37362 | PyObject * obj1 = 0 ; | |
37363 | char *kwnames[] = { | |
37364 | (char *) "self",(char *) "rows", NULL | |
37365 | }; | |
37366 | ||
37367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
37368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37371 | if (PyErr_Occurred()) SWIG_fail; |
37372 | { | |
37373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37374 | (arg1)->SetRows(arg2); | |
37375 | ||
37376 | wxPyEndAllowThreads(__tstate); | |
37377 | if (PyErr_Occurred()) SWIG_fail; | |
37378 | } | |
37379 | Py_INCREF(Py_None); resultobj = Py_None; | |
37380 | return resultobj; | |
37381 | fail: | |
37382 | return NULL; | |
37383 | } | |
37384 | ||
37385 | ||
c32bde28 | 37386 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37387 | PyObject *resultobj; |
37388 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37389 | int arg2 ; | |
37390 | PyObject * obj0 = 0 ; | |
37391 | PyObject * obj1 = 0 ; | |
37392 | char *kwnames[] = { | |
37393 | (char *) "self",(char *) "gap", NULL | |
37394 | }; | |
37395 | ||
37396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
37397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37399 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37400 | if (PyErr_Occurred()) SWIG_fail; |
37401 | { | |
37402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37403 | (arg1)->SetVGap(arg2); | |
37404 | ||
37405 | wxPyEndAllowThreads(__tstate); | |
37406 | if (PyErr_Occurred()) SWIG_fail; | |
37407 | } | |
37408 | Py_INCREF(Py_None); resultobj = Py_None; | |
37409 | return resultobj; | |
37410 | fail: | |
37411 | return NULL; | |
37412 | } | |
37413 | ||
37414 | ||
c32bde28 | 37415 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37416 | PyObject *resultobj; |
37417 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37418 | int arg2 ; | |
37419 | PyObject * obj0 = 0 ; | |
37420 | PyObject * obj1 = 0 ; | |
37421 | char *kwnames[] = { | |
37422 | (char *) "self",(char *) "gap", NULL | |
37423 | }; | |
37424 | ||
37425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
37426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37428 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37429 | if (PyErr_Occurred()) SWIG_fail; |
37430 | { | |
37431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37432 | (arg1)->SetHGap(arg2); | |
37433 | ||
37434 | wxPyEndAllowThreads(__tstate); | |
37435 | if (PyErr_Occurred()) SWIG_fail; | |
37436 | } | |
37437 | Py_INCREF(Py_None); resultobj = Py_None; | |
37438 | return resultobj; | |
37439 | fail: | |
37440 | return NULL; | |
37441 | } | |
37442 | ||
37443 | ||
c32bde28 | 37444 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37445 | PyObject *resultobj; |
37446 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37447 | int result; | |
37448 | PyObject * obj0 = 0 ; | |
37449 | char *kwnames[] = { | |
37450 | (char *) "self", NULL | |
37451 | }; | |
37452 | ||
37453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
37454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37456 | { | |
37457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37458 | result = (int)(arg1)->GetCols(); | |
37459 | ||
37460 | wxPyEndAllowThreads(__tstate); | |
37461 | if (PyErr_Occurred()) SWIG_fail; | |
37462 | } | |
c32bde28 | 37463 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37464 | return resultobj; |
37465 | fail: | |
37466 | return NULL; | |
37467 | } | |
37468 | ||
37469 | ||
c32bde28 | 37470 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37471 | PyObject *resultobj; |
37472 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37473 | int result; | |
37474 | PyObject * obj0 = 0 ; | |
37475 | char *kwnames[] = { | |
37476 | (char *) "self", NULL | |
37477 | }; | |
37478 | ||
37479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
37480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37482 | { | |
37483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37484 | result = (int)(arg1)->GetRows(); | |
37485 | ||
37486 | wxPyEndAllowThreads(__tstate); | |
37487 | if (PyErr_Occurred()) SWIG_fail; | |
37488 | } | |
c32bde28 | 37489 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37490 | return resultobj; |
37491 | fail: | |
37492 | return NULL; | |
37493 | } | |
37494 | ||
37495 | ||
c32bde28 | 37496 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37497 | PyObject *resultobj; |
37498 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37499 | int result; | |
37500 | PyObject * obj0 = 0 ; | |
37501 | char *kwnames[] = { | |
37502 | (char *) "self", NULL | |
37503 | }; | |
37504 | ||
37505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
37506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37508 | { | |
37509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37510 | result = (int)(arg1)->GetVGap(); | |
37511 | ||
37512 | wxPyEndAllowThreads(__tstate); | |
37513 | if (PyErr_Occurred()) SWIG_fail; | |
37514 | } | |
c32bde28 | 37515 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37516 | return resultobj; |
37517 | fail: | |
37518 | return NULL; | |
37519 | } | |
37520 | ||
37521 | ||
c32bde28 | 37522 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37523 | PyObject *resultobj; |
37524 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37525 | int result; | |
37526 | PyObject * obj0 = 0 ; | |
37527 | char *kwnames[] = { | |
37528 | (char *) "self", NULL | |
37529 | }; | |
37530 | ||
37531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
37532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37534 | { | |
37535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37536 | result = (int)(arg1)->GetHGap(); | |
37537 | ||
37538 | wxPyEndAllowThreads(__tstate); | |
37539 | if (PyErr_Occurred()) SWIG_fail; | |
37540 | } | |
c32bde28 | 37541 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37542 | return resultobj; |
37543 | fail: | |
37544 | return NULL; | |
37545 | } | |
37546 | ||
37547 | ||
c32bde28 | 37548 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37549 | PyObject *obj; |
37550 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37551 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
37552 | Py_INCREF(obj); | |
37553 | return Py_BuildValue((char *)""); | |
37554 | } | |
c32bde28 | 37555 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37556 | PyObject *resultobj; |
37557 | int arg1 = (int) 1 ; | |
37558 | int arg2 = (int) 0 ; | |
37559 | int arg3 = (int) 0 ; | |
37560 | int arg4 = (int) 0 ; | |
37561 | wxFlexGridSizer *result; | |
37562 | PyObject * obj0 = 0 ; | |
37563 | PyObject * obj1 = 0 ; | |
37564 | PyObject * obj2 = 0 ; | |
37565 | PyObject * obj3 = 0 ; | |
37566 | char *kwnames[] = { | |
37567 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37568 | }; | |
37569 | ||
37570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37571 | if (obj0) { | |
c32bde28 | 37572 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37573 | if (PyErr_Occurred()) SWIG_fail; |
37574 | } | |
37575 | if (obj1) { | |
c32bde28 | 37576 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37577 | if (PyErr_Occurred()) SWIG_fail; |
37578 | } | |
37579 | if (obj2) { | |
c32bde28 | 37580 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37581 | if (PyErr_Occurred()) SWIG_fail; |
37582 | } | |
37583 | if (obj3) { | |
c32bde28 | 37584 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37585 | if (PyErr_Occurred()) SWIG_fail; |
37586 | } | |
37587 | { | |
37588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37589 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
37590 | ||
37591 | wxPyEndAllowThreads(__tstate); | |
37592 | if (PyErr_Occurred()) SWIG_fail; | |
37593 | } | |
37594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
37595 | return resultobj; | |
37596 | fail: | |
37597 | return NULL; | |
37598 | } | |
37599 | ||
37600 | ||
c32bde28 | 37601 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37602 | PyObject *resultobj; |
37603 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37604 | size_t arg2 ; | |
37605 | int arg3 = (int) 0 ; | |
37606 | PyObject * obj0 = 0 ; | |
37607 | PyObject * obj1 = 0 ; | |
37608 | PyObject * obj2 = 0 ; | |
37609 | char *kwnames[] = { | |
37610 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37611 | }; | |
37612 | ||
37613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37616 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37617 | if (PyErr_Occurred()) SWIG_fail; |
37618 | if (obj2) { | |
c32bde28 | 37619 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37620 | if (PyErr_Occurred()) SWIG_fail; |
37621 | } | |
37622 | { | |
37623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37624 | (arg1)->AddGrowableRow(arg2,arg3); | |
37625 | ||
37626 | wxPyEndAllowThreads(__tstate); | |
37627 | if (PyErr_Occurred()) SWIG_fail; | |
37628 | } | |
37629 | Py_INCREF(Py_None); resultobj = Py_None; | |
37630 | return resultobj; | |
37631 | fail: | |
37632 | return NULL; | |
37633 | } | |
37634 | ||
37635 | ||
c32bde28 | 37636 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37637 | PyObject *resultobj; |
37638 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37639 | size_t arg2 ; | |
37640 | PyObject * obj0 = 0 ; | |
37641 | PyObject * obj1 = 0 ; | |
37642 | char *kwnames[] = { | |
37643 | (char *) "self",(char *) "idx", NULL | |
37644 | }; | |
37645 | ||
37646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
37647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37649 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37650 | if (PyErr_Occurred()) SWIG_fail; |
37651 | { | |
37652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37653 | (arg1)->RemoveGrowableRow(arg2); | |
37654 | ||
37655 | wxPyEndAllowThreads(__tstate); | |
37656 | if (PyErr_Occurred()) SWIG_fail; | |
37657 | } | |
37658 | Py_INCREF(Py_None); resultobj = Py_None; | |
37659 | return resultobj; | |
37660 | fail: | |
37661 | return NULL; | |
37662 | } | |
37663 | ||
37664 | ||
c32bde28 | 37665 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37666 | PyObject *resultobj; |
37667 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37668 | size_t arg2 ; | |
37669 | int arg3 = (int) 0 ; | |
37670 | PyObject * obj0 = 0 ; | |
37671 | PyObject * obj1 = 0 ; | |
37672 | PyObject * obj2 = 0 ; | |
37673 | char *kwnames[] = { | |
37674 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37675 | }; | |
37676 | ||
37677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37680 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37681 | if (PyErr_Occurred()) SWIG_fail; |
37682 | if (obj2) { | |
c32bde28 | 37683 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37684 | if (PyErr_Occurred()) SWIG_fail; |
37685 | } | |
37686 | { | |
37687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37688 | (arg1)->AddGrowableCol(arg2,arg3); | |
37689 | ||
37690 | wxPyEndAllowThreads(__tstate); | |
37691 | if (PyErr_Occurred()) SWIG_fail; | |
37692 | } | |
37693 | Py_INCREF(Py_None); resultobj = Py_None; | |
37694 | return resultobj; | |
37695 | fail: | |
37696 | return NULL; | |
37697 | } | |
37698 | ||
37699 | ||
c32bde28 | 37700 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37701 | PyObject *resultobj; |
37702 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37703 | size_t arg2 ; | |
37704 | PyObject * obj0 = 0 ; | |
37705 | PyObject * obj1 = 0 ; | |
37706 | char *kwnames[] = { | |
37707 | (char *) "self",(char *) "idx", NULL | |
37708 | }; | |
37709 | ||
37710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37713 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37714 | if (PyErr_Occurred()) SWIG_fail; |
37715 | { | |
37716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37717 | (arg1)->RemoveGrowableCol(arg2); | |
37718 | ||
37719 | wxPyEndAllowThreads(__tstate); | |
37720 | if (PyErr_Occurred()) SWIG_fail; | |
37721 | } | |
37722 | Py_INCREF(Py_None); resultobj = Py_None; | |
37723 | return resultobj; | |
37724 | fail: | |
37725 | return NULL; | |
37726 | } | |
37727 | ||
37728 | ||
c32bde28 | 37729 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37730 | PyObject *resultobj; |
37731 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37732 | int arg2 ; | |
37733 | PyObject * obj0 = 0 ; | |
37734 | PyObject * obj1 = 0 ; | |
37735 | char *kwnames[] = { | |
37736 | (char *) "self",(char *) "direction", NULL | |
37737 | }; | |
37738 | ||
37739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37742 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37743 | if (PyErr_Occurred()) SWIG_fail; |
37744 | { | |
37745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37746 | (arg1)->SetFlexibleDirection(arg2); | |
37747 | ||
37748 | wxPyEndAllowThreads(__tstate); | |
37749 | if (PyErr_Occurred()) SWIG_fail; | |
37750 | } | |
37751 | Py_INCREF(Py_None); resultobj = Py_None; | |
37752 | return resultobj; | |
37753 | fail: | |
37754 | return NULL; | |
37755 | } | |
37756 | ||
37757 | ||
c32bde28 | 37758 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37759 | PyObject *resultobj; |
37760 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37761 | int result; | |
37762 | PyObject * obj0 = 0 ; | |
37763 | char *kwnames[] = { | |
37764 | (char *) "self", NULL | |
37765 | }; | |
37766 | ||
37767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37770 | { | |
37771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37772 | result = (int)(arg1)->GetFlexibleDirection(); | |
37773 | ||
37774 | wxPyEndAllowThreads(__tstate); | |
37775 | if (PyErr_Occurred()) SWIG_fail; | |
37776 | } | |
c32bde28 | 37777 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37778 | return resultobj; |
37779 | fail: | |
37780 | return NULL; | |
37781 | } | |
37782 | ||
37783 | ||
c32bde28 | 37784 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37785 | PyObject *resultobj; |
37786 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37787 | int arg2 ; | |
37788 | PyObject * obj0 = 0 ; | |
37789 | PyObject * obj1 = 0 ; | |
37790 | char *kwnames[] = { | |
37791 | (char *) "self",(char *) "mode", NULL | |
37792 | }; | |
37793 | ||
37794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37797 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37798 | if (PyErr_Occurred()) SWIG_fail; |
37799 | { | |
37800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37801 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37802 | ||
37803 | wxPyEndAllowThreads(__tstate); | |
37804 | if (PyErr_Occurred()) SWIG_fail; | |
37805 | } | |
37806 | Py_INCREF(Py_None); resultobj = Py_None; | |
37807 | return resultobj; | |
37808 | fail: | |
37809 | return NULL; | |
37810 | } | |
37811 | ||
37812 | ||
c32bde28 | 37813 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37814 | PyObject *resultobj; |
37815 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37816 | int result; | |
37817 | PyObject * obj0 = 0 ; | |
37818 | char *kwnames[] = { | |
37819 | (char *) "self", NULL | |
37820 | }; | |
37821 | ||
37822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37825 | { | |
37826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37827 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37828 | ||
37829 | wxPyEndAllowThreads(__tstate); | |
37830 | if (PyErr_Occurred()) SWIG_fail; | |
37831 | } | |
c32bde28 | 37832 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37833 | return resultobj; |
37834 | fail: | |
37835 | return NULL; | |
37836 | } | |
37837 | ||
37838 | ||
c32bde28 | 37839 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37840 | PyObject *resultobj; |
37841 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37842 | wxArrayInt *result; | |
37843 | PyObject * obj0 = 0 ; | |
37844 | char *kwnames[] = { | |
37845 | (char *) "self", NULL | |
37846 | }; | |
37847 | ||
37848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37851 | { | |
37852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37853 | { | |
37854 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37855 | result = (wxArrayInt *) &_result_ref; | |
37856 | } | |
37857 | ||
37858 | wxPyEndAllowThreads(__tstate); | |
37859 | if (PyErr_Occurred()) SWIG_fail; | |
37860 | } | |
37861 | { | |
37862 | resultobj = PyList_New(0); | |
37863 | size_t idx; | |
37864 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37865 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37866 | PyList_Append(resultobj, val); | |
37867 | Py_DECREF(val); | |
37868 | } | |
37869 | } | |
37870 | return resultobj; | |
37871 | fail: | |
37872 | return NULL; | |
37873 | } | |
37874 | ||
37875 | ||
c32bde28 | 37876 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37877 | PyObject *resultobj; |
37878 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37879 | wxArrayInt *result; | |
37880 | PyObject * obj0 = 0 ; | |
37881 | char *kwnames[] = { | |
37882 | (char *) "self", NULL | |
37883 | }; | |
37884 | ||
37885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37888 | { | |
37889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37890 | { | |
37891 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37892 | result = (wxArrayInt *) &_result_ref; | |
37893 | } | |
37894 | ||
37895 | wxPyEndAllowThreads(__tstate); | |
37896 | if (PyErr_Occurred()) SWIG_fail; | |
37897 | } | |
37898 | { | |
37899 | resultobj = PyList_New(0); | |
37900 | size_t idx; | |
37901 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37902 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37903 | PyList_Append(resultobj, val); | |
37904 | Py_DECREF(val); | |
37905 | } | |
37906 | } | |
37907 | return resultobj; | |
37908 | fail: | |
37909 | return NULL; | |
37910 | } | |
37911 | ||
37912 | ||
c32bde28 | 37913 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37914 | PyObject *obj; |
37915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37916 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37917 | Py_INCREF(obj); | |
37918 | return Py_BuildValue((char *)""); | |
37919 | } | |
c32bde28 | 37920 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37921 | PyObject *resultobj; |
37922 | int arg1 = (int) 0 ; | |
37923 | int arg2 = (int) 0 ; | |
37924 | wxGBPosition *result; | |
37925 | PyObject * obj0 = 0 ; | |
37926 | PyObject * obj1 = 0 ; | |
37927 | char *kwnames[] = { | |
37928 | (char *) "row",(char *) "col", NULL | |
37929 | }; | |
37930 | ||
37931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37932 | if (obj0) { | |
c32bde28 | 37933 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37934 | if (PyErr_Occurred()) SWIG_fail; |
37935 | } | |
37936 | if (obj1) { | |
c32bde28 | 37937 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37938 | if (PyErr_Occurred()) SWIG_fail; |
37939 | } | |
37940 | { | |
37941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37942 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37943 | ||
37944 | wxPyEndAllowThreads(__tstate); | |
37945 | if (PyErr_Occurred()) SWIG_fail; | |
37946 | } | |
37947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37948 | return resultobj; | |
37949 | fail: | |
37950 | return NULL; | |
37951 | } | |
37952 | ||
37953 | ||
c32bde28 | 37954 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37955 | PyObject *resultobj; |
37956 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37957 | int result; | |
37958 | PyObject * obj0 = 0 ; | |
37959 | char *kwnames[] = { | |
37960 | (char *) "self", NULL | |
37961 | }; | |
37962 | ||
37963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37966 | { | |
37967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37968 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37969 | ||
37970 | wxPyEndAllowThreads(__tstate); | |
37971 | if (PyErr_Occurred()) SWIG_fail; | |
37972 | } | |
c32bde28 | 37973 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37974 | return resultobj; |
37975 | fail: | |
37976 | return NULL; | |
37977 | } | |
37978 | ||
37979 | ||
c32bde28 | 37980 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37981 | PyObject *resultobj; |
37982 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37983 | int result; | |
37984 | PyObject * obj0 = 0 ; | |
37985 | char *kwnames[] = { | |
37986 | (char *) "self", NULL | |
37987 | }; | |
37988 | ||
37989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37992 | { | |
37993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37994 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37995 | ||
37996 | wxPyEndAllowThreads(__tstate); | |
37997 | if (PyErr_Occurred()) SWIG_fail; | |
37998 | } | |
c32bde28 | 37999 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38000 | return resultobj; |
38001 | fail: | |
38002 | return NULL; | |
38003 | } | |
38004 | ||
38005 | ||
c32bde28 | 38006 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38007 | PyObject *resultobj; |
38008 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38009 | int arg2 ; | |
38010 | PyObject * obj0 = 0 ; | |
38011 | PyObject * obj1 = 0 ; | |
38012 | char *kwnames[] = { | |
38013 | (char *) "self",(char *) "row", NULL | |
38014 | }; | |
38015 | ||
38016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
38017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38019 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38020 | if (PyErr_Occurred()) SWIG_fail; |
38021 | { | |
38022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38023 | (arg1)->SetRow(arg2); | |
38024 | ||
38025 | wxPyEndAllowThreads(__tstate); | |
38026 | if (PyErr_Occurred()) SWIG_fail; | |
38027 | } | |
38028 | Py_INCREF(Py_None); resultobj = Py_None; | |
38029 | return resultobj; | |
38030 | fail: | |
38031 | return NULL; | |
38032 | } | |
38033 | ||
38034 | ||
c32bde28 | 38035 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38036 | PyObject *resultobj; |
38037 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38038 | int arg2 ; | |
38039 | PyObject * obj0 = 0 ; | |
38040 | PyObject * obj1 = 0 ; | |
38041 | char *kwnames[] = { | |
38042 | (char *) "self",(char *) "col", NULL | |
38043 | }; | |
38044 | ||
38045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
38046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38048 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38049 | if (PyErr_Occurred()) SWIG_fail; |
38050 | { | |
38051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38052 | (arg1)->SetCol(arg2); | |
38053 | ||
38054 | wxPyEndAllowThreads(__tstate); | |
38055 | if (PyErr_Occurred()) SWIG_fail; | |
38056 | } | |
38057 | Py_INCREF(Py_None); resultobj = Py_None; | |
38058 | return resultobj; | |
38059 | fail: | |
38060 | return NULL; | |
38061 | } | |
38062 | ||
38063 | ||
c32bde28 | 38064 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38065 | PyObject *resultobj; |
38066 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38067 | wxGBPosition *arg2 = 0 ; | |
38068 | bool result; | |
38069 | wxGBPosition temp2 ; | |
38070 | PyObject * obj0 = 0 ; | |
38071 | PyObject * obj1 = 0 ; | |
38072 | char *kwnames[] = { | |
38073 | (char *) "self",(char *) "other", NULL | |
38074 | }; | |
38075 | ||
38076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38079 | { | |
38080 | arg2 = &temp2; | |
38081 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38082 | } | |
38083 | { | |
38084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38085 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
38086 | ||
38087 | wxPyEndAllowThreads(__tstate); | |
38088 | if (PyErr_Occurred()) SWIG_fail; | |
38089 | } | |
38090 | { | |
38091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38092 | } | |
38093 | return resultobj; | |
38094 | fail: | |
38095 | return NULL; | |
38096 | } | |
38097 | ||
38098 | ||
c32bde28 | 38099 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38100 | PyObject *resultobj; |
38101 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38102 | wxGBPosition *arg2 = 0 ; | |
38103 | bool result; | |
38104 | wxGBPosition temp2 ; | |
38105 | PyObject * obj0 = 0 ; | |
38106 | PyObject * obj1 = 0 ; | |
38107 | char *kwnames[] = { | |
38108 | (char *) "self",(char *) "other", NULL | |
38109 | }; | |
38110 | ||
38111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38114 | { | |
38115 | arg2 = &temp2; | |
38116 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38117 | } | |
38118 | { | |
38119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38120 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
38121 | ||
38122 | wxPyEndAllowThreads(__tstate); | |
38123 | if (PyErr_Occurred()) SWIG_fail; | |
38124 | } | |
38125 | { | |
38126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38127 | } | |
38128 | return resultobj; | |
38129 | fail: | |
38130 | return NULL; | |
38131 | } | |
38132 | ||
38133 | ||
c32bde28 | 38134 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38135 | PyObject *resultobj; |
38136 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38137 | int arg2 = (int) 0 ; | |
38138 | int arg3 = (int) 0 ; | |
38139 | PyObject * obj0 = 0 ; | |
38140 | PyObject * obj1 = 0 ; | |
38141 | PyObject * obj2 = 0 ; | |
38142 | char *kwnames[] = { | |
38143 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38144 | }; | |
38145 | ||
38146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38149 | if (obj1) { | |
c32bde28 | 38150 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38151 | if (PyErr_Occurred()) SWIG_fail; |
38152 | } | |
38153 | if (obj2) { | |
c32bde28 | 38154 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38155 | if (PyErr_Occurred()) SWIG_fail; |
38156 | } | |
38157 | { | |
38158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38159 | wxGBPosition_Set(arg1,arg2,arg3); | |
38160 | ||
38161 | wxPyEndAllowThreads(__tstate); | |
38162 | if (PyErr_Occurred()) SWIG_fail; | |
38163 | } | |
38164 | Py_INCREF(Py_None); resultobj = Py_None; | |
38165 | return resultobj; | |
38166 | fail: | |
38167 | return NULL; | |
38168 | } | |
38169 | ||
38170 | ||
c32bde28 | 38171 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38172 | PyObject *resultobj; |
38173 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38174 | PyObject *result; | |
38175 | PyObject * obj0 = 0 ; | |
38176 | char *kwnames[] = { | |
38177 | (char *) "self", NULL | |
38178 | }; | |
38179 | ||
38180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
38181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38183 | { | |
38184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38185 | result = (PyObject *)wxGBPosition_Get(arg1); | |
38186 | ||
38187 | wxPyEndAllowThreads(__tstate); | |
38188 | if (PyErr_Occurred()) SWIG_fail; | |
38189 | } | |
38190 | resultobj = result; | |
38191 | return resultobj; | |
38192 | fail: | |
38193 | return NULL; | |
38194 | } | |
38195 | ||
38196 | ||
c32bde28 | 38197 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38198 | PyObject *obj; |
38199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38200 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
38201 | Py_INCREF(obj); | |
38202 | return Py_BuildValue((char *)""); | |
38203 | } | |
c32bde28 | 38204 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38205 | PyObject *resultobj; |
38206 | int arg1 = (int) 1 ; | |
38207 | int arg2 = (int) 1 ; | |
38208 | wxGBSpan *result; | |
38209 | PyObject * obj0 = 0 ; | |
38210 | PyObject * obj1 = 0 ; | |
38211 | char *kwnames[] = { | |
38212 | (char *) "rowspan",(char *) "colspan", NULL | |
38213 | }; | |
38214 | ||
38215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
38216 | if (obj0) { | |
c32bde28 | 38217 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38218 | if (PyErr_Occurred()) SWIG_fail; |
38219 | } | |
38220 | if (obj1) { | |
c32bde28 | 38221 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38222 | if (PyErr_Occurred()) SWIG_fail; |
38223 | } | |
38224 | { | |
38225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38226 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
38227 | ||
38228 | wxPyEndAllowThreads(__tstate); | |
38229 | if (PyErr_Occurred()) SWIG_fail; | |
38230 | } | |
38231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
38232 | return resultobj; | |
38233 | fail: | |
38234 | return NULL; | |
38235 | } | |
38236 | ||
38237 | ||
c32bde28 | 38238 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38239 | PyObject *resultobj; |
38240 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38241 | int result; | |
38242 | PyObject * obj0 = 0 ; | |
38243 | char *kwnames[] = { | |
38244 | (char *) "self", NULL | |
38245 | }; | |
38246 | ||
38247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
38248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38250 | { | |
38251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38252 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
38253 | ||
38254 | wxPyEndAllowThreads(__tstate); | |
38255 | if (PyErr_Occurred()) SWIG_fail; | |
38256 | } | |
c32bde28 | 38257 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38258 | return resultobj; |
38259 | fail: | |
38260 | return NULL; | |
38261 | } | |
38262 | ||
38263 | ||
c32bde28 | 38264 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38265 | PyObject *resultobj; |
38266 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38267 | int result; | |
38268 | PyObject * obj0 = 0 ; | |
38269 | char *kwnames[] = { | |
38270 | (char *) "self", NULL | |
38271 | }; | |
38272 | ||
38273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
38274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38276 | { | |
38277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38278 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
38279 | ||
38280 | wxPyEndAllowThreads(__tstate); | |
38281 | if (PyErr_Occurred()) SWIG_fail; | |
38282 | } | |
c32bde28 | 38283 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38284 | return resultobj; |
38285 | fail: | |
38286 | return NULL; | |
38287 | } | |
38288 | ||
38289 | ||
c32bde28 | 38290 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38291 | PyObject *resultobj; |
38292 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38293 | int arg2 ; | |
38294 | PyObject * obj0 = 0 ; | |
38295 | PyObject * obj1 = 0 ; | |
38296 | char *kwnames[] = { | |
38297 | (char *) "self",(char *) "rowspan", NULL | |
38298 | }; | |
38299 | ||
38300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
38301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38303 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38304 | if (PyErr_Occurred()) SWIG_fail; |
38305 | { | |
38306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38307 | (arg1)->SetRowspan(arg2); | |
38308 | ||
38309 | wxPyEndAllowThreads(__tstate); | |
38310 | if (PyErr_Occurred()) SWIG_fail; | |
38311 | } | |
38312 | Py_INCREF(Py_None); resultobj = Py_None; | |
38313 | return resultobj; | |
38314 | fail: | |
38315 | return NULL; | |
38316 | } | |
38317 | ||
38318 | ||
c32bde28 | 38319 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38320 | PyObject *resultobj; |
38321 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38322 | int arg2 ; | |
38323 | PyObject * obj0 = 0 ; | |
38324 | PyObject * obj1 = 0 ; | |
38325 | char *kwnames[] = { | |
38326 | (char *) "self",(char *) "colspan", NULL | |
38327 | }; | |
38328 | ||
38329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
38330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38332 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38333 | if (PyErr_Occurred()) SWIG_fail; |
38334 | { | |
38335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38336 | (arg1)->SetColspan(arg2); | |
38337 | ||
38338 | wxPyEndAllowThreads(__tstate); | |
38339 | if (PyErr_Occurred()) SWIG_fail; | |
38340 | } | |
38341 | Py_INCREF(Py_None); resultobj = Py_None; | |
38342 | return resultobj; | |
38343 | fail: | |
38344 | return NULL; | |
38345 | } | |
38346 | ||
38347 | ||
c32bde28 | 38348 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38349 | PyObject *resultobj; |
38350 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38351 | wxGBSpan *arg2 = 0 ; | |
38352 | bool result; | |
38353 | wxGBSpan temp2 ; | |
38354 | PyObject * obj0 = 0 ; | |
38355 | PyObject * obj1 = 0 ; | |
38356 | char *kwnames[] = { | |
38357 | (char *) "self",(char *) "other", NULL | |
38358 | }; | |
38359 | ||
38360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38363 | { | |
38364 | arg2 = &temp2; | |
38365 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38366 | } | |
38367 | { | |
38368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38369 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
38370 | ||
38371 | wxPyEndAllowThreads(__tstate); | |
38372 | if (PyErr_Occurred()) SWIG_fail; | |
38373 | } | |
38374 | { | |
38375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38376 | } | |
38377 | return resultobj; | |
38378 | fail: | |
38379 | return NULL; | |
38380 | } | |
38381 | ||
38382 | ||
c32bde28 | 38383 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38384 | PyObject *resultobj; |
38385 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38386 | wxGBSpan *arg2 = 0 ; | |
38387 | bool result; | |
38388 | wxGBSpan temp2 ; | |
38389 | PyObject * obj0 = 0 ; | |
38390 | PyObject * obj1 = 0 ; | |
38391 | char *kwnames[] = { | |
38392 | (char *) "self",(char *) "other", NULL | |
38393 | }; | |
38394 | ||
38395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38398 | { | |
38399 | arg2 = &temp2; | |
38400 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38401 | } | |
38402 | { | |
38403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38404 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
38405 | ||
38406 | wxPyEndAllowThreads(__tstate); | |
38407 | if (PyErr_Occurred()) SWIG_fail; | |
38408 | } | |
38409 | { | |
38410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38411 | } | |
38412 | return resultobj; | |
38413 | fail: | |
38414 | return NULL; | |
38415 | } | |
38416 | ||
38417 | ||
c32bde28 | 38418 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38419 | PyObject *resultobj; |
38420 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38421 | int arg2 = (int) 1 ; | |
38422 | int arg3 = (int) 1 ; | |
38423 | PyObject * obj0 = 0 ; | |
38424 | PyObject * obj1 = 0 ; | |
38425 | PyObject * obj2 = 0 ; | |
38426 | char *kwnames[] = { | |
38427 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
38428 | }; | |
38429 | ||
38430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38433 | if (obj1) { | |
c32bde28 | 38434 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38435 | if (PyErr_Occurred()) SWIG_fail; |
38436 | } | |
38437 | if (obj2) { | |
c32bde28 | 38438 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38439 | if (PyErr_Occurred()) SWIG_fail; |
38440 | } | |
38441 | { | |
38442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38443 | wxGBSpan_Set(arg1,arg2,arg3); | |
38444 | ||
38445 | wxPyEndAllowThreads(__tstate); | |
38446 | if (PyErr_Occurred()) SWIG_fail; | |
38447 | } | |
38448 | Py_INCREF(Py_None); resultobj = Py_None; | |
38449 | return resultobj; | |
38450 | fail: | |
38451 | return NULL; | |
38452 | } | |
38453 | ||
38454 | ||
c32bde28 | 38455 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38456 | PyObject *resultobj; |
38457 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38458 | PyObject *result; | |
38459 | PyObject * obj0 = 0 ; | |
38460 | char *kwnames[] = { | |
38461 | (char *) "self", NULL | |
38462 | }; | |
38463 | ||
38464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
38465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38467 | { | |
38468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38469 | result = (PyObject *)wxGBSpan_Get(arg1); | |
38470 | ||
38471 | wxPyEndAllowThreads(__tstate); | |
38472 | if (PyErr_Occurred()) SWIG_fail; | |
38473 | } | |
38474 | resultobj = result; | |
38475 | return resultobj; | |
38476 | fail: | |
38477 | return NULL; | |
38478 | } | |
38479 | ||
38480 | ||
c32bde28 | 38481 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38482 | PyObject *obj; |
38483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38484 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
38485 | Py_INCREF(obj); | |
38486 | return Py_BuildValue((char *)""); | |
38487 | } | |
c32bde28 | 38488 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
38489 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
38490 | return 1; | |
38491 | } | |
38492 | ||
38493 | ||
38494 | static PyObject *_wrap_DefaultSpan_get() { | |
38495 | PyObject *pyobj; | |
38496 | ||
38497 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
38498 | return pyobj; | |
38499 | } | |
38500 | ||
38501 | ||
c32bde28 | 38502 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38503 | PyObject *resultobj; |
38504 | wxGBSizerItem *result; | |
38505 | char *kwnames[] = { | |
38506 | NULL | |
38507 | }; | |
38508 | ||
38509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
38510 | { | |
38511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38512 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
38513 | ||
38514 | wxPyEndAllowThreads(__tstate); | |
38515 | if (PyErr_Occurred()) SWIG_fail; | |
38516 | } | |
38517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38518 | return resultobj; | |
38519 | fail: | |
38520 | return NULL; | |
38521 | } | |
38522 | ||
38523 | ||
c32bde28 | 38524 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38525 | PyObject *resultobj; |
38526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38527 | wxGBPosition *arg2 = 0 ; | |
38528 | wxGBSpan *arg3 = 0 ; | |
38529 | int arg4 ; | |
38530 | int arg5 ; | |
248ed943 | 38531 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38532 | wxGBSizerItem *result; |
38533 | wxGBPosition temp2 ; | |
38534 | wxGBSpan temp3 ; | |
38535 | PyObject * obj0 = 0 ; | |
38536 | PyObject * obj1 = 0 ; | |
38537 | PyObject * obj2 = 0 ; | |
38538 | PyObject * obj3 = 0 ; | |
38539 | PyObject * obj4 = 0 ; | |
38540 | PyObject * obj5 = 0 ; | |
38541 | char *kwnames[] = { | |
38542 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38543 | }; | |
38544 | ||
248ed943 | 38545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
38547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38548 | { | |
38549 | arg2 = &temp2; | |
38550 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38551 | } | |
38552 | { | |
38553 | arg3 = &temp3; | |
38554 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38555 | } | |
c32bde28 | 38556 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38557 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38558 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38559 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38560 | if (obj5) { |
38561 | arg6 = obj5; | |
38562 | } | |
d55e5bfc RD |
38563 | { |
38564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38565 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38566 | |
38567 | wxPyEndAllowThreads(__tstate); | |
38568 | if (PyErr_Occurred()) SWIG_fail; | |
38569 | } | |
38570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38571 | return resultobj; | |
38572 | fail: | |
38573 | return NULL; | |
38574 | } | |
38575 | ||
38576 | ||
c32bde28 | 38577 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38578 | PyObject *resultobj; |
38579 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38580 | wxGBPosition *arg2 = 0 ; | |
38581 | wxGBSpan *arg3 = 0 ; | |
38582 | int arg4 ; | |
38583 | int arg5 ; | |
248ed943 | 38584 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38585 | wxGBSizerItem *result; |
38586 | wxGBPosition temp2 ; | |
38587 | wxGBSpan temp3 ; | |
38588 | PyObject * obj0 = 0 ; | |
38589 | PyObject * obj1 = 0 ; | |
38590 | PyObject * obj2 = 0 ; | |
38591 | PyObject * obj3 = 0 ; | |
38592 | PyObject * obj4 = 0 ; | |
38593 | PyObject * obj5 = 0 ; | |
38594 | char *kwnames[] = { | |
38595 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38596 | }; | |
38597 | ||
248ed943 | 38598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
38600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38601 | { | |
38602 | arg2 = &temp2; | |
38603 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38604 | } | |
38605 | { | |
38606 | arg3 = &temp3; | |
38607 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38608 | } | |
c32bde28 | 38609 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38610 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38611 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38612 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38613 | if (obj5) { |
38614 | arg6 = obj5; | |
38615 | } | |
d55e5bfc RD |
38616 | { |
38617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38618 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38619 | |
38620 | wxPyEndAllowThreads(__tstate); | |
38621 | if (PyErr_Occurred()) SWIG_fail; | |
38622 | } | |
38623 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38624 | return resultobj; | |
38625 | fail: | |
38626 | return NULL; | |
38627 | } | |
38628 | ||
38629 | ||
c32bde28 | 38630 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38631 | PyObject *resultobj; |
38632 | int arg1 ; | |
38633 | int arg2 ; | |
38634 | wxGBPosition *arg3 = 0 ; | |
38635 | wxGBSpan *arg4 = 0 ; | |
38636 | int arg5 ; | |
38637 | int arg6 ; | |
248ed943 | 38638 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
38639 | wxGBSizerItem *result; |
38640 | wxGBPosition temp3 ; | |
38641 | wxGBSpan temp4 ; | |
38642 | PyObject * obj0 = 0 ; | |
38643 | PyObject * obj1 = 0 ; | |
38644 | PyObject * obj2 = 0 ; | |
38645 | PyObject * obj3 = 0 ; | |
38646 | PyObject * obj4 = 0 ; | |
38647 | PyObject * obj5 = 0 ; | |
38648 | PyObject * obj6 = 0 ; | |
38649 | char *kwnames[] = { | |
38650 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38651 | }; | |
38652 | ||
248ed943 | 38653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 38654 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 38655 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38656 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38657 | if (PyErr_Occurred()) SWIG_fail; |
38658 | { | |
38659 | arg3 = &temp3; | |
38660 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38661 | } | |
38662 | { | |
38663 | arg4 = &temp4; | |
38664 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38665 | } | |
c32bde28 | 38666 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38667 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38668 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 38669 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38670 | if (obj6) { |
38671 | arg7 = obj6; | |
38672 | } | |
d55e5bfc RD |
38673 | { |
38674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38675 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38676 | |
38677 | wxPyEndAllowThreads(__tstate); | |
38678 | if (PyErr_Occurred()) SWIG_fail; | |
38679 | } | |
38680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38681 | return resultobj; | |
38682 | fail: | |
38683 | return NULL; | |
38684 | } | |
38685 | ||
38686 | ||
c32bde28 | 38687 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38688 | PyObject *resultobj; |
38689 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38690 | wxGBPosition result; | |
38691 | PyObject * obj0 = 0 ; | |
38692 | char *kwnames[] = { | |
38693 | (char *) "self", NULL | |
38694 | }; | |
38695 | ||
38696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
38697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38699 | { | |
38700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38701 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38702 | ||
38703 | wxPyEndAllowThreads(__tstate); | |
38704 | if (PyErr_Occurred()) SWIG_fail; | |
38705 | } | |
38706 | { | |
38707 | wxGBPosition * resultptr; | |
38708 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38710 | } | |
38711 | return resultobj; | |
38712 | fail: | |
38713 | return NULL; | |
38714 | } | |
38715 | ||
38716 | ||
c32bde28 | 38717 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38718 | PyObject *resultobj; |
38719 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38720 | wxGBSpan result; | |
38721 | PyObject * obj0 = 0 ; | |
38722 | char *kwnames[] = { | |
38723 | (char *) "self", NULL | |
38724 | }; | |
38725 | ||
38726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38729 | { | |
38730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38731 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38732 | ||
38733 | wxPyEndAllowThreads(__tstate); | |
38734 | if (PyErr_Occurred()) SWIG_fail; | |
38735 | } | |
38736 | { | |
38737 | wxGBSpan * resultptr; | |
38738 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38739 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38740 | } | |
38741 | return resultobj; | |
38742 | fail: | |
38743 | return NULL; | |
38744 | } | |
38745 | ||
38746 | ||
c32bde28 | 38747 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38748 | PyObject *resultobj; |
38749 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38750 | wxGBPosition *arg2 = 0 ; | |
38751 | bool result; | |
38752 | wxGBPosition temp2 ; | |
38753 | PyObject * obj0 = 0 ; | |
38754 | PyObject * obj1 = 0 ; | |
38755 | char *kwnames[] = { | |
38756 | (char *) "self",(char *) "pos", NULL | |
38757 | }; | |
38758 | ||
38759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38762 | { | |
38763 | arg2 = &temp2; | |
38764 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38765 | } | |
38766 | { | |
38767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38768 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38769 | ||
38770 | wxPyEndAllowThreads(__tstate); | |
38771 | if (PyErr_Occurred()) SWIG_fail; | |
38772 | } | |
38773 | { | |
38774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38775 | } | |
38776 | return resultobj; | |
38777 | fail: | |
38778 | return NULL; | |
38779 | } | |
38780 | ||
38781 | ||
c32bde28 | 38782 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38783 | PyObject *resultobj; |
38784 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38785 | wxGBSpan *arg2 = 0 ; | |
38786 | bool result; | |
38787 | wxGBSpan temp2 ; | |
38788 | PyObject * obj0 = 0 ; | |
38789 | PyObject * obj1 = 0 ; | |
38790 | char *kwnames[] = { | |
38791 | (char *) "self",(char *) "span", NULL | |
38792 | }; | |
38793 | ||
38794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38797 | { | |
38798 | arg2 = &temp2; | |
38799 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38800 | } | |
38801 | { | |
38802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38803 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38804 | ||
38805 | wxPyEndAllowThreads(__tstate); | |
38806 | if (PyErr_Occurred()) SWIG_fail; | |
38807 | } | |
38808 | { | |
38809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38810 | } | |
38811 | return resultobj; | |
38812 | fail: | |
38813 | return NULL; | |
38814 | } | |
38815 | ||
38816 | ||
c32bde28 | 38817 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38818 | PyObject *resultobj; |
38819 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38820 | wxGBSizerItem *arg2 = 0 ; | |
38821 | bool result; | |
38822 | PyObject * obj0 = 0 ; | |
38823 | PyObject * obj1 = 0 ; | |
248ed943 RD |
38824 | char *kwnames[] = { |
38825 | (char *) "self",(char *) "other", NULL | |
38826 | }; | |
d55e5bfc | 38827 | |
248ed943 | 38828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38833 | SWIG_fail; | |
38834 | if (arg2 == NULL) { | |
38835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38836 | SWIG_fail; | |
38837 | } | |
38838 | { | |
38839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38840 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38841 | ||
38842 | wxPyEndAllowThreads(__tstate); | |
38843 | if (PyErr_Occurred()) SWIG_fail; | |
38844 | } | |
38845 | { | |
38846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38847 | } | |
38848 | return resultobj; | |
38849 | fail: | |
38850 | return NULL; | |
38851 | } | |
38852 | ||
38853 | ||
c32bde28 | 38854 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38855 | PyObject *resultobj; |
38856 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38857 | wxGBPosition *arg2 = 0 ; | |
38858 | wxGBSpan *arg3 = 0 ; | |
38859 | bool result; | |
38860 | wxGBPosition temp2 ; | |
38861 | wxGBSpan temp3 ; | |
38862 | PyObject * obj0 = 0 ; | |
38863 | PyObject * obj1 = 0 ; | |
38864 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38865 | char *kwnames[] = { |
38866 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38867 | }; | |
d55e5bfc | 38868 | |
248ed943 | 38869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38872 | { | |
38873 | arg2 = &temp2; | |
38874 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38875 | } | |
38876 | { | |
38877 | arg3 = &temp3; | |
38878 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38879 | } | |
38880 | { | |
38881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38882 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38883 | ||
38884 | wxPyEndAllowThreads(__tstate); | |
38885 | if (PyErr_Occurred()) SWIG_fail; | |
38886 | } | |
38887 | { | |
38888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38889 | } | |
38890 | return resultobj; | |
38891 | fail: | |
38892 | return NULL; | |
38893 | } | |
38894 | ||
38895 | ||
c32bde28 | 38896 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38897 | PyObject *resultobj; |
38898 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 38899 | wxGBPosition result; |
d55e5bfc | 38900 | PyObject * obj0 = 0 ; |
d55e5bfc | 38901 | char *kwnames[] = { |
248ed943 | 38902 | (char *) "self", NULL |
d55e5bfc RD |
38903 | }; |
38904 | ||
248ed943 | 38905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38908 | { |
38909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38910 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38911 | |
38912 | wxPyEndAllowThreads(__tstate); | |
38913 | if (PyErr_Occurred()) SWIG_fail; | |
38914 | } | |
248ed943 RD |
38915 | { |
38916 | wxGBPosition * resultptr; | |
38917 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38918 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38919 | } | |
d55e5bfc RD |
38920 | return resultobj; |
38921 | fail: | |
38922 | return NULL; | |
38923 | } | |
38924 | ||
38925 | ||
c32bde28 | 38926 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38927 | PyObject *resultobj; |
38928 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38929 | wxGridBagSizer *result; | |
38930 | PyObject * obj0 = 0 ; | |
38931 | char *kwnames[] = { | |
38932 | (char *) "self", NULL | |
38933 | }; | |
38934 | ||
38935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38938 | { | |
38939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38940 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38941 | ||
38942 | wxPyEndAllowThreads(__tstate); | |
38943 | if (PyErr_Occurred()) SWIG_fail; | |
38944 | } | |
38945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38946 | return resultobj; | |
38947 | fail: | |
38948 | return NULL; | |
38949 | } | |
38950 | ||
38951 | ||
c32bde28 | 38952 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38953 | PyObject *resultobj; |
38954 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38955 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38956 | PyObject * obj0 = 0 ; | |
38957 | PyObject * obj1 = 0 ; | |
38958 | char *kwnames[] = { | |
38959 | (char *) "self",(char *) "sizer", NULL | |
38960 | }; | |
38961 | ||
38962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38967 | { | |
38968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38969 | (arg1)->SetGBSizer(arg2); | |
38970 | ||
38971 | wxPyEndAllowThreads(__tstate); | |
38972 | if (PyErr_Occurred()) SWIG_fail; | |
38973 | } | |
38974 | Py_INCREF(Py_None); resultobj = Py_None; | |
38975 | return resultobj; | |
38976 | fail: | |
38977 | return NULL; | |
38978 | } | |
38979 | ||
38980 | ||
c32bde28 | 38981 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38982 | PyObject *obj; |
38983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38984 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38985 | Py_INCREF(obj); | |
38986 | return Py_BuildValue((char *)""); | |
38987 | } | |
c32bde28 | 38988 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38989 | PyObject *resultobj; |
38990 | int arg1 = (int) 0 ; | |
38991 | int arg2 = (int) 0 ; | |
38992 | wxGridBagSizer *result; | |
38993 | PyObject * obj0 = 0 ; | |
38994 | PyObject * obj1 = 0 ; | |
38995 | char *kwnames[] = { | |
38996 | (char *) "vgap",(char *) "hgap", NULL | |
38997 | }; | |
38998 | ||
38999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
39000 | if (obj0) { | |
c32bde28 | 39001 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
39002 | if (PyErr_Occurred()) SWIG_fail; |
39003 | } | |
39004 | if (obj1) { | |
c32bde28 | 39005 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39006 | if (PyErr_Occurred()) SWIG_fail; |
39007 | } | |
39008 | { | |
39009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39010 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
39011 | ||
39012 | wxPyEndAllowThreads(__tstate); | |
39013 | if (PyErr_Occurred()) SWIG_fail; | |
39014 | } | |
39015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
39016 | return resultobj; | |
39017 | fail: | |
39018 | return NULL; | |
39019 | } | |
39020 | ||
39021 | ||
c32bde28 | 39022 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39023 | PyObject *resultobj; |
39024 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39025 | PyObject *arg2 = (PyObject *) 0 ; | |
39026 | wxGBPosition *arg3 = 0 ; | |
39027 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
39028 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
39029 | int arg5 = (int) 0 ; | |
39030 | int arg6 = (int) 0 ; | |
39031 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 39032 | wxGBSizerItem *result; |
d55e5bfc RD |
39033 | wxGBPosition temp3 ; |
39034 | wxGBSpan temp4 ; | |
39035 | PyObject * obj0 = 0 ; | |
39036 | PyObject * obj1 = 0 ; | |
39037 | PyObject * obj2 = 0 ; | |
39038 | PyObject * obj3 = 0 ; | |
39039 | PyObject * obj4 = 0 ; | |
39040 | PyObject * obj5 = 0 ; | |
39041 | PyObject * obj6 = 0 ; | |
39042 | char *kwnames[] = { | |
39043 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39044 | }; | |
39045 | ||
39046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
39047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39049 | arg2 = obj1; | |
39050 | { | |
39051 | arg3 = &temp3; | |
39052 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39053 | } | |
39054 | if (obj3) { | |
39055 | { | |
39056 | arg4 = &temp4; | |
39057 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
39058 | } | |
39059 | } | |
39060 | if (obj4) { | |
c32bde28 | 39061 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
39062 | if (PyErr_Occurred()) SWIG_fail; |
39063 | } | |
39064 | if (obj5) { | |
c32bde28 | 39065 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
39066 | if (PyErr_Occurred()) SWIG_fail; |
39067 | } | |
39068 | if (obj6) { | |
39069 | arg7 = obj6; | |
39070 | } | |
39071 | { | |
39072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39073 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
39074 | |
39075 | wxPyEndAllowThreads(__tstate); | |
39076 | if (PyErr_Occurred()) SWIG_fail; | |
39077 | } | |
c1cb24a4 | 39078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
39079 | return resultobj; |
39080 | fail: | |
39081 | return NULL; | |
39082 | } | |
39083 | ||
39084 | ||
c32bde28 | 39085 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39086 | PyObject *resultobj; |
39087 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39088 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
c1cb24a4 | 39089 | wxGBSizerItem *result; |
d55e5bfc RD |
39090 | PyObject * obj0 = 0 ; |
39091 | PyObject * obj1 = 0 ; | |
39092 | char *kwnames[] = { | |
39093 | (char *) "self",(char *) "item", NULL | |
39094 | }; | |
39095 | ||
39096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
39097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39101 | { | |
39102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39103 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
39104 | |
39105 | wxPyEndAllowThreads(__tstate); | |
39106 | if (PyErr_Occurred()) SWIG_fail; | |
39107 | } | |
c1cb24a4 | 39108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
39109 | return resultobj; |
39110 | fail: | |
39111 | return NULL; | |
39112 | } | |
39113 | ||
39114 | ||
84f85550 RD |
39115 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
39116 | PyObject *resultobj; | |
39117 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39118 | int arg2 ; | |
39119 | int arg3 ; | |
39120 | wxSize result; | |
39121 | PyObject * obj0 = 0 ; | |
39122 | PyObject * obj1 = 0 ; | |
39123 | PyObject * obj2 = 0 ; | |
39124 | char *kwnames[] = { | |
39125 | (char *) "self",(char *) "row",(char *) "col", NULL | |
39126 | }; | |
39127 | ||
39128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39131 | arg2 = (int)SWIG_As_int(obj1); | |
39132 | if (PyErr_Occurred()) SWIG_fail; | |
39133 | arg3 = (int)SWIG_As_int(obj2); | |
39134 | if (PyErr_Occurred()) SWIG_fail; | |
39135 | { | |
39136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39137 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
39138 | ||
39139 | wxPyEndAllowThreads(__tstate); | |
39140 | if (PyErr_Occurred()) SWIG_fail; | |
39141 | } | |
39142 | { | |
39143 | wxSize * resultptr; | |
39144 | resultptr = new wxSize((wxSize &) result); | |
39145 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39146 | } | |
39147 | return resultobj; | |
39148 | fail: | |
39149 | return NULL; | |
39150 | } | |
39151 | ||
39152 | ||
c32bde28 | 39153 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39154 | PyObject *resultobj; |
39155 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39156 | wxSize result; | |
39157 | PyObject * obj0 = 0 ; | |
39158 | char *kwnames[] = { | |
39159 | (char *) "self", NULL | |
39160 | }; | |
39161 | ||
39162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
39163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39165 | { | |
39166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39167 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
39168 | ||
39169 | wxPyEndAllowThreads(__tstate); | |
39170 | if (PyErr_Occurred()) SWIG_fail; | |
39171 | } | |
39172 | { | |
39173 | wxSize * resultptr; | |
39174 | resultptr = new wxSize((wxSize &) result); | |
39175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39176 | } | |
39177 | return resultobj; | |
39178 | fail: | |
39179 | return NULL; | |
39180 | } | |
39181 | ||
39182 | ||
c32bde28 | 39183 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39184 | PyObject *resultobj; |
39185 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39186 | wxSize *arg2 = 0 ; | |
39187 | wxSize temp2 ; | |
39188 | PyObject * obj0 = 0 ; | |
39189 | PyObject * obj1 = 0 ; | |
39190 | char *kwnames[] = { | |
39191 | (char *) "self",(char *) "sz", NULL | |
39192 | }; | |
39193 | ||
39194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
39195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39197 | { | |
39198 | arg2 = &temp2; | |
39199 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39200 | } | |
39201 | { | |
39202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39203 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
39204 | ||
39205 | wxPyEndAllowThreads(__tstate); | |
39206 | if (PyErr_Occurred()) SWIG_fail; | |
39207 | } | |
39208 | Py_INCREF(Py_None); resultobj = Py_None; | |
39209 | return resultobj; | |
39210 | fail: | |
39211 | return NULL; | |
39212 | } | |
39213 | ||
39214 | ||
c32bde28 | 39215 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39216 | PyObject *resultobj; |
39217 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39218 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39219 | wxGBPosition result; | |
39220 | PyObject * obj0 = 0 ; | |
39221 | PyObject * obj1 = 0 ; | |
39222 | ||
39223 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39226 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39228 | { | |
39229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39230 | result = (arg1)->GetItemPosition(arg2); | |
39231 | ||
39232 | wxPyEndAllowThreads(__tstate); | |
39233 | if (PyErr_Occurred()) SWIG_fail; | |
39234 | } | |
39235 | { | |
39236 | wxGBPosition * resultptr; | |
39237 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39238 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39239 | } | |
39240 | return resultobj; | |
39241 | fail: | |
39242 | return NULL; | |
39243 | } | |
39244 | ||
39245 | ||
c32bde28 | 39246 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39247 | PyObject *resultobj; |
39248 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39249 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39250 | wxGBPosition result; | |
39251 | PyObject * obj0 = 0 ; | |
39252 | PyObject * obj1 = 0 ; | |
39253 | ||
39254 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39259 | { | |
39260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39261 | result = (arg1)->GetItemPosition(arg2); | |
39262 | ||
39263 | wxPyEndAllowThreads(__tstate); | |
39264 | if (PyErr_Occurred()) SWIG_fail; | |
39265 | } | |
39266 | { | |
39267 | wxGBPosition * resultptr; | |
39268 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39270 | } | |
39271 | return resultobj; | |
39272 | fail: | |
39273 | return NULL; | |
39274 | } | |
39275 | ||
39276 | ||
c32bde28 | 39277 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39278 | PyObject *resultobj; |
39279 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39280 | size_t arg2 ; | |
39281 | wxGBPosition result; | |
39282 | PyObject * obj0 = 0 ; | |
39283 | PyObject * obj1 = 0 ; | |
39284 | ||
39285 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39288 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39289 | if (PyErr_Occurred()) SWIG_fail; |
39290 | { | |
39291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39292 | result = (arg1)->GetItemPosition(arg2); | |
39293 | ||
39294 | wxPyEndAllowThreads(__tstate); | |
39295 | if (PyErr_Occurred()) SWIG_fail; | |
39296 | } | |
39297 | { | |
39298 | wxGBPosition * resultptr; | |
39299 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39300 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39301 | } | |
39302 | return resultobj; | |
39303 | fail: | |
39304 | return NULL; | |
39305 | } | |
39306 | ||
39307 | ||
39308 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
39309 | int argc; | |
39310 | PyObject *argv[3]; | |
39311 | int ii; | |
39312 | ||
39313 | argc = PyObject_Length(args); | |
39314 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39315 | argv[ii] = PyTuple_GetItem(args,ii); | |
39316 | } | |
39317 | if (argc == 2) { | |
39318 | int _v; | |
39319 | { | |
39320 | void *ptr; | |
39321 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39322 | _v = 0; | |
39323 | PyErr_Clear(); | |
39324 | } else { | |
39325 | _v = 1; | |
39326 | } | |
39327 | } | |
39328 | if (_v) { | |
39329 | { | |
39330 | void *ptr; | |
39331 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39332 | _v = 0; | |
39333 | PyErr_Clear(); | |
39334 | } else { | |
39335 | _v = 1; | |
39336 | } | |
39337 | } | |
39338 | if (_v) { | |
39339 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
39340 | } | |
39341 | } | |
39342 | } | |
39343 | if (argc == 2) { | |
39344 | int _v; | |
39345 | { | |
39346 | void *ptr; | |
39347 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39348 | _v = 0; | |
39349 | PyErr_Clear(); | |
39350 | } else { | |
39351 | _v = 1; | |
39352 | } | |
39353 | } | |
39354 | if (_v) { | |
39355 | { | |
39356 | void *ptr; | |
39357 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39358 | _v = 0; | |
39359 | PyErr_Clear(); | |
39360 | } else { | |
39361 | _v = 1; | |
39362 | } | |
39363 | } | |
39364 | if (_v) { | |
39365 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
39366 | } | |
39367 | } | |
39368 | } | |
39369 | if (argc == 2) { | |
39370 | int _v; | |
39371 | { | |
39372 | void *ptr; | |
39373 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39374 | _v = 0; | |
39375 | PyErr_Clear(); | |
39376 | } else { | |
39377 | _v = 1; | |
39378 | } | |
39379 | } | |
39380 | if (_v) { | |
c32bde28 | 39381 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39382 | if (_v) { |
39383 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
39384 | } | |
39385 | } | |
39386 | } | |
39387 | ||
39388 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
39389 | return NULL; | |
39390 | } | |
39391 | ||
39392 | ||
c32bde28 | 39393 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39394 | PyObject *resultobj; |
39395 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39396 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39397 | wxGBPosition *arg3 = 0 ; | |
39398 | bool result; | |
39399 | wxGBPosition temp3 ; | |
39400 | PyObject * obj0 = 0 ; | |
39401 | PyObject * obj1 = 0 ; | |
39402 | PyObject * obj2 = 0 ; | |
39403 | ||
39404 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) 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_wxWindow, | |
39408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39409 | { | |
39410 | arg3 = &temp3; | |
39411 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39412 | } | |
39413 | { | |
39414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39415 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39416 | ||
39417 | wxPyEndAllowThreads(__tstate); | |
39418 | if (PyErr_Occurred()) SWIG_fail; | |
39419 | } | |
39420 | { | |
39421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39422 | } | |
39423 | return resultobj; | |
39424 | fail: | |
39425 | return NULL; | |
39426 | } | |
39427 | ||
39428 | ||
c32bde28 | 39429 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39430 | PyObject *resultobj; |
39431 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39432 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39433 | wxGBPosition *arg3 = 0 ; | |
39434 | bool result; | |
39435 | wxGBPosition temp3 ; | |
39436 | PyObject * obj0 = 0 ; | |
39437 | PyObject * obj1 = 0 ; | |
39438 | PyObject * obj2 = 0 ; | |
39439 | ||
39440 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39445 | { | |
39446 | arg3 = &temp3; | |
39447 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39448 | } | |
39449 | { | |
39450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39451 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39452 | ||
39453 | wxPyEndAllowThreads(__tstate); | |
39454 | if (PyErr_Occurred()) SWIG_fail; | |
39455 | } | |
39456 | { | |
39457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39458 | } | |
39459 | return resultobj; | |
39460 | fail: | |
39461 | return NULL; | |
39462 | } | |
39463 | ||
39464 | ||
c32bde28 | 39465 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39466 | PyObject *resultobj; |
39467 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39468 | size_t arg2 ; | |
39469 | wxGBPosition *arg3 = 0 ; | |
39470 | bool result; | |
39471 | wxGBPosition temp3 ; | |
39472 | PyObject * obj0 = 0 ; | |
39473 | PyObject * obj1 = 0 ; | |
39474 | PyObject * obj2 = 0 ; | |
39475 | ||
39476 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39479 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39480 | if (PyErr_Occurred()) SWIG_fail; |
39481 | { | |
39482 | arg3 = &temp3; | |
39483 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39484 | } | |
39485 | { | |
39486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39487 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39488 | ||
39489 | wxPyEndAllowThreads(__tstate); | |
39490 | if (PyErr_Occurred()) SWIG_fail; | |
39491 | } | |
39492 | { | |
39493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39494 | } | |
39495 | return resultobj; | |
39496 | fail: | |
39497 | return NULL; | |
39498 | } | |
39499 | ||
39500 | ||
39501 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
39502 | int argc; | |
39503 | PyObject *argv[4]; | |
39504 | int ii; | |
39505 | ||
39506 | argc = PyObject_Length(args); | |
39507 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39508 | argv[ii] = PyTuple_GetItem(args,ii); | |
39509 | } | |
39510 | if (argc == 3) { | |
39511 | int _v; | |
39512 | { | |
39513 | void *ptr; | |
39514 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39515 | _v = 0; | |
39516 | PyErr_Clear(); | |
39517 | } else { | |
39518 | _v = 1; | |
39519 | } | |
39520 | } | |
39521 | if (_v) { | |
39522 | { | |
39523 | void *ptr; | |
39524 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39525 | _v = 0; | |
39526 | PyErr_Clear(); | |
39527 | } else { | |
39528 | _v = 1; | |
39529 | } | |
39530 | } | |
39531 | if (_v) { | |
39532 | { | |
39533 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39534 | } | |
39535 | if (_v) { | |
39536 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
39537 | } | |
39538 | } | |
39539 | } | |
39540 | } | |
39541 | if (argc == 3) { | |
39542 | int _v; | |
39543 | { | |
39544 | void *ptr; | |
39545 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39546 | _v = 0; | |
39547 | PyErr_Clear(); | |
39548 | } else { | |
39549 | _v = 1; | |
39550 | } | |
39551 | } | |
39552 | if (_v) { | |
39553 | { | |
39554 | void *ptr; | |
39555 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39556 | _v = 0; | |
39557 | PyErr_Clear(); | |
39558 | } else { | |
39559 | _v = 1; | |
39560 | } | |
39561 | } | |
39562 | if (_v) { | |
39563 | { | |
39564 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39565 | } | |
39566 | if (_v) { | |
39567 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
39568 | } | |
39569 | } | |
39570 | } | |
39571 | } | |
39572 | if (argc == 3) { | |
39573 | int _v; | |
39574 | { | |
39575 | void *ptr; | |
39576 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39577 | _v = 0; | |
39578 | PyErr_Clear(); | |
39579 | } else { | |
39580 | _v = 1; | |
39581 | } | |
39582 | } | |
39583 | if (_v) { | |
c32bde28 | 39584 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39585 | if (_v) { |
39586 | { | |
39587 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39588 | } | |
39589 | if (_v) { | |
39590 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
39591 | } | |
39592 | } | |
39593 | } | |
39594 | } | |
39595 | ||
39596 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
39597 | return NULL; | |
39598 | } | |
39599 | ||
39600 | ||
c32bde28 | 39601 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39602 | PyObject *resultobj; |
39603 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39604 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39605 | wxGBSpan result; | |
39606 | PyObject * obj0 = 0 ; | |
39607 | PyObject * obj1 = 0 ; | |
39608 | ||
39609 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39614 | { | |
39615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39616 | result = (arg1)->GetItemSpan(arg2); | |
39617 | ||
39618 | wxPyEndAllowThreads(__tstate); | |
39619 | if (PyErr_Occurred()) SWIG_fail; | |
39620 | } | |
39621 | { | |
39622 | wxGBSpan * resultptr; | |
39623 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39624 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39625 | } | |
39626 | return resultobj; | |
39627 | fail: | |
39628 | return NULL; | |
39629 | } | |
39630 | ||
39631 | ||
c32bde28 | 39632 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39633 | PyObject *resultobj; |
39634 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39635 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39636 | wxGBSpan result; | |
39637 | PyObject * obj0 = 0 ; | |
39638 | PyObject * obj1 = 0 ; | |
39639 | ||
39640 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39645 | { | |
39646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39647 | result = (arg1)->GetItemSpan(arg2); | |
39648 | ||
39649 | wxPyEndAllowThreads(__tstate); | |
39650 | if (PyErr_Occurred()) SWIG_fail; | |
39651 | } | |
39652 | { | |
39653 | wxGBSpan * resultptr; | |
39654 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39655 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39656 | } | |
39657 | return resultobj; | |
39658 | fail: | |
39659 | return NULL; | |
39660 | } | |
39661 | ||
39662 | ||
c32bde28 | 39663 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39664 | PyObject *resultobj; |
39665 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39666 | size_t arg2 ; | |
39667 | wxGBSpan result; | |
39668 | PyObject * obj0 = 0 ; | |
39669 | PyObject * obj1 = 0 ; | |
39670 | ||
39671 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39674 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39675 | if (PyErr_Occurred()) SWIG_fail; |
39676 | { | |
39677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39678 | result = (arg1)->GetItemSpan(arg2); | |
39679 | ||
39680 | wxPyEndAllowThreads(__tstate); | |
39681 | if (PyErr_Occurred()) SWIG_fail; | |
39682 | } | |
39683 | { | |
39684 | wxGBSpan * resultptr; | |
39685 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39687 | } | |
39688 | return resultobj; | |
39689 | fail: | |
39690 | return NULL; | |
39691 | } | |
39692 | ||
39693 | ||
39694 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39695 | int argc; | |
39696 | PyObject *argv[3]; | |
39697 | int ii; | |
39698 | ||
39699 | argc = PyObject_Length(args); | |
39700 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39701 | argv[ii] = PyTuple_GetItem(args,ii); | |
39702 | } | |
39703 | if (argc == 2) { | |
39704 | int _v; | |
39705 | { | |
39706 | void *ptr; | |
39707 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39708 | _v = 0; | |
39709 | PyErr_Clear(); | |
39710 | } else { | |
39711 | _v = 1; | |
39712 | } | |
39713 | } | |
39714 | if (_v) { | |
39715 | { | |
39716 | void *ptr; | |
39717 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39718 | _v = 0; | |
39719 | PyErr_Clear(); | |
39720 | } else { | |
39721 | _v = 1; | |
39722 | } | |
39723 | } | |
39724 | if (_v) { | |
39725 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39726 | } | |
39727 | } | |
39728 | } | |
39729 | if (argc == 2) { | |
39730 | int _v; | |
39731 | { | |
39732 | void *ptr; | |
39733 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39734 | _v = 0; | |
39735 | PyErr_Clear(); | |
39736 | } else { | |
39737 | _v = 1; | |
39738 | } | |
39739 | } | |
39740 | if (_v) { | |
39741 | { | |
39742 | void *ptr; | |
39743 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39744 | _v = 0; | |
39745 | PyErr_Clear(); | |
39746 | } else { | |
39747 | _v = 1; | |
39748 | } | |
39749 | } | |
39750 | if (_v) { | |
39751 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39752 | } | |
39753 | } | |
39754 | } | |
39755 | if (argc == 2) { | |
39756 | int _v; | |
39757 | { | |
39758 | void *ptr; | |
39759 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39760 | _v = 0; | |
39761 | PyErr_Clear(); | |
39762 | } else { | |
39763 | _v = 1; | |
39764 | } | |
39765 | } | |
39766 | if (_v) { | |
c32bde28 | 39767 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39768 | if (_v) { |
39769 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39770 | } | |
39771 | } | |
39772 | } | |
39773 | ||
39774 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39775 | return NULL; | |
39776 | } | |
39777 | ||
39778 | ||
c32bde28 | 39779 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39780 | PyObject *resultobj; |
39781 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39782 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39783 | wxGBSpan *arg3 = 0 ; | |
39784 | bool result; | |
39785 | wxGBSpan temp3 ; | |
39786 | PyObject * obj0 = 0 ; | |
39787 | PyObject * obj1 = 0 ; | |
39788 | PyObject * obj2 = 0 ; | |
39789 | ||
39790 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39795 | { | |
39796 | arg3 = &temp3; | |
39797 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39798 | } | |
39799 | { | |
39800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39801 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39802 | ||
39803 | wxPyEndAllowThreads(__tstate); | |
39804 | if (PyErr_Occurred()) SWIG_fail; | |
39805 | } | |
39806 | { | |
39807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39808 | } | |
39809 | return resultobj; | |
39810 | fail: | |
39811 | return NULL; | |
39812 | } | |
39813 | ||
39814 | ||
c32bde28 | 39815 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39816 | PyObject *resultobj; |
39817 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39818 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39819 | wxGBSpan *arg3 = 0 ; | |
39820 | bool result; | |
39821 | wxGBSpan temp3 ; | |
39822 | PyObject * obj0 = 0 ; | |
39823 | PyObject * obj1 = 0 ; | |
39824 | PyObject * obj2 = 0 ; | |
39825 | ||
39826 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39831 | { | |
39832 | arg3 = &temp3; | |
39833 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39834 | } | |
39835 | { | |
39836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39837 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39838 | ||
39839 | wxPyEndAllowThreads(__tstate); | |
39840 | if (PyErr_Occurred()) SWIG_fail; | |
39841 | } | |
39842 | { | |
39843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39844 | } | |
39845 | return resultobj; | |
39846 | fail: | |
39847 | return NULL; | |
39848 | } | |
39849 | ||
39850 | ||
c32bde28 | 39851 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39852 | PyObject *resultobj; |
39853 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39854 | size_t arg2 ; | |
39855 | wxGBSpan *arg3 = 0 ; | |
39856 | bool result; | |
39857 | wxGBSpan temp3 ; | |
39858 | PyObject * obj0 = 0 ; | |
39859 | PyObject * obj1 = 0 ; | |
39860 | PyObject * obj2 = 0 ; | |
39861 | ||
39862 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39865 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39866 | if (PyErr_Occurred()) SWIG_fail; |
39867 | { | |
39868 | arg3 = &temp3; | |
39869 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39870 | } | |
39871 | { | |
39872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39873 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39874 | ||
39875 | wxPyEndAllowThreads(__tstate); | |
39876 | if (PyErr_Occurred()) SWIG_fail; | |
39877 | } | |
39878 | { | |
39879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39880 | } | |
39881 | return resultobj; | |
39882 | fail: | |
39883 | return NULL; | |
39884 | } | |
39885 | ||
39886 | ||
39887 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39888 | int argc; | |
39889 | PyObject *argv[4]; | |
39890 | int ii; | |
39891 | ||
39892 | argc = PyObject_Length(args); | |
39893 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39894 | argv[ii] = PyTuple_GetItem(args,ii); | |
39895 | } | |
39896 | if (argc == 3) { | |
39897 | int _v; | |
39898 | { | |
39899 | void *ptr; | |
39900 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39901 | _v = 0; | |
39902 | PyErr_Clear(); | |
39903 | } else { | |
39904 | _v = 1; | |
39905 | } | |
39906 | } | |
39907 | if (_v) { | |
39908 | { | |
39909 | void *ptr; | |
39910 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39911 | _v = 0; | |
39912 | PyErr_Clear(); | |
39913 | } else { | |
39914 | _v = 1; | |
39915 | } | |
39916 | } | |
39917 | if (_v) { | |
39918 | { | |
39919 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39920 | } | |
39921 | if (_v) { | |
39922 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39923 | } | |
39924 | } | |
39925 | } | |
39926 | } | |
39927 | if (argc == 3) { | |
39928 | int _v; | |
39929 | { | |
39930 | void *ptr; | |
39931 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39932 | _v = 0; | |
39933 | PyErr_Clear(); | |
39934 | } else { | |
39935 | _v = 1; | |
39936 | } | |
39937 | } | |
39938 | if (_v) { | |
39939 | { | |
39940 | void *ptr; | |
39941 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39942 | _v = 0; | |
39943 | PyErr_Clear(); | |
39944 | } else { | |
39945 | _v = 1; | |
39946 | } | |
39947 | } | |
39948 | if (_v) { | |
39949 | { | |
39950 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39951 | } | |
39952 | if (_v) { | |
39953 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39954 | } | |
39955 | } | |
39956 | } | |
39957 | } | |
39958 | if (argc == 3) { | |
39959 | int _v; | |
39960 | { | |
39961 | void *ptr; | |
39962 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39963 | _v = 0; | |
39964 | PyErr_Clear(); | |
39965 | } else { | |
39966 | _v = 1; | |
39967 | } | |
39968 | } | |
39969 | if (_v) { | |
c32bde28 | 39970 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39971 | if (_v) { |
39972 | { | |
39973 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39974 | } | |
39975 | if (_v) { | |
39976 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39977 | } | |
39978 | } | |
39979 | } | |
39980 | } | |
39981 | ||
39982 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39983 | return NULL; | |
39984 | } | |
39985 | ||
39986 | ||
c32bde28 | 39987 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39988 | PyObject *resultobj; |
39989 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39990 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39991 | wxGBSizerItem *result; | |
39992 | PyObject * obj0 = 0 ; | |
39993 | PyObject * obj1 = 0 ; | |
39994 | ||
39995 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40000 | { | |
40001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40002 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
40003 | ||
40004 | wxPyEndAllowThreads(__tstate); | |
40005 | if (PyErr_Occurred()) SWIG_fail; | |
40006 | } | |
40007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40008 | return resultobj; | |
40009 | fail: | |
40010 | return NULL; | |
40011 | } | |
40012 | ||
40013 | ||
c32bde28 | 40014 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
40015 | PyObject *resultobj; |
40016 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40017 | wxSizer *arg2 = (wxSizer *) 0 ; | |
40018 | wxGBSizerItem *result; | |
40019 | PyObject * obj0 = 0 ; | |
40020 | PyObject * obj1 = 0 ; | |
40021 | ||
40022 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
40023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
40026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40027 | { | |
40028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40029 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
40030 | ||
40031 | wxPyEndAllowThreads(__tstate); | |
40032 | if (PyErr_Occurred()) SWIG_fail; | |
40033 | } | |
40034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40035 | return resultobj; | |
40036 | fail: | |
40037 | return NULL; | |
40038 | } | |
40039 | ||
40040 | ||
40041 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
40042 | int argc; | |
40043 | PyObject *argv[3]; | |
40044 | int ii; | |
40045 | ||
40046 | argc = PyObject_Length(args); | |
40047 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
40048 | argv[ii] = PyTuple_GetItem(args,ii); | |
40049 | } | |
40050 | if (argc == 2) { | |
40051 | int _v; | |
40052 | { | |
40053 | void *ptr; | |
40054 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40055 | _v = 0; | |
40056 | PyErr_Clear(); | |
40057 | } else { | |
40058 | _v = 1; | |
40059 | } | |
40060 | } | |
40061 | if (_v) { | |
40062 | { | |
40063 | void *ptr; | |
40064 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
40065 | _v = 0; | |
40066 | PyErr_Clear(); | |
40067 | } else { | |
40068 | _v = 1; | |
40069 | } | |
40070 | } | |
40071 | if (_v) { | |
40072 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
40073 | } | |
40074 | } | |
40075 | } | |
40076 | if (argc == 2) { | |
40077 | int _v; | |
40078 | { | |
40079 | void *ptr; | |
40080 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40081 | _v = 0; | |
40082 | PyErr_Clear(); | |
40083 | } else { | |
40084 | _v = 1; | |
40085 | } | |
40086 | } | |
40087 | if (_v) { | |
40088 | { | |
40089 | void *ptr; | |
40090 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
40091 | _v = 0; | |
40092 | PyErr_Clear(); | |
40093 | } else { | |
40094 | _v = 1; | |
40095 | } | |
40096 | } | |
40097 | if (_v) { | |
40098 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
40099 | } | |
40100 | } | |
40101 | } | |
40102 | ||
40103 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
40104 | return NULL; | |
40105 | } | |
40106 | ||
40107 | ||
c32bde28 | 40108 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40109 | PyObject *resultobj; |
40110 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40111 | wxGBPosition *arg2 = 0 ; | |
40112 | wxGBSizerItem *result; | |
40113 | wxGBPosition temp2 ; | |
40114 | PyObject * obj0 = 0 ; | |
40115 | PyObject * obj1 = 0 ; | |
40116 | char *kwnames[] = { | |
40117 | (char *) "self",(char *) "pos", NULL | |
40118 | }; | |
40119 | ||
40120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
40121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40123 | { | |
40124 | arg2 = &temp2; | |
40125 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40126 | } | |
40127 | { | |
40128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40129 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
40130 | ||
40131 | wxPyEndAllowThreads(__tstate); | |
40132 | if (PyErr_Occurred()) SWIG_fail; | |
40133 | } | |
40134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40135 | return resultobj; | |
40136 | fail: | |
40137 | return NULL; | |
40138 | } | |
40139 | ||
40140 | ||
c32bde28 | 40141 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40142 | PyObject *resultobj; |
40143 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40144 | wxPoint *arg2 = 0 ; | |
40145 | wxGBSizerItem *result; | |
40146 | wxPoint temp2 ; | |
40147 | PyObject * obj0 = 0 ; | |
40148 | PyObject * obj1 = 0 ; | |
40149 | char *kwnames[] = { | |
40150 | (char *) "self",(char *) "pt", NULL | |
40151 | }; | |
40152 | ||
40153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
40154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40156 | { | |
40157 | arg2 = &temp2; | |
40158 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40159 | } | |
40160 | { | |
40161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40162 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
40163 | ||
40164 | wxPyEndAllowThreads(__tstate); | |
40165 | if (PyErr_Occurred()) SWIG_fail; | |
40166 | } | |
40167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40168 | return resultobj; | |
40169 | fail: | |
40170 | return NULL; | |
40171 | } | |
40172 | ||
40173 | ||
c32bde28 | 40174 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40175 | PyObject *resultobj; |
40176 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40177 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
40178 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
40179 | bool result; | |
40180 | PyObject * obj0 = 0 ; | |
40181 | PyObject * obj1 = 0 ; | |
40182 | PyObject * obj2 = 0 ; | |
248ed943 RD |
40183 | char *kwnames[] = { |
40184 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
40185 | }; | |
d55e5bfc | 40186 | |
248ed943 | 40187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
40188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
40189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
40191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40192 | if (obj2) { | |
40193 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
40194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40195 | } | |
40196 | { | |
40197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40198 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
40199 | ||
40200 | wxPyEndAllowThreads(__tstate); | |
40201 | if (PyErr_Occurred()) SWIG_fail; | |
40202 | } | |
40203 | { | |
40204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40205 | } | |
40206 | return resultobj; | |
40207 | fail: | |
40208 | return NULL; | |
40209 | } | |
40210 | ||
40211 | ||
c32bde28 | 40212 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40213 | PyObject *resultobj; |
40214 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40215 | wxGBPosition *arg2 = 0 ; | |
40216 | wxGBSpan *arg3 = 0 ; | |
40217 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
40218 | bool result; | |
40219 | wxGBPosition temp2 ; | |
40220 | wxGBSpan temp3 ; | |
40221 | PyObject * obj0 = 0 ; | |
40222 | PyObject * obj1 = 0 ; | |
40223 | PyObject * obj2 = 0 ; | |
40224 | PyObject * obj3 = 0 ; | |
248ed943 RD |
40225 | char *kwnames[] = { |
40226 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
40227 | }; | |
d55e5bfc | 40228 | |
248ed943 | 40229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
40230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
40231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40232 | { | |
40233 | arg2 = &temp2; | |
40234 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40235 | } | |
40236 | { | |
40237 | arg3 = &temp3; | |
40238 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
40239 | } | |
40240 | if (obj3) { | |
40241 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
40242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40243 | } | |
40244 | { | |
40245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40246 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
40247 | ||
40248 | wxPyEndAllowThreads(__tstate); | |
40249 | if (PyErr_Occurred()) SWIG_fail; | |
40250 | } | |
40251 | { | |
40252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40253 | } | |
40254 | return resultobj; | |
40255 | fail: | |
40256 | return NULL; | |
40257 | } | |
40258 | ||
40259 | ||
c32bde28 | 40260 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40261 | PyObject *obj; |
40262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40263 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
40264 | Py_INCREF(obj); | |
40265 | return Py_BuildValue((char *)""); | |
40266 | } | |
c32bde28 | 40267 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40268 | PyObject *resultobj; |
40269 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40270 | int arg2 ; | |
40271 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40272 | int arg4 ; | |
40273 | int arg5 = (int) 0 ; | |
40274 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
40275 | PyObject * obj0 = 0 ; | |
40276 | PyObject * obj1 = 0 ; | |
40277 | PyObject * obj2 = 0 ; | |
40278 | PyObject * obj3 = 0 ; | |
40279 | PyObject * obj4 = 0 ; | |
40280 | PyObject * obj5 = 0 ; | |
40281 | char *kwnames[] = { | |
40282 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
40283 | }; | |
40284 | ||
40285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
40286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40288 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40289 | if (PyErr_Occurred()) SWIG_fail; |
40290 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40292 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40293 | if (PyErr_Occurred()) SWIG_fail; |
40294 | if (obj4) { | |
c32bde28 | 40295 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
40296 | if (PyErr_Occurred()) SWIG_fail; |
40297 | } | |
40298 | if (obj5) { | |
c32bde28 | 40299 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
40300 | if (PyErr_Occurred()) SWIG_fail; |
40301 | } | |
40302 | { | |
40303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40304 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
40305 | ||
40306 | wxPyEndAllowThreads(__tstate); | |
40307 | if (PyErr_Occurred()) SWIG_fail; | |
40308 | } | |
40309 | Py_INCREF(Py_None); resultobj = Py_None; | |
40310 | return resultobj; | |
40311 | fail: | |
40312 | return NULL; | |
40313 | } | |
40314 | ||
40315 | ||
c32bde28 | 40316 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40317 | PyObject *resultobj; |
40318 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40319 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40320 | int arg3 = (int) 0 ; | |
40321 | PyObject * obj0 = 0 ; | |
40322 | PyObject * obj1 = 0 ; | |
40323 | PyObject * obj2 = 0 ; | |
40324 | char *kwnames[] = { | |
40325 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40326 | }; | |
40327 | ||
40328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40333 | if (obj2) { | |
c32bde28 | 40334 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40335 | if (PyErr_Occurred()) SWIG_fail; |
40336 | } | |
40337 | { | |
40338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40339 | (arg1)->LeftOf(arg2,arg3); | |
40340 | ||
40341 | wxPyEndAllowThreads(__tstate); | |
40342 | if (PyErr_Occurred()) SWIG_fail; | |
40343 | } | |
40344 | Py_INCREF(Py_None); resultobj = Py_None; | |
40345 | return resultobj; | |
40346 | fail: | |
40347 | return NULL; | |
40348 | } | |
40349 | ||
40350 | ||
c32bde28 | 40351 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40352 | PyObject *resultobj; |
40353 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40354 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40355 | int arg3 = (int) 0 ; | |
40356 | PyObject * obj0 = 0 ; | |
40357 | PyObject * obj1 = 0 ; | |
40358 | PyObject * obj2 = 0 ; | |
40359 | char *kwnames[] = { | |
40360 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40361 | }; | |
40362 | ||
40363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40368 | if (obj2) { | |
c32bde28 | 40369 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40370 | if (PyErr_Occurred()) SWIG_fail; |
40371 | } | |
40372 | { | |
40373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40374 | (arg1)->RightOf(arg2,arg3); | |
40375 | ||
40376 | wxPyEndAllowThreads(__tstate); | |
40377 | if (PyErr_Occurred()) SWIG_fail; | |
40378 | } | |
40379 | Py_INCREF(Py_None); resultobj = Py_None; | |
40380 | return resultobj; | |
40381 | fail: | |
40382 | return NULL; | |
40383 | } | |
40384 | ||
40385 | ||
c32bde28 | 40386 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40387 | PyObject *resultobj; |
40388 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40390 | int arg3 = (int) 0 ; | |
40391 | PyObject * obj0 = 0 ; | |
40392 | PyObject * obj1 = 0 ; | |
40393 | PyObject * obj2 = 0 ; | |
40394 | char *kwnames[] = { | |
40395 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40396 | }; | |
40397 | ||
40398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40403 | if (obj2) { | |
c32bde28 | 40404 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40405 | if (PyErr_Occurred()) SWIG_fail; |
40406 | } | |
40407 | { | |
40408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40409 | (arg1)->Above(arg2,arg3); | |
40410 | ||
40411 | wxPyEndAllowThreads(__tstate); | |
40412 | if (PyErr_Occurred()) SWIG_fail; | |
40413 | } | |
40414 | Py_INCREF(Py_None); resultobj = Py_None; | |
40415 | return resultobj; | |
40416 | fail: | |
40417 | return NULL; | |
40418 | } | |
40419 | ||
40420 | ||
c32bde28 | 40421 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40422 | PyObject *resultobj; |
40423 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40424 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40425 | int arg3 = (int) 0 ; | |
40426 | PyObject * obj0 = 0 ; | |
40427 | PyObject * obj1 = 0 ; | |
40428 | PyObject * obj2 = 0 ; | |
40429 | char *kwnames[] = { | |
40430 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40431 | }; | |
40432 | ||
40433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40438 | if (obj2) { | |
c32bde28 | 40439 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40440 | if (PyErr_Occurred()) SWIG_fail; |
40441 | } | |
40442 | { | |
40443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40444 | (arg1)->Below(arg2,arg3); | |
40445 | ||
40446 | wxPyEndAllowThreads(__tstate); | |
40447 | if (PyErr_Occurred()) SWIG_fail; | |
40448 | } | |
40449 | Py_INCREF(Py_None); resultobj = Py_None; | |
40450 | return resultobj; | |
40451 | fail: | |
40452 | return NULL; | |
40453 | } | |
40454 | ||
40455 | ||
c32bde28 | 40456 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40457 | PyObject *resultobj; |
40458 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40459 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40460 | int arg3 ; | |
40461 | int arg4 = (int) 0 ; | |
40462 | PyObject * obj0 = 0 ; | |
40463 | PyObject * obj1 = 0 ; | |
40464 | PyObject * obj2 = 0 ; | |
40465 | PyObject * obj3 = 0 ; | |
40466 | char *kwnames[] = { | |
40467 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
40468 | }; | |
40469 | ||
40470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40475 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40476 | if (PyErr_Occurred()) SWIG_fail; |
40477 | if (obj3) { | |
c32bde28 | 40478 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40479 | if (PyErr_Occurred()) SWIG_fail; |
40480 | } | |
40481 | { | |
40482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40483 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
40484 | ||
40485 | wxPyEndAllowThreads(__tstate); | |
40486 | if (PyErr_Occurred()) SWIG_fail; | |
40487 | } | |
40488 | Py_INCREF(Py_None); resultobj = Py_None; | |
40489 | return resultobj; | |
40490 | fail: | |
40491 | return NULL; | |
40492 | } | |
40493 | ||
40494 | ||
c32bde28 | 40495 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40496 | PyObject *resultobj; |
40497 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40498 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40499 | int arg3 ; | |
40500 | int arg4 ; | |
40501 | PyObject * obj0 = 0 ; | |
40502 | PyObject * obj1 = 0 ; | |
40503 | PyObject * obj2 = 0 ; | |
40504 | PyObject * obj3 = 0 ; | |
40505 | char *kwnames[] = { | |
40506 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
40507 | }; | |
40508 | ||
40509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40514 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 40515 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 40516 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40517 | if (PyErr_Occurred()) SWIG_fail; |
40518 | { | |
40519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40520 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
40521 | ||
40522 | wxPyEndAllowThreads(__tstate); | |
40523 | if (PyErr_Occurred()) SWIG_fail; | |
40524 | } | |
40525 | Py_INCREF(Py_None); resultobj = Py_None; | |
40526 | return resultobj; | |
40527 | fail: | |
40528 | return NULL; | |
40529 | } | |
40530 | ||
40531 | ||
c32bde28 | 40532 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40533 | PyObject *resultobj; |
40534 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40535 | int arg2 ; | |
40536 | PyObject * obj0 = 0 ; | |
40537 | PyObject * obj1 = 0 ; | |
40538 | char *kwnames[] = { | |
40539 | (char *) "self",(char *) "val", NULL | |
40540 | }; | |
40541 | ||
40542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
40543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40545 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40546 | if (PyErr_Occurred()) SWIG_fail; |
40547 | { | |
40548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40549 | (arg1)->Absolute(arg2); | |
40550 | ||
40551 | wxPyEndAllowThreads(__tstate); | |
40552 | if (PyErr_Occurred()) SWIG_fail; | |
40553 | } | |
40554 | Py_INCREF(Py_None); resultobj = Py_None; | |
40555 | return resultobj; | |
40556 | fail: | |
40557 | return NULL; | |
40558 | } | |
40559 | ||
40560 | ||
c32bde28 | 40561 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40562 | PyObject *resultobj; |
40563 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40564 | PyObject * obj0 = 0 ; | |
40565 | char *kwnames[] = { | |
40566 | (char *) "self", NULL | |
40567 | }; | |
40568 | ||
40569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
40570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40572 | { | |
40573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40574 | (arg1)->Unconstrained(); | |
40575 | ||
40576 | wxPyEndAllowThreads(__tstate); | |
40577 | if (PyErr_Occurred()) SWIG_fail; | |
40578 | } | |
40579 | Py_INCREF(Py_None); resultobj = Py_None; | |
40580 | return resultobj; | |
40581 | fail: | |
40582 | return NULL; | |
40583 | } | |
40584 | ||
40585 | ||
c32bde28 | 40586 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40587 | PyObject *resultobj; |
40588 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40589 | PyObject * obj0 = 0 ; | |
40590 | char *kwnames[] = { | |
40591 | (char *) "self", NULL | |
40592 | }; | |
40593 | ||
40594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
40595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40597 | { | |
40598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40599 | (arg1)->AsIs(); | |
40600 | ||
40601 | wxPyEndAllowThreads(__tstate); | |
40602 | if (PyErr_Occurred()) SWIG_fail; | |
40603 | } | |
40604 | Py_INCREF(Py_None); resultobj = Py_None; | |
40605 | return resultobj; | |
40606 | fail: | |
40607 | return NULL; | |
40608 | } | |
40609 | ||
40610 | ||
c32bde28 | 40611 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40612 | PyObject *resultobj; |
40613 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40614 | wxWindow *result; | |
40615 | PyObject * obj0 = 0 ; | |
40616 | char *kwnames[] = { | |
40617 | (char *) "self", NULL | |
40618 | }; | |
40619 | ||
40620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
40621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40623 | { | |
40624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40625 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
40626 | ||
40627 | wxPyEndAllowThreads(__tstate); | |
40628 | if (PyErr_Occurred()) SWIG_fail; | |
40629 | } | |
40630 | { | |
412d302d | 40631 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
40632 | } |
40633 | return resultobj; | |
40634 | fail: | |
40635 | return NULL; | |
40636 | } | |
40637 | ||
40638 | ||
c32bde28 | 40639 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40640 | PyObject *resultobj; |
40641 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40642 | int result; | |
40643 | PyObject * obj0 = 0 ; | |
40644 | char *kwnames[] = { | |
40645 | (char *) "self", NULL | |
40646 | }; | |
40647 | ||
40648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
40649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40651 | { | |
40652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40653 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
40654 | ||
40655 | wxPyEndAllowThreads(__tstate); | |
40656 | if (PyErr_Occurred()) SWIG_fail; | |
40657 | } | |
c32bde28 | 40658 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40659 | return resultobj; |
40660 | fail: | |
40661 | return NULL; | |
40662 | } | |
40663 | ||
40664 | ||
c32bde28 | 40665 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40666 | PyObject *resultobj; |
40667 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40668 | int arg2 ; | |
40669 | PyObject * obj0 = 0 ; | |
40670 | PyObject * obj1 = 0 ; | |
40671 | char *kwnames[] = { | |
40672 | (char *) "self",(char *) "which", NULL | |
40673 | }; | |
40674 | ||
40675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40678 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40679 | if (PyErr_Occurred()) SWIG_fail; |
40680 | { | |
40681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40682 | (arg1)->SetEdge((wxEdge )arg2); | |
40683 | ||
40684 | wxPyEndAllowThreads(__tstate); | |
40685 | if (PyErr_Occurred()) SWIG_fail; | |
40686 | } | |
40687 | Py_INCREF(Py_None); resultobj = Py_None; | |
40688 | return resultobj; | |
40689 | fail: | |
40690 | return NULL; | |
40691 | } | |
40692 | ||
40693 | ||
c32bde28 | 40694 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40695 | PyObject *resultobj; |
40696 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40697 | int arg2 ; | |
40698 | PyObject * obj0 = 0 ; | |
40699 | PyObject * obj1 = 0 ; | |
40700 | char *kwnames[] = { | |
40701 | (char *) "self",(char *) "v", NULL | |
40702 | }; | |
40703 | ||
40704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40707 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40708 | if (PyErr_Occurred()) SWIG_fail; |
40709 | { | |
40710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40711 | (arg1)->SetValue(arg2); | |
40712 | ||
40713 | wxPyEndAllowThreads(__tstate); | |
40714 | if (PyErr_Occurred()) SWIG_fail; | |
40715 | } | |
40716 | Py_INCREF(Py_None); resultobj = Py_None; | |
40717 | return resultobj; | |
40718 | fail: | |
40719 | return NULL; | |
40720 | } | |
40721 | ||
40722 | ||
c32bde28 | 40723 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40724 | PyObject *resultobj; |
40725 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40726 | int result; | |
40727 | PyObject * obj0 = 0 ; | |
40728 | char *kwnames[] = { | |
40729 | (char *) "self", NULL | |
40730 | }; | |
40731 | ||
40732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40735 | { | |
40736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40737 | result = (int)(arg1)->GetMargin(); | |
40738 | ||
40739 | wxPyEndAllowThreads(__tstate); | |
40740 | if (PyErr_Occurred()) SWIG_fail; | |
40741 | } | |
c32bde28 | 40742 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40743 | return resultobj; |
40744 | fail: | |
40745 | return NULL; | |
40746 | } | |
40747 | ||
40748 | ||
c32bde28 | 40749 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40750 | PyObject *resultobj; |
40751 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40752 | int arg2 ; | |
40753 | PyObject * obj0 = 0 ; | |
40754 | PyObject * obj1 = 0 ; | |
40755 | char *kwnames[] = { | |
40756 | (char *) "self",(char *) "m", NULL | |
40757 | }; | |
40758 | ||
40759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40762 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40763 | if (PyErr_Occurred()) SWIG_fail; |
40764 | { | |
40765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40766 | (arg1)->SetMargin(arg2); | |
40767 | ||
40768 | wxPyEndAllowThreads(__tstate); | |
40769 | if (PyErr_Occurred()) SWIG_fail; | |
40770 | } | |
40771 | Py_INCREF(Py_None); resultobj = Py_None; | |
40772 | return resultobj; | |
40773 | fail: | |
40774 | return NULL; | |
40775 | } | |
40776 | ||
40777 | ||
c32bde28 | 40778 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40779 | PyObject *resultobj; |
40780 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40781 | int result; | |
40782 | PyObject * obj0 = 0 ; | |
40783 | char *kwnames[] = { | |
40784 | (char *) "self", NULL | |
40785 | }; | |
40786 | ||
40787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40790 | { | |
40791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40792 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40793 | ||
40794 | wxPyEndAllowThreads(__tstate); | |
40795 | if (PyErr_Occurred()) SWIG_fail; | |
40796 | } | |
c32bde28 | 40797 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40798 | return resultobj; |
40799 | fail: | |
40800 | return NULL; | |
40801 | } | |
40802 | ||
40803 | ||
c32bde28 | 40804 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40805 | PyObject *resultobj; |
40806 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40807 | int result; | |
40808 | PyObject * obj0 = 0 ; | |
40809 | char *kwnames[] = { | |
40810 | (char *) "self", NULL | |
40811 | }; | |
40812 | ||
40813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40816 | { | |
40817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40818 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40819 | ||
40820 | wxPyEndAllowThreads(__tstate); | |
40821 | if (PyErr_Occurred()) SWIG_fail; | |
40822 | } | |
c32bde28 | 40823 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40824 | return resultobj; |
40825 | fail: | |
40826 | return NULL; | |
40827 | } | |
40828 | ||
40829 | ||
c32bde28 | 40830 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40831 | PyObject *resultobj; |
40832 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40833 | int result; | |
40834 | PyObject * obj0 = 0 ; | |
40835 | char *kwnames[] = { | |
40836 | (char *) "self", NULL | |
40837 | }; | |
40838 | ||
40839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40842 | { | |
40843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40844 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40845 | ||
40846 | wxPyEndAllowThreads(__tstate); | |
40847 | if (PyErr_Occurred()) SWIG_fail; | |
40848 | } | |
c32bde28 | 40849 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40850 | return resultobj; |
40851 | fail: | |
40852 | return NULL; | |
40853 | } | |
40854 | ||
40855 | ||
c32bde28 | 40856 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40857 | PyObject *resultobj; |
40858 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40859 | bool result; | |
40860 | PyObject * obj0 = 0 ; | |
40861 | char *kwnames[] = { | |
40862 | (char *) "self", NULL | |
40863 | }; | |
40864 | ||
40865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40868 | { | |
40869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40870 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40871 | ||
40872 | wxPyEndAllowThreads(__tstate); | |
40873 | if (PyErr_Occurred()) SWIG_fail; | |
40874 | } | |
40875 | { | |
40876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40877 | } | |
40878 | return resultobj; | |
40879 | fail: | |
40880 | return NULL; | |
40881 | } | |
40882 | ||
40883 | ||
c32bde28 | 40884 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40885 | PyObject *resultobj; |
40886 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40887 | bool arg2 ; | |
40888 | PyObject * obj0 = 0 ; | |
40889 | PyObject * obj1 = 0 ; | |
40890 | char *kwnames[] = { | |
40891 | (char *) "self",(char *) "d", NULL | |
40892 | }; | |
40893 | ||
40894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40897 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
40898 | if (PyErr_Occurred()) SWIG_fail; |
40899 | { | |
40900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40901 | (arg1)->SetDone(arg2); | |
40902 | ||
40903 | wxPyEndAllowThreads(__tstate); | |
40904 | if (PyErr_Occurred()) SWIG_fail; | |
40905 | } | |
40906 | Py_INCREF(Py_None); resultobj = Py_None; | |
40907 | return resultobj; | |
40908 | fail: | |
40909 | return NULL; | |
40910 | } | |
40911 | ||
40912 | ||
c32bde28 | 40913 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40914 | PyObject *resultobj; |
40915 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40916 | int result; | |
40917 | PyObject * obj0 = 0 ; | |
40918 | char *kwnames[] = { | |
40919 | (char *) "self", NULL | |
40920 | }; | |
40921 | ||
40922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40925 | { | |
40926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40927 | result = (int)(arg1)->GetRelationship(); | |
40928 | ||
40929 | wxPyEndAllowThreads(__tstate); | |
40930 | if (PyErr_Occurred()) SWIG_fail; | |
40931 | } | |
c32bde28 | 40932 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40933 | return resultobj; |
40934 | fail: | |
40935 | return NULL; | |
40936 | } | |
40937 | ||
40938 | ||
c32bde28 | 40939 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40940 | PyObject *resultobj; |
40941 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40942 | int arg2 ; | |
40943 | PyObject * obj0 = 0 ; | |
40944 | PyObject * obj1 = 0 ; | |
40945 | char *kwnames[] = { | |
40946 | (char *) "self",(char *) "r", NULL | |
40947 | }; | |
40948 | ||
40949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40952 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40953 | if (PyErr_Occurred()) SWIG_fail; |
40954 | { | |
40955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40956 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40957 | ||
40958 | wxPyEndAllowThreads(__tstate); | |
40959 | if (PyErr_Occurred()) SWIG_fail; | |
40960 | } | |
40961 | Py_INCREF(Py_None); resultobj = Py_None; | |
40962 | return resultobj; | |
40963 | fail: | |
40964 | return NULL; | |
40965 | } | |
40966 | ||
40967 | ||
c32bde28 | 40968 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40969 | PyObject *resultobj; |
40970 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40971 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40972 | bool result; | |
40973 | PyObject * obj0 = 0 ; | |
40974 | PyObject * obj1 = 0 ; | |
40975 | char *kwnames[] = { | |
40976 | (char *) "self",(char *) "otherW", NULL | |
40977 | }; | |
40978 | ||
40979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40984 | { | |
40985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40986 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40987 | ||
40988 | wxPyEndAllowThreads(__tstate); | |
40989 | if (PyErr_Occurred()) SWIG_fail; | |
40990 | } | |
40991 | { | |
40992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40993 | } | |
40994 | return resultobj; | |
40995 | fail: | |
40996 | return NULL; | |
40997 | } | |
40998 | ||
40999 | ||
c32bde28 | 41000 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41001 | PyObject *resultobj; |
41002 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41003 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
41004 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41005 | bool result; | |
41006 | PyObject * obj0 = 0 ; | |
41007 | PyObject * obj1 = 0 ; | |
41008 | PyObject * obj2 = 0 ; | |
41009 | char *kwnames[] = { | |
41010 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
41011 | }; | |
41012 | ||
41013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
41014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41016 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
41017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41018 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
41019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41020 | { | |
41021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41022 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
41023 | ||
41024 | wxPyEndAllowThreads(__tstate); | |
41025 | if (PyErr_Occurred()) SWIG_fail; | |
41026 | } | |
41027 | { | |
41028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41029 | } | |
41030 | return resultobj; | |
41031 | fail: | |
41032 | return NULL; | |
41033 | } | |
41034 | ||
41035 | ||
c32bde28 | 41036 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41037 | PyObject *resultobj; |
41038 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41039 | int arg2 ; | |
41040 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41041 | wxWindow *arg4 = (wxWindow *) 0 ; | |
41042 | int result; | |
41043 | PyObject * obj0 = 0 ; | |
41044 | PyObject * obj1 = 0 ; | |
41045 | PyObject * obj2 = 0 ; | |
41046 | PyObject * obj3 = 0 ; | |
41047 | char *kwnames[] = { | |
41048 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
41049 | }; | |
41050 | ||
41051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
41052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 41054 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
41055 | if (PyErr_Occurred()) SWIG_fail; |
41056 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
41057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41058 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
41059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41060 | { | |
41061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41062 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
41063 | ||
41064 | wxPyEndAllowThreads(__tstate); | |
41065 | if (PyErr_Occurred()) SWIG_fail; | |
41066 | } | |
c32bde28 | 41067 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
41068 | return resultobj; |
41069 | fail: | |
41070 | return NULL; | |
41071 | } | |
41072 | ||
41073 | ||
c32bde28 | 41074 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41075 | PyObject *obj; |
41076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41077 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
41078 | Py_INCREF(obj); | |
41079 | return Py_BuildValue((char *)""); | |
41080 | } | |
c32bde28 | 41081 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41082 | PyObject *resultobj; |
41083 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41084 | wxIndividualLayoutConstraint *result; | |
41085 | PyObject * obj0 = 0 ; | |
41086 | char *kwnames[] = { | |
41087 | (char *) "self", NULL | |
41088 | }; | |
41089 | ||
41090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
41091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41093 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
41094 | ||
41095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41096 | return resultobj; | |
41097 | fail: | |
41098 | return NULL; | |
41099 | } | |
41100 | ||
41101 | ||
c32bde28 | 41102 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41103 | PyObject *resultobj; |
41104 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41105 | wxIndividualLayoutConstraint *result; | |
41106 | PyObject * obj0 = 0 ; | |
41107 | char *kwnames[] = { | |
41108 | (char *) "self", NULL | |
41109 | }; | |
41110 | ||
41111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
41112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41114 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
41115 | ||
41116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41117 | return resultobj; | |
41118 | fail: | |
41119 | return NULL; | |
41120 | } | |
41121 | ||
41122 | ||
c32bde28 | 41123 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41124 | PyObject *resultobj; |
41125 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41126 | wxIndividualLayoutConstraint *result; | |
41127 | PyObject * obj0 = 0 ; | |
41128 | char *kwnames[] = { | |
41129 | (char *) "self", NULL | |
41130 | }; | |
41131 | ||
41132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
41133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41135 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
41136 | ||
41137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41138 | return resultobj; | |
41139 | fail: | |
41140 | return NULL; | |
41141 | } | |
41142 | ||
41143 | ||
c32bde28 | 41144 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41145 | PyObject *resultobj; |
41146 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41147 | wxIndividualLayoutConstraint *result; | |
41148 | PyObject * obj0 = 0 ; | |
41149 | char *kwnames[] = { | |
41150 | (char *) "self", NULL | |
41151 | }; | |
41152 | ||
41153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
41154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41156 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
41157 | ||
41158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41159 | return resultobj; | |
41160 | fail: | |
41161 | return NULL; | |
41162 | } | |
41163 | ||
41164 | ||
c32bde28 | 41165 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41166 | PyObject *resultobj; |
41167 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41168 | wxIndividualLayoutConstraint *result; | |
41169 | PyObject * obj0 = 0 ; | |
41170 | char *kwnames[] = { | |
41171 | (char *) "self", NULL | |
41172 | }; | |
41173 | ||
41174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
41175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41177 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
41178 | ||
41179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41180 | return resultobj; | |
41181 | fail: | |
41182 | return NULL; | |
41183 | } | |
41184 | ||
41185 | ||
c32bde28 | 41186 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41187 | PyObject *resultobj; |
41188 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41189 | wxIndividualLayoutConstraint *result; | |
41190 | PyObject * obj0 = 0 ; | |
41191 | char *kwnames[] = { | |
41192 | (char *) "self", NULL | |
41193 | }; | |
41194 | ||
41195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
41196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41198 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
41199 | ||
41200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41201 | return resultobj; | |
41202 | fail: | |
41203 | return NULL; | |
41204 | } | |
41205 | ||
41206 | ||
c32bde28 | 41207 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41208 | PyObject *resultobj; |
41209 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41210 | wxIndividualLayoutConstraint *result; | |
41211 | PyObject * obj0 = 0 ; | |
41212 | char *kwnames[] = { | |
41213 | (char *) "self", NULL | |
41214 | }; | |
41215 | ||
41216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
41217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41219 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
41220 | ||
41221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41222 | return resultobj; | |
41223 | fail: | |
41224 | return NULL; | |
41225 | } | |
41226 | ||
41227 | ||
c32bde28 | 41228 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41229 | PyObject *resultobj; |
41230 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41231 | wxIndividualLayoutConstraint *result; | |
41232 | PyObject * obj0 = 0 ; | |
41233 | char *kwnames[] = { | |
41234 | (char *) "self", NULL | |
41235 | }; | |
41236 | ||
41237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
41238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41240 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
41241 | ||
41242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41243 | return resultobj; | |
41244 | fail: | |
41245 | return NULL; | |
41246 | } | |
41247 | ||
41248 | ||
c32bde28 | 41249 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41250 | PyObject *resultobj; |
41251 | wxLayoutConstraints *result; | |
41252 | char *kwnames[] = { | |
41253 | NULL | |
41254 | }; | |
41255 | ||
41256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
41257 | { | |
41258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41259 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
41260 | ||
41261 | wxPyEndAllowThreads(__tstate); | |
41262 | if (PyErr_Occurred()) SWIG_fail; | |
41263 | } | |
41264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
41265 | return resultobj; | |
41266 | fail: | |
41267 | return NULL; | |
41268 | } | |
41269 | ||
41270 | ||
c32bde28 | 41271 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41272 | PyObject *resultobj; |
41273 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41274 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41275 | int *arg3 = (int *) 0 ; | |
41276 | bool result; | |
41277 | int temp3 ; | |
c32bde28 | 41278 | int res3 = 0 ; |
d55e5bfc RD |
41279 | PyObject * obj0 = 0 ; |
41280 | PyObject * obj1 = 0 ; | |
41281 | char *kwnames[] = { | |
41282 | (char *) "self",(char *) "win", NULL | |
41283 | }; | |
41284 | ||
c32bde28 | 41285 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
41286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
41287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
41290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41291 | { | |
41292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41293 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
41294 | ||
41295 | wxPyEndAllowThreads(__tstate); | |
41296 | if (PyErr_Occurred()) SWIG_fail; | |
41297 | } | |
41298 | { | |
41299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41300 | } | |
c32bde28 RD |
41301 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
41302 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
41303 | return resultobj; |
41304 | fail: | |
41305 | return NULL; | |
41306 | } | |
41307 | ||
41308 | ||
c32bde28 | 41309 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41310 | PyObject *resultobj; |
41311 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41312 | bool result; | |
41313 | PyObject * obj0 = 0 ; | |
41314 | char *kwnames[] = { | |
41315 | (char *) "self", NULL | |
41316 | }; | |
41317 | ||
41318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
41319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41321 | { | |
41322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41323 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
41324 | ||
41325 | wxPyEndAllowThreads(__tstate); | |
41326 | if (PyErr_Occurred()) SWIG_fail; | |
41327 | } | |
41328 | { | |
41329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41330 | } | |
41331 | return resultobj; | |
41332 | fail: | |
41333 | return NULL; | |
41334 | } | |
41335 | ||
41336 | ||
c32bde28 | 41337 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41338 | PyObject *obj; |
41339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41340 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
41341 | Py_INCREF(obj); | |
41342 | return Py_BuildValue((char *)""); | |
41343 | } | |
41344 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
41345 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
41346 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
41347 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
41350 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41355 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41356 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41357 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41363 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41367 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
41371 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41373 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41376 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41377 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41379 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
41384 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41386 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41391 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41393 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41396 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
41399 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41401 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 41402 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41403 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, |
41404 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41405 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41407 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41408 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41409 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41411 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41413 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41414 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41415 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41417 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41419 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41420 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41421 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41423 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41424 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41425 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41427 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41430 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41432 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41434 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41437 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41439 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41442 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41443 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41445 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41449 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
41451 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41452 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41454 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41455 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41457 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41458 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41460 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41463 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41465 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41466 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41467 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41468 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41471 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41475 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41477 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41478 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
41479 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41480 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41481 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, |
41482 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41483 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41486 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41487 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41488 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41489 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41490 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41492 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41497 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
41498 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41499 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
41500 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41501 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41502 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41505 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
41508 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41509 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41514 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41516 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41521 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 | 41531 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
ae8162c8 | 41532 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c32bde28 RD |
41533 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
41534 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
41537 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41540 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41541 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
41543 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41546 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41551 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
41553 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
41563 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
41567 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41573 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41575 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41577 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41579 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41589 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41590 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, |
41591 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41595 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41596 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41598 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41600 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41603 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41608 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41610 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41611 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41620 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41622 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41629 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41632 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41635 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41637 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
41640 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
41642 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
41644 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
41646 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41647 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
41648 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
41650 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
41652 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
41654 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
41656 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41657 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
41658 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
41660 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
41662 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
41664 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41678 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41685 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41696 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41699 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41702 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41707 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41710 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41713 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41714 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41719 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41723 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41725 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41731 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41743 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41753 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41775 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41783 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41784 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41785 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41794 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41801 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41804 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41809 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41814 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41816 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41817 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41819 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41826 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41829 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41831 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41833 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41835 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41837 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41847 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41857 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41859 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41861 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41863 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41864 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41867 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41868 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41871 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41872 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41873 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41874 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41875 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41876 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41877 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41879 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41880 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41881 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41882 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41883 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41886 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41888 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41889 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41891 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41893 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41896 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41898 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41902 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41903 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41906 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41907 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41908 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41909 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41915 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41916 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41917 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41918 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41919 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41921 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41924 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41926 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41927 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41928 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41929 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41930 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41931 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41932 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41933 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41934 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41935 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41936 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41937 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41938 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41939 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41940 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41941 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41942 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41943 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41944 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41945 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41946 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41947 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41948 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41949 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41950 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41951 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41952 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41953 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41954 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41955 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41956 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41957 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41958 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41959 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41960 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41961 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41962 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41963 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41964 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41965 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41966 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41967 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41968 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41969 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41970 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41971 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41972 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41973 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41974 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41975 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41976 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41977 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41978 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41979 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41980 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41981 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41982 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 41983 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41984 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41985 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41986 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41987 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41988 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41989 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41990 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41991 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41992 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41993 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41994 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41995 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41996 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41997 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41998 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41999 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42000 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42001 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42002 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42003 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42004 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42005 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42006 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42007 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42008 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42009 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42010 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42011 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42012 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42013 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42014 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
42015 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42016 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42017 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42018 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42019 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42020 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42021 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42022 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
ae8162c8 RD |
42023 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
42024 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42025 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42026 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42027 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42028 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42029 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42030 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42031 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42032 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
42033 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
42034 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42035 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42036 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42037 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42038 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42039 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
42040 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42041 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42042 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42043 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
42044 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42045 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42046 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42047 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42048 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42049 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42050 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42051 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42052 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42053 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
42054 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42055 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42056 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42057 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42058 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42059 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42060 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42061 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42062 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42063 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42064 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42065 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42066 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42067 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42068 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42069 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42070 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42071 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42072 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42073 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42074 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42075 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42076 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42077 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42078 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42079 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42080 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42081 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42082 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42083 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42084 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42085 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42086 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42087 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42088 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42089 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42090 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42091 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42092 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42093 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42094 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42095 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42096 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42097 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42098 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42099 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42100 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42101 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42102 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42103 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42104 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42105 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42106 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42107 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42108 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42109 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42110 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42111 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42112 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42113 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42114 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42115 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42116 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42117 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42118 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42119 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42120 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42121 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42122 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42123 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42124 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42125 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42126 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42127 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42128 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42129 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42130 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42131 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42132 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42133 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42134 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42135 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42136 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42137 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42138 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42139 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42140 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42141 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42142 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42143 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42144 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42145 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42146 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42147 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42148 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42149 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42150 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42151 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42152 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42153 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42154 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42155 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42156 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42157 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42158 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42159 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42160 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42161 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42162 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42163 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42164 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42165 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42166 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42167 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42168 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42169 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42170 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42171 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42172 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42173 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42174 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42175 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42176 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42177 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42178 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42179 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42180 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42181 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42182 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42183 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42184 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42185 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42186 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42187 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42188 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42189 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42190 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42191 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42192 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42193 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42194 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42195 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42196 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42197 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42198 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42199 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42200 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42201 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42202 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42203 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42204 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42205 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42206 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42207 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42208 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42209 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42210 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42211 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42212 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42213 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42214 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42215 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42216 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42217 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42218 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42219 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42220 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42221 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42222 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
42223 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42224 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42225 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42226 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 RD |
42227 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
42228 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
42229 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL }, |
42230 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42231 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42232 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42233 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42234 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42235 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42236 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42237 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42238 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42239 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42240 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42241 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42242 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42243 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42244 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42245 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42246 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42247 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42248 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42249 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42250 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42251 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42252 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42253 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42254 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42255 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42256 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42257 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42258 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42259 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42260 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42261 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42262 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42263 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42264 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
42265 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42266 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42267 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42268 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42269 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42270 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42271 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42272 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42273 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42274 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42275 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42276 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42277 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42278 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
42279 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42280 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42281 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
42282 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42283 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42284 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42285 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42286 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42287 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42288 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42289 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42290 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42291 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42292 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42293 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42294 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42295 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42296 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42297 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42298 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42299 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42300 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42301 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42302 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42303 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42304 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42305 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42306 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42307 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42308 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42309 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42310 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42311 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42312 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42313 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42314 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42315 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42316 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42317 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42318 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42319 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42320 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42321 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42322 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42323 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42324 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42325 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42326 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42327 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42328 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42329 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42330 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42331 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42332 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42333 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42334 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42335 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42336 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
42337 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42338 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42339 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42340 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42341 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42342 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42343 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42344 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42345 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42346 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42347 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42348 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42349 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42350 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42351 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42352 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42353 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42354 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42355 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42356 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42357 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42358 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42359 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42360 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42361 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42362 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42363 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
42364 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42365 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42366 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42367 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42368 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42369 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42370 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42371 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42372 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42373 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42374 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42375 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42376 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42377 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42378 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42379 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42380 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42381 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42382 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42383 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42384 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42385 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42386 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42387 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42388 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42389 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42390 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42391 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42392 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42393 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42394 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42395 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42396 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42397 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42398 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42399 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42400 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42401 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42402 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42403 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42404 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42405 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42406 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42407 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
42408 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42409 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42410 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42411 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42412 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42413 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42414 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42415 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
42416 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42417 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42418 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42419 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42420 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42421 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42422 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42423 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42424 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42425 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42426 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42427 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42428 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42429 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42430 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42431 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42432 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
42433 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
42434 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42435 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42436 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42437 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42438 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42439 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42440 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42441 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42442 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42443 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42444 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42445 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42446 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42447 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42448 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42449 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 42450 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42451 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
42452 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42453 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42454 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42455 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42456 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42457 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42458 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42459 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42460 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42461 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42462 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42463 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42464 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42465 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42466 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42467 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42468 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42469 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42470 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
42471 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42472 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42473 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42474 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42475 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42476 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 42477 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42478 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42479 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42480 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42481 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42482 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42483 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42484 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42485 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42486 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42487 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42488 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42489 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42490 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42491 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42492 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42493 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42494 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42495 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42496 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42497 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42498 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42499 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42500 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
42501 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42502 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42503 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
42504 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42505 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42506 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42507 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
42508 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42509 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42510 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
42511 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42512 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42513 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42514 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42515 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42516 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42517 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42518 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42519 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42520 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
42521 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42522 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42523 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42524 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42525 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42526 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42527 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42528 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42529 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42530 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42531 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42532 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
42533 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42534 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42535 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42536 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42537 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42538 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42539 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42540 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42541 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42542 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
42543 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42544 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42545 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42546 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42547 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42548 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42549 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42550 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42551 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42552 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
42553 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42554 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42555 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42556 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42557 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42558 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42559 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42560 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42561 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42562 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42563 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42564 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42565 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42566 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
42567 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42568 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42569 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 42570 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42571 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42572 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42573 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
42574 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
42575 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
42576 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
42577 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
42578 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42579 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42580 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42581 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42582 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
42583 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42584 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42585 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42586 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42587 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42588 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42589 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42590 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42591 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42592 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42593 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42594 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42595 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42596 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42597 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42598 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42599 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42600 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42601 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42602 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42603 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42604 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42605 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42606 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42607 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42608 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42609 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
42610 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42611 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42612 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42613 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42614 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42615 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42616 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42617 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42618 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42619 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42620 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42621 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
42622 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
42623 | }; |
42624 | ||
42625 | ||
42626 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
42627 | ||
42628 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
42629 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
42630 | } | |
42631 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
42632 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
42633 | } | |
42634 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
42635 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42636 | } | |
42637 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
42638 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42639 | } | |
42640 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
42641 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
42642 | } | |
42643 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
42644 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42645 | } | |
42646 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
42647 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
42648 | } | |
42649 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
42650 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42651 | } | |
42652 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
42653 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42654 | } | |
42655 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
42656 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
42657 | } | |
42658 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
42659 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
42660 | } | |
42661 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
42662 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
42663 | } | |
42664 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
42665 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
42666 | } | |
42667 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
42668 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
42669 | } | |
42670 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
42671 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
42672 | } | |
42673 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
42674 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
42675 | } | |
42676 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
42677 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
42678 | } | |
42679 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
42680 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42681 | } | |
42682 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
42683 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
42684 | } | |
42685 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
42686 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42687 | } | |
42688 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
42689 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42690 | } | |
42691 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
42692 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
42693 | } | |
42694 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42695 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42696 | } | |
42697 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42698 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42699 | } | |
42700 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42701 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42702 | } | |
42703 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42704 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42705 | } | |
42706 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42707 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42708 | } | |
42709 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42710 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42711 | } | |
42712 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42713 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42714 | } | |
42715 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42716 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42717 | } | |
42718 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42719 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42720 | } | |
42721 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42722 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42723 | } | |
42724 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42725 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42726 | } | |
42727 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42728 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42729 | } | |
42730 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42731 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42732 | } | |
42733 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42734 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42735 | } | |
42736 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42737 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42738 | } | |
42739 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42740 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42741 | } | |
42742 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42743 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42744 | } | |
42745 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42746 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42747 | } | |
42748 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42749 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42750 | } | |
42751 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42752 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42753 | } | |
42754 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42755 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42756 | } | |
42757 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42758 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42759 | } | |
42760 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42761 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42762 | } | |
42763 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42764 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42765 | } | |
42766 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42767 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42768 | } | |
42769 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42770 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42771 | } | |
42772 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42773 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42774 | } | |
42775 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42776 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42777 | } | |
42778 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42779 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42780 | } | |
42781 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42782 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42783 | } | |
42784 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42785 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42786 | } | |
42787 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42788 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42789 | } | |
42790 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42791 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42792 | } | |
42793 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42794 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42795 | } | |
42796 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42797 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42798 | } | |
42799 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42800 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42801 | } | |
42802 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42803 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42804 | } | |
42805 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42806 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42807 | } | |
42808 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42809 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42810 | } | |
42811 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42812 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42813 | } | |
42814 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42815 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42816 | } | |
42817 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42818 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42819 | } | |
42820 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42821 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42822 | } | |
42823 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42824 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42825 | } | |
42826 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42827 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42828 | } | |
42829 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42830 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42831 | } | |
42832 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42833 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42834 | } | |
42835 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42836 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42837 | } | |
42838 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42839 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42840 | } | |
42841 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42842 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42843 | } | |
42844 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42845 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42846 | } | |
42847 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42848 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42849 | } | |
42850 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42851 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42852 | } | |
42853 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42854 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42855 | } | |
42856 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42857 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42858 | } | |
42859 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42860 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42861 | } | |
42862 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42863 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42864 | } | |
42865 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42866 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42867 | } | |
42868 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42869 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42870 | } | |
42871 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42872 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42873 | } | |
42874 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42875 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42876 | } | |
42877 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42878 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42879 | } | |
42880 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42881 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42882 | } | |
42883 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42884 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42885 | } | |
42886 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42887 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42888 | } | |
42889 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42890 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42891 | } | |
42892 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42893 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42894 | } | |
42895 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42896 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42897 | } | |
42898 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42899 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42900 | } | |
42901 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42902 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42903 | } | |
42904 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42905 | return (void *)((wxObject *) ((wxImage *) x)); | |
42906 | } | |
42907 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42908 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42909 | } | |
42910 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42911 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42912 | } | |
42913 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42914 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42915 | } | |
42916 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42917 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42918 | } | |
42919 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42920 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42921 | } | |
42922 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42923 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42924 | } | |
42925 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42926 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42927 | } | |
42928 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42929 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42930 | } | |
42931 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42932 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42933 | } | |
42934 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42935 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42936 | } | |
42937 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42938 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42939 | } | |
42940 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42941 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42942 | } | |
42943 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42944 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42945 | } | |
42946 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42947 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42948 | } | |
42949 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42950 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42951 | } | |
42952 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42953 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42954 | } | |
42955 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42956 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42957 | } | |
42958 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42959 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42960 | } | |
42961 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42962 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42963 | } | |
42964 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42965 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42966 | } | |
42967 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42968 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42969 | } | |
42970 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42971 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42972 | } | |
42973 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42974 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42975 | } | |
42976 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42977 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42978 | } | |
42979 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42980 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42981 | } | |
42982 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42983 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42984 | } | |
42985 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42986 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42987 | } | |
42988 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42989 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42990 | } | |
42991 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42992 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42993 | } | |
42994 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42995 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42996 | } | |
42997 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42998 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42999 | } | |
43000 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
43001 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
43002 | } | |
43003 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
43004 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
43005 | } | |
43006 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
43007 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
43008 | } | |
43009 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
43010 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
43011 | } | |
43012 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
43013 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
43014 | } | |
43015 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
43016 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
43017 | } | |
43018 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
43019 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
43020 | } | |
43021 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
43022 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
43023 | } | |
43024 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
43025 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
43026 | } | |
43027 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
43028 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
43029 | } | |
43030 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
43031 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
43032 | } | |
43033 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
43034 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
43035 | } | |
43036 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
43037 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
43038 | } | |
43039 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
43040 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
43041 | } | |
43042 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
43043 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
43044 | } | |
43045 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
43046 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
43047 | } | |
43048 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
43049 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
43050 | } | |
43051 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
43052 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
43053 | } | |
43054 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
43055 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
43056 | } | |
43057 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
43058 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
43059 | } | |
43060 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
43061 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
43062 | } | |
43063 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
43064 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
43065 | } | |
43066 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
43067 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
43068 | } | |
43069 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
43070 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
43071 | } | |
43072 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
43073 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
43074 | } | |
43075 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
43076 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
43077 | } | |
43078 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
43079 | return (void *)((wxWindow *) ((wxControl *) x)); | |
43080 | } | |
43081 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
43082 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
43083 | } | |
43084 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
43085 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
43086 | } | |
43087 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
43088 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
43089 | } | |
43090 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
43091 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
43092 | } | |
43093 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
43094 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
43095 | } | |
43096 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
43097 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
43098 | } | |
43099 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
43100 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
43101 | } | |
43102 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
43103 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
43104 | } | |
43105 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
43106 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
43107 | } | |
43108 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
43109 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
43110 | } | |
43111 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
43112 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
43113 | } | |
43114 | 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}}; | |
43115 | 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}}; | |
43116 | 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}}; | |
43117 | 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}}; | |
43118 | 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 | 43119 | 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 |
43120 | 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}}; |
43121 | 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}}; | |
43122 | 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}}; | |
43123 | 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}}; | |
43124 | 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}}; | |
43125 | 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}}; | |
43126 | 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}}; | |
43127 | 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}}; | |
43128 | 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}}; | |
43129 | 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}}; | |
43130 | 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}}; | |
43131 | 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}}; | |
43132 | 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}}; | |
43133 | 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}}; | |
43134 | 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}}; | |
43135 | 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}}; | |
43136 | 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}}; | |
43137 | 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}}; | |
43138 | 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}}; | |
43139 | 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}}; | |
43140 | 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}}; | |
43141 | 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}}; | |
43142 | 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}}; | |
43143 | 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}}; | |
43144 | 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}}; | |
43145 | 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}}; | |
43146 | 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}}; | |
43147 | 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}}; | |
43148 | 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}}; | |
43149 | 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}}; | |
43150 | 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}}; | |
43151 | 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}}; | |
43152 | 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}}; | |
43153 | 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}}; | |
43154 | 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}}; | |
43155 | 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}}; | |
43156 | 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}}; | |
43157 | 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}}; | |
43158 | 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 |
43159 | 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}}; |
43160 | 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}}; | |
43161 | 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}}; | |
43162 | 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 | 43163 | 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 |
43164 | 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}}; |
43165 | 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}}; | |
43166 | 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}}; | |
43167 | 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}}; | |
43168 | 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}}; | |
43169 | 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}}; | |
43170 | 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}}; | |
43171 | 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}}; | |
43172 | 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}}; | |
43173 | 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}}; | |
43174 | 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}}; | |
43175 | 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}}; | |
43176 | 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}}; | |
43177 | 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}}; | |
43178 | 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}}; | |
43179 | 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}}; | |
43180 | 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}}; | |
43181 | 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}}; | |
43182 | 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}}; | |
43183 | 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}}; | |
43184 | 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}}; | |
43185 | 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}}; | |
43186 | 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}}; | |
43187 | 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}}; | |
43188 | 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}}; | |
43189 | 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}}; | |
43190 | 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}}; | |
43191 | 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}}; | |
43192 | 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}}; | |
43193 | 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}}; | |
43194 | 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}}; | |
43195 | 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}}; | |
43196 | 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}}; | |
43197 | 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}}; | |
43198 | 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}}; | |
43199 | 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}}; | |
43200 | 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}}; | |
43201 | 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}}; | |
43202 | 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}}; | |
43203 | 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}}; | |
43204 | 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}}; | |
43205 | 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}}; | |
43206 | 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}}; | |
43207 | 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}}; | |
43208 | 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}}; | |
43209 | 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}}; | |
43210 | 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}}; | |
43211 | 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}}; | |
43212 | 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}}; | |
43213 | 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}}; | |
43214 | 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}}; | |
43215 | 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}}; | |
43216 | 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}}; | |
43217 | 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}}; | |
43218 | 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}}; | |
43219 | 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}}; | |
43220 | 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}}; | |
43221 | 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}}; | |
43222 | 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 | 43223 | 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 |
43224 | 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}}; |
43225 | 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}}; | |
43226 | 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}}; | |
43227 | 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}}; | |
43228 | 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}}; | |
43229 | 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}}; | |
43230 | 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}}; | |
43231 | ||
43232 | static swig_type_info *swig_types_initial[] = { | |
43233 | _swigt__p_wxLayoutConstraints, | |
43234 | _swigt__p_wxRealPoint, | |
43235 | _swigt__p_wxSizerItem, | |
43236 | _swigt__p_wxGBSizerItem, | |
43237 | _swigt__p_wxScrollEvent, | |
ae8162c8 | 43238 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
43239 | _swigt__p_wxIndividualLayoutConstraint, |
43240 | _swigt__p_wxSizer, | |
43241 | _swigt__p_wxBoxSizer, | |
43242 | _swigt__p_wxStaticBoxSizer, | |
43243 | _swigt__p_wxGridBagSizer, | |
43244 | _swigt__p_wxAcceleratorEntry, | |
43245 | _swigt__p_wxUpdateUIEvent, | |
43246 | _swigt__p_wxMenu, | |
43247 | _swigt__p_wxEvent, | |
43248 | _swigt__p_wxGridSizer, | |
43249 | _swigt__p_wxFlexGridSizer, | |
43250 | _swigt__p_wxInitDialogEvent, | |
43251 | _swigt__p_wxItemContainer, | |
43252 | _swigt__p_wxNcPaintEvent, | |
43253 | _swigt__p_wxPaintEvent, | |
43254 | _swigt__p_wxSysColourChangedEvent, | |
43255 | _swigt__p_wxMouseCaptureChangedEvent, | |
43256 | _swigt__p_wxDisplayChangedEvent, | |
43257 | _swigt__p_wxPaletteChangedEvent, | |
43258 | _swigt__p_wxControl, | |
43259 | _swigt__p_wxFont, | |
43260 | _swigt__p_wxMenuBarBase, | |
43261 | _swigt__p_wxSetCursorEvent, | |
43262 | _swigt__p_wxFSFile, | |
43263 | _swigt__p_wxCaret, | |
43264 | _swigt__p_wxRegion, | |
43265 | _swigt__p_wxPoint2D, | |
43266 | _swigt__p_int, | |
43267 | _swigt__p_wxSize, | |
43268 | _swigt__p_wxDC, | |
43269 | _swigt__p_wxPySizer, | |
43270 | _swigt__p_wxVisualAttributes, | |
43271 | _swigt__p_wxNotifyEvent, | |
43272 | _swigt__p_wxPyEvent, | |
43273 | _swigt__p_wxPropagationDisabler, | |
43274 | _swigt__p_wxAppTraits, | |
43275 | _swigt__p_wxArrayString, | |
43276 | _swigt__p_wxShowEvent, | |
43277 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
43278 | _swigt__p_wxIconizeEvent, |
43279 | _swigt__p_wxActivateEvent, | |
43280 | _swigt__p_wxMoveEvent, | |
43281 | _swigt__p_wxSizeEvent, | |
c0de73ae | 43282 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
43283 | _swigt__p_wxQueryNewPaletteEvent, |
43284 | _swigt__p_wxWindowCreateEvent, | |
43285 | _swigt__p_wxIdleEvent, | |
43286 | _swigt__p_wxMenuItem, | |
43287 | _swigt__p_wxStaticBox, | |
43288 | _swigt__p_long, | |
43289 | _swigt__p_wxTIFFHandler, | |
43290 | _swigt__p_wxXPMHandler, | |
43291 | _swigt__p_wxPNMHandler, | |
43292 | _swigt__p_wxJPEGHandler, | |
43293 | _swigt__p_wxPCXHandler, | |
43294 | _swigt__p_wxGIFHandler, | |
43295 | _swigt__p_wxPNGHandler, | |
43296 | _swigt__p_wxANIHandler, | |
43297 | _swigt__p_wxMemoryFSHandler, | |
43298 | _swigt__p_wxEvtHandler, | |
43299 | _swigt__p_wxCURHandler, | |
43300 | _swigt__p_wxICOHandler, | |
43301 | _swigt__p_wxBMPHandler, | |
43302 | _swigt__p_wxImageHandler, | |
43303 | _swigt__p_wxFileSystemHandler, | |
43304 | _swigt__p_wxPyFileSystemHandler, | |
43305 | _swigt__p_wxInternetFSHandler, | |
43306 | _swigt__p_wxZipFSHandler, | |
43307 | _swigt__p_wxRect, | |
43308 | _swigt__p_wxGBSpan, | |
43309 | _swigt__p_wxPropagateOnce, | |
43310 | _swigt__p_wxAcceleratorTable, | |
43311 | _swigt__p_char, | |
43312 | _swigt__p_wxGBPosition, | |
43313 | _swigt__p_wxImage, | |
43314 | _swigt__p_wxFrame, | |
43315 | _swigt__p_wxScrollWinEvent, | |
43316 | _swigt__p_wxImageHistogram, | |
43317 | _swigt__p_byte, | |
43318 | _swigt__p_wxPoint, | |
43319 | _swigt__p_wxCursor, | |
43320 | _swigt__p_wxObject, | |
43321 | _swigt__p_wxPyInputStream, | |
43322 | _swigt__p_wxOutputStream, | |
43323 | _swigt__p_wxInputStream, | |
43324 | _swigt__p_wxDateTime, | |
43325 | _swigt__p_wxKeyEvent, | |
43326 | _swigt__p_wxNavigationKeyEvent, | |
43327 | _swigt__p_wxWindowDestroyEvent, | |
43328 | _swigt__p_wxWindow, | |
43329 | _swigt__p_wxMenuBar, | |
43330 | _swigt__p_wxFileSystem, | |
43331 | _swigt__p_wxBitmap, | |
43332 | _swigt__p_wxMenuEvent, | |
43333 | _swigt__p_wxContextMenuEvent, | |
43334 | _swigt__p_unsigned_char, | |
43335 | _swigt__p_wxCloseEvent, | |
43336 | _swigt__p_wxEraseEvent, | |
43337 | _swigt__p_wxMouseEvent, | |
43338 | _swigt__p_wxPyApp, | |
43339 | _swigt__p_wxCommandEvent, | |
43340 | _swigt__p_wxPyCommandEvent, | |
43341 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 43342 | _swigt__p_wxQuantize, |
d55e5bfc RD |
43343 | _swigt__p_wxChildFocusEvent, |
43344 | _swigt__p_wxFocusEvent, | |
43345 | _swigt__p_wxDropFilesEvent, | |
43346 | _swigt__p_wxControlWithItems, | |
43347 | _swigt__p_wxColour, | |
43348 | _swigt__p_wxValidator, | |
43349 | _swigt__p_wxPyValidator, | |
43350 | 0 | |
43351 | }; | |
43352 | ||
43353 | ||
43354 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43355 | ||
43356 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 43357 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
43358 | |
43359 | #ifdef __cplusplus | |
43360 | } | |
43361 | #endif | |
43362 | ||
43363 | #ifdef __cplusplus | |
43364 | extern "C" | |
43365 | #endif | |
43366 | SWIGEXPORT(void) SWIG_init(void) { | |
43367 | static PyObject *SWIG_globals = 0; | |
43368 | static int typeinit = 0; | |
43369 | PyObject *m, *d; | |
43370 | int i; | |
43371 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
43372 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43373 | d = PyModule_GetDict(m); | |
43374 | ||
43375 | if (!typeinit) { | |
43376 | for (i = 0; swig_types_initial[i]; i++) { | |
43377 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
43378 | } | |
43379 | typeinit = 1; | |
43380 | } | |
43381 | SWIG_InstallConstants(d,swig_const_table); | |
43382 | ||
43383 | ||
43384 | #ifndef wxPyUSE_EXPORT | |
43385 | // Make our API structure a CObject so other modules can import it | |
43386 | // from this module. | |
43387 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
43388 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
43389 | Py_XDECREF(cobj); | |
43390 | #endif | |
43391 | ||
c32bde28 RD |
43392 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
43393 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
43394 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
43395 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
43396 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
43397 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
43398 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
43399 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
43400 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
43401 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
43402 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
43403 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
43404 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
43405 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
43406 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
43407 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
43408 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
43409 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
43410 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
43411 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
43412 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
43413 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
43414 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
43415 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
43416 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
43417 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
43418 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
43419 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
43420 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
43421 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
43422 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
43423 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
43424 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
43425 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
43426 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
43427 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
43428 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
43429 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
43430 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
43431 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
43432 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
43433 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
43434 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
43435 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
43436 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
43437 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
43438 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
43439 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
43440 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
43441 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
43442 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
43443 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
43444 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
43445 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
43446 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
43447 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
43448 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
43449 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
43450 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
43451 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
43452 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
43453 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
43454 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
43455 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
43456 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
43457 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
43458 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
43459 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
43460 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
43461 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
43462 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
43463 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
43464 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
43465 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
43466 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
43467 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
43468 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
43469 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
43470 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
43471 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
43472 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
43473 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
43474 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
43475 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
43476 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
43477 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
43478 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
43479 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
43480 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
43481 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
43482 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
43483 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
43484 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
43485 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
43486 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
43487 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
43488 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
43489 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
43490 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
43491 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
43492 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
43493 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
43494 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
43495 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
43496 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
43497 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
43498 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
43499 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
43500 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
43501 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
43502 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
43503 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
43504 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
43505 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
43506 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
43507 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
43508 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
43509 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
43510 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
43511 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
43512 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
43513 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
43514 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
43515 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
43516 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
43517 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
43518 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
43519 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
43520 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
43521 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
43522 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
43523 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
43524 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
43525 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
43526 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
43527 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
43528 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
43529 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
43530 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
43531 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
43532 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
43533 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
43534 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
43535 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
43536 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
43537 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
43538 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
43539 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
43540 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
43541 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
43542 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
43543 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
43544 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
43545 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
43546 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
43547 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
43548 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
43549 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
43550 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
43551 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
43552 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
43553 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
43554 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
43555 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
43556 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
43557 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
43558 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
43559 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
43560 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
43561 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
43562 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
43563 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
43564 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
43565 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
43566 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
43567 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
43568 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
43569 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
43570 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
43571 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
43572 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
43573 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
43574 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
43575 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
43576 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
43577 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
43578 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
43579 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
43580 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
43581 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
43582 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
43583 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
43584 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
43585 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
43586 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
43587 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
43588 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
43589 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
43590 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
43591 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
43592 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
43593 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
43594 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
43595 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
43596 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
43597 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
43598 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
43599 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
43600 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
43601 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
43602 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
43603 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
43604 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
43605 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
43606 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
43607 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
43608 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
43609 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
43610 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
43611 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
43612 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
43613 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
43614 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
43615 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
43616 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
43617 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
43618 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
43619 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
43620 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
43621 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
43622 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
43623 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
43624 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
43625 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
43626 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
43627 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
43628 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
43629 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
43630 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
43631 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
43632 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
43633 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
43634 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
43635 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
43636 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
43637 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
43638 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
43639 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
43640 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
43641 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
43642 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
43643 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
43644 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
43645 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
43646 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
43647 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
43648 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
43649 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
43650 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
43651 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
43652 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
43653 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
43654 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
43655 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
43656 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
43657 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
43658 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
43659 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
43660 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
43661 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
43662 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
43663 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
43664 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
43665 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
43666 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
43667 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
43668 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
43669 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
43670 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
43671 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
43672 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
43673 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
43674 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
43675 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
43676 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
43677 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
43678 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
43679 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
43680 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
43681 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
43682 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
43683 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
43684 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
43685 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
43686 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
43687 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
43688 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
43689 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
43690 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
43691 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
43692 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
43693 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
43694 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43695 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43696 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43697 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43698 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43699 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43700 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43701 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43702 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43703 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43704 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43705 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43706 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43707 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43708 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43709 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43710 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43711 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43712 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43713 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43714 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43715 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43716 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43717 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43718 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43719 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43720 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43721 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43722 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43723 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43724 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43725 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43726 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43727 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43728 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43729 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43730 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43731 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43732 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43733 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43734 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43735 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43736 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43737 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43738 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43739 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43740 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43741 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43742 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43743 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43744 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43745 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43746 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43747 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43748 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43749 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43750 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43751 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43752 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43753 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43754 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43755 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43756 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43757 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43758 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43759 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43760 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43761 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43762 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43763 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43764 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43765 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43766 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43767 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43768 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43769 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43770 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43771 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43772 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43773 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43774 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43775 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43776 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43777 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43778 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43779 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43780 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43781 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43782 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43783 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43784 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43785 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43786 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43787 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43788 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43789 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43790 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43791 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43792 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43793 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43794 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43795 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43796 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43797 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43798 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43799 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43800 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43801 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43802 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43803 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43804 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43805 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43806 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43807 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43808 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43809 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43810 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43811 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43812 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43813 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43814 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43815 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43816 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43817 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43818 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43819 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43820 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43821 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43822 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43823 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43824 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43825 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43826 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43827 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43828 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43829 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43830 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43831 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43832 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43833 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43834 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43835 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43836 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43837 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43838 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43839 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43840 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43841 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43842 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43843 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43844 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43845 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43846 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43847 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43848 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43849 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43850 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43851 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43852 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43853 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43854 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43855 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43856 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43857 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43858 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43859 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43860 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43861 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43862 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43863 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43864 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43865 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43866 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43867 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43868 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43869 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43870 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43871 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43872 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43873 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43874 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43875 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43876 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43877 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43878 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43879 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43880 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43881 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43882 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43883 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43884 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43885 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43886 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43887 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43888 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43889 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43890 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43891 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43892 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43893 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43894 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43895 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43896 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43897 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43898 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43899 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43900 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43901 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43902 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43903 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43904 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43905 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43906 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43907 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43908 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43909 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43910 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43911 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43912 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43913 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43914 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43915 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43916 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43917 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43918 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43919 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43920 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43921 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43922 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43923 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43924 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43925 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43926 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43927 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43928 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43929 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43930 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43931 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43932 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
43933 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
43934 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c32bde28 RD |
43935 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43936 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43937 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43938 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43939 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43940 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43941 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43942 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43943 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43944 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43945 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43946 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43947 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43948 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43949 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43950 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43951 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43952 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43953 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43954 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43955 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43956 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43957 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43958 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43959 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43960 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43961 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43962 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43963 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43964 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43965 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43966 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43967 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43968 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43969 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43970 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43971 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43972 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43973 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43974 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43975 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43976 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43977 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43978 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43979 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43980 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43981 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43982 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43983 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43984 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43985 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
43986 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43987 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c32bde28 RD |
43988 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43989 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43990 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
43991 | |
43992 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43993 | ||
43994 | ||
43995 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43996 | ||
43997 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43998 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43999 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
44000 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
44001 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
44002 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c32bde28 RD |
44003 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
44004 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
44005 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
44006 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
44007 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
44008 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
44009 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
44010 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
44011 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
44012 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
44013 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
44014 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
44015 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
44016 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
44017 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
44018 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
44019 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
44020 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
44021 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
44022 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
44023 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
44024 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
44025 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
44026 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
44027 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
44028 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
44029 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
44030 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
44031 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
44032 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
44033 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
44034 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
44035 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
44036 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
44037 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
44038 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
44039 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
44040 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
44041 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
44042 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
44043 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
44044 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
44045 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
44046 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
44047 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
44048 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
44049 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
44050 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
44051 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
44052 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
44053 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
44054 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
44055 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
44056 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
44057 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
44058 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
44059 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
44060 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
44061 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
44062 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
44063 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
44064 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
44065 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
44066 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
44067 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
44068 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
44069 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
44070 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
44071 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
44072 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
44073 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
44074 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
44075 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
44076 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
44077 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
44078 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
44079 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
44080 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
44081 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
44082 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
44083 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
44084 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
44085 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
44086 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
44087 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
44088 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
44089 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
44090 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
44091 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
44092 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
44093 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
44094 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
44095 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
44096 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
44097 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
44098 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
44099 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
44100 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
44101 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
44102 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
44103 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
44104 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
44105 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
44106 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
44107 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
44108 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
44109 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
44110 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
44111 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
44112 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
44113 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
44114 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
44115 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
44116 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
44117 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
44118 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
44119 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
44120 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
44121 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
44122 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
44123 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
44124 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
44125 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
44126 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
44127 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
44128 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
44129 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
44130 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
44131 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c32bde28 RD |
44132 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
44133 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
44134 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
44135 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
44136 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
44137 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
44138 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
44139 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
44140 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
44141 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
44142 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
44143 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
44144 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
44145 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
44146 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
44147 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
44148 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
44149 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
44150 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
44151 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c32bde28 RD |
44152 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
44153 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
44154 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
44155 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
44156 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
44157 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
44158 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c32bde28 RD |
44159 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
44160 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
44161 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 44162 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c32bde28 RD |
44163 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
44164 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
44165 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
44166 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
44167 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
44168 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
44169 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
44170 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
44171 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
44172 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
44173 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
44174 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
44175 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
44176 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
44177 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
44178 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
44179 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
44180 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
44181 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
44182 | |
44183 | // Initialize threading, some globals and such | |
44184 | __wxPyPreStart(d); | |
44185 | ||
44186 | ||
44187 | // Although these are defined in __version__ they need to be here too so | |
44188 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
44189 | // versions match. | |
44190 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
44191 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
44192 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
44193 | ||
44194 | } | |
44195 |