]>
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 | 1258 | } |
c9c2cf70 RD |
1259 | wxImage *new_wxImage(int width,int height,unsigned char *data,unsigned char *alpha){ |
1260 | // Copy the source data so the wxImage can clean it up later | |
1261 | unsigned char* dcopy = (unsigned char*)malloc(width*height*3); | |
1262 | if (dcopy == NULL) { | |
1263 | PyErr_NoMemory(); | |
1264 | return NULL; | |
1265 | } | |
1266 | memcpy(dcopy, data, width*height*3); | |
1267 | unsigned char* acopy = (unsigned char*)malloc(width*height); | |
1268 | if (acopy == NULL) { | |
1269 | PyErr_NoMemory(); | |
1270 | return NULL; | |
1271 | } | |
1272 | memcpy(acopy, alpha, width*height); | |
1273 | ||
1274 | return new wxImage(width, height, dcopy, acopy, false); | |
1275 | } | |
d55e5bfc RD |
1276 | wxSize wxImage_GetSize(wxImage *self){ |
1277 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1278 | return size; | |
1279 | } | |
1280 | PyObject *wxImage_GetData(wxImage *self){ | |
1281 | unsigned char* data = self->GetData(); | |
1282 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1283 | PyObject* rv; | |
1284 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1285 | return rv; | |
1286 | } | |
1287 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1288 | unsigned char* dataPtr; | |
1289 | ||
1290 | if (! PyString_Check(data)) { | |
ae8162c8 RD |
1291 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
1292 | "Expected string object")); | |
d55e5bfc RD |
1293 | return /* NULL */ ; |
1294 | } | |
1295 | ||
1296 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1297 | dataPtr = (unsigned char*) malloc(len); | |
1298 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1299 | self->SetData(dataPtr); | |
1300 | // wxImage takes ownership of dataPtr... | |
1301 | } | |
1302 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1303 | unsigned char* data = self->GetData(); | |
1304 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1305 | PyObject* rv; | |
1306 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1307 | return rv; | |
1308 | } | |
1309 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1310 | unsigned char* buffer; | |
1311 | int size; | |
1312 | ||
1313 | bool blocked = wxPyBeginBlockThreads(); | |
1314 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1315 | goto done; | |
1316 | ||
1317 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1318 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1319 | goto done; | |
1320 | } | |
1321 | self->SetData(buffer); | |
1322 | done: | |
1323 | wxPyEndBlockThreads(blocked); | |
1324 | } | |
1325 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1326 | unsigned char* data = self->GetAlpha(); | |
1327 | if (! data) { | |
1328 | RETURN_NONE(); | |
1329 | } else { | |
1330 | int len = self->GetWidth() * self->GetHeight(); | |
1331 | PyObject* rv; | |
1332 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1333 | return rv; | |
1334 | } | |
1335 | } | |
1336 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1337 | unsigned char* dataPtr; | |
1338 | ||
1339 | if (! PyString_Check(data)) { | |
1340 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1341 | return /* NULL */ ; | |
1342 | } | |
1343 | ||
1344 | size_t len = self->GetWidth() * self->GetHeight(); | |
1345 | dataPtr = (unsigned char*) malloc(len); | |
1346 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1347 | self->SetAlpha(dataPtr); | |
1348 | // wxImage takes ownership of dataPtr... | |
1349 | } | |
1350 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1351 | unsigned char* data = self->GetAlpha(); | |
1352 | int len = self->GetWidth() * self->GetHeight(); | |
1353 | PyObject* rv; | |
1354 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1355 | return rv; | |
1356 | } | |
1357 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1358 | unsigned char* buffer; | |
1359 | int size; | |
1360 | ||
1361 | bool blocked = wxPyBeginBlockThreads(); | |
1362 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1363 | goto done; | |
1364 | ||
1365 | if (size != self->GetWidth() * self->GetHeight()) { | |
1366 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1367 | goto done; | |
1368 | } | |
1369 | self->SetAlpha(buffer); | |
1370 | done: | |
1371 | wxPyEndBlockThreads(blocked); | |
1372 | } | |
1373 | ||
c32bde28 RD |
1374 | SWIGSTATICINLINE(unsigned long) |
1375 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 1376 | { |
c32bde28 RD |
1377 | unsigned long v; |
1378 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1379 | /* | |
1380 | this is needed to make valgrind/purify happier. the other | |
1381 | solution is throw an exception, but since this code should work | |
1382 | with plain C .... | |
1383 | */ | |
1384 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1385 | } |
c32bde28 RD |
1386 | return v; |
1387 | } | |
1388 | ||
1389 | ||
1390 | SWIGSTATICINLINE(int) | |
1391 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1392 | { | |
1393 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1394 | } |
1395 | ||
1fbf26be RD |
1396 | wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){ |
1397 | wxBitmap bitmap(*self, depth); | |
d55e5bfc RD |
1398 | return bitmap; |
1399 | } | |
1400 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1401 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1402 | wxBitmap bitmap( mono, 1 ); | |
1403 | return bitmap; | |
1404 | } | |
1405 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1406 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1407 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1408 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1409 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1410 | |
1411 | #include <wx/quantize.h> | |
1412 | ||
1413 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1414 | return wxQuantize::Quantize(src, dest, | |
1415 | //NULL, // palette | |
1416 | desiredNoColours, | |
1417 | NULL, // eightBitData | |
1418 | flags); | |
1419 | } | |
d55e5bfc RD |
1420 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1421 | if (PyCallable_Check(func)) { | |
1422 | self->Connect(id, lastId, eventType, | |
1423 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1424 | new wxPyCallback(func)); | |
1425 | } | |
1426 | else if (func == Py_None) { | |
1427 | self->Disconnect(id, lastId, eventType, | |
1428 | (wxObjectEventFunction) | |
1429 | &wxPyCallback::EventThunker); | |
1430 | } | |
1431 | else { | |
1432 | wxPyBLOCK_THREADS( | |
1433 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1434 | } | |
1435 | } | |
1436 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1437 | return self->Disconnect(id, lastId, eventType, | |
1438 | (wxObjectEventFunction) | |
1439 | &wxPyCallback::EventThunker); | |
1440 | } | |
1441 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1442 | if (_self && _self != Py_None) { | |
1443 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1444 | } | |
1445 | else { | |
1446 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1447 | if (data) { | |
1448 | self->SetClientObject(NULL); // This will delete it too | |
1449 | } | |
1450 | } | |
1451 | } | |
c32bde28 | 1452 | |
19272049 | 1453 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 1454 | #if wxUSE_UNICODE |
19272049 | 1455 | return self->GetUnicodeKey(); |
d55e5bfc RD |
1456 | #else |
1457 | return 0; | |
1458 | #endif | |
1459 | } | |
1460 | ||
1461 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
1462 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1463 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1464 | /*@@*/ | |
d55e5bfc | 1465 | #else |
c32bde28 RD |
1466 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1467 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1468 | /*@@*/ | |
d55e5bfc RD |
1469 | #endif |
1470 | ||
1471 | ||
1472 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
1473 | SWIGSTATICINLINE(int) |
1474 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 1475 | { |
c32bde28 RD |
1476 | const char* errmsg = val ? "unsigned int" : 0; |
1477 | unsigned long v; | |
1478 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1479 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1480 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
1481 | return 1; | |
1482 | } | |
1483 | } else { | |
1484 | PyErr_Clear(); | |
1485 | } | |
1486 | if (val) { | |
1487 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
1488 | } | |
1489 | return 0; | |
d55e5bfc RD |
1490 | } |
1491 | #else | |
c32bde28 RD |
1492 | SWIGSTATICINLINE(unsigned int) |
1493 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1494 | { | |
1495 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
1496 | } | |
d55e5bfc RD |
1497 | #endif |
1498 | ||
1499 | ||
c32bde28 RD |
1500 | SWIGSTATICINLINE(unsigned int) |
1501 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 1502 | { |
c32bde28 RD |
1503 | unsigned int v; |
1504 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
1505 | /* | |
1506 | this is needed to make valgrind/purify happier. the other | |
1507 | solution is throw an exception, but since this code should work | |
1508 | with plain C .... | |
1509 | */ | |
1510 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 1511 | } |
c32bde28 RD |
1512 | return v; |
1513 | } | |
1514 | ||
1515 | ||
1516 | SWIGSTATICINLINE(int) | |
1517 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
1518 | { | |
1519 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
1520 | } |
1521 | ||
1522 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1523 | self->m_size = size; | |
1524 | } | |
1525 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1526 | self->m_pos = pos; | |
1527 | } | |
1528 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1529 | int count = self->GetNumberOfFiles(); | |
1530 | wxString* files = self->GetFiles(); | |
1531 | PyObject* list = PyList_New(count); | |
1532 | ||
1533 | if (!list) { | |
1534 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1535 | return NULL; | |
1536 | } | |
1537 | ||
1538 | for (int i=0; i<count; i++) { | |
1539 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1540 | } | |
1541 | return list; | |
1542 | } | |
1543 | ||
1544 | ||
1545 | wxPyApp *new_wxPyApp(){ | |
1546 | wxPythonApp = new wxPyApp(); | |
1547 | return wxPythonApp; | |
1548 | } | |
1549 | ||
1550 | void wxApp_CleanUp() { | |
1551 | __wxPyCleanup(); | |
1552 | } | |
1553 | ||
1554 | ||
caef1a4d | 1555 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1556 | |
1557 | ||
5cbf236d RD |
1558 | SWIGSTATICINLINE(int) |
1559 | SWIG_AsCharPtr(PyObject *obj, char **val) | |
1560 | { | |
1561 | char* cptr = 0; | |
1562 | if (SWIG_AsCharPtrAndSize(obj, &cptr, (size_t*)(0))) { | |
1563 | if (val) *val = cptr; | |
1564 | return 1; | |
1565 | } | |
1566 | if (val) { | |
1567 | PyErr_SetString(PyExc_TypeError, "a char* is expected"); | |
1568 | } | |
1569 | return 0; | |
1570 | } | |
1571 | ||
1572 | ||
1573 | SWIGSTATICINLINE(PyObject *) | |
1574 | SWIG_FromCharPtr(const char* cptr) | |
1575 | { | |
1576 | if (cptr) { | |
1577 | size_t size = strlen(cptr); | |
1578 | if (size > INT_MAX) { | |
1579 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), | |
1580 | SWIG_TypeQuery("char *"), 0); | |
1581 | } else { | |
1582 | if (size != 0) { | |
1583 | return PyString_FromStringAndSize(cptr, size); | |
1584 | } else { | |
1585 | return PyString_FromString(cptr); | |
1586 | } | |
1587 | } | |
1588 | } | |
1589 | Py_INCREF(Py_None); | |
1590 | return Py_None; | |
1591 | } | |
1592 | ||
1593 | ||
ae8162c8 RD |
1594 | #ifdef __WXMAC__ |
1595 | ||
1596 | // A dummy class that raises an exception if used... | |
1597 | class wxEventLoop | |
1598 | { | |
1599 | public: | |
1600 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
1601 | int Run() { return 0; } | |
1602 | void Exit(int rc = 0) {} | |
1603 | bool Pending() const { return false; } | |
1604 | bool Dispatch() { return false; } | |
1605 | bool IsRunning() const { return false; } | |
1606 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
1607 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
1608 | }; | |
1609 | ||
1610 | #else | |
1611 | ||
1612 | #include <wx/evtloop.h> | |
1613 | ||
1614 | #endif | |
1615 | ||
1616 | ||
d55e5bfc RD |
1617 | |
1618 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1619 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1620 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1621 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1622 | wxWindowList& list = self->GetChildren(); | |
1623 | return wxPy_ConvertList(&list); | |
1624 | } | |
1625 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1626 | #if wxUSE_HOTKEY | |
1627 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1628 | #else | |
ae8162c8 | 1629 | return false; |
d55e5bfc RD |
1630 | #endif |
1631 | } | |
1632 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1633 | ||
1634 | ||
1635 | ||
ae8162c8 | 1636 | return false; |
d55e5bfc RD |
1637 | |
1638 | } | |
1639 | long wxWindow_GetHandle(wxWindow *self){ | |
1640 | return wxPyGetWinHandle(self); | |
1641 | } | |
7e63a440 RD |
1642 | void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
1643 | self->AssociateHandle((WXWidget)handle); | |
1644 | } | |
d55e5bfc RD |
1645 | |
1646 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1647 | return wxWindow::FindWindowById(id, parent); | |
1648 | } | |
1649 | ||
1650 | wxWindow* wxFindWindowByName( const wxString& name, | |
1651 | const wxWindow *parent = NULL ) { | |
1652 | return wxWindow::FindWindowByName(name, parent); | |
1653 | } | |
1654 | ||
1655 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1656 | const wxWindow *parent = NULL ) { | |
1657 | return wxWindow::FindWindowByLabel(label, parent); | |
1658 | } | |
1659 | ||
1660 | ||
1661 | #ifdef __WXMSW__ | |
1662 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1663 | #endif | |
1664 | ||
1665 | ||
1666 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1667 | #ifdef __WXMSW__ | |
1668 | WXHWND hWnd = (WXHWND)_hWnd; | |
1669 | long id = wxGetWindowId(hWnd); | |
1670 | wxWindow* win = new wxWindow; | |
1671 | parent->AddChild(win); | |
1672 | win->SetEventHandler(win); | |
1673 | win->SetHWND(hWnd); | |
1674 | win->SetId(id); | |
1675 | win->SubclassWin(hWnd); | |
1676 | win->AdoptAttributesFromHWND(); | |
1677 | win->SetupColours(); | |
1678 | return win; | |
1679 | #else | |
1680 | wxPyRaiseNotImplemented(); | |
1681 | return NULL; | |
1682 | #endif | |
1683 | } | |
1684 | ||
1685 | ||
1686 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1687 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1688 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1689 | ||
1690 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1691 | ||
1692 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1693 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1694 | wxMenuItemList& list = self->GetMenuItems(); | |
1695 | return wxPy_ConvertList(&list); | |
1696 | } | |
1697 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1698 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1699 | if (clientData) { | |
1700 | wxPyClientData* data = new wxPyClientData(clientData); | |
1701 | return self->Append(item, data); | |
1702 | } else | |
1703 | return self->Append(item); | |
1704 | } | |
1705 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1706 | if (clientData) { | |
1707 | wxPyClientData* data = new wxPyClientData(clientData); | |
1708 | return self->Insert(item, pos, data); | |
1709 | } else | |
1710 | return self->Insert(item, pos); | |
1711 | } | |
1712 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1713 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1714 | if (data) { | |
1715 | Py_INCREF(data->m_obj); | |
1716 | return data->m_obj; | |
1717 | } else { | |
1718 | Py_INCREF(Py_None); | |
1719 | return Py_None; | |
1720 | } | |
1721 | } | |
1722 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1723 | wxPyClientData* data = new wxPyClientData(clientData); | |
1724 | self->SetClientObject(n, data); | |
1725 | } | |
1726 | ||
1727 | ||
248ed943 RD |
1728 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1729 | wxPyUserData* data = NULL; | |
1730 | if ( userData ) { | |
1731 | bool blocked = wxPyBeginBlockThreads(); | |
1732 | data = new wxPyUserData(userData); | |
1733 | wxPyEndBlockThreads(blocked); | |
1734 | } | |
1735 | return new wxSizerItem(window, proportion, flag, border, data); | |
1736 | } | |
1737 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1738 | wxPyUserData* data = NULL; | |
1739 | if ( userData ) { | |
1740 | bool blocked = wxPyBeginBlockThreads(); | |
1741 | data = new wxPyUserData(userData); | |
1742 | wxPyEndBlockThreads(blocked); | |
1743 | } | |
1744 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1745 | } | |
1746 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1747 | wxPyUserData* data = NULL; | |
1748 | if ( userData ) { | |
1749 | bool blocked = wxPyBeginBlockThreads(); | |
1750 | data = new wxPyUserData(userData); | |
1751 | wxPyEndBlockThreads(blocked); | |
1752 | } | |
1753 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1754 | } | |
d55e5bfc RD |
1755 | |
1756 | #include <float.h> | |
c32bde28 RD |
1757 | SWIGSTATICINLINE(int) |
1758 | SWIG_CheckDoubleInRange(double value, double min_value, | |
1759 | double max_value, const char* errmsg) | |
1760 | { | |
1761 | if (value < min_value) { | |
1762 | if (errmsg) { | |
1763 | PyErr_Format(PyExc_OverflowError, | |
1764 | "value %g is less than %s minimum %g", | |
1765 | value, errmsg, min_value); | |
1766 | } | |
1767 | return 0; | |
1768 | } else if (value > max_value) { | |
1769 | if (errmsg) { | |
1770 | PyErr_Format(PyExc_OverflowError, | |
1771 | "value %g is greater than %s maximum %g", | |
1772 | value, errmsg, max_value); | |
1773 | } | |
1774 | return 0; | |
1775 | } | |
1776 | return 1; | |
1777 | } | |
1778 | ||
d55e5bfc | 1779 | |
c32bde28 RD |
1780 | SWIGSTATICINLINE(int) |
1781 | SWIG_AsVal_float(PyObject *obj, float *val) | |
d55e5bfc | 1782 | { |
c32bde28 RD |
1783 | const char* errmsg = val ? "float" : 0; |
1784 | double v; | |
1785 | if (SWIG_AsVal_double(obj, &v)) { | |
1786 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
1787 | if (val) *val = v; | |
1788 | return 1; | |
d55e5bfc | 1789 | } else { |
c32bde28 | 1790 | return 0; |
d55e5bfc | 1791 | } |
c32bde28 RD |
1792 | } else { |
1793 | PyErr_Clear(); | |
d55e5bfc | 1794 | } |
c32bde28 RD |
1795 | if (val) { |
1796 | PyErr_SetString(PyExc_TypeError, "a float is expected"); | |
1797 | } | |
1798 | return 0; | |
d55e5bfc RD |
1799 | } |
1800 | ||
1801 | ||
1802 | SWIGSTATICINLINE(float) | |
c32bde28 | 1803 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 1804 | { |
c32bde28 RD |
1805 | float v; |
1806 | if (!SWIG_AsVal_float(obj, &v)) { | |
1807 | /* | |
1808 | this is needed to make valgrind/purify happier. the other | |
1809 | solution is throw an exception, but since this code should work | |
1810 | with plain C .... | |
1811 | */ | |
1812 | memset((void*)&v, 0, sizeof(float)); | |
1813 | } | |
1814 | return v; | |
d55e5bfc RD |
1815 | } |
1816 | ||
c32bde28 | 1817 | |
d55e5bfc | 1818 | SWIGSTATICINLINE(int) |
c32bde28 | 1819 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 1820 | { |
c32bde28 | 1821 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
1822 | } |
1823 | ||
1824 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1825 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1826 | if (data) { | |
1827 | Py_INCREF(data->m_obj); | |
1828 | return data->m_obj; | |
1829 | } else { | |
1830 | Py_INCREF(Py_None); | |
1831 | return Py_None; | |
1832 | } | |
1833 | } | |
1834 | ||
1835 | // Figure out the type of the sizer item | |
1836 | ||
1837 | struct wxPySizerItemInfo { | |
1838 | wxPySizerItemInfo() | |
ae8162c8 RD |
1839 | : window(NULL), sizer(NULL), gotSize(false), |
1840 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc RD |
1841 | {} |
1842 | ||
1843 | wxWindow* window; | |
1844 | wxSizer* sizer; | |
1845 | bool gotSize; | |
1846 | wxSize size; | |
1847 | bool gotPos; | |
1848 | int pos; | |
1849 | }; | |
1850 | ||
1851 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1852 | ||
1853 | wxPySizerItemInfo info; | |
1854 | wxSize size; | |
1855 | wxSize* sizePtr = &size; | |
1856 | ||
1857 | // Find out what the type of the item is | |
1858 | // try wxWindow | |
1859 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1860 | PyErr_Clear(); | |
1861 | info.window = NULL; | |
1862 | ||
1863 | // try wxSizer | |
1864 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1865 | PyErr_Clear(); | |
1866 | info.sizer = NULL; | |
1867 | ||
1868 | // try wxSize or (w,h) | |
1869 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1870 | info.size = *sizePtr; | |
ae8162c8 | 1871 | info.gotSize = true; |
d55e5bfc RD |
1872 | } |
1873 | ||
1874 | // or a single int | |
1875 | if (checkIdx && PyInt_Check(item)) { | |
1876 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 1877 | info.gotPos = true; |
d55e5bfc RD |
1878 | } |
1879 | } | |
1880 | } | |
1881 | ||
1882 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1883 | // no expected type, figure out what kind of error message to generate | |
1884 | if ( !checkSize && !checkIdx ) | |
1885 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1886 | else if ( checkSize && !checkIdx ) | |
1887 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1888 | else if ( !checkSize && checkIdx) | |
1889 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1890 | else | |
1891 | // can this one happen? | |
1892 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1893 | } | |
1894 | ||
1895 | return info; | |
1896 | } | |
1897 | ||
1898 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1899 | if (!self->GetClientObject()) |
1900 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc | 1901 | } |
c1cb24a4 | 1902 | wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1903 | |
1904 | wxPyUserData* data = NULL; | |
1905 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1906 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1907 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1908 | data = new wxPyUserData(userData); | |
1909 | wxPyEndBlockThreads(blocked); | |
1910 | ||
1911 | // Now call the real Add method if a valid item type was found | |
1912 | if ( info.window ) | |
c1cb24a4 | 1913 | return self->Add(info.window, proportion, flag, border, data); |
d55e5bfc | 1914 | else if ( info.sizer ) |
c1cb24a4 | 1915 | return self->Add(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1916 | else if (info.gotSize) |
c1cb24a4 RD |
1917 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
1918 | proportion, flag, border, data); | |
1919 | else | |
1920 | return NULL; | |
d55e5bfc | 1921 | } |
c1cb24a4 | 1922 | wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1923 | |
1924 | wxPyUserData* data = NULL; | |
1925 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1926 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1927 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1928 | data = new wxPyUserData(userData); | |
1929 | wxPyEndBlockThreads(blocked); | |
1930 | ||
1931 | // Now call the real Insert method if a valid item type was found | |
1932 | if ( info.window ) | |
c1cb24a4 | 1933 | return self->Insert(before, info.window, proportion, flag, border, data); |
d55e5bfc | 1934 | else if ( info.sizer ) |
c1cb24a4 | 1935 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d55e5bfc | 1936 | else if (info.gotSize) |
c1cb24a4 RD |
1937 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
1938 | proportion, flag, border, data); | |
1939 | else | |
1940 | return NULL; | |
d55e5bfc | 1941 | } |
c1cb24a4 | 1942 | wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1943 | |
1944 | wxPyUserData* data = NULL; | |
1945 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1946 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1947 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1948 | data = new wxPyUserData(userData); | |
1949 | wxPyEndBlockThreads(blocked); | |
1950 | ||
1951 | // Now call the real Prepend method if a valid item type was found | |
1952 | if ( info.window ) | |
c1cb24a4 | 1953 | return self->Prepend(info.window, proportion, flag, border, data); |
d55e5bfc | 1954 | else if ( info.sizer ) |
c1cb24a4 | 1955 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1956 | else if (info.gotSize) |
c1cb24a4 RD |
1957 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
1958 | proportion, flag, border, data); | |
1959 | else | |
1960 | return NULL; | |
d55e5bfc RD |
1961 | } |
1962 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1963 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1964 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1965 | wxPyEndBlockThreads(blocked); |
1966 | if ( info.window ) | |
1967 | return self->Remove(info.window); | |
1968 | else if ( info.sizer ) | |
1969 | return self->Remove(info.sizer); | |
1970 | else if ( info.gotPos ) | |
1971 | return self->Remove(info.pos); | |
1972 | else | |
ae8162c8 | 1973 | return false; |
d55e5bfc | 1974 | } |
1a6bba1e RD |
1975 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1976 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1977 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
1978 | wxPyEndBlockThreads(blocked); |
1979 | if ( info.window ) | |
1980 | return self->Detach(info.window); | |
1981 | else if ( info.sizer ) | |
1982 | return self->Detach(info.sizer); | |
1983 | else if ( info.gotPos ) | |
1984 | return self->Detach(info.pos); | |
1985 | else | |
ae8162c8 | 1986 | return false; |
1a6bba1e | 1987 | } |
c1cb24a4 RD |
1988 | wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
1989 | bool blocked = wxPyBeginBlockThreads(); | |
1990 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1991 | wxPyEndBlockThreads(blocked); | |
1992 | if ( info.window ) | |
1993 | return self->GetItem(info.window); | |
1994 | else if ( info.sizer ) | |
1995 | return self->GetItem(info.sizer); | |
1996 | else if ( info.gotPos ) | |
1997 | return self->GetItem(info.pos); | |
1998 | else | |
1999 | return NULL; | |
2000 | } | |
d55e5bfc RD |
2001 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
2002 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2003 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
2004 | wxPyEndBlockThreads(blocked); |
2005 | if ( info.window ) | |
2006 | self->SetItemMinSize(info.window, size); | |
2007 | else if ( info.sizer ) | |
2008 | self->SetItemMinSize(info.sizer, size); | |
2009 | else if ( info.gotPos ) | |
2010 | self->SetItemMinSize(info.pos, size); | |
2011 | } | |
2012 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
2013 | wxSizerItemList& list = self->GetChildren(); | |
2014 | return wxPy_ConvertList(&list); | |
2015 | } | |
7e63a440 | 2016 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
c24da6d6 | 2017 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 2018 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
c24da6d6 | 2019 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 2020 | if ( info.window ) |
7e63a440 | 2021 | return self->Show(info.window, show, recursive); |
d55e5bfc | 2022 | else if ( info.sizer ) |
7e63a440 | 2023 | return self->Show(info.sizer, show, recursive); |
248ed943 | 2024 | else if ( info.gotPos ) |
7e63a440 | 2025 | return self->Show(info.pos, show); |
ae8162c8 RD |
2026 | else |
2027 | return false; | |
d55e5bfc RD |
2028 | } |
2029 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 2030 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 2031 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
c24da6d6 | 2032 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
2033 | if ( info.window ) |
2034 | return self->IsShown(info.window); | |
2035 | else if ( info.sizer ) | |
2036 | return self->IsShown(info.sizer); | |
248ed943 RD |
2037 | else if ( info.gotPos ) |
2038 | return self->IsShown(info.pos); | |
d55e5bfc | 2039 | else |
ae8162c8 | 2040 | return false; |
d55e5bfc RD |
2041 | } |
2042 | ||
2043 | // See pyclasses.h | |
2044 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
2045 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
2046 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
2047 | ||
2048 | ||
2049 | ||
2050 | ||
2051 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
2052 | { | |
2053 | if (source == Py_None) { | |
2054 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 2055 | return true; |
d55e5bfc RD |
2056 | } |
2057 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
2058 | } | |
2059 | ||
2060 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
2061 | { | |
2062 | if (source == Py_None) { | |
2063 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 2064 | return true; |
d55e5bfc RD |
2065 | } |
2066 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
2067 | } | |
2068 | ||
2069 | ||
2070 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
2071 | self->SetRow(row); | |
2072 | self->SetCol(col); | |
2073 | } | |
2074 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
2075 | bool blocked = wxPyBeginBlockThreads(); | |
2076 | PyObject* tup = PyTuple_New(2); | |
2077 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2078 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
2079 | wxPyEndBlockThreads(blocked); | |
2080 | return tup; | |
2081 | } | |
2082 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
2083 | self->SetRowspan(rowspan); | |
2084 | self->SetColspan(colspan); | |
2085 | } | |
2086 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
2087 | bool blocked = wxPyBeginBlockThreads(); | |
2088 | PyObject* tup = PyTuple_New(2); | |
2089 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2090 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
2091 | wxPyEndBlockThreads(blocked); | |
2092 | return tup; | |
2093 | } | |
248ed943 RD |
2094 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2095 | wxPyUserData* data = NULL; | |
2096 | if ( userData ) { | |
2097 | bool blocked = wxPyBeginBlockThreads(); | |
2098 | data = new wxPyUserData(userData); | |
2099 | wxPyEndBlockThreads(blocked); | |
2100 | } | |
2101 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2102 | } | |
2103 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2104 | wxPyUserData* data = NULL; | |
2105 | if ( userData ) { | |
2106 | bool blocked = wxPyBeginBlockThreads(); | |
2107 | data = new wxPyUserData(userData); | |
2108 | wxPyEndBlockThreads(blocked); | |
2109 | } | |
2110 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2111 | } | |
2112 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2113 | wxPyUserData* data = NULL; | |
2114 | if ( userData ) { | |
2115 | bool blocked = wxPyBeginBlockThreads(); | |
2116 | data = new wxPyUserData(userData); | |
2117 | wxPyEndBlockThreads(blocked); | |
2118 | } | |
2119 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2120 | } | |
2121 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2122 | int row, col; | |
2123 | self->GetEndPos(row, col); | |
2124 | return wxGBPosition(row, col); | |
2125 | } | |
c1cb24a4 | 2126 | wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
2127 | |
2128 | wxPyUserData* data = NULL; | |
2129 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2130 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2131 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2132 | data = new wxPyUserData(userData); | |
2133 | wxPyEndBlockThreads(blocked); | |
2134 | ||
2135 | // Now call the real Add method if a valid item type was found | |
2136 | if ( info.window ) | |
c1cb24a4 | 2137 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d55e5bfc | 2138 | else if ( info.sizer ) |
c1cb24a4 | 2139 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d55e5bfc | 2140 | else if (info.gotSize) |
c1cb24a4 RD |
2141 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
2142 | pos, span, flag, border, data); | |
2143 | return NULL; | |
d55e5bfc RD |
2144 | } |
2145 | ||
2146 | ||
2147 | #ifdef __cplusplus | |
2148 | extern "C" { | |
2149 | #endif | |
c32bde28 | 2150 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
2151 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2152 | return 1; | |
2153 | } | |
2154 | ||
2155 | ||
2156 | static PyObject *_wrap_EmptyString_get() { | |
2157 | PyObject *pyobj; | |
2158 | ||
2159 | { | |
2160 | #if wxUSE_UNICODE | |
2161 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2162 | #else | |
2163 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2164 | #endif | |
2165 | } | |
2166 | return pyobj; | |
2167 | } | |
2168 | ||
2169 | ||
c32bde28 | 2170 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2171 | PyObject *resultobj; |
2172 | wxObject *arg1 = (wxObject *) 0 ; | |
2173 | wxString result; | |
2174 | PyObject * obj0 = 0 ; | |
2175 | char *kwnames[] = { | |
2176 | (char *) "self", NULL | |
2177 | }; | |
2178 | ||
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2182 | { | |
2183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2184 | result = wxObject_GetClassName(arg1); | |
2185 | ||
2186 | wxPyEndAllowThreads(__tstate); | |
2187 | if (PyErr_Occurred()) SWIG_fail; | |
2188 | } | |
2189 | { | |
2190 | #if wxUSE_UNICODE | |
2191 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2192 | #else | |
2193 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2194 | #endif | |
2195 | } | |
2196 | return resultobj; | |
2197 | fail: | |
2198 | return NULL; | |
2199 | } | |
2200 | ||
2201 | ||
c32bde28 | 2202 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2203 | PyObject *resultobj; |
2204 | wxObject *arg1 = (wxObject *) 0 ; | |
2205 | PyObject * obj0 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "self", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2213 | { | |
2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2215 | wxObject_Destroy(arg1); | |
2216 | ||
2217 | wxPyEndAllowThreads(__tstate); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
2219 | } | |
2220 | Py_INCREF(Py_None); resultobj = Py_None; | |
2221 | return resultobj; | |
2222 | fail: | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
c32bde28 | 2227 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2228 | PyObject *obj; |
2229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2230 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2231 | Py_INCREF(obj); | |
2232 | return Py_BuildValue((char *)""); | |
2233 | } | |
c32bde28 | 2234 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2235 | PyObject *resultobj; |
2236 | wxSize *arg1 = (wxSize *) 0 ; | |
2237 | int arg2 ; | |
2238 | PyObject * obj0 = 0 ; | |
2239 | PyObject * obj1 = 0 ; | |
2240 | char *kwnames[] = { | |
2241 | (char *) "self",(char *) "x", NULL | |
2242 | }; | |
2243 | ||
2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
2245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2247 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2248 | if (PyErr_Occurred()) SWIG_fail; |
2249 | if (arg1) (arg1)->x = arg2; | |
2250 | ||
2251 | Py_INCREF(Py_None); resultobj = Py_None; | |
2252 | return resultobj; | |
2253 | fail: | |
2254 | return NULL; | |
2255 | } | |
2256 | ||
2257 | ||
c32bde28 | 2258 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2259 | PyObject *resultobj; |
2260 | wxSize *arg1 = (wxSize *) 0 ; | |
2261 | int result; | |
2262 | PyObject * obj0 = 0 ; | |
2263 | char *kwnames[] = { | |
2264 | (char *) "self", NULL | |
2265 | }; | |
2266 | ||
2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2270 | result = (int) ((arg1)->x); | |
2271 | ||
c32bde28 | 2272 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2273 | return resultobj; |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
c32bde28 | 2279 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2280 | PyObject *resultobj; |
2281 | wxSize *arg1 = (wxSize *) 0 ; | |
2282 | int arg2 ; | |
2283 | PyObject * obj0 = 0 ; | |
2284 | PyObject * obj1 = 0 ; | |
2285 | char *kwnames[] = { | |
2286 | (char *) "self",(char *) "y", NULL | |
2287 | }; | |
2288 | ||
2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
2290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2292 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2293 | if (PyErr_Occurred()) SWIG_fail; |
2294 | if (arg1) (arg1)->y = arg2; | |
2295 | ||
2296 | Py_INCREF(Py_None); resultobj = Py_None; | |
2297 | return resultobj; | |
2298 | fail: | |
2299 | return NULL; | |
2300 | } | |
2301 | ||
2302 | ||
c32bde28 | 2303 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2304 | PyObject *resultobj; |
2305 | wxSize *arg1 = (wxSize *) 0 ; | |
2306 | int result; | |
2307 | PyObject * obj0 = 0 ; | |
2308 | char *kwnames[] = { | |
2309 | (char *) "self", NULL | |
2310 | }; | |
2311 | ||
2312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2315 | result = (int) ((arg1)->y); | |
2316 | ||
c32bde28 | 2317 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2318 | return resultobj; |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
c32bde28 | 2324 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2325 | PyObject *resultobj; |
2326 | int arg1 = (int) 0 ; | |
2327 | int arg2 = (int) 0 ; | |
2328 | wxSize *result; | |
2329 | PyObject * obj0 = 0 ; | |
2330 | PyObject * obj1 = 0 ; | |
2331 | char *kwnames[] = { | |
2332 | (char *) "w",(char *) "h", NULL | |
2333 | }; | |
2334 | ||
2335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2336 | if (obj0) { | |
c32bde28 | 2337 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2338 | if (PyErr_Occurred()) SWIG_fail; |
2339 | } | |
2340 | if (obj1) { | |
c32bde28 | 2341 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2342 | if (PyErr_Occurred()) SWIG_fail; |
2343 | } | |
2344 | { | |
2345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2346 | result = (wxSize *)new wxSize(arg1,arg2); | |
2347 | ||
2348 | wxPyEndAllowThreads(__tstate); | |
2349 | if (PyErr_Occurred()) SWIG_fail; | |
2350 | } | |
2351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2352 | return resultobj; | |
2353 | fail: | |
2354 | return NULL; | |
2355 | } | |
2356 | ||
2357 | ||
c32bde28 | 2358 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2359 | PyObject *resultobj; |
2360 | wxSize *arg1 = (wxSize *) 0 ; | |
2361 | PyObject * obj0 = 0 ; | |
2362 | char *kwnames[] = { | |
2363 | (char *) "self", NULL | |
2364 | }; | |
2365 | ||
2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2369 | { | |
2370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2371 | delete arg1; | |
2372 | ||
2373 | wxPyEndAllowThreads(__tstate); | |
2374 | if (PyErr_Occurred()) SWIG_fail; | |
2375 | } | |
2376 | Py_INCREF(Py_None); resultobj = Py_None; | |
2377 | return resultobj; | |
2378 | fail: | |
2379 | return NULL; | |
2380 | } | |
2381 | ||
2382 | ||
c32bde28 | 2383 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2384 | PyObject *resultobj; |
2385 | wxSize *arg1 = (wxSize *) 0 ; | |
2386 | wxSize *arg2 = 0 ; | |
2387 | bool result; | |
2388 | wxSize temp2 ; | |
2389 | PyObject * obj0 = 0 ; | |
2390 | PyObject * obj1 = 0 ; | |
2391 | char *kwnames[] = { | |
2392 | (char *) "self",(char *) "sz", NULL | |
2393 | }; | |
2394 | ||
2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2398 | { | |
2399 | arg2 = &temp2; | |
2400 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2401 | } | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2404 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2405 | ||
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
2408 | } | |
2409 | { | |
2410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2411 | } | |
2412 | return resultobj; | |
2413 | fail: | |
2414 | return NULL; | |
2415 | } | |
2416 | ||
2417 | ||
c32bde28 | 2418 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2419 | PyObject *resultobj; |
2420 | wxSize *arg1 = (wxSize *) 0 ; | |
2421 | wxSize *arg2 = 0 ; | |
2422 | bool result; | |
2423 | wxSize temp2 ; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | PyObject * obj1 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "self",(char *) "sz", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2433 | { | |
2434 | arg2 = &temp2; | |
2435 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2436 | } | |
2437 | { | |
2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2439 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2440 | ||
2441 | wxPyEndAllowThreads(__tstate); | |
2442 | if (PyErr_Occurred()) SWIG_fail; | |
2443 | } | |
2444 | { | |
2445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2446 | } | |
2447 | return resultobj; | |
2448 | fail: | |
2449 | return NULL; | |
2450 | } | |
2451 | ||
2452 | ||
c32bde28 | 2453 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2454 | PyObject *resultobj; |
2455 | wxSize *arg1 = (wxSize *) 0 ; | |
2456 | wxSize *arg2 = 0 ; | |
2457 | wxSize result; | |
2458 | wxSize temp2 ; | |
2459 | PyObject * obj0 = 0 ; | |
2460 | PyObject * obj1 = 0 ; | |
2461 | char *kwnames[] = { | |
2462 | (char *) "self",(char *) "sz", NULL | |
2463 | }; | |
2464 | ||
2465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2468 | { | |
2469 | arg2 = &temp2; | |
2470 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2471 | } | |
2472 | { | |
2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2474 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2475 | ||
2476 | wxPyEndAllowThreads(__tstate); | |
2477 | if (PyErr_Occurred()) SWIG_fail; | |
2478 | } | |
2479 | { | |
2480 | wxSize * resultptr; | |
2481 | resultptr = new wxSize((wxSize &) result); | |
2482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2483 | } | |
2484 | return resultobj; | |
2485 | fail: | |
2486 | return NULL; | |
2487 | } | |
2488 | ||
2489 | ||
c32bde28 | 2490 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2491 | PyObject *resultobj; |
2492 | wxSize *arg1 = (wxSize *) 0 ; | |
2493 | wxSize *arg2 = 0 ; | |
2494 | wxSize result; | |
2495 | wxSize temp2 ; | |
2496 | PyObject * obj0 = 0 ; | |
2497 | PyObject * obj1 = 0 ; | |
2498 | char *kwnames[] = { | |
2499 | (char *) "self",(char *) "sz", NULL | |
2500 | }; | |
2501 | ||
2502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2505 | { | |
2506 | arg2 = &temp2; | |
2507 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2508 | } | |
2509 | { | |
2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2511 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2512 | ||
2513 | wxPyEndAllowThreads(__tstate); | |
2514 | if (PyErr_Occurred()) SWIG_fail; | |
2515 | } | |
2516 | { | |
2517 | wxSize * resultptr; | |
2518 | resultptr = new wxSize((wxSize &) result); | |
2519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2520 | } | |
2521 | return resultobj; | |
2522 | fail: | |
2523 | return NULL; | |
2524 | } | |
2525 | ||
2526 | ||
c32bde28 | 2527 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2528 | PyObject *resultobj; |
2529 | wxSize *arg1 = (wxSize *) 0 ; | |
2530 | wxSize *arg2 = 0 ; | |
2531 | wxSize temp2 ; | |
2532 | PyObject * obj0 = 0 ; | |
2533 | PyObject * obj1 = 0 ; | |
2534 | char *kwnames[] = { | |
2535 | (char *) "self",(char *) "sz", NULL | |
2536 | }; | |
2537 | ||
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2541 | { | |
2542 | arg2 = &temp2; | |
2543 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2544 | } | |
2545 | { | |
2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2547 | (arg1)->IncTo((wxSize const &)*arg2); | |
2548 | ||
2549 | wxPyEndAllowThreads(__tstate); | |
2550 | if (PyErr_Occurred()) SWIG_fail; | |
2551 | } | |
2552 | Py_INCREF(Py_None); resultobj = Py_None; | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
c32bde28 | 2559 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2560 | PyObject *resultobj; |
2561 | wxSize *arg1 = (wxSize *) 0 ; | |
2562 | wxSize *arg2 = 0 ; | |
2563 | wxSize temp2 ; | |
2564 | PyObject * obj0 = 0 ; | |
2565 | PyObject * obj1 = 0 ; | |
2566 | char *kwnames[] = { | |
2567 | (char *) "self",(char *) "sz", NULL | |
2568 | }; | |
2569 | ||
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2573 | { | |
2574 | arg2 = &temp2; | |
2575 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2576 | } | |
2577 | { | |
2578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2579 | (arg1)->DecTo((wxSize const &)*arg2); | |
2580 | ||
2581 | wxPyEndAllowThreads(__tstate); | |
2582 | if (PyErr_Occurred()) SWIG_fail; | |
2583 | } | |
2584 | Py_INCREF(Py_None); resultobj = Py_None; | |
2585 | return resultobj; | |
2586 | fail: | |
2587 | return NULL; | |
2588 | } | |
2589 | ||
2590 | ||
c32bde28 | 2591 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2592 | PyObject *resultobj; |
2593 | wxSize *arg1 = (wxSize *) 0 ; | |
2594 | int arg2 ; | |
2595 | int arg3 ; | |
2596 | PyObject * obj0 = 0 ; | |
2597 | PyObject * obj1 = 0 ; | |
2598 | PyObject * obj2 = 0 ; | |
2599 | char *kwnames[] = { | |
2600 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2601 | }; | |
2602 | ||
2603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2606 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2607 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2608 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2609 | if (PyErr_Occurred()) SWIG_fail; |
2610 | { | |
2611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2612 | (arg1)->Set(arg2,arg3); | |
2613 | ||
2614 | wxPyEndAllowThreads(__tstate); | |
2615 | if (PyErr_Occurred()) SWIG_fail; | |
2616 | } | |
2617 | Py_INCREF(Py_None); resultobj = Py_None; | |
2618 | return resultobj; | |
2619 | fail: | |
2620 | return NULL; | |
2621 | } | |
2622 | ||
2623 | ||
c32bde28 | 2624 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2625 | PyObject *resultobj; |
2626 | wxSize *arg1 = (wxSize *) 0 ; | |
2627 | int arg2 ; | |
2628 | PyObject * obj0 = 0 ; | |
2629 | PyObject * obj1 = 0 ; | |
2630 | char *kwnames[] = { | |
2631 | (char *) "self",(char *) "w", NULL | |
2632 | }; | |
2633 | ||
2634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2637 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2638 | if (PyErr_Occurred()) SWIG_fail; |
2639 | { | |
2640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2641 | (arg1)->SetWidth(arg2); | |
2642 | ||
2643 | wxPyEndAllowThreads(__tstate); | |
2644 | if (PyErr_Occurred()) SWIG_fail; | |
2645 | } | |
2646 | Py_INCREF(Py_None); resultobj = Py_None; | |
2647 | return resultobj; | |
2648 | fail: | |
2649 | return NULL; | |
2650 | } | |
2651 | ||
2652 | ||
c32bde28 | 2653 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2654 | PyObject *resultobj; |
2655 | wxSize *arg1 = (wxSize *) 0 ; | |
2656 | int arg2 ; | |
2657 | PyObject * obj0 = 0 ; | |
2658 | PyObject * obj1 = 0 ; | |
2659 | char *kwnames[] = { | |
2660 | (char *) "self",(char *) "h", NULL | |
2661 | }; | |
2662 | ||
2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2666 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2667 | if (PyErr_Occurred()) SWIG_fail; |
2668 | { | |
2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2670 | (arg1)->SetHeight(arg2); | |
2671 | ||
2672 | wxPyEndAllowThreads(__tstate); | |
2673 | if (PyErr_Occurred()) SWIG_fail; | |
2674 | } | |
2675 | Py_INCREF(Py_None); resultobj = Py_None; | |
2676 | return resultobj; | |
2677 | fail: | |
2678 | return NULL; | |
2679 | } | |
2680 | ||
2681 | ||
c32bde28 | 2682 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2683 | PyObject *resultobj; |
2684 | wxSize *arg1 = (wxSize *) 0 ; | |
2685 | int result; | |
2686 | PyObject * obj0 = 0 ; | |
2687 | char *kwnames[] = { | |
2688 | (char *) "self", NULL | |
2689 | }; | |
2690 | ||
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2694 | { | |
2695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2696 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2697 | ||
2698 | wxPyEndAllowThreads(__tstate); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | } | |
c32bde28 | 2701 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2702 | return resultobj; |
2703 | fail: | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
c32bde28 | 2708 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2709 | PyObject *resultobj; |
2710 | wxSize *arg1 = (wxSize *) 0 ; | |
2711 | int result; | |
2712 | PyObject * obj0 = 0 ; | |
2713 | char *kwnames[] = { | |
2714 | (char *) "self", NULL | |
2715 | }; | |
2716 | ||
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2720 | { | |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
c32bde28 | 2727 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2728 | return resultobj; |
2729 | fail: | |
2730 | return NULL; | |
2731 | } | |
2732 | ||
2733 | ||
c32bde28 | 2734 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2735 | PyObject *resultobj; |
2736 | wxSize *arg1 = (wxSize *) 0 ; | |
2737 | bool result; | |
2738 | PyObject * obj0 = 0 ; | |
2739 | char *kwnames[] = { | |
2740 | (char *) "self", NULL | |
2741 | }; | |
2742 | ||
2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2746 | { | |
2747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2748 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2749 | ||
2750 | wxPyEndAllowThreads(__tstate); | |
2751 | if (PyErr_Occurred()) SWIG_fail; | |
2752 | } | |
2753 | { | |
2754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2755 | } | |
2756 | return resultobj; | |
2757 | fail: | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
c32bde28 | 2762 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2763 | PyObject *resultobj; |
2764 | wxSize *arg1 = (wxSize *) 0 ; | |
2765 | wxSize *arg2 = 0 ; | |
2766 | wxSize temp2 ; | |
2767 | PyObject * obj0 = 0 ; | |
2768 | PyObject * obj1 = 0 ; | |
2769 | char *kwnames[] = { | |
2770 | (char *) "self",(char *) "size", NULL | |
2771 | }; | |
2772 | ||
2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2776 | { | |
2777 | arg2 = &temp2; | |
2778 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2779 | } | |
2780 | { | |
2781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2782 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2783 | ||
2784 | wxPyEndAllowThreads(__tstate); | |
2785 | if (PyErr_Occurred()) SWIG_fail; | |
2786 | } | |
2787 | Py_INCREF(Py_None); resultobj = Py_None; | |
2788 | return resultobj; | |
2789 | fail: | |
2790 | return NULL; | |
2791 | } | |
2792 | ||
2793 | ||
c32bde28 | 2794 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2795 | PyObject *resultobj; |
2796 | wxSize *arg1 = (wxSize *) 0 ; | |
2797 | PyObject *result; | |
2798 | PyObject * obj0 = 0 ; | |
2799 | char *kwnames[] = { | |
2800 | (char *) "self", NULL | |
2801 | }; | |
2802 | ||
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2808 | result = (PyObject *)wxSize_Get(arg1); | |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
2812 | } | |
2813 | resultobj = result; | |
2814 | return resultobj; | |
2815 | fail: | |
2816 | return NULL; | |
2817 | } | |
2818 | ||
2819 | ||
c32bde28 | 2820 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2821 | PyObject *obj; |
2822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2823 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2824 | Py_INCREF(obj); | |
2825 | return Py_BuildValue((char *)""); | |
2826 | } | |
c32bde28 | 2827 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2828 | PyObject *resultobj; |
2829 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2830 | double arg2 ; | |
2831 | PyObject * obj0 = 0 ; | |
2832 | PyObject * obj1 = 0 ; | |
2833 | char *kwnames[] = { | |
2834 | (char *) "self",(char *) "x", NULL | |
2835 | }; | |
2836 | ||
2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2840 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2841 | if (PyErr_Occurred()) SWIG_fail; |
2842 | if (arg1) (arg1)->x = arg2; | |
2843 | ||
2844 | Py_INCREF(Py_None); resultobj = Py_None; | |
2845 | return resultobj; | |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
c32bde28 | 2851 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2852 | PyObject *resultobj; |
2853 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2854 | double result; | |
2855 | PyObject * obj0 = 0 ; | |
2856 | char *kwnames[] = { | |
2857 | (char *) "self", NULL | |
2858 | }; | |
2859 | ||
2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2863 | result = (double) ((arg1)->x); | |
2864 | ||
c32bde28 | 2865 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2866 | return resultobj; |
2867 | fail: | |
2868 | return NULL; | |
2869 | } | |
2870 | ||
2871 | ||
c32bde28 | 2872 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2873 | PyObject *resultobj; |
2874 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2875 | double arg2 ; | |
2876 | PyObject * obj0 = 0 ; | |
2877 | PyObject * obj1 = 0 ; | |
2878 | char *kwnames[] = { | |
2879 | (char *) "self",(char *) "y", NULL | |
2880 | }; | |
2881 | ||
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2885 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2886 | if (PyErr_Occurred()) SWIG_fail; |
2887 | if (arg1) (arg1)->y = arg2; | |
2888 | ||
2889 | Py_INCREF(Py_None); resultobj = Py_None; | |
2890 | return resultobj; | |
2891 | fail: | |
2892 | return NULL; | |
2893 | } | |
2894 | ||
2895 | ||
c32bde28 | 2896 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2897 | PyObject *resultobj; |
2898 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2899 | double result; | |
2900 | PyObject * obj0 = 0 ; | |
2901 | char *kwnames[] = { | |
2902 | (char *) "self", NULL | |
2903 | }; | |
2904 | ||
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2908 | result = (double) ((arg1)->y); | |
2909 | ||
c32bde28 | 2910 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2911 | return resultobj; |
2912 | fail: | |
2913 | return NULL; | |
2914 | } | |
2915 | ||
2916 | ||
c32bde28 | 2917 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2918 | PyObject *resultobj; |
2919 | double arg1 = (double) 0.0 ; | |
2920 | double arg2 = (double) 0.0 ; | |
2921 | wxRealPoint *result; | |
2922 | PyObject * obj0 = 0 ; | |
2923 | PyObject * obj1 = 0 ; | |
2924 | char *kwnames[] = { | |
2925 | (char *) "x",(char *) "y", NULL | |
2926 | }; | |
2927 | ||
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2929 | if (obj0) { | |
c32bde28 | 2930 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
2931 | if (PyErr_Occurred()) SWIG_fail; |
2932 | } | |
2933 | if (obj1) { | |
c32bde28 | 2934 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2935 | if (PyErr_Occurred()) SWIG_fail; |
2936 | } | |
2937 | { | |
2938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2939 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2940 | ||
2941 | wxPyEndAllowThreads(__tstate); | |
2942 | if (PyErr_Occurred()) SWIG_fail; | |
2943 | } | |
2944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2945 | return resultobj; | |
2946 | fail: | |
2947 | return NULL; | |
2948 | } | |
2949 | ||
2950 | ||
c32bde28 | 2951 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2952 | PyObject *resultobj; |
2953 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2954 | PyObject * obj0 = 0 ; | |
2955 | char *kwnames[] = { | |
2956 | (char *) "self", NULL | |
2957 | }; | |
2958 | ||
2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2962 | { | |
2963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2964 | delete arg1; | |
2965 | ||
2966 | wxPyEndAllowThreads(__tstate); | |
2967 | if (PyErr_Occurred()) SWIG_fail; | |
2968 | } | |
2969 | Py_INCREF(Py_None); resultobj = Py_None; | |
2970 | return resultobj; | |
2971 | fail: | |
2972 | return NULL; | |
2973 | } | |
2974 | ||
2975 | ||
c32bde28 | 2976 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2977 | PyObject *resultobj; |
2978 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2979 | wxRealPoint *arg2 = 0 ; | |
2980 | bool result; | |
2981 | wxRealPoint temp2 ; | |
2982 | PyObject * obj0 = 0 ; | |
2983 | PyObject * obj1 = 0 ; | |
2984 | char *kwnames[] = { | |
2985 | (char *) "self",(char *) "pt", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2991 | { | |
2992 | arg2 = &temp2; | |
2993 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2994 | } | |
2995 | { | |
2996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2997 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2998 | ||
2999 | wxPyEndAllowThreads(__tstate); | |
3000 | if (PyErr_Occurred()) SWIG_fail; | |
3001 | } | |
3002 | { | |
3003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3004 | } | |
3005 | return resultobj; | |
3006 | fail: | |
3007 | return NULL; | |
3008 | } | |
3009 | ||
3010 | ||
c32bde28 | 3011 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3012 | PyObject *resultobj; |
3013 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3014 | wxRealPoint *arg2 = 0 ; | |
3015 | bool result; | |
3016 | wxRealPoint temp2 ; | |
3017 | PyObject * obj0 = 0 ; | |
3018 | PyObject * obj1 = 0 ; | |
3019 | char *kwnames[] = { | |
3020 | (char *) "self",(char *) "pt", NULL | |
3021 | }; | |
3022 | ||
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3026 | { | |
3027 | arg2 = &temp2; | |
3028 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3029 | } | |
3030 | { | |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3032 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
3035 | if (PyErr_Occurred()) SWIG_fail; | |
3036 | } | |
3037 | { | |
3038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3039 | } | |
3040 | return resultobj; | |
3041 | fail: | |
3042 | return NULL; | |
3043 | } | |
3044 | ||
3045 | ||
c32bde28 | 3046 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3047 | PyObject *resultobj; |
3048 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3049 | wxRealPoint *arg2 = 0 ; | |
3050 | wxRealPoint result; | |
3051 | wxRealPoint temp2 ; | |
3052 | PyObject * obj0 = 0 ; | |
3053 | PyObject * obj1 = 0 ; | |
3054 | char *kwnames[] = { | |
3055 | (char *) "self",(char *) "pt", NULL | |
3056 | }; | |
3057 | ||
3058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
3059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3061 | { | |
3062 | arg2 = &temp2; | |
3063 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3064 | } | |
3065 | { | |
3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3067 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
3068 | ||
3069 | wxPyEndAllowThreads(__tstate); | |
3070 | if (PyErr_Occurred()) SWIG_fail; | |
3071 | } | |
3072 | { | |
3073 | wxRealPoint * resultptr; | |
3074 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3075 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3076 | } | |
3077 | return resultobj; | |
3078 | fail: | |
3079 | return NULL; | |
3080 | } | |
3081 | ||
3082 | ||
c32bde28 | 3083 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3084 | PyObject *resultobj; |
3085 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3086 | wxRealPoint *arg2 = 0 ; | |
3087 | wxRealPoint result; | |
3088 | wxRealPoint temp2 ; | |
3089 | PyObject * obj0 = 0 ; | |
3090 | PyObject * obj1 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "self",(char *) "pt", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3098 | { | |
3099 | arg2 = &temp2; | |
3100 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3101 | } | |
3102 | { | |
3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3104 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
3105 | ||
3106 | wxPyEndAllowThreads(__tstate); | |
3107 | if (PyErr_Occurred()) SWIG_fail; | |
3108 | } | |
3109 | { | |
3110 | wxRealPoint * resultptr; | |
3111 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3112 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3113 | } | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | return NULL; | |
3117 | } | |
3118 | ||
3119 | ||
c32bde28 | 3120 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3121 | PyObject *resultobj; |
3122 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3123 | double arg2 ; | |
3124 | double arg3 ; | |
3125 | PyObject * obj0 = 0 ; | |
3126 | PyObject * obj1 = 0 ; | |
3127 | PyObject * obj2 = 0 ; | |
3128 | char *kwnames[] = { | |
3129 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3130 | }; | |
3131 | ||
3132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3135 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 3136 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3137 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
3138 | if (PyErr_Occurred()) SWIG_fail; |
3139 | { | |
3140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3141 | wxRealPoint_Set(arg1,arg2,arg3); | |
3142 | ||
3143 | wxPyEndAllowThreads(__tstate); | |
3144 | if (PyErr_Occurred()) SWIG_fail; | |
3145 | } | |
3146 | Py_INCREF(Py_None); resultobj = Py_None; | |
3147 | return resultobj; | |
3148 | fail: | |
3149 | return NULL; | |
3150 | } | |
3151 | ||
3152 | ||
c32bde28 | 3153 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3154 | PyObject *resultobj; |
3155 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3156 | PyObject *result; | |
3157 | PyObject * obj0 = 0 ; | |
3158 | char *kwnames[] = { | |
3159 | (char *) "self", NULL | |
3160 | }; | |
3161 | ||
3162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
3163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3165 | { | |
3166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3167 | result = (PyObject *)wxRealPoint_Get(arg1); | |
3168 | ||
3169 | wxPyEndAllowThreads(__tstate); | |
3170 | if (PyErr_Occurred()) SWIG_fail; | |
3171 | } | |
3172 | resultobj = result; | |
3173 | return resultobj; | |
3174 | fail: | |
3175 | return NULL; | |
3176 | } | |
3177 | ||
3178 | ||
c32bde28 | 3179 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3180 | PyObject *obj; |
3181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3182 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3183 | Py_INCREF(obj); | |
3184 | return Py_BuildValue((char *)""); | |
3185 | } | |
c32bde28 | 3186 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3187 | PyObject *resultobj; |
3188 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3189 | int arg2 ; | |
3190 | PyObject * obj0 = 0 ; | |
3191 | PyObject * obj1 = 0 ; | |
3192 | char *kwnames[] = { | |
3193 | (char *) "self",(char *) "x", NULL | |
3194 | }; | |
3195 | ||
3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
3197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3199 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3200 | if (PyErr_Occurred()) SWIG_fail; |
3201 | if (arg1) (arg1)->x = arg2; | |
3202 | ||
3203 | Py_INCREF(Py_None); resultobj = Py_None; | |
3204 | return resultobj; | |
3205 | fail: | |
3206 | return NULL; | |
3207 | } | |
3208 | ||
3209 | ||
c32bde28 | 3210 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3211 | PyObject *resultobj; |
3212 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3213 | int result; | |
3214 | PyObject * obj0 = 0 ; | |
3215 | char *kwnames[] = { | |
3216 | (char *) "self", NULL | |
3217 | }; | |
3218 | ||
3219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
3220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3222 | result = (int) ((arg1)->x); | |
3223 | ||
c32bde28 | 3224 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3225 | return resultobj; |
3226 | fail: | |
3227 | return NULL; | |
3228 | } | |
3229 | ||
3230 | ||
c32bde28 | 3231 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3232 | PyObject *resultobj; |
3233 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3234 | int arg2 ; | |
3235 | PyObject * obj0 = 0 ; | |
3236 | PyObject * obj1 = 0 ; | |
3237 | char *kwnames[] = { | |
3238 | (char *) "self",(char *) "y", NULL | |
3239 | }; | |
3240 | ||
3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
3242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3244 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3245 | if (PyErr_Occurred()) SWIG_fail; |
3246 | if (arg1) (arg1)->y = arg2; | |
3247 | ||
3248 | Py_INCREF(Py_None); resultobj = Py_None; | |
3249 | return resultobj; | |
3250 | fail: | |
3251 | return NULL; | |
3252 | } | |
3253 | ||
3254 | ||
c32bde28 | 3255 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3256 | PyObject *resultobj; |
3257 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3258 | int result; | |
3259 | PyObject * obj0 = 0 ; | |
3260 | char *kwnames[] = { | |
3261 | (char *) "self", NULL | |
3262 | }; | |
3263 | ||
3264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
3265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3267 | result = (int) ((arg1)->y); | |
3268 | ||
c32bde28 | 3269 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3270 | return resultobj; |
3271 | fail: | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
c32bde28 | 3276 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3277 | PyObject *resultobj; |
3278 | int arg1 = (int) 0 ; | |
3279 | int arg2 = (int) 0 ; | |
3280 | wxPoint *result; | |
3281 | PyObject * obj0 = 0 ; | |
3282 | PyObject * obj1 = 0 ; | |
3283 | char *kwnames[] = { | |
3284 | (char *) "x",(char *) "y", NULL | |
3285 | }; | |
3286 | ||
3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
3288 | if (obj0) { | |
c32bde28 | 3289 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3290 | if (PyErr_Occurred()) SWIG_fail; |
3291 | } | |
3292 | if (obj1) { | |
c32bde28 | 3293 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3294 | if (PyErr_Occurred()) SWIG_fail; |
3295 | } | |
3296 | { | |
3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3298 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3299 | ||
3300 | wxPyEndAllowThreads(__tstate); | |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
3302 | } | |
3303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3304 | return resultobj; | |
3305 | fail: | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
c32bde28 | 3310 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3311 | PyObject *resultobj; |
3312 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3313 | PyObject * obj0 = 0 ; | |
3314 | char *kwnames[] = { | |
3315 | (char *) "self", NULL | |
3316 | }; | |
3317 | ||
3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3321 | { | |
3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3323 | delete arg1; | |
3324 | ||
3325 | wxPyEndAllowThreads(__tstate); | |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
3327 | } | |
3328 | Py_INCREF(Py_None); resultobj = Py_None; | |
3329 | return resultobj; | |
3330 | fail: | |
3331 | return NULL; | |
3332 | } | |
3333 | ||
3334 | ||
c32bde28 | 3335 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3336 | PyObject *resultobj; |
3337 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3338 | wxPoint *arg2 = 0 ; | |
3339 | bool result; | |
3340 | wxPoint temp2 ; | |
3341 | PyObject * obj0 = 0 ; | |
3342 | PyObject * obj1 = 0 ; | |
3343 | char *kwnames[] = { | |
3344 | (char *) "self",(char *) "pt", NULL | |
3345 | }; | |
3346 | ||
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3350 | { | |
3351 | arg2 = &temp2; | |
3352 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3353 | } | |
3354 | { | |
3355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3356 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3357 | ||
3358 | wxPyEndAllowThreads(__tstate); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | { | |
3362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3363 | } | |
3364 | return resultobj; | |
3365 | fail: | |
3366 | return NULL; | |
3367 | } | |
3368 | ||
3369 | ||
c32bde28 | 3370 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3371 | PyObject *resultobj; |
3372 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3373 | wxPoint *arg2 = 0 ; | |
3374 | bool result; | |
3375 | wxPoint temp2 ; | |
3376 | PyObject * obj0 = 0 ; | |
3377 | PyObject * obj1 = 0 ; | |
3378 | char *kwnames[] = { | |
3379 | (char *) "self",(char *) "pt", NULL | |
3380 | }; | |
3381 | ||
3382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3385 | { | |
3386 | arg2 = &temp2; | |
3387 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3388 | } | |
3389 | { | |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
3396 | { | |
3397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3398 | } | |
3399 | return resultobj; | |
3400 | fail: | |
3401 | return NULL; | |
3402 | } | |
3403 | ||
3404 | ||
c32bde28 | 3405 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3406 | PyObject *resultobj; |
3407 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3408 | wxPoint *arg2 = 0 ; | |
3409 | wxPoint result; | |
3410 | wxPoint temp2 ; | |
3411 | PyObject * obj0 = 0 ; | |
3412 | PyObject * obj1 = 0 ; | |
3413 | char *kwnames[] = { | |
3414 | (char *) "self",(char *) "pt", NULL | |
3415 | }; | |
3416 | ||
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3420 | { | |
3421 | arg2 = &temp2; | |
3422 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3423 | } | |
3424 | { | |
3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3426 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3427 | ||
3428 | wxPyEndAllowThreads(__tstate); | |
3429 | if (PyErr_Occurred()) SWIG_fail; | |
3430 | } | |
3431 | { | |
3432 | wxPoint * resultptr; | |
3433 | resultptr = new wxPoint((wxPoint &) result); | |
3434 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3435 | } | |
3436 | return resultobj; | |
3437 | fail: | |
3438 | return NULL; | |
3439 | } | |
3440 | ||
3441 | ||
c32bde28 | 3442 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3443 | PyObject *resultobj; |
3444 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3445 | wxPoint *arg2 = 0 ; | |
3446 | wxPoint result; | |
3447 | wxPoint temp2 ; | |
3448 | PyObject * obj0 = 0 ; | |
3449 | PyObject * obj1 = 0 ; | |
3450 | char *kwnames[] = { | |
3451 | (char *) "self",(char *) "pt", NULL | |
3452 | }; | |
3453 | ||
3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3457 | { | |
3458 | arg2 = &temp2; | |
3459 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3460 | } | |
3461 | { | |
3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3463 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3464 | ||
3465 | wxPyEndAllowThreads(__tstate); | |
3466 | if (PyErr_Occurred()) SWIG_fail; | |
3467 | } | |
3468 | { | |
3469 | wxPoint * resultptr; | |
3470 | resultptr = new wxPoint((wxPoint &) result); | |
3471 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3472 | } | |
3473 | return resultobj; | |
3474 | fail: | |
3475 | return NULL; | |
3476 | } | |
3477 | ||
3478 | ||
c32bde28 | 3479 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3480 | PyObject *resultobj; |
3481 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3482 | wxPoint *arg2 = 0 ; | |
3483 | wxPoint *result; | |
3484 | wxPoint temp2 ; | |
3485 | PyObject * obj0 = 0 ; | |
3486 | PyObject * obj1 = 0 ; | |
3487 | char *kwnames[] = { | |
3488 | (char *) "self",(char *) "pt", NULL | |
3489 | }; | |
3490 | ||
3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3493 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3494 | { |
3495 | arg2 = &temp2; | |
3496 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3497 | } | |
3498 | { | |
3499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3500 | { | |
3501 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3502 | result = (wxPoint *) &_result_ref; | |
3503 | } | |
3504 | ||
3505 | wxPyEndAllowThreads(__tstate); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | } | |
c32bde28 | 3508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3509 | return resultobj; |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
c32bde28 | 3515 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3516 | PyObject *resultobj; |
3517 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3518 | wxPoint *arg2 = 0 ; | |
3519 | wxPoint *result; | |
3520 | wxPoint temp2 ; | |
3521 | PyObject * obj0 = 0 ; | |
3522 | PyObject * obj1 = 0 ; | |
3523 | char *kwnames[] = { | |
3524 | (char *) "self",(char *) "pt", NULL | |
3525 | }; | |
3526 | ||
3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3529 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3530 | { |
3531 | arg2 = &temp2; | |
3532 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3533 | } | |
3534 | { | |
3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3536 | { | |
3537 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3538 | result = (wxPoint *) &_result_ref; | |
3539 | } | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
3543 | } | |
c32bde28 | 3544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3545 | return resultobj; |
3546 | fail: | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
c32bde28 | 3551 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3552 | PyObject *resultobj; |
3553 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3554 | long arg2 ; | |
3555 | long arg3 ; | |
3556 | PyObject * obj0 = 0 ; | |
3557 | PyObject * obj1 = 0 ; | |
3558 | PyObject * obj2 = 0 ; | |
3559 | char *kwnames[] = { | |
3560 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3561 | }; | |
3562 | ||
3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3566 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3567 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3568 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3569 | if (PyErr_Occurred()) SWIG_fail; |
3570 | { | |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | wxPoint_Set(arg1,arg2,arg3); | |
3573 | ||
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
3577 | Py_INCREF(Py_None); resultobj = Py_None; | |
3578 | return resultobj; | |
3579 | fail: | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
c32bde28 | 3584 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3585 | PyObject *resultobj; |
3586 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3587 | PyObject *result; | |
3588 | PyObject * obj0 = 0 ; | |
3589 | char *kwnames[] = { | |
3590 | (char *) "self", NULL | |
3591 | }; | |
3592 | ||
3593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3596 | { | |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | result = (PyObject *)wxPoint_Get(arg1); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | resultobj = result; | |
3604 | return resultobj; | |
3605 | fail: | |
3606 | return NULL; | |
3607 | } | |
3608 | ||
3609 | ||
c32bde28 | 3610 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3611 | PyObject *obj; |
3612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3613 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3614 | Py_INCREF(obj); | |
3615 | return Py_BuildValue((char *)""); | |
3616 | } | |
c32bde28 | 3617 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3618 | PyObject *resultobj; |
3619 | int arg1 = (int) 0 ; | |
3620 | int arg2 = (int) 0 ; | |
3621 | int arg3 = (int) 0 ; | |
3622 | int arg4 = (int) 0 ; | |
3623 | wxRect *result; | |
3624 | PyObject * obj0 = 0 ; | |
3625 | PyObject * obj1 = 0 ; | |
3626 | PyObject * obj2 = 0 ; | |
3627 | PyObject * obj3 = 0 ; | |
3628 | char *kwnames[] = { | |
3629 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3630 | }; | |
3631 | ||
3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3633 | if (obj0) { | |
c32bde28 | 3634 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3635 | if (PyErr_Occurred()) SWIG_fail; |
3636 | } | |
3637 | if (obj1) { | |
c32bde28 | 3638 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3639 | if (PyErr_Occurred()) SWIG_fail; |
3640 | } | |
3641 | if (obj2) { | |
c32bde28 | 3642 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3643 | if (PyErr_Occurred()) SWIG_fail; |
3644 | } | |
3645 | if (obj3) { | |
c32bde28 | 3646 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3647 | if (PyErr_Occurred()) SWIG_fail; |
3648 | } | |
3649 | { | |
3650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3651 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3652 | ||
3653 | wxPyEndAllowThreads(__tstate); | |
3654 | if (PyErr_Occurred()) SWIG_fail; | |
3655 | } | |
3656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3657 | return resultobj; | |
3658 | fail: | |
3659 | return NULL; | |
3660 | } | |
3661 | ||
3662 | ||
c32bde28 | 3663 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3664 | PyObject *resultobj; |
3665 | wxPoint *arg1 = 0 ; | |
3666 | wxPoint *arg2 = 0 ; | |
3667 | wxRect *result; | |
3668 | wxPoint temp1 ; | |
3669 | wxPoint temp2 ; | |
3670 | PyObject * obj0 = 0 ; | |
3671 | PyObject * obj1 = 0 ; | |
3672 | char *kwnames[] = { | |
3673 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3674 | }; | |
3675 | ||
3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3677 | { | |
3678 | arg1 = &temp1; | |
3679 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3680 | } | |
3681 | { | |
3682 | arg2 = &temp2; | |
3683 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3684 | } | |
3685 | { | |
3686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3687 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3688 | ||
3689 | wxPyEndAllowThreads(__tstate); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
3691 | } | |
3692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3693 | return resultobj; | |
3694 | fail: | |
3695 | return NULL; | |
3696 | } | |
3697 | ||
3698 | ||
c32bde28 | 3699 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3700 | PyObject *resultobj; |
3701 | wxPoint *arg1 = 0 ; | |
3702 | wxSize *arg2 = 0 ; | |
3703 | wxRect *result; | |
3704 | wxPoint temp1 ; | |
3705 | wxSize temp2 ; | |
3706 | PyObject * obj0 = 0 ; | |
3707 | PyObject * obj1 = 0 ; | |
3708 | char *kwnames[] = { | |
3709 | (char *) "pos",(char *) "size", NULL | |
3710 | }; | |
3711 | ||
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3713 | { | |
3714 | arg1 = &temp1; | |
3715 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3716 | } | |
3717 | { | |
3718 | arg2 = &temp2; | |
3719 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3720 | } | |
3721 | { | |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) SWIG_fail; | |
3727 | } | |
3728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3729 | return resultobj; | |
3730 | fail: | |
3731 | return NULL; | |
3732 | } | |
3733 | ||
3734 | ||
c1cb24a4 RD |
3735 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
3736 | PyObject *resultobj; | |
3737 | wxSize *arg1 = 0 ; | |
3738 | wxRect *result; | |
3739 | wxSize temp1 ; | |
3740 | PyObject * obj0 = 0 ; | |
3741 | char *kwnames[] = { | |
3742 | (char *) "size", NULL | |
3743 | }; | |
3744 | ||
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
3746 | { | |
3747 | arg1 = &temp1; | |
3748 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
3749 | } | |
3750 | { | |
3751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3752 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
3753 | ||
3754 | wxPyEndAllowThreads(__tstate); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
3757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3758 | return resultobj; | |
3759 | fail: | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
c32bde28 | 3764 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3765 | PyObject *resultobj; |
3766 | wxRect *arg1 = (wxRect *) 0 ; | |
3767 | PyObject * obj0 = 0 ; | |
3768 | char *kwnames[] = { | |
3769 | (char *) "self", NULL | |
3770 | }; | |
3771 | ||
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3775 | { | |
3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3777 | delete arg1; | |
3778 | ||
3779 | wxPyEndAllowThreads(__tstate); | |
3780 | if (PyErr_Occurred()) SWIG_fail; | |
3781 | } | |
3782 | Py_INCREF(Py_None); resultobj = Py_None; | |
3783 | return resultobj; | |
3784 | fail: | |
3785 | return NULL; | |
3786 | } | |
3787 | ||
3788 | ||
c32bde28 | 3789 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3790 | PyObject *resultobj; |
3791 | wxRect *arg1 = (wxRect *) 0 ; | |
3792 | int result; | |
3793 | PyObject * obj0 = 0 ; | |
3794 | char *kwnames[] = { | |
3795 | (char *) "self", NULL | |
3796 | }; | |
3797 | ||
3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3801 | { | |
3802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3803 | result = (int)((wxRect const *)arg1)->GetX(); | |
3804 | ||
3805 | wxPyEndAllowThreads(__tstate); | |
3806 | if (PyErr_Occurred()) SWIG_fail; | |
3807 | } | |
c32bde28 | 3808 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3809 | return resultobj; |
3810 | fail: | |
3811 | return NULL; | |
3812 | } | |
3813 | ||
3814 | ||
c32bde28 | 3815 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3816 | PyObject *resultobj; |
3817 | wxRect *arg1 = (wxRect *) 0 ; | |
3818 | int arg2 ; | |
3819 | PyObject * obj0 = 0 ; | |
3820 | PyObject * obj1 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self",(char *) "x", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3828 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3829 | if (PyErr_Occurred()) SWIG_fail; |
3830 | { | |
3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3832 | (arg1)->SetX(arg2); | |
3833 | ||
3834 | wxPyEndAllowThreads(__tstate); | |
3835 | if (PyErr_Occurred()) SWIG_fail; | |
3836 | } | |
3837 | Py_INCREF(Py_None); resultobj = Py_None; | |
3838 | return resultobj; | |
3839 | fail: | |
3840 | return NULL; | |
3841 | } | |
3842 | ||
3843 | ||
c32bde28 | 3844 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3845 | PyObject *resultobj; |
3846 | wxRect *arg1 = (wxRect *) 0 ; | |
3847 | int result; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "self", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3856 | { | |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = (int)(arg1)->GetY(); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
c32bde28 | 3863 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3864 | return resultobj; |
3865 | fail: | |
3866 | return NULL; | |
3867 | } | |
3868 | ||
3869 | ||
c32bde28 | 3870 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3871 | PyObject *resultobj; |
3872 | wxRect *arg1 = (wxRect *) 0 ; | |
3873 | int arg2 ; | |
3874 | PyObject * obj0 = 0 ; | |
3875 | PyObject * obj1 = 0 ; | |
3876 | char *kwnames[] = { | |
3877 | (char *) "self",(char *) "y", NULL | |
3878 | }; | |
3879 | ||
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3883 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3884 | if (PyErr_Occurred()) SWIG_fail; |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | (arg1)->SetY(arg2); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | Py_INCREF(Py_None); resultobj = Py_None; | |
3893 | return resultobj; | |
3894 | fail: | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
c32bde28 | 3899 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3900 | PyObject *resultobj; |
3901 | wxRect *arg1 = (wxRect *) 0 ; | |
3902 | int result; | |
3903 | PyObject * obj0 = 0 ; | |
3904 | char *kwnames[] = { | |
3905 | (char *) "self", NULL | |
3906 | }; | |
3907 | ||
3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3911 | { | |
3912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3913 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3914 | ||
3915 | wxPyEndAllowThreads(__tstate); | |
3916 | if (PyErr_Occurred()) SWIG_fail; | |
3917 | } | |
c32bde28 | 3918 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3919 | return resultobj; |
3920 | fail: | |
3921 | return NULL; | |
3922 | } | |
3923 | ||
3924 | ||
c32bde28 | 3925 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3926 | PyObject *resultobj; |
3927 | wxRect *arg1 = (wxRect *) 0 ; | |
3928 | int arg2 ; | |
3929 | PyObject * obj0 = 0 ; | |
3930 | PyObject * obj1 = 0 ; | |
3931 | char *kwnames[] = { | |
3932 | (char *) "self",(char *) "w", NULL | |
3933 | }; | |
3934 | ||
3935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3938 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3939 | if (PyErr_Occurred()) SWIG_fail; |
3940 | { | |
3941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3942 | (arg1)->SetWidth(arg2); | |
3943 | ||
3944 | wxPyEndAllowThreads(__tstate); | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | } | |
3947 | Py_INCREF(Py_None); resultobj = Py_None; | |
3948 | return resultobj; | |
3949 | fail: | |
3950 | return NULL; | |
3951 | } | |
3952 | ||
3953 | ||
c32bde28 | 3954 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3955 | PyObject *resultobj; |
3956 | wxRect *arg1 = (wxRect *) 0 ; | |
3957 | int result; | |
3958 | PyObject * obj0 = 0 ; | |
3959 | char *kwnames[] = { | |
3960 | (char *) "self", NULL | |
3961 | }; | |
3962 | ||
3963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3966 | { | |
3967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3968 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3969 | ||
3970 | wxPyEndAllowThreads(__tstate); | |
3971 | if (PyErr_Occurred()) SWIG_fail; | |
3972 | } | |
c32bde28 | 3973 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3974 | return resultobj; |
3975 | fail: | |
3976 | return NULL; | |
3977 | } | |
3978 | ||
3979 | ||
c32bde28 | 3980 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3981 | PyObject *resultobj; |
3982 | wxRect *arg1 = (wxRect *) 0 ; | |
3983 | int arg2 ; | |
3984 | PyObject * obj0 = 0 ; | |
3985 | PyObject * obj1 = 0 ; | |
3986 | char *kwnames[] = { | |
3987 | (char *) "self",(char *) "h", NULL | |
3988 | }; | |
3989 | ||
3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3993 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3994 | if (PyErr_Occurred()) SWIG_fail; |
3995 | { | |
3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3997 | (arg1)->SetHeight(arg2); | |
3998 | ||
3999 | wxPyEndAllowThreads(__tstate); | |
4000 | if (PyErr_Occurred()) SWIG_fail; | |
4001 | } | |
4002 | Py_INCREF(Py_None); resultobj = Py_None; | |
4003 | return resultobj; | |
4004 | fail: | |
4005 | return NULL; | |
4006 | } | |
4007 | ||
4008 | ||
c32bde28 | 4009 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4010 | PyObject *resultobj; |
4011 | wxRect *arg1 = (wxRect *) 0 ; | |
4012 | wxPoint result; | |
4013 | PyObject * obj0 = 0 ; | |
4014 | char *kwnames[] = { | |
4015 | (char *) "self", NULL | |
4016 | }; | |
4017 | ||
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
4019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4021 | { | |
4022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4023 | result = ((wxRect const *)arg1)->GetPosition(); | |
4024 | ||
4025 | wxPyEndAllowThreads(__tstate); | |
4026 | if (PyErr_Occurred()) SWIG_fail; | |
4027 | } | |
4028 | { | |
4029 | wxPoint * resultptr; | |
4030 | resultptr = new wxPoint((wxPoint &) result); | |
4031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4032 | } | |
4033 | return resultobj; | |
4034 | fail: | |
4035 | return NULL; | |
4036 | } | |
4037 | ||
4038 | ||
c32bde28 | 4039 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4040 | PyObject *resultobj; |
4041 | wxRect *arg1 = (wxRect *) 0 ; | |
4042 | wxPoint *arg2 = 0 ; | |
4043 | wxPoint temp2 ; | |
4044 | PyObject * obj0 = 0 ; | |
4045 | PyObject * obj1 = 0 ; | |
4046 | char *kwnames[] = { | |
4047 | (char *) "self",(char *) "p", NULL | |
4048 | }; | |
4049 | ||
4050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
4051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4053 | { | |
4054 | arg2 = &temp2; | |
4055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4056 | } | |
4057 | { | |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
4060 | ||
4061 | wxPyEndAllowThreads(__tstate); | |
4062 | if (PyErr_Occurred()) SWIG_fail; | |
4063 | } | |
4064 | Py_INCREF(Py_None); resultobj = Py_None; | |
4065 | return resultobj; | |
4066 | fail: | |
4067 | return NULL; | |
4068 | } | |
4069 | ||
4070 | ||
c32bde28 | 4071 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4072 | PyObject *resultobj; |
4073 | wxRect *arg1 = (wxRect *) 0 ; | |
4074 | wxSize result; | |
4075 | PyObject * obj0 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "self", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
4081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = ((wxRect const *)arg1)->GetSize(); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | { | |
4091 | wxSize * resultptr; | |
4092 | resultptr = new wxSize((wxSize &) result); | |
4093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4094 | } | |
4095 | return resultobj; | |
4096 | fail: | |
4097 | return NULL; | |
4098 | } | |
4099 | ||
4100 | ||
c32bde28 | 4101 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4102 | PyObject *resultobj; |
4103 | wxRect *arg1 = (wxRect *) 0 ; | |
4104 | wxSize *arg2 = 0 ; | |
4105 | wxSize temp2 ; | |
4106 | PyObject * obj0 = 0 ; | |
4107 | PyObject * obj1 = 0 ; | |
4108 | char *kwnames[] = { | |
4109 | (char *) "self",(char *) "s", NULL | |
4110 | }; | |
4111 | ||
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4115 | { | |
4116 | arg2 = &temp2; | |
4117 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4118 | } | |
4119 | { | |
4120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4121 | (arg1)->SetSize((wxSize const &)*arg2); | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
4126 | Py_INCREF(Py_None); resultobj = Py_None; | |
4127 | return resultobj; | |
4128 | fail: | |
4129 | return NULL; | |
4130 | } | |
4131 | ||
4132 | ||
c32bde28 | 4133 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4134 | PyObject *resultobj; |
4135 | wxRect *arg1 = (wxRect *) 0 ; | |
4136 | wxPoint result; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | char *kwnames[] = { | |
4139 | (char *) "self", NULL | |
4140 | }; | |
4141 | ||
4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
4143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4145 | { | |
4146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4147 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4148 | ||
4149 | wxPyEndAllowThreads(__tstate); | |
4150 | if (PyErr_Occurred()) SWIG_fail; | |
4151 | } | |
4152 | { | |
4153 | wxPoint * resultptr; | |
4154 | resultptr = new wxPoint((wxPoint &) result); | |
4155 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4156 | } | |
4157 | return resultobj; | |
4158 | fail: | |
4159 | return NULL; | |
4160 | } | |
4161 | ||
4162 | ||
c32bde28 | 4163 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4164 | PyObject *resultobj; |
4165 | wxRect *arg1 = (wxRect *) 0 ; | |
4166 | wxPoint *arg2 = 0 ; | |
4167 | wxPoint temp2 ; | |
4168 | PyObject * obj0 = 0 ; | |
4169 | PyObject * obj1 = 0 ; | |
4170 | char *kwnames[] = { | |
4171 | (char *) "self",(char *) "p", NULL | |
4172 | }; | |
4173 | ||
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
4175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4177 | { | |
4178 | arg2 = &temp2; | |
4179 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4180 | } | |
4181 | { | |
4182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4183 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4184 | ||
4185 | wxPyEndAllowThreads(__tstate); | |
4186 | if (PyErr_Occurred()) SWIG_fail; | |
4187 | } | |
4188 | Py_INCREF(Py_None); resultobj = Py_None; | |
4189 | return resultobj; | |
4190 | fail: | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
c32bde28 | 4195 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4196 | PyObject *resultobj; |
4197 | wxRect *arg1 = (wxRect *) 0 ; | |
4198 | wxPoint result; | |
4199 | PyObject * obj0 = 0 ; | |
4200 | char *kwnames[] = { | |
4201 | (char *) "self", NULL | |
4202 | }; | |
4203 | ||
4204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
4205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4209 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4210 | ||
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | { | |
4215 | wxPoint * resultptr; | |
4216 | resultptr = new wxPoint((wxPoint &) result); | |
4217 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4218 | } | |
4219 | return resultobj; | |
4220 | fail: | |
4221 | return NULL; | |
4222 | } | |
4223 | ||
4224 | ||
c32bde28 | 4225 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4226 | PyObject *resultobj; |
4227 | wxRect *arg1 = (wxRect *) 0 ; | |
4228 | wxPoint *arg2 = 0 ; | |
4229 | wxPoint temp2 ; | |
4230 | PyObject * obj0 = 0 ; | |
4231 | PyObject * obj1 = 0 ; | |
4232 | char *kwnames[] = { | |
4233 | (char *) "self",(char *) "p", NULL | |
4234 | }; | |
4235 | ||
4236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
4237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4239 | { | |
4240 | arg2 = &temp2; | |
4241 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4242 | } | |
4243 | { | |
4244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4245 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4246 | ||
4247 | wxPyEndAllowThreads(__tstate); | |
4248 | if (PyErr_Occurred()) SWIG_fail; | |
4249 | } | |
4250 | Py_INCREF(Py_None); resultobj = Py_None; | |
4251 | return resultobj; | |
4252 | fail: | |
4253 | return NULL; | |
4254 | } | |
4255 | ||
4256 | ||
c32bde28 | 4257 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4258 | PyObject *resultobj; |
4259 | wxRect *arg1 = (wxRect *) 0 ; | |
4260 | int result; | |
4261 | PyObject * obj0 = 0 ; | |
4262 | char *kwnames[] = { | |
4263 | (char *) "self", NULL | |
4264 | }; | |
4265 | ||
4266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
4267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4269 | { | |
4270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4271 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4272 | ||
4273 | wxPyEndAllowThreads(__tstate); | |
4274 | if (PyErr_Occurred()) SWIG_fail; | |
4275 | } | |
c32bde28 | 4276 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4277 | return resultobj; |
4278 | fail: | |
4279 | return NULL; | |
4280 | } | |
4281 | ||
4282 | ||
c32bde28 | 4283 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4284 | PyObject *resultobj; |
4285 | wxRect *arg1 = (wxRect *) 0 ; | |
4286 | int result; | |
4287 | PyObject * obj0 = 0 ; | |
4288 | char *kwnames[] = { | |
4289 | (char *) "self", NULL | |
4290 | }; | |
4291 | ||
4292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
4293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
4300 | if (PyErr_Occurred()) SWIG_fail; | |
4301 | } | |
c32bde28 | 4302 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4303 | return resultobj; |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
c32bde28 | 4309 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4310 | PyObject *resultobj; |
4311 | wxRect *arg1 = (wxRect *) 0 ; | |
4312 | int result; | |
4313 | PyObject * obj0 = 0 ; | |
4314 | char *kwnames[] = { | |
4315 | (char *) "self", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
4319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4321 | { | |
4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4323 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4324 | ||
4325 | wxPyEndAllowThreads(__tstate); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
c32bde28 | 4328 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4329 | return resultobj; |
4330 | fail: | |
4331 | return NULL; | |
4332 | } | |
4333 | ||
4334 | ||
c32bde28 | 4335 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4336 | PyObject *resultobj; |
4337 | wxRect *arg1 = (wxRect *) 0 ; | |
4338 | int result; | |
4339 | PyObject * obj0 = 0 ; | |
4340 | char *kwnames[] = { | |
4341 | (char *) "self", NULL | |
4342 | }; | |
4343 | ||
4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4347 | { | |
4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4349 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4350 | ||
4351 | wxPyEndAllowThreads(__tstate); | |
4352 | if (PyErr_Occurred()) SWIG_fail; | |
4353 | } | |
c32bde28 | 4354 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4355 | return resultobj; |
4356 | fail: | |
4357 | return NULL; | |
4358 | } | |
4359 | ||
4360 | ||
c32bde28 | 4361 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4362 | PyObject *resultobj; |
4363 | wxRect *arg1 = (wxRect *) 0 ; | |
4364 | int arg2 ; | |
4365 | PyObject * obj0 = 0 ; | |
4366 | PyObject * obj1 = 0 ; | |
4367 | char *kwnames[] = { | |
4368 | (char *) "self",(char *) "left", NULL | |
4369 | }; | |
4370 | ||
4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4374 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4375 | if (PyErr_Occurred()) SWIG_fail; |
4376 | { | |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | (arg1)->SetLeft(arg2); | |
4379 | ||
4380 | wxPyEndAllowThreads(__tstate); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
4383 | Py_INCREF(Py_None); resultobj = Py_None; | |
4384 | return resultobj; | |
4385 | fail: | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
c32bde28 | 4390 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4391 | PyObject *resultobj; |
4392 | wxRect *arg1 = (wxRect *) 0 ; | |
4393 | int arg2 ; | |
4394 | PyObject * obj0 = 0 ; | |
4395 | PyObject * obj1 = 0 ; | |
4396 | char *kwnames[] = { | |
4397 | (char *) "self",(char *) "right", NULL | |
4398 | }; | |
4399 | ||
4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4403 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4404 | if (PyErr_Occurred()) SWIG_fail; |
4405 | { | |
4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4407 | (arg1)->SetRight(arg2); | |
4408 | ||
4409 | wxPyEndAllowThreads(__tstate); | |
4410 | if (PyErr_Occurred()) SWIG_fail; | |
4411 | } | |
4412 | Py_INCREF(Py_None); resultobj = Py_None; | |
4413 | return resultobj; | |
4414 | fail: | |
4415 | return NULL; | |
4416 | } | |
4417 | ||
4418 | ||
c32bde28 | 4419 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4420 | PyObject *resultobj; |
4421 | wxRect *arg1 = (wxRect *) 0 ; | |
4422 | int arg2 ; | |
4423 | PyObject * obj0 = 0 ; | |
4424 | PyObject * obj1 = 0 ; | |
4425 | char *kwnames[] = { | |
4426 | (char *) "self",(char *) "top", NULL | |
4427 | }; | |
4428 | ||
4429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4432 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4433 | if (PyErr_Occurred()) SWIG_fail; |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | (arg1)->SetTop(arg2); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | Py_INCREF(Py_None); resultobj = Py_None; | |
4442 | return resultobj; | |
4443 | fail: | |
4444 | return NULL; | |
4445 | } | |
4446 | ||
4447 | ||
c32bde28 | 4448 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4449 | PyObject *resultobj; |
4450 | wxRect *arg1 = (wxRect *) 0 ; | |
4451 | int arg2 ; | |
4452 | PyObject * obj0 = 0 ; | |
4453 | PyObject * obj1 = 0 ; | |
4454 | char *kwnames[] = { | |
4455 | (char *) "self",(char *) "bottom", NULL | |
4456 | }; | |
4457 | ||
4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4461 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4462 | if (PyErr_Occurred()) SWIG_fail; |
4463 | { | |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4465 | (arg1)->SetBottom(arg2); | |
4466 | ||
4467 | wxPyEndAllowThreads(__tstate); | |
4468 | if (PyErr_Occurred()) SWIG_fail; | |
4469 | } | |
4470 | Py_INCREF(Py_None); resultobj = Py_None; | |
4471 | return resultobj; | |
4472 | fail: | |
4473 | return NULL; | |
4474 | } | |
4475 | ||
4476 | ||
c32bde28 | 4477 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4478 | PyObject *resultobj; |
4479 | wxRect *arg1 = (wxRect *) 0 ; | |
4480 | int arg2 ; | |
4481 | int arg3 ; | |
4482 | wxRect *result; | |
4483 | PyObject * obj0 = 0 ; | |
4484 | PyObject * obj1 = 0 ; | |
4485 | PyObject * obj2 = 0 ; | |
4486 | char *kwnames[] = { | |
4487 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4488 | }; | |
4489 | ||
4490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4493 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4494 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4495 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4496 | if (PyErr_Occurred()) SWIG_fail; |
4497 | { | |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4499 | { | |
4500 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4501 | result = (wxRect *) &_result_ref; | |
4502 | } | |
4503 | ||
4504 | wxPyEndAllowThreads(__tstate); | |
4505 | if (PyErr_Occurred()) SWIG_fail; | |
4506 | } | |
4507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4508 | return resultobj; | |
4509 | fail: | |
4510 | return NULL; | |
4511 | } | |
4512 | ||
4513 | ||
c32bde28 | 4514 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4515 | PyObject *resultobj; |
4516 | wxRect *arg1 = (wxRect *) 0 ; | |
4517 | int arg2 ; | |
4518 | int arg3 ; | |
4519 | wxRect *result; | |
4520 | PyObject * obj0 = 0 ; | |
4521 | PyObject * obj1 = 0 ; | |
4522 | PyObject * obj2 = 0 ; | |
4523 | char *kwnames[] = { | |
4524 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4525 | }; | |
4526 | ||
4527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4530 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4531 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4532 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4533 | if (PyErr_Occurred()) SWIG_fail; |
4534 | { | |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4536 | { | |
4537 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4538 | result = (wxRect *) &_result_ref; | |
4539 | } | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
4542 | if (PyErr_Occurred()) SWIG_fail; | |
4543 | } | |
4544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4545 | return resultobj; | |
4546 | fail: | |
4547 | return NULL; | |
4548 | } | |
4549 | ||
4550 | ||
c32bde28 | 4551 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4552 | PyObject *resultobj; |
4553 | wxRect *arg1 = (wxRect *) 0 ; | |
4554 | int arg2 ; | |
4555 | int arg3 ; | |
4556 | PyObject * obj0 = 0 ; | |
4557 | PyObject * obj1 = 0 ; | |
4558 | PyObject * obj2 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4561 | }; | |
4562 | ||
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4566 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4567 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4568 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4569 | if (PyErr_Occurred()) SWIG_fail; |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | (arg1)->Offset(arg2,arg3); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
4576 | } | |
4577 | Py_INCREF(Py_None); resultobj = Py_None; | |
4578 | return resultobj; | |
4579 | fail: | |
4580 | return NULL; | |
4581 | } | |
4582 | ||
4583 | ||
c32bde28 | 4584 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4585 | PyObject *resultobj; |
4586 | wxRect *arg1 = (wxRect *) 0 ; | |
4587 | wxPoint *arg2 = 0 ; | |
4588 | wxPoint temp2 ; | |
4589 | PyObject * obj0 = 0 ; | |
4590 | PyObject * obj1 = 0 ; | |
4591 | char *kwnames[] = { | |
4592 | (char *) "self",(char *) "pt", NULL | |
4593 | }; | |
4594 | ||
4595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4598 | { | |
4599 | arg2 = &temp2; | |
4600 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4601 | } | |
4602 | { | |
4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4604 | (arg1)->Offset((wxPoint const &)*arg2); | |
4605 | ||
4606 | wxPyEndAllowThreads(__tstate); | |
4607 | if (PyErr_Occurred()) SWIG_fail; | |
4608 | } | |
4609 | Py_INCREF(Py_None); resultobj = Py_None; | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
c32bde28 | 4616 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4617 | PyObject *resultobj; |
4618 | wxRect *arg1 = (wxRect *) 0 ; | |
4619 | wxRect *arg2 = 0 ; | |
b519803b | 4620 | wxRect result; |
d55e5bfc RD |
4621 | wxRect temp2 ; |
4622 | PyObject * obj0 = 0 ; | |
4623 | PyObject * obj1 = 0 ; | |
4624 | char *kwnames[] = { | |
4625 | (char *) "self",(char *) "rect", NULL | |
4626 | }; | |
4627 | ||
4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4631 | { | |
4632 | arg2 = &temp2; | |
4633 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4634 | } | |
4635 | { | |
4636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b519803b | 4637 | result = (arg1)->Intersect((wxRect const &)*arg2); |
d55e5bfc RD |
4638 | |
4639 | wxPyEndAllowThreads(__tstate); | |
4640 | if (PyErr_Occurred()) SWIG_fail; | |
4641 | } | |
b519803b RD |
4642 | { |
4643 | wxRect * resultptr; | |
4644 | resultptr = new wxRect((wxRect &) result); | |
4645 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4646 | } | |
4647 | return resultobj; | |
4648 | fail: | |
4649 | return NULL; | |
4650 | } | |
4651 | ||
4652 | ||
4653 | static PyObject *_wrap_Rect_Union(PyObject *, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject *resultobj; | |
4655 | wxRect *arg1 = (wxRect *) 0 ; | |
4656 | wxRect *arg2 = 0 ; | |
4657 | wxRect result; | |
4658 | wxRect temp2 ; | |
4659 | PyObject * obj0 = 0 ; | |
4660 | PyObject * obj1 = 0 ; | |
4661 | char *kwnames[] = { | |
4662 | (char *) "self",(char *) "rect", NULL | |
4663 | }; | |
4664 | ||
4665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) goto fail; | |
4666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4668 | { | |
4669 | arg2 = &temp2; | |
4670 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4671 | } | |
4672 | { | |
4673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4674 | result = (arg1)->Union((wxRect const &)*arg2); | |
4675 | ||
4676 | wxPyEndAllowThreads(__tstate); | |
4677 | if (PyErr_Occurred()) SWIG_fail; | |
4678 | } | |
4679 | { | |
4680 | wxRect * resultptr; | |
4681 | resultptr = new wxRect((wxRect &) result); | |
4682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4683 | } | |
d55e5bfc RD |
4684 | return resultobj; |
4685 | fail: | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
c32bde28 | 4690 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4691 | PyObject *resultobj; |
4692 | wxRect *arg1 = (wxRect *) 0 ; | |
4693 | wxRect *arg2 = 0 ; | |
4694 | wxRect result; | |
4695 | wxRect temp2 ; | |
4696 | PyObject * obj0 = 0 ; | |
4697 | PyObject * obj1 = 0 ; | |
4698 | char *kwnames[] = { | |
4699 | (char *) "self",(char *) "rect", NULL | |
4700 | }; | |
4701 | ||
4702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4705 | { | |
4706 | arg2 = &temp2; | |
4707 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4708 | } | |
4709 | { | |
4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4711 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4712 | ||
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | { | |
4717 | wxRect * resultptr; | |
4718 | resultptr = new wxRect((wxRect &) result); | |
4719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4720 | } | |
4721 | return resultobj; | |
4722 | fail: | |
4723 | return NULL; | |
4724 | } | |
4725 | ||
4726 | ||
c32bde28 | 4727 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4728 | PyObject *resultobj; |
4729 | wxRect *arg1 = (wxRect *) 0 ; | |
4730 | wxRect *arg2 = 0 ; | |
4731 | wxRect *result; | |
4732 | wxRect temp2 ; | |
4733 | PyObject * obj0 = 0 ; | |
4734 | PyObject * obj1 = 0 ; | |
4735 | char *kwnames[] = { | |
4736 | (char *) "self",(char *) "rect", NULL | |
4737 | }; | |
4738 | ||
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
c32bde28 | 4741 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
4742 | { |
4743 | arg2 = &temp2; | |
4744 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4745 | } | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | { | |
4749 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4750 | result = (wxRect *) &_result_ref; | |
4751 | } | |
4752 | ||
4753 | wxPyEndAllowThreads(__tstate); | |
4754 | if (PyErr_Occurred()) SWIG_fail; | |
4755 | } | |
c32bde28 | 4756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
4757 | return resultobj; |
4758 | fail: | |
4759 | return NULL; | |
4760 | } | |
4761 | ||
4762 | ||
c32bde28 | 4763 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4764 | PyObject *resultobj; |
4765 | wxRect *arg1 = (wxRect *) 0 ; | |
4766 | wxRect *arg2 = 0 ; | |
4767 | bool result; | |
4768 | wxRect temp2 ; | |
4769 | PyObject * obj0 = 0 ; | |
4770 | PyObject * obj1 = 0 ; | |
4771 | char *kwnames[] = { | |
4772 | (char *) "self",(char *) "rect", NULL | |
4773 | }; | |
4774 | ||
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4778 | { | |
4779 | arg2 = &temp2; | |
4780 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4781 | } | |
4782 | { | |
4783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4784 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4785 | ||
4786 | wxPyEndAllowThreads(__tstate); | |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
4788 | } | |
4789 | { | |
4790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4791 | } | |
4792 | return resultobj; | |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
c32bde28 | 4798 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4799 | PyObject *resultobj; |
4800 | wxRect *arg1 = (wxRect *) 0 ; | |
4801 | wxRect *arg2 = 0 ; | |
4802 | bool result; | |
4803 | wxRect temp2 ; | |
4804 | PyObject * obj0 = 0 ; | |
4805 | PyObject * obj1 = 0 ; | |
4806 | char *kwnames[] = { | |
4807 | (char *) "self",(char *) "rect", NULL | |
4808 | }; | |
4809 | ||
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4813 | { | |
4814 | arg2 = &temp2; | |
4815 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4816 | } | |
4817 | { | |
4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4819 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4820 | ||
4821 | wxPyEndAllowThreads(__tstate); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
4823 | } | |
4824 | { | |
4825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4826 | } | |
4827 | return resultobj; | |
4828 | fail: | |
4829 | return NULL; | |
4830 | } | |
4831 | ||
4832 | ||
c32bde28 | 4833 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4834 | PyObject *resultobj; |
4835 | wxRect *arg1 = (wxRect *) 0 ; | |
4836 | int arg2 ; | |
4837 | int arg3 ; | |
4838 | bool result; | |
4839 | PyObject * obj0 = 0 ; | |
4840 | PyObject * obj1 = 0 ; | |
4841 | PyObject * obj2 = 0 ; | |
4842 | char *kwnames[] = { | |
4843 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4844 | }; | |
4845 | ||
4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4849 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4850 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4851 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4852 | if (PyErr_Occurred()) SWIG_fail; |
4853 | { | |
4854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4855 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4856 | ||
4857 | wxPyEndAllowThreads(__tstate); | |
4858 | if (PyErr_Occurred()) SWIG_fail; | |
4859 | } | |
4860 | { | |
4861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4862 | } | |
4863 | return resultobj; | |
4864 | fail: | |
4865 | return NULL; | |
4866 | } | |
4867 | ||
4868 | ||
c32bde28 | 4869 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4870 | PyObject *resultobj; |
4871 | wxRect *arg1 = (wxRect *) 0 ; | |
4872 | wxPoint *arg2 = 0 ; | |
4873 | bool result; | |
4874 | wxPoint temp2 ; | |
4875 | PyObject * obj0 = 0 ; | |
4876 | PyObject * obj1 = 0 ; | |
4877 | char *kwnames[] = { | |
4878 | (char *) "self",(char *) "pt", NULL | |
4879 | }; | |
4880 | ||
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4884 | { | |
4885 | arg2 = &temp2; | |
4886 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4887 | } | |
4888 | { | |
4889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4890 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4891 | ||
4892 | wxPyEndAllowThreads(__tstate); | |
4893 | if (PyErr_Occurred()) SWIG_fail; | |
4894 | } | |
4895 | { | |
4896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4897 | } | |
4898 | return resultobj; | |
4899 | fail: | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
c32bde28 | 4904 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4905 | PyObject *resultobj; |
4906 | wxRect *arg1 = (wxRect *) 0 ; | |
4907 | wxRect *arg2 = 0 ; | |
4908 | bool result; | |
4909 | wxRect temp2 ; | |
4910 | PyObject * obj0 = 0 ; | |
4911 | PyObject * obj1 = 0 ; | |
4912 | char *kwnames[] = { | |
4913 | (char *) "self",(char *) "rect", NULL | |
4914 | }; | |
4915 | ||
4916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4919 | { | |
4920 | arg2 = &temp2; | |
4921 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4922 | } | |
4923 | { | |
4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4925 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4926 | ||
4927 | wxPyEndAllowThreads(__tstate); | |
4928 | if (PyErr_Occurred()) SWIG_fail; | |
4929 | } | |
4930 | { | |
4931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4932 | } | |
4933 | return resultobj; | |
4934 | fail: | |
4935 | return NULL; | |
4936 | } | |
4937 | ||
4938 | ||
c32bde28 | 4939 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4940 | PyObject *resultobj; |
4941 | wxRect *arg1 = (wxRect *) 0 ; | |
4942 | int arg2 ; | |
4943 | PyObject * obj0 = 0 ; | |
4944 | PyObject * obj1 = 0 ; | |
4945 | char *kwnames[] = { | |
4946 | (char *) "self",(char *) "x", NULL | |
4947 | }; | |
4948 | ||
4949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4952 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4953 | if (PyErr_Occurred()) SWIG_fail; |
4954 | if (arg1) (arg1)->x = arg2; | |
4955 | ||
4956 | Py_INCREF(Py_None); resultobj = Py_None; | |
4957 | return resultobj; | |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
c32bde28 | 4963 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4964 | PyObject *resultobj; |
4965 | wxRect *arg1 = (wxRect *) 0 ; | |
4966 | int result; | |
4967 | PyObject * obj0 = 0 ; | |
4968 | char *kwnames[] = { | |
4969 | (char *) "self", NULL | |
4970 | }; | |
4971 | ||
4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4975 | result = (int) ((arg1)->x); | |
4976 | ||
c32bde28 | 4977 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4978 | return resultobj; |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
c32bde28 | 4984 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4985 | PyObject *resultobj; |
4986 | wxRect *arg1 = (wxRect *) 0 ; | |
4987 | int arg2 ; | |
4988 | PyObject * obj0 = 0 ; | |
4989 | PyObject * obj1 = 0 ; | |
4990 | char *kwnames[] = { | |
4991 | (char *) "self",(char *) "y", NULL | |
4992 | }; | |
4993 | ||
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4997 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4998 | if (PyErr_Occurred()) SWIG_fail; |
4999 | if (arg1) (arg1)->y = arg2; | |
5000 | ||
5001 | Py_INCREF(Py_None); resultobj = Py_None; | |
5002 | return resultobj; | |
5003 | fail: | |
5004 | return NULL; | |
5005 | } | |
5006 | ||
5007 | ||
c32bde28 | 5008 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5009 | PyObject *resultobj; |
5010 | wxRect *arg1 = (wxRect *) 0 ; | |
5011 | int result; | |
5012 | PyObject * obj0 = 0 ; | |
5013 | char *kwnames[] = { | |
5014 | (char *) "self", NULL | |
5015 | }; | |
5016 | ||
5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
5018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5020 | result = (int) ((arg1)->y); | |
5021 | ||
c32bde28 | 5022 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5023 | return resultobj; |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
c32bde28 | 5029 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5030 | PyObject *resultobj; |
5031 | wxRect *arg1 = (wxRect *) 0 ; | |
5032 | int arg2 ; | |
5033 | PyObject * obj0 = 0 ; | |
5034 | PyObject * obj1 = 0 ; | |
5035 | char *kwnames[] = { | |
5036 | (char *) "self",(char *) "width", NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
5040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5042 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5043 | if (PyErr_Occurred()) SWIG_fail; |
5044 | if (arg1) (arg1)->width = arg2; | |
5045 | ||
5046 | Py_INCREF(Py_None); resultobj = Py_None; | |
5047 | return resultobj; | |
5048 | fail: | |
5049 | return NULL; | |
5050 | } | |
5051 | ||
5052 | ||
c32bde28 | 5053 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5054 | PyObject *resultobj; |
5055 | wxRect *arg1 = (wxRect *) 0 ; | |
5056 | int result; | |
5057 | PyObject * obj0 = 0 ; | |
5058 | char *kwnames[] = { | |
5059 | (char *) "self", NULL | |
5060 | }; | |
5061 | ||
5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
5063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5065 | result = (int) ((arg1)->width); | |
5066 | ||
c32bde28 | 5067 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5068 | return resultobj; |
5069 | fail: | |
5070 | return NULL; | |
5071 | } | |
5072 | ||
5073 | ||
c32bde28 | 5074 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5075 | PyObject *resultobj; |
5076 | wxRect *arg1 = (wxRect *) 0 ; | |
5077 | int arg2 ; | |
5078 | PyObject * obj0 = 0 ; | |
5079 | PyObject * obj1 = 0 ; | |
5080 | char *kwnames[] = { | |
5081 | (char *) "self",(char *) "height", NULL | |
5082 | }; | |
5083 | ||
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
5085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5087 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5088 | if (PyErr_Occurred()) SWIG_fail; |
5089 | if (arg1) (arg1)->height = arg2; | |
5090 | ||
5091 | Py_INCREF(Py_None); resultobj = Py_None; | |
5092 | return resultobj; | |
5093 | fail: | |
5094 | return NULL; | |
5095 | } | |
5096 | ||
5097 | ||
c32bde28 | 5098 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5099 | PyObject *resultobj; |
5100 | wxRect *arg1 = (wxRect *) 0 ; | |
5101 | int result; | |
5102 | PyObject * obj0 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "self", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
5108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5110 | result = (int) ((arg1)->height); | |
5111 | ||
c32bde28 | 5112 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5113 | return resultobj; |
5114 | fail: | |
5115 | return NULL; | |
5116 | } | |
5117 | ||
5118 | ||
c32bde28 | 5119 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5120 | PyObject *resultobj; |
5121 | wxRect *arg1 = (wxRect *) 0 ; | |
5122 | int arg2 = (int) 0 ; | |
5123 | int arg3 = (int) 0 ; | |
5124 | int arg4 = (int) 0 ; | |
5125 | int arg5 = (int) 0 ; | |
5126 | PyObject * obj0 = 0 ; | |
5127 | PyObject * obj1 = 0 ; | |
5128 | PyObject * obj2 = 0 ; | |
5129 | PyObject * obj3 = 0 ; | |
5130 | PyObject * obj4 = 0 ; | |
5131 | char *kwnames[] = { | |
5132 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5133 | }; | |
5134 | ||
5135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5138 | if (obj1) { | |
c32bde28 | 5139 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5140 | if (PyErr_Occurred()) SWIG_fail; |
5141 | } | |
5142 | if (obj2) { | |
c32bde28 | 5143 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5144 | if (PyErr_Occurred()) SWIG_fail; |
5145 | } | |
5146 | if (obj3) { | |
c32bde28 | 5147 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5148 | if (PyErr_Occurred()) SWIG_fail; |
5149 | } | |
5150 | if (obj4) { | |
c32bde28 | 5151 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5152 | if (PyErr_Occurred()) SWIG_fail; |
5153 | } | |
5154 | { | |
5155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5156 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5157 | ||
5158 | wxPyEndAllowThreads(__tstate); | |
5159 | if (PyErr_Occurred()) SWIG_fail; | |
5160 | } | |
5161 | Py_INCREF(Py_None); resultobj = Py_None; | |
5162 | return resultobj; | |
5163 | fail: | |
5164 | return NULL; | |
5165 | } | |
5166 | ||
5167 | ||
c32bde28 | 5168 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5169 | PyObject *resultobj; |
5170 | wxRect *arg1 = (wxRect *) 0 ; | |
5171 | PyObject *result; | |
5172 | PyObject * obj0 = 0 ; | |
5173 | char *kwnames[] = { | |
5174 | (char *) "self", NULL | |
5175 | }; | |
5176 | ||
5177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
5178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5180 | { | |
5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5182 | result = (PyObject *)wxRect_Get(arg1); | |
5183 | ||
5184 | wxPyEndAllowThreads(__tstate); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
5187 | resultobj = result; | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
c32bde28 | 5194 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5195 | PyObject *obj; |
5196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5197 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5198 | Py_INCREF(obj); | |
5199 | return Py_BuildValue((char *)""); | |
5200 | } | |
c32bde28 | 5201 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5202 | PyObject *resultobj; |
5203 | wxRect *arg1 = (wxRect *) 0 ; | |
5204 | wxRect *arg2 = (wxRect *) 0 ; | |
5205 | PyObject *result; | |
5206 | PyObject * obj0 = 0 ; | |
5207 | PyObject * obj1 = 0 ; | |
5208 | char *kwnames[] = { | |
5209 | (char *) "r1",(char *) "r2", NULL | |
5210 | }; | |
5211 | ||
5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5215 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5217 | { | |
0439c23b | 5218 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5220 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5221 | ||
5222 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5223 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5224 | } |
5225 | resultobj = result; | |
5226 | return resultobj; | |
5227 | fail: | |
5228 | return NULL; | |
5229 | } | |
5230 | ||
5231 | ||
c32bde28 | 5232 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5233 | PyObject *resultobj; |
5234 | double arg1 = (double) 0.0 ; | |
5235 | double arg2 = (double) 0.0 ; | |
5236 | wxPoint2D *result; | |
5237 | PyObject * obj0 = 0 ; | |
5238 | PyObject * obj1 = 0 ; | |
5239 | char *kwnames[] = { | |
5240 | (char *) "x",(char *) "y", NULL | |
5241 | }; | |
5242 | ||
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
5244 | if (obj0) { | |
c32bde28 | 5245 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
5246 | if (PyErr_Occurred()) SWIG_fail; |
5247 | } | |
5248 | if (obj1) { | |
c32bde28 | 5249 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5250 | if (PyErr_Occurred()) SWIG_fail; |
5251 | } | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
c32bde28 | 5266 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5267 | PyObject *resultobj; |
5268 | wxPoint2D *arg1 = 0 ; | |
5269 | wxPoint2D *result; | |
5270 | wxPoint2D temp1 ; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | char *kwnames[] = { | |
5273 | (char *) "pt", NULL | |
5274 | }; | |
5275 | ||
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5277 | { | |
5278 | arg1 = &temp1; | |
5279 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5280 | } | |
5281 | { | |
5282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5283 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5284 | ||
5285 | wxPyEndAllowThreads(__tstate); | |
5286 | if (PyErr_Occurred()) SWIG_fail; | |
5287 | } | |
5288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5289 | return resultobj; | |
5290 | fail: | |
5291 | return NULL; | |
5292 | } | |
5293 | ||
5294 | ||
c32bde28 | 5295 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5296 | PyObject *resultobj; |
5297 | wxPoint *arg1 = 0 ; | |
5298 | wxPoint2D *result; | |
5299 | wxPoint temp1 ; | |
5300 | PyObject * obj0 = 0 ; | |
5301 | char *kwnames[] = { | |
5302 | (char *) "pt", NULL | |
5303 | }; | |
5304 | ||
5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5306 | { | |
5307 | arg1 = &temp1; | |
5308 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5309 | } | |
5310 | { | |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | return NULL; | |
5321 | } | |
5322 | ||
5323 | ||
c32bde28 | 5324 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5325 | PyObject *resultobj; |
5326 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5327 | int *arg2 = (int *) 0 ; | |
5328 | int *arg3 = (int *) 0 ; | |
5329 | int temp2 ; | |
c32bde28 | 5330 | int res2 = 0 ; |
d55e5bfc | 5331 | int temp3 ; |
c32bde28 | 5332 | int res3 = 0 ; |
d55e5bfc RD |
5333 | PyObject * obj0 = 0 ; |
5334 | char *kwnames[] = { | |
5335 | (char *) "self", NULL | |
5336 | }; | |
5337 | ||
c32bde28 RD |
5338 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5339 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
5341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5343 | { | |
5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5345 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5346 | ||
5347 | wxPyEndAllowThreads(__tstate); | |
5348 | if (PyErr_Occurred()) SWIG_fail; | |
5349 | } | |
5350 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5351 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5352 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5353 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5354 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5355 | return resultobj; |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
c32bde28 | 5361 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5362 | PyObject *resultobj; |
5363 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5364 | int *arg2 = (int *) 0 ; | |
5365 | int *arg3 = (int *) 0 ; | |
5366 | int temp2 ; | |
c32bde28 | 5367 | int res2 = 0 ; |
d55e5bfc | 5368 | int temp3 ; |
c32bde28 | 5369 | int res3 = 0 ; |
d55e5bfc RD |
5370 | PyObject * obj0 = 0 ; |
5371 | char *kwnames[] = { | |
5372 | (char *) "self", NULL | |
5373 | }; | |
5374 | ||
c32bde28 RD |
5375 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5376 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
5378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5380 | { | |
5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5382 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5383 | ||
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
5386 | } | |
5387 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5388 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5389 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5390 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5391 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5392 | return resultobj; |
5393 | fail: | |
5394 | return NULL; | |
5395 | } | |
5396 | ||
5397 | ||
c32bde28 | 5398 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5399 | PyObject *resultobj; |
5400 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5401 | double result; | |
5402 | PyObject * obj0 = 0 ; | |
5403 | char *kwnames[] = { | |
5404 | (char *) "self", NULL | |
5405 | }; | |
5406 | ||
5407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5410 | { | |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
c32bde28 | 5417 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5418 | return resultobj; |
5419 | fail: | |
5420 | return NULL; | |
5421 | } | |
5422 | ||
5423 | ||
c32bde28 | 5424 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5425 | PyObject *resultobj; |
5426 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5427 | double result; | |
5428 | PyObject * obj0 = 0 ; | |
5429 | char *kwnames[] = { | |
5430 | (char *) "self", NULL | |
5431 | }; | |
5432 | ||
5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
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_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5451 | PyObject *resultobj; |
5452 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5453 | double arg2 ; | |
5454 | PyObject * obj0 = 0 ; | |
5455 | PyObject * obj1 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self",(char *) "length", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5463 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5464 | if (PyErr_Occurred()) SWIG_fail; |
5465 | { | |
5466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5467 | (arg1)->SetVectorLength(arg2); | |
5468 | ||
5469 | wxPyEndAllowThreads(__tstate); | |
5470 | if (PyErr_Occurred()) SWIG_fail; | |
5471 | } | |
5472 | Py_INCREF(Py_None); resultobj = Py_None; | |
5473 | return resultobj; | |
5474 | fail: | |
5475 | return NULL; | |
5476 | } | |
5477 | ||
5478 | ||
c32bde28 | 5479 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5480 | PyObject *resultobj; |
5481 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5482 | double arg2 ; | |
5483 | PyObject * obj0 = 0 ; | |
5484 | PyObject * obj1 = 0 ; | |
5485 | char *kwnames[] = { | |
5486 | (char *) "self",(char *) "degrees", NULL | |
5487 | }; | |
5488 | ||
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5492 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5493 | if (PyErr_Occurred()) SWIG_fail; |
5494 | { | |
5495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5496 | (arg1)->SetVectorAngle(arg2); | |
5497 | ||
5498 | wxPyEndAllowThreads(__tstate); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
5500 | } | |
5501 | Py_INCREF(Py_None); resultobj = Py_None; | |
5502 | return resultobj; | |
5503 | fail: | |
5504 | return NULL; | |
5505 | } | |
5506 | ||
5507 | ||
c32bde28 | 5508 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5509 | PyObject *resultobj; |
5510 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5511 | wxPoint2D *arg2 = 0 ; | |
5512 | double result; | |
5513 | wxPoint2D temp2 ; | |
5514 | PyObject * obj0 = 0 ; | |
5515 | PyObject * obj1 = 0 ; | |
5516 | char *kwnames[] = { | |
5517 | (char *) "self",(char *) "pt", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5523 | { | |
5524 | arg2 = &temp2; | |
5525 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5526 | } | |
5527 | { | |
5528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5529 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5530 | ||
5531 | wxPyEndAllowThreads(__tstate); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | } | |
c32bde28 | 5534 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5535 | return resultobj; |
5536 | fail: | |
5537 | return NULL; | |
5538 | } | |
5539 | ||
5540 | ||
c32bde28 | 5541 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5542 | PyObject *resultobj; |
5543 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5544 | wxPoint2D *arg2 = 0 ; | |
5545 | double result; | |
5546 | wxPoint2D temp2 ; | |
5547 | PyObject * obj0 = 0 ; | |
5548 | PyObject * obj1 = 0 ; | |
5549 | char *kwnames[] = { | |
5550 | (char *) "self",(char *) "pt", NULL | |
5551 | }; | |
5552 | ||
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5556 | { | |
5557 | arg2 = &temp2; | |
5558 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5559 | } | |
5560 | { | |
5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5562 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5563 | ||
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
c32bde28 | 5567 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5568 | return resultobj; |
5569 | fail: | |
5570 | return NULL; | |
5571 | } | |
5572 | ||
5573 | ||
c32bde28 | 5574 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5575 | PyObject *resultobj; |
5576 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5577 | wxPoint2D *arg2 = 0 ; | |
5578 | double result; | |
5579 | wxPoint2D temp2 ; | |
5580 | PyObject * obj0 = 0 ; | |
5581 | PyObject * obj1 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "self",(char *) "vec", NULL | |
5584 | }; | |
5585 | ||
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5589 | { | |
5590 | arg2 = &temp2; | |
5591 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5592 | } | |
5593 | { | |
5594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5595 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5596 | ||
5597 | wxPyEndAllowThreads(__tstate); | |
5598 | if (PyErr_Occurred()) SWIG_fail; | |
5599 | } | |
c32bde28 | 5600 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5601 | return resultobj; |
5602 | fail: | |
5603 | return NULL; | |
5604 | } | |
5605 | ||
5606 | ||
c32bde28 | 5607 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5608 | PyObject *resultobj; |
5609 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5610 | wxPoint2D *arg2 = 0 ; | |
5611 | double result; | |
5612 | wxPoint2D temp2 ; | |
5613 | PyObject * obj0 = 0 ; | |
5614 | PyObject * obj1 = 0 ; | |
5615 | char *kwnames[] = { | |
5616 | (char *) "self",(char *) "vec", NULL | |
5617 | }; | |
5618 | ||
5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5622 | { | |
5623 | arg2 = &temp2; | |
5624 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5625 | } | |
5626 | { | |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
c32bde28 | 5633 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5634 | return resultobj; |
5635 | fail: | |
5636 | return NULL; | |
5637 | } | |
5638 | ||
5639 | ||
c32bde28 | 5640 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5641 | PyObject *resultobj; |
5642 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5643 | wxPoint2D result; | |
5644 | PyObject * obj0 = 0 ; | |
5645 | char *kwnames[] = { | |
5646 | (char *) "self", NULL | |
5647 | }; | |
5648 | ||
5649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5652 | { | |
5653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5654 | result = (arg1)->operator -(); | |
5655 | ||
5656 | wxPyEndAllowThreads(__tstate); | |
5657 | if (PyErr_Occurred()) SWIG_fail; | |
5658 | } | |
5659 | { | |
5660 | wxPoint2D * resultptr; | |
5661 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5663 | } | |
5664 | return resultobj; | |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
c32bde28 | 5670 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5671 | PyObject *resultobj; |
5672 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5673 | wxPoint2D *arg2 = 0 ; | |
5674 | wxPoint2D *result; | |
5675 | wxPoint2D temp2 ; | |
5676 | PyObject * obj0 = 0 ; | |
5677 | PyObject * obj1 = 0 ; | |
5678 | char *kwnames[] = { | |
5679 | (char *) "self",(char *) "pt", NULL | |
5680 | }; | |
5681 | ||
5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5684 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5685 | { |
5686 | arg2 = &temp2; | |
5687 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5688 | } | |
5689 | { | |
5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5691 | { | |
5692 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5693 | result = (wxPoint2D *) &_result_ref; | |
5694 | } | |
5695 | ||
5696 | wxPyEndAllowThreads(__tstate); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
c32bde28 | 5699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5700 | return resultobj; |
5701 | fail: | |
5702 | return NULL; | |
5703 | } | |
5704 | ||
5705 | ||
c32bde28 | 5706 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5707 | PyObject *resultobj; |
5708 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5709 | wxPoint2D *arg2 = 0 ; | |
5710 | wxPoint2D *result; | |
5711 | wxPoint2D temp2 ; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | PyObject * obj1 = 0 ; | |
5714 | char *kwnames[] = { | |
5715 | (char *) "self",(char *) "pt", NULL | |
5716 | }; | |
5717 | ||
5718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5720 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5721 | { |
5722 | arg2 = &temp2; | |
5723 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5724 | } | |
5725 | { | |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5727 | { | |
5728 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5729 | result = (wxPoint2D *) &_result_ref; | |
5730 | } | |
5731 | ||
5732 | wxPyEndAllowThreads(__tstate); | |
5733 | if (PyErr_Occurred()) SWIG_fail; | |
5734 | } | |
c32bde28 | 5735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5736 | return resultobj; |
5737 | fail: | |
5738 | return NULL; | |
5739 | } | |
5740 | ||
5741 | ||
c32bde28 | 5742 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5743 | PyObject *resultobj; |
5744 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5745 | wxPoint2D *arg2 = 0 ; | |
5746 | wxPoint2D *result; | |
5747 | wxPoint2D temp2 ; | |
5748 | PyObject * obj0 = 0 ; | |
5749 | PyObject * obj1 = 0 ; | |
5750 | char *kwnames[] = { | |
5751 | (char *) "self",(char *) "pt", NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5756 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5757 | { |
5758 | arg2 = &temp2; | |
5759 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5760 | } | |
5761 | { | |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5763 | { | |
5764 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5765 | result = (wxPoint2D *) &_result_ref; | |
5766 | } | |
5767 | ||
5768 | wxPyEndAllowThreads(__tstate); | |
5769 | if (PyErr_Occurred()) SWIG_fail; | |
5770 | } | |
c32bde28 | 5771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5772 | return resultobj; |
5773 | fail: | |
5774 | return NULL; | |
5775 | } | |
5776 | ||
5777 | ||
c32bde28 | 5778 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5779 | PyObject *resultobj; |
5780 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5781 | wxPoint2D *arg2 = 0 ; | |
5782 | wxPoint2D *result; | |
5783 | wxPoint2D temp2 ; | |
5784 | PyObject * obj0 = 0 ; | |
5785 | PyObject * obj1 = 0 ; | |
5786 | char *kwnames[] = { | |
5787 | (char *) "self",(char *) "pt", NULL | |
5788 | }; | |
5789 | ||
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5792 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5793 | { |
5794 | arg2 = &temp2; | |
5795 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5796 | } | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | { | |
5800 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5801 | result = (wxPoint2D *) &_result_ref; | |
5802 | } | |
5803 | ||
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
c32bde28 | 5807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5808 | return resultobj; |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
c32bde28 | 5814 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5815 | PyObject *resultobj; |
5816 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5817 | wxPoint2D *arg2 = 0 ; | |
5818 | bool result; | |
5819 | wxPoint2D temp2 ; | |
5820 | PyObject * obj0 = 0 ; | |
5821 | PyObject * obj1 = 0 ; | |
5822 | char *kwnames[] = { | |
5823 | (char *) "self",(char *) "pt", NULL | |
5824 | }; | |
5825 | ||
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5829 | { | |
5830 | arg2 = &temp2; | |
5831 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5832 | } | |
5833 | { | |
5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5835 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5836 | ||
5837 | wxPyEndAllowThreads(__tstate); | |
5838 | if (PyErr_Occurred()) SWIG_fail; | |
5839 | } | |
5840 | { | |
5841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5842 | } | |
5843 | return resultobj; | |
5844 | fail: | |
5845 | return NULL; | |
5846 | } | |
5847 | ||
5848 | ||
c32bde28 | 5849 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5850 | PyObject *resultobj; |
5851 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5852 | wxPoint2D *arg2 = 0 ; | |
5853 | bool result; | |
5854 | wxPoint2D temp2 ; | |
5855 | PyObject * obj0 = 0 ; | |
5856 | PyObject * obj1 = 0 ; | |
5857 | char *kwnames[] = { | |
5858 | (char *) "self",(char *) "pt", NULL | |
5859 | }; | |
5860 | ||
5861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5864 | { | |
5865 | arg2 = &temp2; | |
5866 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5867 | } | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | { | |
5876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5877 | } | |
5878 | return resultobj; | |
5879 | fail: | |
5880 | return NULL; | |
5881 | } | |
5882 | ||
5883 | ||
c32bde28 | 5884 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5885 | PyObject *resultobj; |
5886 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5887 | double arg2 ; | |
5888 | PyObject * obj0 = 0 ; | |
5889 | PyObject * obj1 = 0 ; | |
5890 | char *kwnames[] = { | |
5891 | (char *) "self",(char *) "m_x", NULL | |
5892 | }; | |
5893 | ||
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5897 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5898 | if (PyErr_Occurred()) SWIG_fail; |
5899 | if (arg1) (arg1)->m_x = arg2; | |
5900 | ||
5901 | Py_INCREF(Py_None); resultobj = Py_None; | |
5902 | return resultobj; | |
5903 | fail: | |
5904 | return NULL; | |
5905 | } | |
5906 | ||
5907 | ||
c32bde28 | 5908 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5909 | PyObject *resultobj; |
5910 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5911 | double result; | |
5912 | PyObject * obj0 = 0 ; | |
5913 | char *kwnames[] = { | |
5914 | (char *) "self", NULL | |
5915 | }; | |
5916 | ||
5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5920 | result = (double) ((arg1)->m_x); | |
5921 | ||
c32bde28 | 5922 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5923 | return resultobj; |
5924 | fail: | |
5925 | return NULL; | |
5926 | } | |
5927 | ||
5928 | ||
c32bde28 | 5929 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5930 | PyObject *resultobj; |
5931 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5932 | double arg2 ; | |
5933 | PyObject * obj0 = 0 ; | |
5934 | PyObject * obj1 = 0 ; | |
5935 | char *kwnames[] = { | |
5936 | (char *) "self",(char *) "m_y", NULL | |
5937 | }; | |
5938 | ||
5939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5942 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5943 | if (PyErr_Occurred()) SWIG_fail; |
5944 | if (arg1) (arg1)->m_y = arg2; | |
5945 | ||
5946 | Py_INCREF(Py_None); resultobj = Py_None; | |
5947 | return resultobj; | |
5948 | fail: | |
5949 | return NULL; | |
5950 | } | |
5951 | ||
5952 | ||
c32bde28 | 5953 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5954 | PyObject *resultobj; |
5955 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5956 | double result; | |
5957 | PyObject * obj0 = 0 ; | |
5958 | char *kwnames[] = { | |
5959 | (char *) "self", NULL | |
5960 | }; | |
5961 | ||
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5965 | result = (double) ((arg1)->m_y); | |
5966 | ||
c32bde28 | 5967 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5968 | return resultobj; |
5969 | fail: | |
5970 | return NULL; | |
5971 | } | |
5972 | ||
5973 | ||
c32bde28 | 5974 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5975 | PyObject *resultobj; |
5976 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5977 | double arg2 = (double) 0 ; | |
5978 | double arg3 = (double) 0 ; | |
5979 | PyObject * obj0 = 0 ; | |
5980 | PyObject * obj1 = 0 ; | |
5981 | PyObject * obj2 = 0 ; | |
5982 | char *kwnames[] = { | |
5983 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5984 | }; | |
5985 | ||
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5989 | if (obj1) { | |
c32bde28 | 5990 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5991 | if (PyErr_Occurred()) SWIG_fail; |
5992 | } | |
5993 | if (obj2) { | |
c32bde28 | 5994 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
5995 | if (PyErr_Occurred()) SWIG_fail; |
5996 | } | |
5997 | { | |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | wxPoint2D_Set(arg1,arg2,arg3); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
6002 | if (PyErr_Occurred()) SWIG_fail; | |
6003 | } | |
6004 | Py_INCREF(Py_None); resultobj = Py_None; | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
c32bde28 | 6011 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6012 | PyObject *resultobj; |
6013 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6014 | PyObject *result; | |
6015 | PyObject * obj0 = 0 ; | |
6016 | char *kwnames[] = { | |
6017 | (char *) "self", NULL | |
6018 | }; | |
6019 | ||
6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
6021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
6022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6023 | { | |
6024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6025 | result = (PyObject *)wxPoint2D_Get(arg1); | |
6026 | ||
6027 | wxPyEndAllowThreads(__tstate); | |
6028 | if (PyErr_Occurred()) SWIG_fail; | |
6029 | } | |
6030 | resultobj = result; | |
6031 | return resultobj; | |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
c32bde28 | 6037 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6038 | PyObject *obj; |
6039 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6040 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
6041 | Py_INCREF(obj); | |
6042 | return Py_BuildValue((char *)""); | |
6043 | } | |
c32bde28 | 6044 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
6045 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
6046 | return 1; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_DefaultPosition_get() { | |
6051 | PyObject *pyobj; | |
6052 | ||
6053 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
6054 | return pyobj; | |
6055 | } | |
6056 | ||
6057 | ||
c32bde28 | 6058 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
6059 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
6060 | return 1; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | static PyObject *_wrap_DefaultSize_get() { | |
6065 | PyObject *pyobj; | |
6066 | ||
6067 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
6068 | return pyobj; | |
6069 | } | |
6070 | ||
6071 | ||
c32bde28 | 6072 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6073 | PyObject *resultobj; |
6074 | PyObject *arg1 = (PyObject *) 0 ; | |
6075 | wxPyInputStream *result; | |
6076 | PyObject * obj0 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "p", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
6082 | arg1 = obj0; | |
6083 | { | |
6084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6085 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
6086 | ||
6087 | wxPyEndAllowThreads(__tstate); | |
6088 | if (PyErr_Occurred()) SWIG_fail; | |
6089 | } | |
6090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
6091 | return resultobj; | |
6092 | fail: | |
6093 | return NULL; | |
6094 | } | |
6095 | ||
6096 | ||
8fb0e70a RD |
6097 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
6098 | PyObject *resultobj; | |
6099 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6100 | PyObject * obj0 = 0 ; | |
6101 | char *kwnames[] = { | |
6102 | (char *) "self", NULL | |
6103 | }; | |
6104 | ||
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
6106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6108 | { | |
6109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6110 | delete arg1; | |
6111 | ||
6112 | wxPyEndAllowThreads(__tstate); | |
6113 | if (PyErr_Occurred()) SWIG_fail; | |
6114 | } | |
6115 | Py_INCREF(Py_None); resultobj = Py_None; | |
6116 | return resultobj; | |
6117 | fail: | |
6118 | return NULL; | |
6119 | } | |
6120 | ||
6121 | ||
c32bde28 | 6122 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6123 | PyObject *resultobj; |
6124 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6125 | PyObject * obj0 = 0 ; | |
6126 | char *kwnames[] = { | |
6127 | (char *) "self", NULL | |
6128 | }; | |
6129 | ||
6130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
6131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | (arg1)->close(); | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | Py_INCREF(Py_None); resultobj = Py_None; | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
c32bde28 | 6147 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6148 | PyObject *resultobj; |
6149 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6150 | PyObject * obj0 = 0 ; | |
6151 | char *kwnames[] = { | |
6152 | (char *) "self", NULL | |
6153 | }; | |
6154 | ||
6155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
6156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6158 | { | |
6159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6160 | (arg1)->flush(); | |
6161 | ||
6162 | wxPyEndAllowThreads(__tstate); | |
6163 | if (PyErr_Occurred()) SWIG_fail; | |
6164 | } | |
6165 | Py_INCREF(Py_None); resultobj = Py_None; | |
6166 | return resultobj; | |
6167 | fail: | |
6168 | return NULL; | |
6169 | } | |
6170 | ||
6171 | ||
c32bde28 | 6172 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6173 | PyObject *resultobj; |
6174 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6175 | bool result; | |
6176 | PyObject * obj0 = 0 ; | |
6177 | char *kwnames[] = { | |
6178 | (char *) "self", NULL | |
6179 | }; | |
6180 | ||
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
6182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6184 | { | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | result = (bool)(arg1)->eof(); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6193 | } | |
6194 | return resultobj; | |
6195 | fail: | |
6196 | return NULL; | |
6197 | } | |
6198 | ||
6199 | ||
c32bde28 | 6200 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6201 | PyObject *resultobj; |
6202 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6203 | int arg2 = (int) -1 ; | |
6204 | PyObject *result; | |
6205 | PyObject * obj0 = 0 ; | |
6206 | PyObject * obj1 = 0 ; | |
6207 | char *kwnames[] = { | |
6208 | (char *) "self",(char *) "size", NULL | |
6209 | }; | |
6210 | ||
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
6212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6214 | if (obj1) { | |
c32bde28 | 6215 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6216 | if (PyErr_Occurred()) SWIG_fail; |
6217 | } | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | result = (PyObject *)(arg1)->read(arg2); | |
6221 | ||
6222 | wxPyEndAllowThreads(__tstate); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | } | |
6225 | resultobj = result; | |
6226 | return resultobj; | |
6227 | fail: | |
6228 | return NULL; | |
6229 | } | |
6230 | ||
6231 | ||
c32bde28 | 6232 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6233 | PyObject *resultobj; |
6234 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6235 | int arg2 = (int) -1 ; | |
6236 | PyObject *result; | |
6237 | PyObject * obj0 = 0 ; | |
6238 | PyObject * obj1 = 0 ; | |
6239 | char *kwnames[] = { | |
6240 | (char *) "self",(char *) "size", NULL | |
6241 | }; | |
6242 | ||
6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
6244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6246 | if (obj1) { | |
c32bde28 | 6247 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6248 | if (PyErr_Occurred()) SWIG_fail; |
6249 | } | |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | result = (PyObject *)(arg1)->readline(arg2); | |
6253 | ||
6254 | wxPyEndAllowThreads(__tstate); | |
6255 | if (PyErr_Occurred()) SWIG_fail; | |
6256 | } | |
6257 | resultobj = result; | |
6258 | return resultobj; | |
6259 | fail: | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
c32bde28 | 6264 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6265 | PyObject *resultobj; |
6266 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6267 | int arg2 = (int) -1 ; | |
6268 | PyObject *result; | |
6269 | PyObject * obj0 = 0 ; | |
6270 | PyObject * obj1 = 0 ; | |
6271 | char *kwnames[] = { | |
6272 | (char *) "self",(char *) "sizehint", NULL | |
6273 | }; | |
6274 | ||
6275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
6276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6278 | if (obj1) { | |
c32bde28 | 6279 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6280 | if (PyErr_Occurred()) SWIG_fail; |
6281 | } | |
6282 | { | |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | result = (PyObject *)(arg1)->readlines(arg2); | |
6285 | ||
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | resultobj = result; | |
6290 | return resultobj; | |
6291 | fail: | |
6292 | return NULL; | |
6293 | } | |
6294 | ||
6295 | ||
c32bde28 | 6296 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6297 | PyObject *resultobj; |
6298 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6299 | int arg2 ; | |
6300 | int arg3 = (int) 0 ; | |
6301 | PyObject * obj0 = 0 ; | |
6302 | PyObject * obj1 = 0 ; | |
6303 | PyObject * obj2 = 0 ; | |
6304 | char *kwnames[] = { | |
6305 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6306 | }; | |
6307 | ||
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6311 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6312 | if (PyErr_Occurred()) SWIG_fail; |
6313 | if (obj2) { | |
c32bde28 | 6314 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6315 | if (PyErr_Occurred()) SWIG_fail; |
6316 | } | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | (arg1)->seek(arg2,arg3); | |
6320 | ||
6321 | wxPyEndAllowThreads(__tstate); | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | Py_INCREF(Py_None); resultobj = Py_None; | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
c32bde28 | 6331 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6332 | PyObject *resultobj; |
6333 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6334 | int result; | |
6335 | PyObject * obj0 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (int)(arg1)->tell(); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
c32bde28 | 6350 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6351 | return resultobj; |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
c32bde28 | 6357 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6358 | PyObject *resultobj; |
6359 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6360 | char result; | |
6361 | PyObject * obj0 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "self", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
6367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6369 | { | |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | result = (char)(arg1)->Peek(); | |
6372 | ||
6373 | wxPyEndAllowThreads(__tstate); | |
6374 | if (PyErr_Occurred()) SWIG_fail; | |
6375 | } | |
c32bde28 | 6376 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6377 | return resultobj; |
6378 | fail: | |
6379 | return NULL; | |
6380 | } | |
6381 | ||
6382 | ||
c32bde28 | 6383 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6384 | PyObject *resultobj; |
6385 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6386 | char result; | |
6387 | PyObject * obj0 = 0 ; | |
6388 | char *kwnames[] = { | |
6389 | (char *) "self", NULL | |
6390 | }; | |
6391 | ||
6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | result = (char)(arg1)->GetC(); | |
6398 | ||
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
c32bde28 | 6402 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6403 | return resultobj; |
6404 | fail: | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
c32bde28 | 6409 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6410 | PyObject *resultobj; |
6411 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6412 | size_t result; | |
6413 | PyObject * obj0 = 0 ; | |
6414 | char *kwnames[] = { | |
6415 | (char *) "self", NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6421 | { | |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = (size_t)(arg1)->LastRead(); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
c32bde28 | 6428 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6429 | return resultobj; |
6430 | fail: | |
6431 | return NULL; | |
6432 | } | |
6433 | ||
6434 | ||
c32bde28 | 6435 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6436 | PyObject *resultobj; |
6437 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6438 | bool result; | |
6439 | PyObject * obj0 = 0 ; | |
6440 | char *kwnames[] = { | |
6441 | (char *) "self", NULL | |
6442 | }; | |
6443 | ||
6444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6447 | { | |
6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6449 | result = (bool)(arg1)->CanRead(); | |
6450 | ||
6451 | wxPyEndAllowThreads(__tstate); | |
6452 | if (PyErr_Occurred()) SWIG_fail; | |
6453 | } | |
6454 | { | |
6455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6456 | } | |
6457 | return resultobj; | |
6458 | fail: | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
c32bde28 | 6463 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6464 | PyObject *resultobj; |
6465 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6466 | bool result; | |
6467 | PyObject * obj0 = 0 ; | |
6468 | char *kwnames[] = { | |
6469 | (char *) "self", NULL | |
6470 | }; | |
6471 | ||
6472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6475 | { | |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | result = (bool)(arg1)->Eof(); | |
6478 | ||
6479 | wxPyEndAllowThreads(__tstate); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | { | |
6483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6484 | } | |
6485 | return resultobj; | |
6486 | fail: | |
6487 | return NULL; | |
6488 | } | |
6489 | ||
6490 | ||
c32bde28 | 6491 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6492 | PyObject *resultobj; |
6493 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6494 | char arg2 ; | |
6495 | bool result; | |
6496 | PyObject * obj0 = 0 ; | |
6497 | PyObject * obj1 = 0 ; | |
6498 | char *kwnames[] = { | |
6499 | (char *) "self",(char *) "c", NULL | |
6500 | }; | |
6501 | ||
6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6505 | arg2 = (char)SWIG_As_char(obj1); |
d55e5bfc RD |
6506 | if (PyErr_Occurred()) SWIG_fail; |
6507 | { | |
6508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6509 | result = (bool)(arg1)->Ungetch(arg2); | |
6510 | ||
6511 | wxPyEndAllowThreads(__tstate); | |
6512 | if (PyErr_Occurred()) SWIG_fail; | |
6513 | } | |
6514 | { | |
6515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6516 | } | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
c32bde28 | 6523 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6524 | PyObject *resultobj; |
6525 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6526 | long arg2 ; | |
6527 | int arg3 = (int) wxFromStart ; | |
6528 | long result; | |
6529 | PyObject * obj0 = 0 ; | |
6530 | PyObject * obj1 = 0 ; | |
6531 | PyObject * obj2 = 0 ; | |
6532 | char *kwnames[] = { | |
6533 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6534 | }; | |
6535 | ||
6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6539 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
6540 | if (PyErr_Occurred()) SWIG_fail; |
6541 | if (obj2) { | |
c32bde28 | 6542 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6543 | if (PyErr_Occurred()) SWIG_fail; |
6544 | } | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6548 | ||
6549 | wxPyEndAllowThreads(__tstate); | |
6550 | if (PyErr_Occurred()) SWIG_fail; | |
6551 | } | |
c32bde28 | 6552 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6553 | return resultobj; |
6554 | fail: | |
6555 | return NULL; | |
6556 | } | |
6557 | ||
6558 | ||
c32bde28 | 6559 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6560 | PyObject *resultobj; |
6561 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6562 | long result; | |
6563 | PyObject * obj0 = 0 ; | |
6564 | char *kwnames[] = { | |
6565 | (char *) "self", NULL | |
6566 | }; | |
6567 | ||
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6571 | { | |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6573 | result = (long)(arg1)->TellI(); | |
6574 | ||
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
c32bde28 | 6578 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6579 | return resultobj; |
6580 | fail: | |
6581 | return NULL; | |
6582 | } | |
6583 | ||
6584 | ||
c32bde28 | 6585 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6586 | PyObject *obj; |
6587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6588 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6589 | Py_INCREF(obj); | |
6590 | return Py_BuildValue((char *)""); | |
6591 | } | |
c32bde28 | 6592 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6593 | PyObject *resultobj; |
6594 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6595 | PyObject *arg2 = (PyObject *) 0 ; | |
6596 | PyObject * obj0 = 0 ; | |
6597 | PyObject * obj1 = 0 ; | |
6598 | char *kwnames[] = { | |
6599 | (char *) "self",(char *) "obj", NULL | |
6600 | }; | |
6601 | ||
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6605 | arg2 = obj1; | |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | wxOutputStream_write(arg1,arg2); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | Py_INCREF(Py_None); resultobj = Py_None; | |
6614 | return resultobj; | |
6615 | fail: | |
6616 | return NULL; | |
6617 | } | |
6618 | ||
6619 | ||
c32bde28 | 6620 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6621 | PyObject *obj; |
6622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6623 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6624 | Py_INCREF(obj); | |
6625 | return Py_BuildValue((char *)""); | |
6626 | } | |
c32bde28 | 6627 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6628 | PyObject *resultobj; |
6629 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6630 | wxString *arg2 = 0 ; | |
6631 | wxString *arg3 = 0 ; | |
6632 | wxString *arg4 = 0 ; | |
6633 | wxDateTime arg5 ; | |
6634 | wxFSFile *result; | |
6635 | wxPyInputStream *temp1 ; | |
6636 | bool created1 ; | |
ae8162c8 RD |
6637 | bool temp2 = false ; |
6638 | bool temp3 = false ; | |
6639 | bool temp4 = false ; | |
d55e5bfc RD |
6640 | wxDateTime *argp5 ; |
6641 | PyObject * obj0 = 0 ; | |
6642 | PyObject * obj1 = 0 ; | |
6643 | PyObject * obj2 = 0 ; | |
6644 | PyObject * obj3 = 0 ; | |
6645 | PyObject * obj4 = 0 ; | |
6646 | char *kwnames[] = { | |
6647 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6648 | }; | |
6649 | ||
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6651 | { | |
6652 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6653 | arg1 = temp1->m_wxis; | |
ae8162c8 | 6654 | created1 = false; |
d55e5bfc RD |
6655 | } else { |
6656 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 6657 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
6658 | if (arg1 == NULL) { |
6659 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6660 | SWIG_fail; | |
6661 | } | |
ae8162c8 | 6662 | created1 = true; |
d55e5bfc RD |
6663 | } |
6664 | } | |
6665 | { | |
6666 | arg2 = wxString_in_helper(obj1); | |
6667 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6668 | temp2 = true; |
d55e5bfc RD |
6669 | } |
6670 | { | |
6671 | arg3 = wxString_in_helper(obj2); | |
6672 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6673 | temp3 = true; |
d55e5bfc RD |
6674 | } |
6675 | { | |
6676 | arg4 = wxString_in_helper(obj3); | |
6677 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6678 | temp4 = true; |
d55e5bfc RD |
6679 | } |
6680 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6681 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6682 | arg5 = *argp5; | |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | { | |
412d302d | 6691 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6692 | } |
6693 | { | |
6694 | if (created1) | |
6695 | delete arg1; | |
6696 | } | |
6697 | { | |
6698 | if (temp2) | |
6699 | delete arg2; | |
6700 | } | |
6701 | { | |
6702 | if (temp3) | |
6703 | delete arg3; | |
6704 | } | |
6705 | { | |
6706 | if (temp4) | |
6707 | delete arg4; | |
6708 | } | |
6709 | return resultobj; | |
6710 | fail: | |
6711 | { | |
6712 | if (created1) | |
6713 | delete arg1; | |
6714 | } | |
6715 | { | |
6716 | if (temp2) | |
6717 | delete arg2; | |
6718 | } | |
6719 | { | |
6720 | if (temp3) | |
6721 | delete arg3; | |
6722 | } | |
6723 | { | |
6724 | if (temp4) | |
6725 | delete arg4; | |
6726 | } | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
c32bde28 | 6731 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6732 | PyObject *resultobj; |
6733 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6734 | PyObject * obj0 = 0 ; | |
6735 | char *kwnames[] = { | |
6736 | (char *) "self", NULL | |
6737 | }; | |
6738 | ||
6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6742 | { | |
6743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6744 | delete arg1; | |
6745 | ||
6746 | wxPyEndAllowThreads(__tstate); | |
6747 | if (PyErr_Occurred()) SWIG_fail; | |
6748 | } | |
6749 | Py_INCREF(Py_None); resultobj = Py_None; | |
6750 | return resultobj; | |
6751 | fail: | |
6752 | return NULL; | |
6753 | } | |
6754 | ||
6755 | ||
c32bde28 | 6756 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6757 | PyObject *resultobj; |
6758 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6759 | wxInputStream *result; | |
6760 | PyObject * obj0 = 0 ; | |
6761 | char *kwnames[] = { | |
6762 | (char *) "self", NULL | |
6763 | }; | |
6764 | ||
6765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6768 | { | |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | result = (wxInputStream *)(arg1)->GetStream(); | |
6771 | ||
6772 | wxPyEndAllowThreads(__tstate); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
6775 | { | |
6776 | wxPyInputStream * _ptr = NULL; | |
6777 | ||
6778 | if (result) { | |
6779 | _ptr = new wxPyInputStream(result); | |
6780 | } | |
fc71d09b | 6781 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
6782 | } |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
c32bde28 | 6789 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6790 | PyObject *resultobj; |
6791 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6792 | wxString *result; | |
6793 | PyObject * obj0 = 0 ; | |
6794 | char *kwnames[] = { | |
6795 | (char *) "self", NULL | |
6796 | }; | |
6797 | ||
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6801 | { | |
6802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6803 | { | |
6804 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6805 | result = (wxString *) &_result_ref; | |
6806 | } | |
6807 | ||
6808 | wxPyEndAllowThreads(__tstate); | |
6809 | if (PyErr_Occurred()) SWIG_fail; | |
6810 | } | |
6811 | { | |
6812 | #if wxUSE_UNICODE | |
6813 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6814 | #else | |
6815 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6816 | #endif | |
6817 | } | |
6818 | return resultobj; | |
6819 | fail: | |
6820 | return NULL; | |
6821 | } | |
6822 | ||
6823 | ||
c32bde28 | 6824 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6825 | PyObject *resultobj; |
6826 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6827 | wxString *result; | |
6828 | PyObject * obj0 = 0 ; | |
6829 | char *kwnames[] = { | |
6830 | (char *) "self", NULL | |
6831 | }; | |
6832 | ||
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6836 | { | |
6837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6838 | { | |
6839 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6840 | result = (wxString *) &_result_ref; | |
6841 | } | |
6842 | ||
6843 | wxPyEndAllowThreads(__tstate); | |
6844 | if (PyErr_Occurred()) SWIG_fail; | |
6845 | } | |
6846 | { | |
6847 | #if wxUSE_UNICODE | |
6848 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6849 | #else | |
6850 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6851 | #endif | |
6852 | } | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
c32bde28 | 6859 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6860 | PyObject *resultobj; |
6861 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6862 | wxString *result; | |
6863 | PyObject * obj0 = 0 ; | |
6864 | char *kwnames[] = { | |
6865 | (char *) "self", NULL | |
6866 | }; | |
6867 | ||
6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6871 | { | |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6873 | { | |
6874 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6875 | result = (wxString *) &_result_ref; | |
6876 | } | |
6877 | ||
6878 | wxPyEndAllowThreads(__tstate); | |
6879 | if (PyErr_Occurred()) SWIG_fail; | |
6880 | } | |
6881 | { | |
6882 | #if wxUSE_UNICODE | |
6883 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6884 | #else | |
6885 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6886 | #endif | |
6887 | } | |
6888 | return resultobj; | |
6889 | fail: | |
6890 | return NULL; | |
6891 | } | |
6892 | ||
6893 | ||
c32bde28 | 6894 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6895 | PyObject *resultobj; |
6896 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6897 | wxDateTime result; | |
6898 | PyObject * obj0 = 0 ; | |
6899 | char *kwnames[] = { | |
6900 | (char *) "self", NULL | |
6901 | }; | |
6902 | ||
6903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6906 | { | |
6907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6908 | result = (arg1)->GetModificationTime(); | |
6909 | ||
6910 | wxPyEndAllowThreads(__tstate); | |
6911 | if (PyErr_Occurred()) SWIG_fail; | |
6912 | } | |
6913 | { | |
6914 | wxDateTime * resultptr; | |
6915 | resultptr = new wxDateTime((wxDateTime &) result); | |
6916 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6917 | } | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
c32bde28 | 6924 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6925 | PyObject *obj; |
6926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6927 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6928 | Py_INCREF(obj); | |
6929 | return Py_BuildValue((char *)""); | |
6930 | } | |
c32bde28 | 6931 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6932 | PyObject *obj; |
6933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6934 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6935 | Py_INCREF(obj); | |
6936 | return Py_BuildValue((char *)""); | |
6937 | } | |
c32bde28 | 6938 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6939 | PyObject *resultobj; |
6940 | wxPyFileSystemHandler *result; | |
6941 | char *kwnames[] = { | |
6942 | NULL | |
6943 | }; | |
6944 | ||
6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6946 | { | |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6948 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6949 | ||
6950 | wxPyEndAllowThreads(__tstate); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
6953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
c32bde28 | 6960 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6961 | PyObject *resultobj; |
6962 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6963 | PyObject *arg2 = (PyObject *) 0 ; | |
6964 | PyObject *arg3 = (PyObject *) 0 ; | |
6965 | PyObject * obj0 = 0 ; | |
6966 | PyObject * obj1 = 0 ; | |
6967 | PyObject * obj2 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6975 | arg2 = obj1; | |
6976 | arg3 = obj2; | |
6977 | { | |
6978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6979 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6980 | ||
6981 | wxPyEndAllowThreads(__tstate); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | } | |
6984 | Py_INCREF(Py_None); resultobj = Py_None; | |
6985 | return resultobj; | |
6986 | fail: | |
6987 | return NULL; | |
6988 | } | |
6989 | ||
6990 | ||
c32bde28 | 6991 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6992 | PyObject *resultobj; |
6993 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6994 | wxString *arg2 = 0 ; | |
6995 | bool result; | |
ae8162c8 | 6996 | bool temp2 = false ; |
d55e5bfc RD |
6997 | PyObject * obj0 = 0 ; |
6998 | PyObject * obj1 = 0 ; | |
6999 | char *kwnames[] = { | |
7000 | (char *) "self",(char *) "location", NULL | |
7001 | }; | |
7002 | ||
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7006 | { | |
7007 | arg2 = wxString_in_helper(obj1); | |
7008 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7009 | temp2 = true; |
d55e5bfc RD |
7010 | } |
7011 | { | |
7012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7013 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7014 | ||
7015 | wxPyEndAllowThreads(__tstate); | |
7016 | if (PyErr_Occurred()) SWIG_fail; | |
7017 | } | |
7018 | { | |
7019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7020 | } | |
7021 | { | |
7022 | if (temp2) | |
7023 | delete arg2; | |
7024 | } | |
7025 | return resultobj; | |
7026 | fail: | |
7027 | { | |
7028 | if (temp2) | |
7029 | delete arg2; | |
7030 | } | |
7031 | return NULL; | |
7032 | } | |
7033 | ||
7034 | ||
c32bde28 | 7035 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7036 | PyObject *resultobj; |
7037 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7038 | wxFileSystem *arg2 = 0 ; | |
7039 | wxString *arg3 = 0 ; | |
7040 | wxFSFile *result; | |
ae8162c8 | 7041 | bool temp3 = false ; |
d55e5bfc RD |
7042 | PyObject * obj0 = 0 ; |
7043 | PyObject * obj1 = 0 ; | |
7044 | PyObject * obj2 = 0 ; | |
7045 | char *kwnames[] = { | |
7046 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7047 | }; | |
7048 | ||
7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7053 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7054 | SWIG_fail; | |
7055 | if (arg2 == NULL) { | |
7056 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7057 | SWIG_fail; | |
7058 | } | |
7059 | { | |
7060 | arg3 = wxString_in_helper(obj2); | |
7061 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7062 | temp3 = true; |
d55e5bfc RD |
7063 | } |
7064 | { | |
7065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7066 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7067 | ||
7068 | wxPyEndAllowThreads(__tstate); | |
7069 | if (PyErr_Occurred()) SWIG_fail; | |
7070 | } | |
7071 | { | |
4cf4100f | 7072 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7073 | } |
7074 | { | |
7075 | if (temp3) | |
7076 | delete arg3; | |
7077 | } | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | { | |
7081 | if (temp3) | |
7082 | delete arg3; | |
7083 | } | |
7084 | return NULL; | |
7085 | } | |
7086 | ||
7087 | ||
c32bde28 | 7088 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7089 | PyObject *resultobj; |
7090 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7091 | wxString *arg2 = 0 ; | |
7092 | int arg3 = (int) 0 ; | |
7093 | wxString result; | |
ae8162c8 | 7094 | bool temp2 = false ; |
d55e5bfc RD |
7095 | PyObject * obj0 = 0 ; |
7096 | PyObject * obj1 = 0 ; | |
7097 | PyObject * obj2 = 0 ; | |
7098 | char *kwnames[] = { | |
7099 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7100 | }; | |
7101 | ||
7102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7105 | { | |
7106 | arg2 = wxString_in_helper(obj1); | |
7107 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7108 | temp2 = true; |
d55e5bfc RD |
7109 | } |
7110 | if (obj2) { | |
c32bde28 | 7111 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7112 | if (PyErr_Occurred()) SWIG_fail; |
7113 | } | |
7114 | { | |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | { | |
7122 | #if wxUSE_UNICODE | |
7123 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7124 | #else | |
7125 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7126 | #endif | |
7127 | } | |
7128 | { | |
7129 | if (temp2) | |
7130 | delete arg2; | |
7131 | } | |
7132 | return resultobj; | |
7133 | fail: | |
7134 | { | |
7135 | if (temp2) | |
7136 | delete arg2; | |
7137 | } | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
c32bde28 | 7142 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7143 | PyObject *resultobj; |
7144 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7145 | wxString result; | |
7146 | PyObject * obj0 = 0 ; | |
7147 | char *kwnames[] = { | |
7148 | (char *) "self", NULL | |
7149 | }; | |
7150 | ||
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
7152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7154 | { | |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7156 | result = (arg1)->FindNext(); | |
7157 | ||
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
7161 | { | |
7162 | #if wxUSE_UNICODE | |
7163 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7164 | #else | |
7165 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7166 | #endif | |
7167 | } | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
c32bde28 | 7174 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7175 | PyObject *resultobj; |
7176 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7177 | wxString *arg2 = 0 ; | |
7178 | wxString result; | |
ae8162c8 | 7179 | bool temp2 = false ; |
d55e5bfc RD |
7180 | PyObject * obj0 = 0 ; |
7181 | PyObject * obj1 = 0 ; | |
7182 | char *kwnames[] = { | |
7183 | (char *) "self",(char *) "location", NULL | |
7184 | }; | |
7185 | ||
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
7187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7189 | { | |
7190 | arg2 = wxString_in_helper(obj1); | |
7191 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7192 | temp2 = true; |
d55e5bfc RD |
7193 | } |
7194 | { | |
7195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7196 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7197 | ||
7198 | wxPyEndAllowThreads(__tstate); | |
7199 | if (PyErr_Occurred()) SWIG_fail; | |
7200 | } | |
7201 | { | |
7202 | #if wxUSE_UNICODE | |
7203 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7204 | #else | |
7205 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7206 | #endif | |
7207 | } | |
7208 | { | |
7209 | if (temp2) | |
7210 | delete arg2; | |
7211 | } | |
7212 | return resultobj; | |
7213 | fail: | |
7214 | { | |
7215 | if (temp2) | |
7216 | delete arg2; | |
7217 | } | |
7218 | return NULL; | |
7219 | } | |
7220 | ||
7221 | ||
c32bde28 | 7222 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7223 | PyObject *resultobj; |
7224 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7225 | wxString *arg2 = 0 ; | |
7226 | wxString result; | |
ae8162c8 | 7227 | bool temp2 = false ; |
d55e5bfc RD |
7228 | PyObject * obj0 = 0 ; |
7229 | PyObject * obj1 = 0 ; | |
7230 | char *kwnames[] = { | |
7231 | (char *) "self",(char *) "location", NULL | |
7232 | }; | |
7233 | ||
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
7235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7237 | { | |
7238 | arg2 = wxString_in_helper(obj1); | |
7239 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7240 | temp2 = true; |
d55e5bfc RD |
7241 | } |
7242 | { | |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
7249 | { | |
7250 | #if wxUSE_UNICODE | |
7251 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7252 | #else | |
7253 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7254 | #endif | |
7255 | } | |
7256 | { | |
7257 | if (temp2) | |
7258 | delete arg2; | |
7259 | } | |
7260 | return resultobj; | |
7261 | fail: | |
7262 | { | |
7263 | if (temp2) | |
7264 | delete arg2; | |
7265 | } | |
7266 | return NULL; | |
7267 | } | |
7268 | ||
7269 | ||
c32bde28 | 7270 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7271 | PyObject *resultobj; |
7272 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7273 | wxString *arg2 = 0 ; | |
7274 | wxString result; | |
ae8162c8 | 7275 | bool temp2 = false ; |
d55e5bfc RD |
7276 | PyObject * obj0 = 0 ; |
7277 | PyObject * obj1 = 0 ; | |
7278 | char *kwnames[] = { | |
7279 | (char *) "self",(char *) "location", NULL | |
7280 | }; | |
7281 | ||
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
7283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7285 | { | |
7286 | arg2 = wxString_in_helper(obj1); | |
7287 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7288 | temp2 = true; |
d55e5bfc RD |
7289 | } |
7290 | { | |
7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7292 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7293 | ||
7294 | wxPyEndAllowThreads(__tstate); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
7296 | } | |
7297 | { | |
7298 | #if wxUSE_UNICODE | |
7299 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7300 | #else | |
7301 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7302 | #endif | |
7303 | } | |
7304 | { | |
7305 | if (temp2) | |
7306 | delete arg2; | |
7307 | } | |
7308 | return resultobj; | |
7309 | fail: | |
7310 | { | |
7311 | if (temp2) | |
7312 | delete arg2; | |
7313 | } | |
7314 | return NULL; | |
7315 | } | |
7316 | ||
7317 | ||
c32bde28 | 7318 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7319 | PyObject *resultobj; |
7320 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7321 | wxString *arg2 = 0 ; | |
7322 | wxString result; | |
ae8162c8 | 7323 | bool temp2 = false ; |
d55e5bfc RD |
7324 | PyObject * obj0 = 0 ; |
7325 | PyObject * obj1 = 0 ; | |
7326 | char *kwnames[] = { | |
7327 | (char *) "self",(char *) "location", NULL | |
7328 | }; | |
7329 | ||
7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
7331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7333 | { | |
7334 | arg2 = wxString_in_helper(obj1); | |
7335 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7336 | temp2 = true; |
d55e5bfc RD |
7337 | } |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | { | |
7346 | #if wxUSE_UNICODE | |
7347 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7348 | #else | |
7349 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7350 | #endif | |
7351 | } | |
7352 | { | |
7353 | if (temp2) | |
7354 | delete arg2; | |
7355 | } | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | { | |
7359 | if (temp2) | |
7360 | delete arg2; | |
7361 | } | |
7362 | return NULL; | |
7363 | } | |
7364 | ||
7365 | ||
c32bde28 | 7366 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7367 | PyObject *resultobj; |
7368 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7369 | wxString *arg2 = 0 ; | |
7370 | wxString result; | |
ae8162c8 | 7371 | bool temp2 = false ; |
d55e5bfc RD |
7372 | PyObject * obj0 = 0 ; |
7373 | PyObject * obj1 = 0 ; | |
7374 | char *kwnames[] = { | |
7375 | (char *) "self",(char *) "location", NULL | |
7376 | }; | |
7377 | ||
7378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
7379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7381 | { | |
7382 | arg2 = wxString_in_helper(obj1); | |
7383 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7384 | temp2 = true; |
d55e5bfc RD |
7385 | } |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | { | |
7394 | #if wxUSE_UNICODE | |
7395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7396 | #else | |
7397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7398 | #endif | |
7399 | } | |
7400 | { | |
7401 | if (temp2) | |
7402 | delete arg2; | |
7403 | } | |
7404 | return resultobj; | |
7405 | fail: | |
7406 | { | |
7407 | if (temp2) | |
7408 | delete arg2; | |
7409 | } | |
7410 | return NULL; | |
7411 | } | |
7412 | ||
7413 | ||
c32bde28 | 7414 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7415 | PyObject *obj; |
7416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7417 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7418 | Py_INCREF(obj); | |
7419 | return Py_BuildValue((char *)""); | |
7420 | } | |
c32bde28 | 7421 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7422 | PyObject *resultobj; |
7423 | wxFileSystem *result; | |
7424 | char *kwnames[] = { | |
7425 | NULL | |
7426 | }; | |
7427 | ||
7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7429 | { | |
7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7431 | result = (wxFileSystem *)new wxFileSystem(); | |
7432 | ||
7433 | wxPyEndAllowThreads(__tstate); | |
7434 | if (PyErr_Occurred()) SWIG_fail; | |
7435 | } | |
7436 | { | |
412d302d | 7437 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7438 | } |
7439 | return resultobj; | |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
c32bde28 | 7445 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7446 | PyObject *resultobj; |
7447 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7448 | PyObject * obj0 = 0 ; | |
7449 | char *kwnames[] = { | |
7450 | (char *) "self", NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
7454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7456 | { | |
7457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7458 | delete arg1; | |
7459 | ||
7460 | wxPyEndAllowThreads(__tstate); | |
7461 | if (PyErr_Occurred()) SWIG_fail; | |
7462 | } | |
7463 | Py_INCREF(Py_None); resultobj = Py_None; | |
7464 | return resultobj; | |
7465 | fail: | |
7466 | return NULL; | |
7467 | } | |
7468 | ||
7469 | ||
c32bde28 | 7470 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7471 | PyObject *resultobj; |
7472 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7473 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
7474 | bool arg3 = (bool) false ; |
7475 | bool temp2 = false ; | |
d55e5bfc RD |
7476 | PyObject * obj0 = 0 ; |
7477 | PyObject * obj1 = 0 ; | |
7478 | PyObject * obj2 = 0 ; | |
7479 | char *kwnames[] = { | |
7480 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7481 | }; | |
7482 | ||
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7486 | { | |
7487 | arg2 = wxString_in_helper(obj1); | |
7488 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7489 | temp2 = true; |
d55e5bfc RD |
7490 | } |
7491 | if (obj2) { | |
c32bde28 | 7492 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7493 | if (PyErr_Occurred()) SWIG_fail; |
7494 | } | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | Py_INCREF(Py_None); resultobj = Py_None; | |
7503 | { | |
7504 | if (temp2) | |
7505 | delete arg2; | |
7506 | } | |
7507 | return resultobj; | |
7508 | fail: | |
7509 | { | |
7510 | if (temp2) | |
7511 | delete arg2; | |
7512 | } | |
7513 | return NULL; | |
7514 | } | |
7515 | ||
7516 | ||
c32bde28 | 7517 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7518 | PyObject *resultobj; |
7519 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7520 | wxString result; | |
7521 | PyObject * obj0 = 0 ; | |
7522 | char *kwnames[] = { | |
7523 | (char *) "self", NULL | |
7524 | }; | |
7525 | ||
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7529 | { | |
7530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7531 | result = (arg1)->GetPath(); | |
7532 | ||
7533 | wxPyEndAllowThreads(__tstate); | |
7534 | if (PyErr_Occurred()) SWIG_fail; | |
7535 | } | |
7536 | { | |
7537 | #if wxUSE_UNICODE | |
7538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7539 | #else | |
7540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7541 | #endif | |
7542 | } | |
7543 | return resultobj; | |
7544 | fail: | |
7545 | return NULL; | |
7546 | } | |
7547 | ||
7548 | ||
c32bde28 | 7549 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7550 | PyObject *resultobj; |
7551 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7552 | wxString *arg2 = 0 ; | |
7553 | wxFSFile *result; | |
ae8162c8 | 7554 | bool temp2 = false ; |
d55e5bfc RD |
7555 | PyObject * obj0 = 0 ; |
7556 | PyObject * obj1 = 0 ; | |
7557 | char *kwnames[] = { | |
7558 | (char *) "self",(char *) "location", NULL | |
7559 | }; | |
7560 | ||
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7564 | { | |
7565 | arg2 = wxString_in_helper(obj1); | |
7566 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7567 | temp2 = true; |
d55e5bfc RD |
7568 | } |
7569 | { | |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
7576 | { | |
4cf4100f | 7577 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7578 | } |
7579 | { | |
7580 | if (temp2) | |
7581 | delete arg2; | |
7582 | } | |
7583 | return resultobj; | |
7584 | fail: | |
7585 | { | |
7586 | if (temp2) | |
7587 | delete arg2; | |
7588 | } | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
c32bde28 | 7593 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7594 | PyObject *resultobj; |
7595 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7596 | wxString *arg2 = 0 ; | |
7597 | int arg3 = (int) 0 ; | |
7598 | wxString result; | |
ae8162c8 | 7599 | bool temp2 = false ; |
d55e5bfc RD |
7600 | PyObject * obj0 = 0 ; |
7601 | PyObject * obj1 = 0 ; | |
7602 | PyObject * obj2 = 0 ; | |
7603 | char *kwnames[] = { | |
7604 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7605 | }; | |
7606 | ||
7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7610 | { | |
7611 | arg2 = wxString_in_helper(obj1); | |
7612 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7613 | temp2 = true; |
d55e5bfc RD |
7614 | } |
7615 | if (obj2) { | |
c32bde28 | 7616 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7617 | if (PyErr_Occurred()) SWIG_fail; |
7618 | } | |
7619 | { | |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) SWIG_fail; | |
7625 | } | |
7626 | { | |
7627 | #if wxUSE_UNICODE | |
7628 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7629 | #else | |
7630 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7631 | #endif | |
7632 | } | |
7633 | { | |
7634 | if (temp2) | |
7635 | delete arg2; | |
7636 | } | |
7637 | return resultobj; | |
7638 | fail: | |
7639 | { | |
7640 | if (temp2) | |
7641 | delete arg2; | |
7642 | } | |
7643 | return NULL; | |
7644 | } | |
7645 | ||
7646 | ||
c32bde28 | 7647 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7648 | PyObject *resultobj; |
7649 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7650 | wxString result; | |
7651 | PyObject * obj0 = 0 ; | |
7652 | char *kwnames[] = { | |
7653 | (char *) "self", NULL | |
7654 | }; | |
7655 | ||
7656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | result = (arg1)->FindNext(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | { | |
7667 | #if wxUSE_UNICODE | |
7668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7669 | #else | |
7670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7671 | #endif | |
7672 | } | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
c32bde28 | 7679 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7680 | PyObject *resultobj; |
7681 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7682 | PyObject * obj0 = 0 ; | |
7683 | char *kwnames[] = { | |
7684 | (char *) "handler", NULL | |
7685 | }; | |
7686 | ||
7687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7690 | { | |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | wxFileSystem::AddHandler(arg1); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | Py_INCREF(Py_None); resultobj = Py_None; | |
7698 | return resultobj; | |
7699 | fail: | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
c32bde28 | 7704 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7705 | PyObject *resultobj; |
7706 | char *kwnames[] = { | |
7707 | NULL | |
7708 | }; | |
7709 | ||
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7711 | { | |
7712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7713 | wxFileSystem::CleanUpHandlers(); | |
7714 | ||
7715 | wxPyEndAllowThreads(__tstate); | |
7716 | if (PyErr_Occurred()) SWIG_fail; | |
7717 | } | |
7718 | Py_INCREF(Py_None); resultobj = Py_None; | |
7719 | return resultobj; | |
7720 | fail: | |
7721 | return NULL; | |
7722 | } | |
7723 | ||
7724 | ||
c32bde28 | 7725 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7726 | PyObject *resultobj; |
7727 | wxString *arg1 = 0 ; | |
7728 | wxString result; | |
ae8162c8 | 7729 | bool temp1 = false ; |
d55e5bfc RD |
7730 | PyObject * obj0 = 0 ; |
7731 | char *kwnames[] = { | |
7732 | (char *) "filename", NULL | |
7733 | }; | |
7734 | ||
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7736 | { | |
7737 | arg1 = wxString_in_helper(obj0); | |
7738 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7739 | temp1 = true; |
d55e5bfc RD |
7740 | } |
7741 | { | |
7742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7743 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7744 | ||
7745 | wxPyEndAllowThreads(__tstate); | |
7746 | if (PyErr_Occurred()) SWIG_fail; | |
7747 | } | |
7748 | { | |
7749 | #if wxUSE_UNICODE | |
7750 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7751 | #else | |
7752 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7753 | #endif | |
7754 | } | |
7755 | { | |
7756 | if (temp1) | |
7757 | delete arg1; | |
7758 | } | |
7759 | return resultobj; | |
7760 | fail: | |
7761 | { | |
7762 | if (temp1) | |
7763 | delete arg1; | |
7764 | } | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
c32bde28 | 7769 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7770 | PyObject *resultobj; |
7771 | wxString *arg1 = 0 ; | |
7772 | wxString result; | |
ae8162c8 | 7773 | bool temp1 = false ; |
d55e5bfc RD |
7774 | PyObject * obj0 = 0 ; |
7775 | char *kwnames[] = { | |
7776 | (char *) "url", NULL | |
7777 | }; | |
7778 | ||
7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7780 | { | |
7781 | arg1 = wxString_in_helper(obj0); | |
7782 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7783 | temp1 = true; |
d55e5bfc RD |
7784 | } |
7785 | { | |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 7787 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
7788 | |
7789 | wxPyEndAllowThreads(__tstate); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | } | |
7792 | { | |
7793 | #if wxUSE_UNICODE | |
7794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7795 | #else | |
7796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7797 | #endif | |
7798 | } | |
7799 | { | |
7800 | if (temp1) | |
7801 | delete arg1; | |
7802 | } | |
7803 | return resultobj; | |
7804 | fail: | |
7805 | { | |
7806 | if (temp1) | |
7807 | delete arg1; | |
7808 | } | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
ae8162c8 RD |
7813 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7814 | PyObject *obj; | |
7815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7816 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7817 | Py_INCREF(obj); | |
7818 | return Py_BuildValue((char *)""); | |
7819 | } | |
c32bde28 | 7820 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7821 | PyObject *resultobj; |
7822 | wxInternetFSHandler *result; | |
7823 | char *kwnames[] = { | |
7824 | NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7828 | { | |
7829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7830 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7831 | ||
7832 | wxPyEndAllowThreads(__tstate); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
7834 | } | |
7835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7836 | return resultobj; | |
7837 | fail: | |
7838 | return NULL; | |
7839 | } | |
7840 | ||
7841 | ||
c32bde28 | 7842 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7843 | PyObject *resultobj; |
7844 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7845 | wxString *arg2 = 0 ; | |
7846 | bool result; | |
ae8162c8 | 7847 | bool temp2 = false ; |
d55e5bfc RD |
7848 | PyObject * obj0 = 0 ; |
7849 | PyObject * obj1 = 0 ; | |
7850 | char *kwnames[] = { | |
7851 | (char *) "self",(char *) "location", NULL | |
7852 | }; | |
7853 | ||
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7857 | { | |
7858 | arg2 = wxString_in_helper(obj1); | |
7859 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7860 | temp2 = true; |
d55e5bfc RD |
7861 | } |
7862 | { | |
7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7864 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7865 | ||
7866 | wxPyEndAllowThreads(__tstate); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
7869 | { | |
7870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7871 | } | |
7872 | { | |
7873 | if (temp2) | |
7874 | delete arg2; | |
7875 | } | |
7876 | return resultobj; | |
7877 | fail: | |
7878 | { | |
7879 | if (temp2) | |
7880 | delete arg2; | |
7881 | } | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
c32bde28 | 7886 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7887 | PyObject *resultobj; |
7888 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7889 | wxFileSystem *arg2 = 0 ; | |
7890 | wxString *arg3 = 0 ; | |
7891 | wxFSFile *result; | |
ae8162c8 | 7892 | bool temp3 = false ; |
d55e5bfc RD |
7893 | PyObject * obj0 = 0 ; |
7894 | PyObject * obj1 = 0 ; | |
7895 | PyObject * obj2 = 0 ; | |
7896 | char *kwnames[] = { | |
7897 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7898 | }; | |
7899 | ||
7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7905 | SWIG_fail; | |
7906 | if (arg2 == NULL) { | |
7907 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7908 | SWIG_fail; | |
7909 | } | |
7910 | { | |
7911 | arg3 = wxString_in_helper(obj2); | |
7912 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7913 | temp3 = true; |
d55e5bfc RD |
7914 | } |
7915 | { | |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
7922 | { | |
4cf4100f | 7923 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7924 | } |
7925 | { | |
7926 | if (temp3) | |
7927 | delete arg3; | |
7928 | } | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | { | |
7932 | if (temp3) | |
7933 | delete arg3; | |
7934 | } | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
c32bde28 | 7939 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7940 | PyObject *obj; |
7941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7942 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7943 | Py_INCREF(obj); | |
7944 | return Py_BuildValue((char *)""); | |
7945 | } | |
c32bde28 | 7946 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7947 | PyObject *resultobj; |
7948 | wxZipFSHandler *result; | |
7949 | char *kwnames[] = { | |
7950 | NULL | |
7951 | }; | |
7952 | ||
7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7954 | { | |
7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7956 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7957 | ||
7958 | wxPyEndAllowThreads(__tstate); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
7961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7962 | return resultobj; | |
7963 | fail: | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
c32bde28 | 7968 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7969 | PyObject *resultobj; |
7970 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7971 | wxString *arg2 = 0 ; | |
7972 | bool result; | |
ae8162c8 | 7973 | bool temp2 = false ; |
d55e5bfc RD |
7974 | PyObject * obj0 = 0 ; |
7975 | PyObject * obj1 = 0 ; | |
7976 | char *kwnames[] = { | |
7977 | (char *) "self",(char *) "location", NULL | |
7978 | }; | |
7979 | ||
7980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7983 | { | |
7984 | arg2 = wxString_in_helper(obj1); | |
7985 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7986 | temp2 = true; |
d55e5bfc RD |
7987 | } |
7988 | { | |
7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7990 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7991 | ||
7992 | wxPyEndAllowThreads(__tstate); | |
7993 | if (PyErr_Occurred()) SWIG_fail; | |
7994 | } | |
7995 | { | |
7996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7997 | } | |
7998 | { | |
7999 | if (temp2) | |
8000 | delete arg2; | |
8001 | } | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | { | |
8005 | if (temp2) | |
8006 | delete arg2; | |
8007 | } | |
8008 | return NULL; | |
8009 | } | |
8010 | ||
8011 | ||
c32bde28 | 8012 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8013 | PyObject *resultobj; |
8014 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8015 | wxFileSystem *arg2 = 0 ; | |
8016 | wxString *arg3 = 0 ; | |
8017 | wxFSFile *result; | |
ae8162c8 | 8018 | bool temp3 = false ; |
d55e5bfc RD |
8019 | PyObject * obj0 = 0 ; |
8020 | PyObject * obj1 = 0 ; | |
8021 | PyObject * obj2 = 0 ; | |
8022 | char *kwnames[] = { | |
8023 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8024 | }; | |
8025 | ||
8026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8030 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8031 | SWIG_fail; | |
8032 | if (arg2 == NULL) { | |
8033 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8034 | SWIG_fail; | |
8035 | } | |
8036 | { | |
8037 | arg3 = wxString_in_helper(obj2); | |
8038 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8039 | temp3 = true; |
d55e5bfc RD |
8040 | } |
8041 | { | |
8042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8043 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8044 | ||
8045 | wxPyEndAllowThreads(__tstate); | |
8046 | if (PyErr_Occurred()) SWIG_fail; | |
8047 | } | |
8048 | { | |
4cf4100f | 8049 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8050 | } |
8051 | { | |
8052 | if (temp3) | |
8053 | delete arg3; | |
8054 | } | |
8055 | return resultobj; | |
8056 | fail: | |
8057 | { | |
8058 | if (temp3) | |
8059 | delete arg3; | |
8060 | } | |
8061 | return NULL; | |
8062 | } | |
8063 | ||
8064 | ||
c32bde28 | 8065 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8066 | PyObject *resultobj; |
8067 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8068 | wxString *arg2 = 0 ; | |
8069 | int arg3 = (int) 0 ; | |
8070 | wxString result; | |
ae8162c8 | 8071 | bool temp2 = false ; |
d55e5bfc RD |
8072 | PyObject * obj0 = 0 ; |
8073 | PyObject * obj1 = 0 ; | |
8074 | PyObject * obj2 = 0 ; | |
8075 | char *kwnames[] = { | |
8076 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8077 | }; | |
8078 | ||
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8082 | { | |
8083 | arg2 = wxString_in_helper(obj1); | |
8084 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8085 | temp2 = true; |
d55e5bfc RD |
8086 | } |
8087 | if (obj2) { | |
c32bde28 | 8088 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8089 | if (PyErr_Occurred()) SWIG_fail; |
8090 | } | |
8091 | { | |
8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8093 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8094 | ||
8095 | wxPyEndAllowThreads(__tstate); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
8097 | } | |
8098 | { | |
8099 | #if wxUSE_UNICODE | |
8100 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8101 | #else | |
8102 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8103 | #endif | |
8104 | } | |
8105 | { | |
8106 | if (temp2) | |
8107 | delete arg2; | |
8108 | } | |
8109 | return resultobj; | |
8110 | fail: | |
8111 | { | |
8112 | if (temp2) | |
8113 | delete arg2; | |
8114 | } | |
8115 | return NULL; | |
8116 | } | |
8117 | ||
8118 | ||
c32bde28 | 8119 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8120 | PyObject *resultobj; |
8121 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8122 | wxString result; | |
8123 | PyObject * obj0 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8131 | { | |
8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8133 | result = (arg1)->FindNext(); | |
8134 | ||
8135 | wxPyEndAllowThreads(__tstate); | |
8136 | if (PyErr_Occurred()) SWIG_fail; | |
8137 | } | |
8138 | { | |
8139 | #if wxUSE_UNICODE | |
8140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8141 | #else | |
8142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8143 | #endif | |
8144 | } | |
8145 | return resultobj; | |
8146 | fail: | |
8147 | return NULL; | |
8148 | } | |
8149 | ||
8150 | ||
c32bde28 | 8151 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8152 | PyObject *obj; |
8153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8154 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
8155 | Py_INCREF(obj); | |
8156 | return Py_BuildValue((char *)""); | |
8157 | } | |
c32bde28 | 8158 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8159 | PyObject *resultobj; |
8160 | wxString *arg1 = 0 ; | |
8161 | wxImage *arg2 = 0 ; | |
8162 | long arg3 ; | |
ae8162c8 | 8163 | bool temp1 = false ; |
d55e5bfc RD |
8164 | PyObject * obj0 = 0 ; |
8165 | PyObject * obj1 = 0 ; | |
8166 | PyObject * obj2 = 0 ; | |
8167 | char *kwnames[] = { | |
8168 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8169 | }; | |
8170 | ||
8171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8172 | { | |
8173 | arg1 = wxString_in_helper(obj0); | |
8174 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8175 | temp1 = true; |
d55e5bfc RD |
8176 | } |
8177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
8178 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8179 | SWIG_fail; | |
8180 | if (arg2 == NULL) { | |
8181 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8182 | SWIG_fail; | |
8183 | } | |
c32bde28 | 8184 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8185 | if (PyErr_Occurred()) SWIG_fail; |
8186 | { | |
8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8188 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8189 | ||
8190 | wxPyEndAllowThreads(__tstate); | |
8191 | if (PyErr_Occurred()) SWIG_fail; | |
8192 | } | |
8193 | Py_INCREF(Py_None); resultobj = Py_None; | |
8194 | { | |
8195 | if (temp1) | |
8196 | delete arg1; | |
8197 | } | |
8198 | return resultobj; | |
8199 | fail: | |
8200 | { | |
8201 | if (temp1) | |
8202 | delete arg1; | |
8203 | } | |
8204 | return NULL; | |
8205 | } | |
8206 | ||
8207 | ||
c32bde28 | 8208 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8209 | PyObject *resultobj; |
8210 | wxString *arg1 = 0 ; | |
8211 | wxBitmap *arg2 = 0 ; | |
8212 | long arg3 ; | |
ae8162c8 | 8213 | bool temp1 = false ; |
d55e5bfc RD |
8214 | PyObject * obj0 = 0 ; |
8215 | PyObject * obj1 = 0 ; | |
8216 | PyObject * obj2 = 0 ; | |
8217 | char *kwnames[] = { | |
8218 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8219 | }; | |
8220 | ||
8221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8222 | { | |
8223 | arg1 = wxString_in_helper(obj0); | |
8224 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8225 | temp1 = true; |
d55e5bfc RD |
8226 | } |
8227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
8228 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8229 | SWIG_fail; | |
8230 | if (arg2 == NULL) { | |
8231 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8232 | SWIG_fail; | |
8233 | } | |
c32bde28 | 8234 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8235 | if (PyErr_Occurred()) SWIG_fail; |
8236 | { | |
8237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8238 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8239 | ||
8240 | wxPyEndAllowThreads(__tstate); | |
8241 | if (PyErr_Occurred()) SWIG_fail; | |
8242 | } | |
8243 | Py_INCREF(Py_None); resultobj = Py_None; | |
8244 | { | |
8245 | if (temp1) | |
8246 | delete arg1; | |
8247 | } | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | { | |
8251 | if (temp1) | |
8252 | delete arg1; | |
8253 | } | |
8254 | return NULL; | |
8255 | } | |
8256 | ||
8257 | ||
c32bde28 | 8258 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8259 | PyObject *resultobj; |
8260 | wxString *arg1 = 0 ; | |
8261 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 8262 | bool temp1 = false ; |
d55e5bfc RD |
8263 | PyObject * obj0 = 0 ; |
8264 | PyObject * obj1 = 0 ; | |
8265 | char *kwnames[] = { | |
8266 | (char *) "filename",(char *) "data", NULL | |
8267 | }; | |
8268 | ||
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8270 | { | |
8271 | arg1 = wxString_in_helper(obj0); | |
8272 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8273 | temp1 = true; |
d55e5bfc RD |
8274 | } |
8275 | arg2 = obj1; | |
8276 | { | |
8277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8278 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8279 | ||
8280 | wxPyEndAllowThreads(__tstate); | |
8281 | if (PyErr_Occurred()) SWIG_fail; | |
8282 | } | |
8283 | Py_INCREF(Py_None); resultobj = Py_None; | |
8284 | { | |
8285 | if (temp1) | |
8286 | delete arg1; | |
8287 | } | |
8288 | return resultobj; | |
8289 | fail: | |
8290 | { | |
8291 | if (temp1) | |
8292 | delete arg1; | |
8293 | } | |
8294 | return NULL; | |
8295 | } | |
8296 | ||
8297 | ||
c32bde28 | 8298 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8299 | PyObject *resultobj; |
8300 | wxMemoryFSHandler *result; | |
8301 | char *kwnames[] = { | |
8302 | NULL | |
8303 | }; | |
8304 | ||
8305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8306 | { | |
8307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8308 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8309 | ||
8310 | wxPyEndAllowThreads(__tstate); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
8312 | } | |
8313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
8314 | return resultobj; | |
8315 | fail: | |
8316 | return NULL; | |
8317 | } | |
8318 | ||
8319 | ||
c32bde28 | 8320 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8321 | PyObject *resultobj; |
8322 | wxString *arg1 = 0 ; | |
ae8162c8 | 8323 | bool temp1 = false ; |
d55e5bfc RD |
8324 | PyObject * obj0 = 0 ; |
8325 | char *kwnames[] = { | |
8326 | (char *) "filename", NULL | |
8327 | }; | |
8328 | ||
8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8330 | { | |
8331 | arg1 = wxString_in_helper(obj0); | |
8332 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8333 | temp1 = true; |
d55e5bfc RD |
8334 | } |
8335 | { | |
8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8337 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8338 | ||
8339 | wxPyEndAllowThreads(__tstate); | |
8340 | if (PyErr_Occurred()) SWIG_fail; | |
8341 | } | |
8342 | Py_INCREF(Py_None); resultobj = Py_None; | |
8343 | { | |
8344 | if (temp1) | |
8345 | delete arg1; | |
8346 | } | |
8347 | return resultobj; | |
8348 | fail: | |
8349 | { | |
8350 | if (temp1) | |
8351 | delete arg1; | |
8352 | } | |
8353 | return NULL; | |
8354 | } | |
8355 | ||
8356 | ||
c32bde28 | 8357 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8358 | PyObject *resultobj; |
8359 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8360 | wxString *arg2 = 0 ; | |
8361 | bool result; | |
ae8162c8 | 8362 | bool temp2 = false ; |
d55e5bfc RD |
8363 | PyObject * obj0 = 0 ; |
8364 | PyObject * obj1 = 0 ; | |
8365 | char *kwnames[] = { | |
8366 | (char *) "self",(char *) "location", NULL | |
8367 | }; | |
8368 | ||
8369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
8370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8372 | { | |
8373 | arg2 = wxString_in_helper(obj1); | |
8374 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8375 | temp2 = true; |
d55e5bfc RD |
8376 | } |
8377 | { | |
8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8379 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8380 | ||
8381 | wxPyEndAllowThreads(__tstate); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
8384 | { | |
8385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8386 | } | |
8387 | { | |
8388 | if (temp2) | |
8389 | delete arg2; | |
8390 | } | |
8391 | return resultobj; | |
8392 | fail: | |
8393 | { | |
8394 | if (temp2) | |
8395 | delete arg2; | |
8396 | } | |
8397 | return NULL; | |
8398 | } | |
8399 | ||
8400 | ||
c32bde28 | 8401 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8402 | PyObject *resultobj; |
8403 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8404 | wxFileSystem *arg2 = 0 ; | |
8405 | wxString *arg3 = 0 ; | |
8406 | wxFSFile *result; | |
ae8162c8 | 8407 | bool temp3 = false ; |
d55e5bfc RD |
8408 | PyObject * obj0 = 0 ; |
8409 | PyObject * obj1 = 0 ; | |
8410 | PyObject * obj2 = 0 ; | |
8411 | char *kwnames[] = { | |
8412 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8413 | }; | |
8414 | ||
8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8419 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8420 | SWIG_fail; | |
8421 | if (arg2 == NULL) { | |
8422 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8423 | SWIG_fail; | |
8424 | } | |
8425 | { | |
8426 | arg3 = wxString_in_helper(obj2); | |
8427 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8428 | temp3 = true; |
d55e5bfc RD |
8429 | } |
8430 | { | |
8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8432 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8433 | ||
8434 | wxPyEndAllowThreads(__tstate); | |
8435 | if (PyErr_Occurred()) SWIG_fail; | |
8436 | } | |
8437 | { | |
4cf4100f | 8438 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8439 | } |
8440 | { | |
8441 | if (temp3) | |
8442 | delete arg3; | |
8443 | } | |
8444 | return resultobj; | |
8445 | fail: | |
8446 | { | |
8447 | if (temp3) | |
8448 | delete arg3; | |
8449 | } | |
8450 | return NULL; | |
8451 | } | |
8452 | ||
8453 | ||
c32bde28 | 8454 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8455 | PyObject *resultobj; |
8456 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8457 | wxString *arg2 = 0 ; | |
8458 | int arg3 = (int) 0 ; | |
8459 | wxString result; | |
ae8162c8 | 8460 | bool temp2 = false ; |
d55e5bfc RD |
8461 | PyObject * obj0 = 0 ; |
8462 | PyObject * obj1 = 0 ; | |
8463 | PyObject * obj2 = 0 ; | |
8464 | char *kwnames[] = { | |
8465 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8466 | }; | |
8467 | ||
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8471 | { | |
8472 | arg2 = wxString_in_helper(obj1); | |
8473 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8474 | temp2 = true; |
d55e5bfc RD |
8475 | } |
8476 | if (obj2) { | |
c32bde28 | 8477 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8478 | if (PyErr_Occurred()) SWIG_fail; |
8479 | } | |
8480 | { | |
8481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8482 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8483 | ||
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
8486 | } | |
8487 | { | |
8488 | #if wxUSE_UNICODE | |
8489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8490 | #else | |
8491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8492 | #endif | |
8493 | } | |
8494 | { | |
8495 | if (temp2) | |
8496 | delete arg2; | |
8497 | } | |
8498 | return resultobj; | |
8499 | fail: | |
8500 | { | |
8501 | if (temp2) | |
8502 | delete arg2; | |
8503 | } | |
8504 | return NULL; | |
8505 | } | |
8506 | ||
8507 | ||
c32bde28 | 8508 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8509 | PyObject *resultobj; |
8510 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8511 | wxString result; | |
8512 | PyObject * obj0 = 0 ; | |
8513 | char *kwnames[] = { | |
8514 | (char *) "self", NULL | |
8515 | }; | |
8516 | ||
8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8520 | { | |
8521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8522 | result = (arg1)->FindNext(); | |
8523 | ||
8524 | wxPyEndAllowThreads(__tstate); | |
8525 | if (PyErr_Occurred()) SWIG_fail; | |
8526 | } | |
8527 | { | |
8528 | #if wxUSE_UNICODE | |
8529 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8530 | #else | |
8531 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8532 | #endif | |
8533 | } | |
8534 | return resultobj; | |
8535 | fail: | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
c32bde28 | 8540 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8541 | PyObject *obj; |
8542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8543 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8544 | Py_INCREF(obj); | |
8545 | return Py_BuildValue((char *)""); | |
8546 | } | |
c32bde28 | 8547 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8548 | PyObject *resultobj; |
8549 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8550 | wxString result; | |
8551 | PyObject * obj0 = 0 ; | |
8552 | char *kwnames[] = { | |
8553 | (char *) "self", NULL | |
8554 | }; | |
8555 | ||
8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8559 | { | |
8560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8561 | result = (arg1)->GetName(); | |
8562 | ||
8563 | wxPyEndAllowThreads(__tstate); | |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
8565 | } | |
8566 | { | |
8567 | #if wxUSE_UNICODE | |
8568 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8569 | #else | |
8570 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8571 | #endif | |
8572 | } | |
8573 | return resultobj; | |
8574 | fail: | |
8575 | return NULL; | |
8576 | } | |
8577 | ||
8578 | ||
c32bde28 | 8579 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8580 | PyObject *resultobj; |
8581 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8582 | wxString result; | |
8583 | PyObject * obj0 = 0 ; | |
8584 | char *kwnames[] = { | |
8585 | (char *) "self", NULL | |
8586 | }; | |
8587 | ||
8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8591 | { | |
8592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8593 | result = (arg1)->GetExtension(); | |
8594 | ||
8595 | wxPyEndAllowThreads(__tstate); | |
8596 | if (PyErr_Occurred()) SWIG_fail; | |
8597 | } | |
8598 | { | |
8599 | #if wxUSE_UNICODE | |
8600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8601 | #else | |
8602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8603 | #endif | |
8604 | } | |
8605 | return resultobj; | |
8606 | fail: | |
8607 | return NULL; | |
8608 | } | |
8609 | ||
8610 | ||
c32bde28 | 8611 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8612 | PyObject *resultobj; |
8613 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8614 | long result; | |
8615 | PyObject * obj0 = 0 ; | |
8616 | char *kwnames[] = { | |
8617 | (char *) "self", NULL | |
8618 | }; | |
8619 | ||
8620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8623 | { | |
8624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8625 | result = (long)(arg1)->GetType(); | |
8626 | ||
8627 | wxPyEndAllowThreads(__tstate); | |
8628 | if (PyErr_Occurred()) SWIG_fail; | |
8629 | } | |
c32bde28 | 8630 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8631 | return resultobj; |
8632 | fail: | |
8633 | return NULL; | |
8634 | } | |
8635 | ||
8636 | ||
c32bde28 | 8637 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8638 | PyObject *resultobj; |
8639 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8640 | wxString result; | |
8641 | PyObject * obj0 = 0 ; | |
8642 | char *kwnames[] = { | |
8643 | (char *) "self", NULL | |
8644 | }; | |
8645 | ||
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8649 | { | |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | result = (arg1)->GetMimeType(); | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | { | |
8657 | #if wxUSE_UNICODE | |
8658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8659 | #else | |
8660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8661 | #endif | |
8662 | } | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
c32bde28 | 8669 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8670 | PyObject *resultobj; |
8671 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8672 | wxString *arg2 = 0 ; | |
8673 | bool result; | |
ae8162c8 | 8674 | bool temp2 = false ; |
d55e5bfc RD |
8675 | PyObject * obj0 = 0 ; |
8676 | PyObject * obj1 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "self",(char *) "name", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8684 | { | |
8685 | arg2 = wxString_in_helper(obj1); | |
8686 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8687 | temp2 = true; |
d55e5bfc RD |
8688 | } |
8689 | { | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8692 | ||
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | { | |
8697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8698 | } | |
8699 | { | |
8700 | if (temp2) | |
8701 | delete arg2; | |
8702 | } | |
8703 | return resultobj; | |
8704 | fail: | |
8705 | { | |
8706 | if (temp2) | |
8707 | delete arg2; | |
8708 | } | |
8709 | return NULL; | |
8710 | } | |
8711 | ||
8712 | ||
c32bde28 | 8713 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8714 | PyObject *resultobj; |
8715 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8716 | wxString *arg2 = 0 ; | |
ae8162c8 | 8717 | bool temp2 = false ; |
d55e5bfc RD |
8718 | PyObject * obj0 = 0 ; |
8719 | PyObject * obj1 = 0 ; | |
8720 | char *kwnames[] = { | |
8721 | (char *) "self",(char *) "name", NULL | |
8722 | }; | |
8723 | ||
8724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8727 | { | |
8728 | arg2 = wxString_in_helper(obj1); | |
8729 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8730 | temp2 = true; |
d55e5bfc RD |
8731 | } |
8732 | { | |
8733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8734 | (arg1)->SetName((wxString const &)*arg2); | |
8735 | ||
8736 | wxPyEndAllowThreads(__tstate); | |
8737 | if (PyErr_Occurred()) SWIG_fail; | |
8738 | } | |
8739 | Py_INCREF(Py_None); resultobj = Py_None; | |
8740 | { | |
8741 | if (temp2) | |
8742 | delete arg2; | |
8743 | } | |
8744 | return resultobj; | |
8745 | fail: | |
8746 | { | |
8747 | if (temp2) | |
8748 | delete arg2; | |
8749 | } | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
c32bde28 | 8754 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8755 | PyObject *resultobj; |
8756 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8757 | wxString *arg2 = 0 ; | |
ae8162c8 | 8758 | bool temp2 = false ; |
d55e5bfc RD |
8759 | PyObject * obj0 = 0 ; |
8760 | PyObject * obj1 = 0 ; | |
8761 | char *kwnames[] = { | |
8762 | (char *) "self",(char *) "extension", NULL | |
8763 | }; | |
8764 | ||
8765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8768 | { | |
8769 | arg2 = wxString_in_helper(obj1); | |
8770 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8771 | temp2 = true; |
d55e5bfc RD |
8772 | } |
8773 | { | |
8774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8775 | (arg1)->SetExtension((wxString const &)*arg2); | |
8776 | ||
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
8780 | Py_INCREF(Py_None); resultobj = Py_None; | |
8781 | { | |
8782 | if (temp2) | |
8783 | delete arg2; | |
8784 | } | |
8785 | return resultobj; | |
8786 | fail: | |
8787 | { | |
8788 | if (temp2) | |
8789 | delete arg2; | |
8790 | } | |
8791 | return NULL; | |
8792 | } | |
8793 | ||
8794 | ||
c32bde28 | 8795 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8796 | PyObject *resultobj; |
8797 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8798 | long arg2 ; | |
8799 | PyObject * obj0 = 0 ; | |
8800 | PyObject * obj1 = 0 ; | |
8801 | char *kwnames[] = { | |
8802 | (char *) "self",(char *) "type", NULL | |
8803 | }; | |
8804 | ||
8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8808 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8809 | if (PyErr_Occurred()) SWIG_fail; |
8810 | { | |
8811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8812 | (arg1)->SetType(arg2); | |
8813 | ||
8814 | wxPyEndAllowThreads(__tstate); | |
8815 | if (PyErr_Occurred()) SWIG_fail; | |
8816 | } | |
8817 | Py_INCREF(Py_None); resultobj = Py_None; | |
8818 | return resultobj; | |
8819 | fail: | |
8820 | return NULL; | |
8821 | } | |
8822 | ||
8823 | ||
c32bde28 | 8824 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8825 | PyObject *resultobj; |
8826 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8827 | wxString *arg2 = 0 ; | |
ae8162c8 | 8828 | bool temp2 = false ; |
d55e5bfc RD |
8829 | PyObject * obj0 = 0 ; |
8830 | PyObject * obj1 = 0 ; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "self",(char *) "mimetype", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8838 | { | |
8839 | arg2 = wxString_in_helper(obj1); | |
8840 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8841 | temp2 = true; |
d55e5bfc RD |
8842 | } |
8843 | { | |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8846 | ||
8847 | wxPyEndAllowThreads(__tstate); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | Py_INCREF(Py_None); resultobj = Py_None; | |
8851 | { | |
8852 | if (temp2) | |
8853 | delete arg2; | |
8854 | } | |
8855 | return resultobj; | |
8856 | fail: | |
8857 | { | |
8858 | if (temp2) | |
8859 | delete arg2; | |
8860 | } | |
8861 | return NULL; | |
8862 | } | |
8863 | ||
8864 | ||
c32bde28 | 8865 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8866 | PyObject *obj; |
8867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8868 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8869 | Py_INCREF(obj); | |
8870 | return Py_BuildValue((char *)""); | |
8871 | } | |
c32bde28 | 8872 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8873 | PyObject *resultobj; |
8874 | wxImageHistogram *result; | |
8875 | char *kwnames[] = { | |
8876 | NULL | |
8877 | }; | |
8878 | ||
8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8880 | { | |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8883 | ||
8884 | wxPyEndAllowThreads(__tstate); | |
8885 | if (PyErr_Occurred()) SWIG_fail; | |
8886 | } | |
8887 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
c32bde28 | 8894 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8895 | PyObject *resultobj; |
8896 | unsigned char arg1 ; | |
8897 | unsigned char arg2 ; | |
8898 | unsigned char arg3 ; | |
8899 | unsigned long result; | |
8900 | PyObject * obj0 = 0 ; | |
8901 | PyObject * obj1 = 0 ; | |
8902 | PyObject * obj2 = 0 ; | |
8903 | char *kwnames[] = { | |
8904 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8905 | }; | |
8906 | ||
8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 8908 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc | 8909 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8910 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 8911 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8912 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8913 | if (PyErr_Occurred()) SWIG_fail; |
8914 | { | |
8915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8916 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8917 | ||
8918 | wxPyEndAllowThreads(__tstate); | |
8919 | if (PyErr_Occurred()) SWIG_fail; | |
8920 | } | |
c32bde28 | 8921 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8922 | return resultobj; |
8923 | fail: | |
8924 | return NULL; | |
8925 | } | |
8926 | ||
8927 | ||
c32bde28 | 8928 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8929 | PyObject *resultobj; |
8930 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8931 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8932 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8933 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8934 | unsigned char arg5 = (unsigned char) 1 ; | |
8935 | unsigned char arg6 = (unsigned char) 0 ; | |
8936 | unsigned char arg7 = (unsigned char) 0 ; | |
8937 | bool result; | |
8938 | unsigned char temp2 ; | |
c32bde28 | 8939 | int res2 = 0 ; |
d55e5bfc | 8940 | unsigned char temp3 ; |
c32bde28 | 8941 | int res3 = 0 ; |
d55e5bfc | 8942 | unsigned char temp4 ; |
c32bde28 | 8943 | int res4 = 0 ; |
d55e5bfc RD |
8944 | PyObject * obj0 = 0 ; |
8945 | PyObject * obj1 = 0 ; | |
8946 | PyObject * obj2 = 0 ; | |
8947 | PyObject * obj3 = 0 ; | |
8948 | char *kwnames[] = { | |
8949 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8950 | }; | |
8951 | ||
c32bde28 RD |
8952 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8953 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8954 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8958 | if (obj1) { | |
c32bde28 | 8959 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
8960 | if (PyErr_Occurred()) SWIG_fail; |
8961 | } | |
8962 | if (obj2) { | |
c32bde28 | 8963 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8964 | if (PyErr_Occurred()) SWIG_fail; |
8965 | } | |
8966 | if (obj3) { | |
c32bde28 | 8967 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
8968 | if (PyErr_Occurred()) SWIG_fail; |
8969 | } | |
8970 | { | |
8971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8972 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8973 | ||
8974 | wxPyEndAllowThreads(__tstate); | |
8975 | if (PyErr_Occurred()) SWIG_fail; | |
8976 | } | |
8977 | { | |
8978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8979 | } | |
c32bde28 RD |
8980 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8981 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8982 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8983 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8984 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8985 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
8986 | return resultobj; |
8987 | fail: | |
8988 | return NULL; | |
8989 | } | |
8990 | ||
8991 | ||
c32bde28 | 8992 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8993 | PyObject *obj; |
8994 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8995 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8996 | Py_INCREF(obj); | |
8997 | return Py_BuildValue((char *)""); | |
8998 | } | |
c32bde28 | 8999 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9000 | PyObject *resultobj; |
9001 | wxString *arg1 = 0 ; | |
9002 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9003 | int arg3 = (int) -1 ; | |
9004 | wxImage *result; | |
ae8162c8 | 9005 | bool temp1 = false ; |
d55e5bfc RD |
9006 | PyObject * obj0 = 0 ; |
9007 | PyObject * obj1 = 0 ; | |
9008 | PyObject * obj2 = 0 ; | |
9009 | char *kwnames[] = { | |
9010 | (char *) "name",(char *) "type",(char *) "index", NULL | |
9011 | }; | |
9012 | ||
9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9014 | { | |
9015 | arg1 = wxString_in_helper(obj0); | |
9016 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9017 | temp1 = true; |
d55e5bfc RD |
9018 | } |
9019 | if (obj1) { | |
c32bde28 | 9020 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9021 | if (PyErr_Occurred()) SWIG_fail; |
9022 | } | |
9023 | if (obj2) { | |
c32bde28 | 9024 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9025 | if (PyErr_Occurred()) SWIG_fail; |
9026 | } | |
9027 | { | |
9028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9029 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
9030 | ||
9031 | wxPyEndAllowThreads(__tstate); | |
9032 | if (PyErr_Occurred()) SWIG_fail; | |
9033 | } | |
9034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9035 | { | |
9036 | if (temp1) | |
9037 | delete arg1; | |
9038 | } | |
9039 | return resultobj; | |
9040 | fail: | |
9041 | { | |
9042 | if (temp1) | |
9043 | delete arg1; | |
9044 | } | |
9045 | return NULL; | |
9046 | } | |
9047 | ||
9048 | ||
c32bde28 | 9049 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9050 | PyObject *resultobj; |
9051 | wxImage *arg1 = (wxImage *) 0 ; | |
9052 | PyObject * obj0 = 0 ; | |
9053 | char *kwnames[] = { | |
9054 | (char *) "self", NULL | |
9055 | }; | |
9056 | ||
9057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
9058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9060 | { | |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | delete arg1; | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | Py_INCREF(Py_None); resultobj = Py_None; | |
9068 | return resultobj; | |
9069 | fail: | |
9070 | return NULL; | |
9071 | } | |
9072 | ||
9073 | ||
c32bde28 | 9074 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9075 | PyObject *resultobj; |
9076 | wxString *arg1 = 0 ; | |
9077 | wxString *arg2 = 0 ; | |
9078 | int arg3 = (int) -1 ; | |
9079 | wxImage *result; | |
ae8162c8 RD |
9080 | bool temp1 = false ; |
9081 | bool temp2 = false ; | |
d55e5bfc RD |
9082 | PyObject * obj0 = 0 ; |
9083 | PyObject * obj1 = 0 ; | |
9084 | PyObject * obj2 = 0 ; | |
9085 | char *kwnames[] = { | |
9086 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9087 | }; | |
9088 | ||
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9090 | { | |
9091 | arg1 = wxString_in_helper(obj0); | |
9092 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9093 | temp1 = true; |
d55e5bfc RD |
9094 | } |
9095 | { | |
9096 | arg2 = wxString_in_helper(obj1); | |
9097 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9098 | temp2 = true; |
d55e5bfc RD |
9099 | } |
9100 | if (obj2) { | |
c32bde28 | 9101 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9102 | if (PyErr_Occurred()) SWIG_fail; |
9103 | } | |
9104 | { | |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9106 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9107 | ||
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
9111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9112 | { | |
9113 | if (temp1) | |
9114 | delete arg1; | |
9115 | } | |
9116 | { | |
9117 | if (temp2) | |
9118 | delete arg2; | |
9119 | } | |
9120 | return resultobj; | |
9121 | fail: | |
9122 | { | |
9123 | if (temp1) | |
9124 | delete arg1; | |
9125 | } | |
9126 | { | |
9127 | if (temp2) | |
9128 | delete arg2; | |
9129 | } | |
9130 | return NULL; | |
9131 | } | |
9132 | ||
9133 | ||
c32bde28 | 9134 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9135 | PyObject *resultobj; |
9136 | wxInputStream *arg1 = 0 ; | |
9137 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9138 | int arg3 = (int) -1 ; | |
9139 | wxImage *result; | |
9140 | wxPyInputStream *temp1 ; | |
9141 | bool created1 ; | |
9142 | PyObject * obj0 = 0 ; | |
9143 | PyObject * obj1 = 0 ; | |
9144 | PyObject * obj2 = 0 ; | |
9145 | char *kwnames[] = { | |
9146 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
9147 | }; | |
9148 | ||
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9150 | { | |
9151 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9152 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9153 | created1 = false; |
d55e5bfc RD |
9154 | } else { |
9155 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9156 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9157 | if (arg1 == NULL) { |
9158 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9159 | SWIG_fail; | |
9160 | } | |
ae8162c8 | 9161 | created1 = true; |
d55e5bfc RD |
9162 | } |
9163 | } | |
9164 | if (obj1) { | |
c32bde28 | 9165 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9166 | if (PyErr_Occurred()) SWIG_fail; |
9167 | } | |
9168 | if (obj2) { | |
c32bde28 | 9169 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9170 | if (PyErr_Occurred()) SWIG_fail; |
9171 | } | |
9172 | { | |
9173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9174 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9175 | ||
9176 | wxPyEndAllowThreads(__tstate); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | } | |
9179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9180 | { | |
9181 | if (created1) | |
9182 | delete arg1; | |
9183 | } | |
9184 | return resultobj; | |
9185 | fail: | |
9186 | { | |
9187 | if (created1) | |
9188 | delete arg1; | |
9189 | } | |
9190 | return NULL; | |
9191 | } | |
9192 | ||
9193 | ||
c32bde28 | 9194 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9195 | PyObject *resultobj; |
9196 | wxInputStream *arg1 = 0 ; | |
9197 | wxString *arg2 = 0 ; | |
9198 | int arg3 = (int) -1 ; | |
9199 | wxImage *result; | |
9200 | wxPyInputStream *temp1 ; | |
9201 | bool created1 ; | |
ae8162c8 | 9202 | bool temp2 = false ; |
d55e5bfc RD |
9203 | PyObject * obj0 = 0 ; |
9204 | PyObject * obj1 = 0 ; | |
9205 | PyObject * obj2 = 0 ; | |
9206 | char *kwnames[] = { | |
9207 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9208 | }; | |
9209 | ||
9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9211 | { | |
9212 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9213 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9214 | created1 = false; |
d55e5bfc RD |
9215 | } else { |
9216 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9217 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9218 | if (arg1 == NULL) { |
9219 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9220 | SWIG_fail; | |
9221 | } | |
ae8162c8 | 9222 | created1 = true; |
d55e5bfc RD |
9223 | } |
9224 | } | |
9225 | { | |
9226 | arg2 = wxString_in_helper(obj1); | |
9227 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9228 | temp2 = true; |
d55e5bfc RD |
9229 | } |
9230 | if (obj2) { | |
c32bde28 | 9231 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9232 | if (PyErr_Occurred()) SWIG_fail; |
9233 | } | |
9234 | { | |
9235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9236 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9237 | ||
9238 | wxPyEndAllowThreads(__tstate); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9242 | { | |
9243 | if (created1) | |
9244 | delete arg1; | |
9245 | } | |
9246 | { | |
9247 | if (temp2) | |
9248 | delete arg2; | |
9249 | } | |
9250 | return resultobj; | |
9251 | fail: | |
9252 | { | |
9253 | if (created1) | |
9254 | delete arg1; | |
9255 | } | |
9256 | { | |
9257 | if (temp2) | |
9258 | delete arg2; | |
9259 | } | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
c32bde28 | 9264 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9265 | PyObject *resultobj; |
9266 | int arg1 = (int) 0 ; | |
9267 | int arg2 = (int) 0 ; | |
ae8162c8 | 9268 | bool arg3 = (bool) true ; |
d55e5bfc RD |
9269 | wxImage *result; |
9270 | PyObject * obj0 = 0 ; | |
9271 | PyObject * obj1 = 0 ; | |
9272 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
9273 | char *kwnames[] = { |
9274 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9275 | }; | |
d55e5bfc | 9276 | |
c24da6d6 | 9277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 9278 | if (obj0) { |
c32bde28 | 9279 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9280 | if (PyErr_Occurred()) SWIG_fail; |
9281 | } | |
9282 | if (obj1) { | |
c32bde28 | 9283 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9284 | if (PyErr_Occurred()) SWIG_fail; |
9285 | } | |
9286 | if (obj2) { | |
c32bde28 | 9287 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9288 | if (PyErr_Occurred()) SWIG_fail; |
9289 | } | |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 9292 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
9293 | |
9294 | wxPyEndAllowThreads(__tstate); | |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
9297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9298 | return resultobj; | |
9299 | fail: | |
9300 | return NULL; | |
9301 | } | |
9302 | ||
9303 | ||
c32bde28 | 9304 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9305 | PyObject *resultobj; |
9306 | wxBitmap *arg1 = 0 ; | |
9307 | wxImage *result; | |
9308 | PyObject * obj0 = 0 ; | |
9309 | char *kwnames[] = { | |
9310 | (char *) "bitmap", NULL | |
9311 | }; | |
9312 | ||
9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
9314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
9315 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9316 | SWIG_fail; | |
9317 | if (arg1 == NULL) { | |
9318 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9319 | SWIG_fail; | |
9320 | } | |
9321 | { | |
0439c23b | 9322 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9324 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9327 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9328 | } |
9329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
c32bde28 | 9336 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9337 | PyObject *resultobj; |
9338 | int arg1 ; | |
9339 | int arg2 ; | |
9340 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9341 | wxImage *result; | |
9342 | PyObject * obj0 = 0 ; | |
9343 | PyObject * obj1 = 0 ; | |
9344 | PyObject * obj2 = 0 ; | |
9345 | char *kwnames[] = { | |
9346 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9347 | }; | |
9348 | ||
9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 9350 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 9351 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9352 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9353 | if (PyErr_Occurred()) SWIG_fail; |
9354 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9356 | { | |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9359 | ||
9360 | wxPyEndAllowThreads(__tstate); | |
9361 | if (PyErr_Occurred()) SWIG_fail; | |
9362 | } | |
9363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9364 | return resultobj; | |
9365 | fail: | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
c9c2cf70 RD |
9370 | static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9371 | PyObject *resultobj; | |
9372 | int arg1 ; | |
9373 | int arg2 ; | |
9374 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9375 | unsigned char *arg4 = (unsigned char *) 0 ; | |
9376 | wxImage *result; | |
9377 | PyObject * obj0 = 0 ; | |
9378 | PyObject * obj1 = 0 ; | |
9379 | PyObject * obj2 = 0 ; | |
9380 | PyObject * obj3 = 0 ; | |
9381 | char *kwnames[] = { | |
9382 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
9383 | }; | |
9384 | ||
9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9386 | arg1 = (int)SWIG_As_int(obj0); | |
9387 | if (PyErr_Occurred()) SWIG_fail; | |
9388 | arg2 = (int)SWIG_As_int(obj1); | |
9389 | if (PyErr_Occurred()) SWIG_fail; | |
9390 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9392 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
9393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9394 | { | |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9402 | return resultobj; | |
9403 | fail: | |
9404 | return NULL; | |
9405 | } | |
9406 | ||
9407 | ||
c32bde28 | 9408 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9409 | PyObject *resultobj; |
9410 | wxImage *arg1 = (wxImage *) 0 ; | |
9411 | int arg2 ; | |
9412 | int arg3 ; | |
9413 | PyObject * obj0 = 0 ; | |
9414 | PyObject * obj1 = 0 ; | |
9415 | PyObject * obj2 = 0 ; | |
9416 | char *kwnames[] = { | |
9417 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9418 | }; | |
9419 | ||
9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9423 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9424 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9425 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9426 | if (PyErr_Occurred()) SWIG_fail; |
9427 | { | |
9428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9429 | (arg1)->Create(arg2,arg3); | |
9430 | ||
9431 | wxPyEndAllowThreads(__tstate); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | } | |
9434 | Py_INCREF(Py_None); resultobj = Py_None; | |
9435 | return resultobj; | |
9436 | fail: | |
9437 | return NULL; | |
9438 | } | |
9439 | ||
9440 | ||
c32bde28 | 9441 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9442 | PyObject *resultobj; |
9443 | wxImage *arg1 = (wxImage *) 0 ; | |
9444 | PyObject * obj0 = 0 ; | |
9445 | char *kwnames[] = { | |
9446 | (char *) "self", NULL | |
9447 | }; | |
9448 | ||
9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9452 | { | |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | (arg1)->Destroy(); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | Py_INCREF(Py_None); resultobj = Py_None; | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
c32bde28 | 9466 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9467 | PyObject *resultobj; |
9468 | wxImage *arg1 = (wxImage *) 0 ; | |
9469 | int arg2 ; | |
9470 | int arg3 ; | |
9471 | SwigValueWrapper< wxImage > result; | |
9472 | PyObject * obj0 = 0 ; | |
9473 | PyObject * obj1 = 0 ; | |
9474 | PyObject * obj2 = 0 ; | |
9475 | char *kwnames[] = { | |
9476 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9477 | }; | |
9478 | ||
9479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9482 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9483 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9484 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9485 | if (PyErr_Occurred()) SWIG_fail; |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | result = (arg1)->Scale(arg2,arg3); | |
9489 | ||
9490 | wxPyEndAllowThreads(__tstate); | |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
9492 | } | |
9493 | { | |
9494 | wxImage * resultptr; | |
9495 | resultptr = new wxImage((wxImage &) result); | |
9496 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9497 | } | |
9498 | return resultobj; | |
9499 | fail: | |
9500 | return NULL; | |
9501 | } | |
9502 | ||
9503 | ||
c32bde28 | 9504 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9505 | PyObject *resultobj; |
9506 | wxImage *arg1 = (wxImage *) 0 ; | |
9507 | int arg2 ; | |
9508 | int arg3 ; | |
9509 | SwigValueWrapper< wxImage > result; | |
9510 | PyObject * obj0 = 0 ; | |
9511 | PyObject * obj1 = 0 ; | |
9512 | PyObject * obj2 = 0 ; | |
9513 | char *kwnames[] = { | |
9514 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9515 | }; | |
9516 | ||
9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9520 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9521 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9522 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9523 | if (PyErr_Occurred()) SWIG_fail; |
9524 | { | |
9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9526 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9527 | ||
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
9531 | { | |
9532 | wxImage * resultptr; | |
9533 | resultptr = new wxImage((wxImage &) result); | |
9534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9535 | } | |
9536 | return resultobj; | |
9537 | fail: | |
9538 | return NULL; | |
9539 | } | |
9540 | ||
9541 | ||
c32bde28 | 9542 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9543 | PyObject *resultobj; |
9544 | wxImage *arg1 = (wxImage *) 0 ; | |
9545 | int arg2 ; | |
9546 | int arg3 ; | |
9547 | wxImage *result; | |
9548 | PyObject * obj0 = 0 ; | |
9549 | PyObject * obj1 = 0 ; | |
9550 | PyObject * obj2 = 0 ; | |
9551 | char *kwnames[] = { | |
9552 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9553 | }; | |
9554 | ||
9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9558 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9559 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9560 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9561 | if (PyErr_Occurred()) SWIG_fail; |
9562 | { | |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | { | |
9565 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9566 | result = (wxImage *) &_result_ref; | |
9567 | } | |
9568 | ||
9569 | wxPyEndAllowThreads(__tstate); | |
9570 | if (PyErr_Occurred()) SWIG_fail; | |
9571 | } | |
9572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9573 | return resultobj; | |
9574 | fail: | |
9575 | return NULL; | |
9576 | } | |
9577 | ||
9578 | ||
c32bde28 | 9579 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9580 | PyObject *resultobj; |
9581 | wxImage *arg1 = (wxImage *) 0 ; | |
9582 | int arg2 ; | |
9583 | int arg3 ; | |
9584 | unsigned char arg4 ; | |
9585 | unsigned char arg5 ; | |
9586 | unsigned char arg6 ; | |
9587 | PyObject * obj0 = 0 ; | |
9588 | PyObject * obj1 = 0 ; | |
9589 | PyObject * obj2 = 0 ; | |
9590 | PyObject * obj3 = 0 ; | |
9591 | PyObject * obj4 = 0 ; | |
9592 | PyObject * obj5 = 0 ; | |
9593 | char *kwnames[] = { | |
9594 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9595 | }; | |
9596 | ||
9597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9600 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9601 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9602 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9603 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9604 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9605 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9606 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 9607 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9608 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc RD |
9609 | if (PyErr_Occurred()) SWIG_fail; |
9610 | { | |
9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9612 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9613 | ||
9614 | wxPyEndAllowThreads(__tstate); | |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
9616 | } | |
9617 | Py_INCREF(Py_None); resultobj = Py_None; | |
9618 | return resultobj; | |
9619 | fail: | |
9620 | return NULL; | |
9621 | } | |
9622 | ||
9623 | ||
c32bde28 | 9624 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9625 | PyObject *resultobj; |
9626 | wxImage *arg1 = (wxImage *) 0 ; | |
9627 | int arg2 ; | |
9628 | int arg3 ; | |
9629 | unsigned char result; | |
9630 | PyObject * obj0 = 0 ; | |
9631 | PyObject * obj1 = 0 ; | |
9632 | PyObject * obj2 = 0 ; | |
9633 | char *kwnames[] = { | |
9634 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9635 | }; | |
9636 | ||
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9640 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9641 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9642 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9643 | if (PyErr_Occurred()) SWIG_fail; |
9644 | { | |
9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9646 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9647 | ||
9648 | wxPyEndAllowThreads(__tstate); | |
9649 | if (PyErr_Occurred()) SWIG_fail; | |
9650 | } | |
c32bde28 | 9651 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9652 | return resultobj; |
9653 | fail: | |
9654 | return NULL; | |
9655 | } | |
9656 | ||
9657 | ||
c32bde28 | 9658 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9659 | PyObject *resultobj; |
9660 | wxImage *arg1 = (wxImage *) 0 ; | |
9661 | int arg2 ; | |
9662 | int arg3 ; | |
9663 | unsigned char result; | |
9664 | PyObject * obj0 = 0 ; | |
9665 | PyObject * obj1 = 0 ; | |
9666 | PyObject * obj2 = 0 ; | |
9667 | char *kwnames[] = { | |
9668 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9669 | }; | |
9670 | ||
9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9674 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9675 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9676 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9677 | if (PyErr_Occurred()) SWIG_fail; |
9678 | { | |
9679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9680 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9681 | ||
9682 | wxPyEndAllowThreads(__tstate); | |
9683 | if (PyErr_Occurred()) SWIG_fail; | |
9684 | } | |
c32bde28 | 9685 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9686 | return resultobj; |
9687 | fail: | |
9688 | return NULL; | |
9689 | } | |
9690 | ||
9691 | ||
c32bde28 | 9692 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9693 | PyObject *resultobj; |
9694 | wxImage *arg1 = (wxImage *) 0 ; | |
9695 | int arg2 ; | |
9696 | int arg3 ; | |
9697 | unsigned char result; | |
9698 | PyObject * obj0 = 0 ; | |
9699 | PyObject * obj1 = 0 ; | |
9700 | PyObject * obj2 = 0 ; | |
9701 | char *kwnames[] = { | |
9702 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9703 | }; | |
9704 | ||
9705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9708 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9709 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9710 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9711 | if (PyErr_Occurred()) SWIG_fail; |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9715 | ||
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
c32bde28 | 9719 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9720 | return resultobj; |
9721 | fail: | |
9722 | return NULL; | |
9723 | } | |
9724 | ||
9725 | ||
c32bde28 | 9726 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9727 | PyObject *resultobj; |
9728 | wxImage *arg1 = (wxImage *) 0 ; | |
9729 | int arg2 ; | |
9730 | int arg3 ; | |
9731 | unsigned char arg4 ; | |
9732 | PyObject * obj0 = 0 ; | |
9733 | PyObject * obj1 = 0 ; | |
9734 | PyObject * obj2 = 0 ; | |
9735 | PyObject * obj3 = 0 ; | |
9736 | char *kwnames[] = { | |
9737 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9738 | }; | |
9739 | ||
9740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9743 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9744 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9745 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9746 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9747 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9748 | if (PyErr_Occurred()) SWIG_fail; |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9752 | ||
9753 | wxPyEndAllowThreads(__tstate); | |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
9755 | } | |
9756 | Py_INCREF(Py_None); resultobj = Py_None; | |
9757 | return resultobj; | |
9758 | fail: | |
9759 | return NULL; | |
9760 | } | |
9761 | ||
9762 | ||
c32bde28 | 9763 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9764 | PyObject *resultobj; |
9765 | wxImage *arg1 = (wxImage *) 0 ; | |
9766 | int arg2 ; | |
9767 | int arg3 ; | |
9768 | unsigned char result; | |
9769 | PyObject * obj0 = 0 ; | |
9770 | PyObject * obj1 = 0 ; | |
9771 | PyObject * obj2 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9779 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9780 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9781 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9782 | if (PyErr_Occurred()) SWIG_fail; |
9783 | { | |
9784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9785 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9786 | ||
9787 | wxPyEndAllowThreads(__tstate); | |
9788 | if (PyErr_Occurred()) SWIG_fail; | |
9789 | } | |
c32bde28 | 9790 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9791 | return resultobj; |
9792 | fail: | |
9793 | return NULL; | |
9794 | } | |
9795 | ||
9796 | ||
c32bde28 | 9797 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9798 | PyObject *resultobj; |
9799 | wxImage *arg1 = (wxImage *) 0 ; | |
9800 | bool result; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | char *kwnames[] = { | |
9803 | (char *) "self", NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9809 | { | |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9811 | result = (bool)(arg1)->HasAlpha(); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
9816 | { | |
9817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9818 | } | |
9819 | return resultobj; | |
9820 | fail: | |
9821 | return NULL; | |
9822 | } | |
9823 | ||
9824 | ||
c32bde28 | 9825 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9826 | PyObject *resultobj; |
9827 | wxImage *arg1 = (wxImage *) 0 ; | |
9828 | byte *arg2 = (byte *) 0 ; | |
9829 | byte *arg3 = (byte *) 0 ; | |
9830 | byte *arg4 = (byte *) 0 ; | |
9831 | byte arg5 = (byte) 0 ; | |
9832 | byte arg6 = (byte) 0 ; | |
9833 | byte arg7 = (byte) 0 ; | |
9834 | bool result; | |
9835 | byte temp2 ; | |
c32bde28 | 9836 | int res2 = 0 ; |
d55e5bfc | 9837 | byte temp3 ; |
c32bde28 | 9838 | int res3 = 0 ; |
d55e5bfc | 9839 | byte temp4 ; |
c32bde28 | 9840 | int res4 = 0 ; |
d55e5bfc RD |
9841 | PyObject * obj0 = 0 ; |
9842 | PyObject * obj1 = 0 ; | |
9843 | PyObject * obj2 = 0 ; | |
9844 | PyObject * obj3 = 0 ; | |
9845 | char *kwnames[] = { | |
9846 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9847 | }; | |
9848 | ||
c32bde28 RD |
9849 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9850 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9851 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9855 | if (obj1) { | |
c32bde28 | 9856 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
9857 | if (PyErr_Occurred()) SWIG_fail; |
9858 | } | |
9859 | if (obj2) { | |
c32bde28 | 9860 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
9861 | if (PyErr_Occurred()) SWIG_fail; |
9862 | } | |
9863 | if (obj3) { | |
c32bde28 | 9864 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9865 | if (PyErr_Occurred()) SWIG_fail; |
9866 | } | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9870 | ||
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) SWIG_fail; | |
9873 | } | |
9874 | { | |
9875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9876 | } | |
c32bde28 RD |
9877 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9878 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9879 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9880 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9881 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9882 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
9883 | return resultobj; |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
c32bde28 | 9889 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9890 | PyObject *resultobj; |
9891 | wxImage *arg1 = (wxImage *) 0 ; | |
9892 | byte arg2 = (byte) 128 ; | |
9893 | bool result; | |
9894 | PyObject * obj0 = 0 ; | |
9895 | PyObject * obj1 = 0 ; | |
9896 | char *kwnames[] = { | |
9897 | (char *) "self",(char *) "threshold", NULL | |
9898 | }; | |
9899 | ||
9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9903 | if (obj1) { | |
c32bde28 | 9904 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9905 | if (PyErr_Occurred()) SWIG_fail; |
9906 | } | |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | { | |
9915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9916 | } | |
9917 | return resultobj; | |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
8fb0e70a RD |
9923 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9924 | PyObject *resultobj; | |
9925 | wxImage *arg1 = (wxImage *) 0 ; | |
9926 | unsigned char arg2 ; | |
9927 | unsigned char arg3 ; | |
9928 | unsigned char arg4 ; | |
9929 | bool result; | |
9930 | PyObject * obj0 = 0 ; | |
9931 | PyObject * obj1 = 0 ; | |
9932 | PyObject * obj2 = 0 ; | |
9933 | PyObject * obj3 = 0 ; | |
9934 | char *kwnames[] = { | |
9935 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9936 | }; | |
9937 | ||
9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9941 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); | |
9942 | if (PyErr_Occurred()) SWIG_fail; | |
9943 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); | |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
9945 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); | |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | { | |
9955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9956 | } | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
c32bde28 | 9963 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9964 | PyObject *resultobj; |
9965 | wxImage *arg1 = (wxImage *) 0 ; | |
9966 | wxImage *arg2 = 0 ; | |
9967 | byte arg3 ; | |
9968 | byte arg4 ; | |
9969 | byte arg5 ; | |
9970 | bool result; | |
9971 | PyObject * obj0 = 0 ; | |
9972 | PyObject * obj1 = 0 ; | |
9973 | PyObject * obj2 = 0 ; | |
9974 | PyObject * obj3 = 0 ; | |
9975 | PyObject * obj4 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9983 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9985 | SWIG_fail; | |
9986 | if (arg2 == NULL) { | |
9987 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9988 | SWIG_fail; | |
9989 | } | |
c32bde28 | 9990 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 9991 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9992 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9993 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9994 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc RD |
9995 | if (PyErr_Occurred()) SWIG_fail; |
9996 | { | |
9997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9998 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9999 | ||
10000 | wxPyEndAllowThreads(__tstate); | |
10001 | if (PyErr_Occurred()) SWIG_fail; | |
10002 | } | |
10003 | { | |
10004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10005 | } | |
10006 | return resultobj; | |
10007 | fail: | |
10008 | return NULL; | |
10009 | } | |
10010 | ||
10011 | ||
c32bde28 | 10012 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10013 | PyObject *resultobj; |
10014 | wxString *arg1 = 0 ; | |
10015 | bool result; | |
ae8162c8 | 10016 | bool temp1 = false ; |
d55e5bfc RD |
10017 | PyObject * obj0 = 0 ; |
10018 | char *kwnames[] = { | |
10019 | (char *) "name", NULL | |
10020 | }; | |
10021 | ||
10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
10023 | { | |
10024 | arg1 = wxString_in_helper(obj0); | |
10025 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10026 | temp1 = true; |
d55e5bfc RD |
10027 | } |
10028 | { | |
10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10030 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
10035 | { | |
10036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10037 | } | |
10038 | { | |
10039 | if (temp1) | |
10040 | delete arg1; | |
10041 | } | |
10042 | return resultobj; | |
10043 | fail: | |
10044 | { | |
10045 | if (temp1) | |
10046 | delete arg1; | |
10047 | } | |
10048 | return NULL; | |
10049 | } | |
10050 | ||
10051 | ||
c32bde28 | 10052 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10053 | PyObject *resultobj; |
10054 | wxString *arg1 = 0 ; | |
10055 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10056 | int result; | |
ae8162c8 | 10057 | bool temp1 = false ; |
d55e5bfc RD |
10058 | PyObject * obj0 = 0 ; |
10059 | PyObject * obj1 = 0 ; | |
10060 | char *kwnames[] = { | |
10061 | (char *) "name",(char *) "type", NULL | |
10062 | }; | |
10063 | ||
10064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
10065 | { | |
10066 | arg1 = wxString_in_helper(obj0); | |
10067 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10068 | temp1 = true; |
d55e5bfc RD |
10069 | } |
10070 | if (obj1) { | |
c32bde28 | 10071 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
10072 | if (PyErr_Occurred()) SWIG_fail; |
10073 | } | |
10074 | { | |
10075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10076 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
10077 | ||
10078 | wxPyEndAllowThreads(__tstate); | |
10079 | if (PyErr_Occurred()) SWIG_fail; | |
10080 | } | |
c32bde28 | 10081 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10082 | { |
10083 | if (temp1) | |
10084 | delete arg1; | |
10085 | } | |
10086 | return resultobj; | |
10087 | fail: | |
10088 | { | |
10089 | if (temp1) | |
10090 | delete arg1; | |
10091 | } | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
c32bde28 | 10096 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10097 | PyObject *resultobj; |
10098 | wxImage *arg1 = (wxImage *) 0 ; | |
10099 | wxString *arg2 = 0 ; | |
10100 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10101 | int arg4 = (int) -1 ; | |
10102 | bool result; | |
ae8162c8 | 10103 | bool temp2 = false ; |
d55e5bfc RD |
10104 | PyObject * obj0 = 0 ; |
10105 | PyObject * obj1 = 0 ; | |
10106 | PyObject * obj2 = 0 ; | |
10107 | PyObject * obj3 = 0 ; | |
10108 | char *kwnames[] = { | |
10109 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
10110 | }; | |
10111 | ||
10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10115 | { | |
10116 | arg2 = wxString_in_helper(obj1); | |
10117 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10118 | temp2 = true; |
d55e5bfc RD |
10119 | } |
10120 | if (obj2) { | |
c32bde28 | 10121 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10122 | if (PyErr_Occurred()) SWIG_fail; |
10123 | } | |
10124 | if (obj3) { | |
c32bde28 | 10125 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10126 | if (PyErr_Occurred()) SWIG_fail; |
10127 | } | |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | { | |
10136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10137 | } | |
10138 | { | |
10139 | if (temp2) | |
10140 | delete arg2; | |
10141 | } | |
10142 | return resultobj; | |
10143 | fail: | |
10144 | { | |
10145 | if (temp2) | |
10146 | delete arg2; | |
10147 | } | |
10148 | return NULL; | |
10149 | } | |
10150 | ||
10151 | ||
c32bde28 | 10152 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10153 | PyObject *resultobj; |
10154 | wxImage *arg1 = (wxImage *) 0 ; | |
10155 | wxString *arg2 = 0 ; | |
10156 | wxString *arg3 = 0 ; | |
10157 | int arg4 = (int) -1 ; | |
10158 | bool result; | |
ae8162c8 RD |
10159 | bool temp2 = false ; |
10160 | bool temp3 = false ; | |
d55e5bfc RD |
10161 | PyObject * obj0 = 0 ; |
10162 | PyObject * obj1 = 0 ; | |
10163 | PyObject * obj2 = 0 ; | |
10164 | PyObject * obj3 = 0 ; | |
10165 | char *kwnames[] = { | |
10166 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10167 | }; | |
10168 | ||
10169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10172 | { | |
10173 | arg2 = wxString_in_helper(obj1); | |
10174 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10175 | temp2 = true; |
d55e5bfc RD |
10176 | } |
10177 | { | |
10178 | arg3 = wxString_in_helper(obj2); | |
10179 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10180 | temp3 = true; |
d55e5bfc RD |
10181 | } |
10182 | if (obj3) { | |
c32bde28 | 10183 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10184 | if (PyErr_Occurred()) SWIG_fail; |
10185 | } | |
10186 | { | |
10187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10188 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
10189 | ||
10190 | wxPyEndAllowThreads(__tstate); | |
10191 | if (PyErr_Occurred()) SWIG_fail; | |
10192 | } | |
10193 | { | |
10194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10195 | } | |
10196 | { | |
10197 | if (temp2) | |
10198 | delete arg2; | |
10199 | } | |
10200 | { | |
10201 | if (temp3) | |
10202 | delete arg3; | |
10203 | } | |
10204 | return resultobj; | |
10205 | fail: | |
10206 | { | |
10207 | if (temp2) | |
10208 | delete arg2; | |
10209 | } | |
10210 | { | |
10211 | if (temp3) | |
10212 | delete arg3; | |
10213 | } | |
10214 | return NULL; | |
10215 | } | |
10216 | ||
10217 | ||
c32bde28 | 10218 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10219 | PyObject *resultobj; |
10220 | wxImage *arg1 = (wxImage *) 0 ; | |
10221 | wxString *arg2 = 0 ; | |
10222 | int arg3 ; | |
10223 | bool result; | |
ae8162c8 | 10224 | bool temp2 = false ; |
d55e5bfc RD |
10225 | PyObject * obj0 = 0 ; |
10226 | PyObject * obj1 = 0 ; | |
10227 | PyObject * obj2 = 0 ; | |
10228 | char *kwnames[] = { | |
10229 | (char *) "self",(char *) "name",(char *) "type", NULL | |
10230 | }; | |
10231 | ||
10232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10235 | { | |
10236 | arg2 = wxString_in_helper(obj1); | |
10237 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10238 | temp2 = true; |
d55e5bfc | 10239 | } |
c32bde28 | 10240 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10241 | if (PyErr_Occurred()) SWIG_fail; |
10242 | { | |
10243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10244 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10245 | ||
10246 | wxPyEndAllowThreads(__tstate); | |
10247 | if (PyErr_Occurred()) SWIG_fail; | |
10248 | } | |
10249 | { | |
10250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10251 | } | |
10252 | { | |
10253 | if (temp2) | |
10254 | delete arg2; | |
10255 | } | |
10256 | return resultobj; | |
10257 | fail: | |
10258 | { | |
10259 | if (temp2) | |
10260 | delete arg2; | |
10261 | } | |
10262 | return NULL; | |
10263 | } | |
10264 | ||
10265 | ||
c32bde28 | 10266 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10267 | PyObject *resultobj; |
10268 | wxImage *arg1 = (wxImage *) 0 ; | |
10269 | wxString *arg2 = 0 ; | |
10270 | wxString *arg3 = 0 ; | |
10271 | bool result; | |
ae8162c8 RD |
10272 | bool temp2 = false ; |
10273 | bool temp3 = false ; | |
d55e5bfc RD |
10274 | PyObject * obj0 = 0 ; |
10275 | PyObject * obj1 = 0 ; | |
10276 | PyObject * obj2 = 0 ; | |
10277 | char *kwnames[] = { | |
10278 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10279 | }; | |
10280 | ||
10281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10284 | { | |
10285 | arg2 = wxString_in_helper(obj1); | |
10286 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10287 | temp2 = true; |
d55e5bfc RD |
10288 | } |
10289 | { | |
10290 | arg3 = wxString_in_helper(obj2); | |
10291 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10292 | temp3 = true; |
d55e5bfc RD |
10293 | } |
10294 | { | |
10295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10296 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10297 | ||
10298 | wxPyEndAllowThreads(__tstate); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | { | |
10302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10303 | } | |
10304 | { | |
10305 | if (temp2) | |
10306 | delete arg2; | |
10307 | } | |
10308 | { | |
10309 | if (temp3) | |
10310 | delete arg3; | |
10311 | } | |
10312 | return resultobj; | |
10313 | fail: | |
10314 | { | |
10315 | if (temp2) | |
10316 | delete arg2; | |
10317 | } | |
10318 | { | |
10319 | if (temp3) | |
10320 | delete arg3; | |
10321 | } | |
10322 | return NULL; | |
10323 | } | |
10324 | ||
10325 | ||
c32bde28 | 10326 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10327 | PyObject *resultobj; |
10328 | wxInputStream *arg1 = 0 ; | |
10329 | bool result; | |
10330 | wxPyInputStream *temp1 ; | |
10331 | bool created1 ; | |
10332 | PyObject * obj0 = 0 ; | |
10333 | char *kwnames[] = { | |
10334 | (char *) "stream", NULL | |
10335 | }; | |
10336 | ||
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10338 | { | |
10339 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10340 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10341 | created1 = false; |
d55e5bfc RD |
10342 | } else { |
10343 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10344 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10345 | if (arg1 == NULL) { |
10346 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10347 | SWIG_fail; | |
10348 | } | |
ae8162c8 | 10349 | created1 = true; |
d55e5bfc RD |
10350 | } |
10351 | } | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | result = (bool)wxImage::CanRead(*arg1); | |
10355 | ||
10356 | wxPyEndAllowThreads(__tstate); | |
10357 | if (PyErr_Occurred()) SWIG_fail; | |
10358 | } | |
10359 | { | |
10360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10361 | } | |
10362 | { | |
10363 | if (created1) | |
10364 | delete arg1; | |
10365 | } | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | { | |
10369 | if (created1) | |
10370 | delete arg1; | |
10371 | } | |
10372 | return NULL; | |
10373 | } | |
10374 | ||
10375 | ||
c32bde28 | 10376 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10377 | PyObject *resultobj; |
10378 | wxImage *arg1 = (wxImage *) 0 ; | |
10379 | wxInputStream *arg2 = 0 ; | |
10380 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10381 | int arg4 = (int) -1 ; | |
10382 | bool result; | |
10383 | wxPyInputStream *temp2 ; | |
10384 | bool created2 ; | |
10385 | PyObject * obj0 = 0 ; | |
10386 | PyObject * obj1 = 0 ; | |
10387 | PyObject * obj2 = 0 ; | |
10388 | PyObject * obj3 = 0 ; | |
10389 | char *kwnames[] = { | |
10390 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10391 | }; | |
10392 | ||
10393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10396 | { | |
10397 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10398 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10399 | created2 = false; |
d55e5bfc RD |
10400 | } else { |
10401 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10402 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10403 | if (arg2 == NULL) { |
10404 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10405 | SWIG_fail; | |
10406 | } | |
ae8162c8 | 10407 | created2 = true; |
d55e5bfc RD |
10408 | } |
10409 | } | |
10410 | if (obj2) { | |
c32bde28 | 10411 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10412 | if (PyErr_Occurred()) SWIG_fail; |
10413 | } | |
10414 | if (obj3) { | |
c32bde28 | 10415 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10416 | if (PyErr_Occurred()) SWIG_fail; |
10417 | } | |
10418 | { | |
10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10420 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10421 | ||
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
10425 | { | |
10426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10427 | } | |
10428 | { | |
10429 | if (created2) | |
10430 | delete arg2; | |
10431 | } | |
10432 | return resultobj; | |
10433 | fail: | |
10434 | { | |
10435 | if (created2) | |
10436 | delete arg2; | |
10437 | } | |
10438 | return NULL; | |
10439 | } | |
10440 | ||
10441 | ||
c32bde28 | 10442 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10443 | PyObject *resultobj; |
10444 | wxImage *arg1 = (wxImage *) 0 ; | |
10445 | wxInputStream *arg2 = 0 ; | |
10446 | wxString *arg3 = 0 ; | |
10447 | int arg4 = (int) -1 ; | |
10448 | bool result; | |
10449 | wxPyInputStream *temp2 ; | |
10450 | bool created2 ; | |
ae8162c8 | 10451 | bool temp3 = false ; |
d55e5bfc RD |
10452 | PyObject * obj0 = 0 ; |
10453 | PyObject * obj1 = 0 ; | |
10454 | PyObject * obj2 = 0 ; | |
10455 | PyObject * obj3 = 0 ; | |
10456 | char *kwnames[] = { | |
10457 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10458 | }; | |
10459 | ||
10460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10463 | { | |
10464 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10465 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10466 | created2 = false; |
d55e5bfc RD |
10467 | } else { |
10468 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10469 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10470 | if (arg2 == NULL) { |
10471 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10472 | SWIG_fail; | |
10473 | } | |
ae8162c8 | 10474 | created2 = true; |
d55e5bfc RD |
10475 | } |
10476 | } | |
10477 | { | |
10478 | arg3 = wxString_in_helper(obj2); | |
10479 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10480 | temp3 = true; |
d55e5bfc RD |
10481 | } |
10482 | if (obj3) { | |
c32bde28 | 10483 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10484 | if (PyErr_Occurred()) SWIG_fail; |
10485 | } | |
10486 | { | |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10489 | ||
10490 | wxPyEndAllowThreads(__tstate); | |
10491 | if (PyErr_Occurred()) SWIG_fail; | |
10492 | } | |
10493 | { | |
10494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10495 | } | |
10496 | { | |
10497 | if (created2) | |
10498 | delete arg2; | |
10499 | } | |
10500 | { | |
10501 | if (temp3) | |
10502 | delete arg3; | |
10503 | } | |
10504 | return resultobj; | |
10505 | fail: | |
10506 | { | |
10507 | if (created2) | |
10508 | delete arg2; | |
10509 | } | |
10510 | { | |
10511 | if (temp3) | |
10512 | delete arg3; | |
10513 | } | |
10514 | return NULL; | |
10515 | } | |
10516 | ||
10517 | ||
c32bde28 | 10518 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10519 | PyObject *resultobj; |
10520 | wxImage *arg1 = (wxImage *) 0 ; | |
10521 | bool result; | |
10522 | PyObject * obj0 = 0 ; | |
10523 | char *kwnames[] = { | |
10524 | (char *) "self", NULL | |
10525 | }; | |
10526 | ||
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10530 | { | |
10531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10532 | result = (bool)(arg1)->Ok(); | |
10533 | ||
10534 | wxPyEndAllowThreads(__tstate); | |
10535 | if (PyErr_Occurred()) SWIG_fail; | |
10536 | } | |
10537 | { | |
10538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10539 | } | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | return NULL; | |
10543 | } | |
10544 | ||
10545 | ||
c32bde28 | 10546 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10547 | PyObject *resultobj; |
10548 | wxImage *arg1 = (wxImage *) 0 ; | |
10549 | int result; | |
10550 | PyObject * obj0 = 0 ; | |
10551 | char *kwnames[] = { | |
10552 | (char *) "self", NULL | |
10553 | }; | |
10554 | ||
10555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10558 | { | |
10559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10560 | result = (int)(arg1)->GetWidth(); | |
10561 | ||
10562 | wxPyEndAllowThreads(__tstate); | |
10563 | if (PyErr_Occurred()) SWIG_fail; | |
10564 | } | |
c32bde28 | 10565 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10566 | return resultobj; |
10567 | fail: | |
10568 | return NULL; | |
10569 | } | |
10570 | ||
10571 | ||
c32bde28 | 10572 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10573 | PyObject *resultobj; |
10574 | wxImage *arg1 = (wxImage *) 0 ; | |
10575 | int result; | |
10576 | PyObject * obj0 = 0 ; | |
10577 | char *kwnames[] = { | |
10578 | (char *) "self", NULL | |
10579 | }; | |
10580 | ||
10581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10584 | { | |
10585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10586 | result = (int)(arg1)->GetHeight(); | |
10587 | ||
10588 | wxPyEndAllowThreads(__tstate); | |
10589 | if (PyErr_Occurred()) SWIG_fail; | |
10590 | } | |
c32bde28 | 10591 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10592 | return resultobj; |
10593 | fail: | |
10594 | return NULL; | |
10595 | } | |
10596 | ||
10597 | ||
c32bde28 | 10598 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10599 | PyObject *resultobj; |
10600 | wxImage *arg1 = (wxImage *) 0 ; | |
10601 | wxSize result; | |
10602 | PyObject * obj0 = 0 ; | |
10603 | char *kwnames[] = { | |
10604 | (char *) "self", NULL | |
10605 | }; | |
10606 | ||
10607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10610 | { | |
10611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10612 | result = wxImage_GetSize(arg1); | |
10613 | ||
10614 | wxPyEndAllowThreads(__tstate); | |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
10616 | } | |
10617 | { | |
10618 | wxSize * resultptr; | |
10619 | resultptr = new wxSize((wxSize &) result); | |
10620 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10621 | } | |
10622 | return resultobj; | |
10623 | fail: | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
c32bde28 | 10628 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10629 | PyObject *resultobj; |
10630 | wxImage *arg1 = (wxImage *) 0 ; | |
10631 | wxRect *arg2 = 0 ; | |
10632 | SwigValueWrapper< wxImage > result; | |
10633 | wxRect temp2 ; | |
10634 | PyObject * obj0 = 0 ; | |
10635 | PyObject * obj1 = 0 ; | |
10636 | char *kwnames[] = { | |
10637 | (char *) "self",(char *) "rect", NULL | |
10638 | }; | |
10639 | ||
10640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10643 | { | |
10644 | arg2 = &temp2; | |
10645 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10646 | } | |
10647 | { | |
10648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10649 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10650 | ||
10651 | wxPyEndAllowThreads(__tstate); | |
10652 | if (PyErr_Occurred()) SWIG_fail; | |
10653 | } | |
10654 | { | |
10655 | wxImage * resultptr; | |
10656 | resultptr = new wxImage((wxImage &) result); | |
10657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10658 | } | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
c32bde28 | 10665 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10666 | PyObject *resultobj; |
10667 | wxImage *arg1 = (wxImage *) 0 ; | |
10668 | SwigValueWrapper< wxImage > result; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | char *kwnames[] = { | |
10671 | (char *) "self", NULL | |
10672 | }; | |
10673 | ||
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10677 | { | |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10679 | result = (arg1)->Copy(); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
10683 | } | |
10684 | { | |
10685 | wxImage * resultptr; | |
10686 | resultptr = new wxImage((wxImage &) result); | |
10687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10688 | } | |
10689 | return resultobj; | |
10690 | fail: | |
10691 | return NULL; | |
10692 | } | |
10693 | ||
10694 | ||
c32bde28 | 10695 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10696 | PyObject *resultobj; |
10697 | wxImage *arg1 = (wxImage *) 0 ; | |
10698 | wxImage *arg2 = 0 ; | |
10699 | int arg3 ; | |
10700 | int arg4 ; | |
10701 | PyObject * obj0 = 0 ; | |
10702 | PyObject * obj1 = 0 ; | |
10703 | PyObject * obj2 = 0 ; | |
10704 | PyObject * obj3 = 0 ; | |
10705 | char *kwnames[] = { | |
10706 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10707 | }; | |
10708 | ||
10709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10714 | SWIG_fail; | |
10715 | if (arg2 == NULL) { | |
10716 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10717 | SWIG_fail; | |
10718 | } | |
c32bde28 | 10719 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10720 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10721 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10722 | if (PyErr_Occurred()) SWIG_fail; |
10723 | { | |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10725 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | Py_INCREF(Py_None); resultobj = Py_None; | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
c32bde28 | 10737 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10738 | PyObject *resultobj; |
10739 | wxImage *arg1 = (wxImage *) 0 ; | |
10740 | PyObject *result; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | result = (PyObject *)wxImage_GetData(arg1); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | resultobj = result; | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
c32bde28 | 10763 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10764 | PyObject *resultobj; |
10765 | wxImage *arg1 = (wxImage *) 0 ; | |
10766 | PyObject *arg2 = (PyObject *) 0 ; | |
10767 | PyObject * obj0 = 0 ; | |
10768 | PyObject * obj1 = 0 ; | |
10769 | char *kwnames[] = { | |
10770 | (char *) "self",(char *) "data", NULL | |
10771 | }; | |
10772 | ||
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10776 | arg2 = obj1; | |
10777 | { | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10779 | wxImage_SetData(arg1,arg2); | |
10780 | ||
10781 | wxPyEndAllowThreads(__tstate); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
10784 | Py_INCREF(Py_None); resultobj = Py_None; | |
10785 | return resultobj; | |
10786 | fail: | |
10787 | return NULL; | |
10788 | } | |
10789 | ||
10790 | ||
c32bde28 | 10791 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10792 | PyObject *resultobj; |
10793 | wxImage *arg1 = (wxImage *) 0 ; | |
10794 | PyObject *result; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "self", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10803 | { | |
10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10805 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10806 | ||
10807 | wxPyEndAllowThreads(__tstate); | |
10808 | if (PyErr_Occurred()) SWIG_fail; | |
10809 | } | |
10810 | resultobj = result; | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
c32bde28 | 10817 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10818 | PyObject *resultobj; |
10819 | wxImage *arg1 = (wxImage *) 0 ; | |
10820 | PyObject *arg2 = (PyObject *) 0 ; | |
10821 | PyObject * obj0 = 0 ; | |
10822 | PyObject * obj1 = 0 ; | |
10823 | char *kwnames[] = { | |
10824 | (char *) "self",(char *) "data", NULL | |
10825 | }; | |
10826 | ||
10827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10830 | arg2 = obj1; | |
10831 | { | |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | wxImage_SetDataBuffer(arg1,arg2); | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
10838 | Py_INCREF(Py_None); resultobj = Py_None; | |
10839 | return resultobj; | |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
c32bde28 | 10845 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10846 | PyObject *resultobj; |
10847 | wxImage *arg1 = (wxImage *) 0 ; | |
10848 | PyObject *result; | |
10849 | PyObject * obj0 = 0 ; | |
10850 | char *kwnames[] = { | |
10851 | (char *) "self", NULL | |
10852 | }; | |
10853 | ||
10854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10857 | { | |
10858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10859 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10860 | ||
10861 | wxPyEndAllowThreads(__tstate); | |
10862 | if (PyErr_Occurred()) SWIG_fail; | |
10863 | } | |
10864 | resultobj = result; | |
10865 | return resultobj; | |
10866 | fail: | |
10867 | return NULL; | |
10868 | } | |
10869 | ||
10870 | ||
c32bde28 | 10871 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10872 | PyObject *resultobj; |
10873 | wxImage *arg1 = (wxImage *) 0 ; | |
10874 | PyObject *arg2 = (PyObject *) 0 ; | |
10875 | PyObject * obj0 = 0 ; | |
10876 | PyObject * obj1 = 0 ; | |
10877 | char *kwnames[] = { | |
10878 | (char *) "self",(char *) "data", NULL | |
10879 | }; | |
10880 | ||
10881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10884 | arg2 = obj1; | |
10885 | { | |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | wxImage_SetAlphaData(arg1,arg2); | |
10888 | ||
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
10892 | Py_INCREF(Py_None); resultobj = Py_None; | |
10893 | return resultobj; | |
10894 | fail: | |
10895 | return NULL; | |
10896 | } | |
10897 | ||
10898 | ||
c32bde28 | 10899 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10900 | PyObject *resultobj; |
10901 | wxImage *arg1 = (wxImage *) 0 ; | |
10902 | PyObject *result; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10911 | { | |
10912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10913 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10914 | ||
10915 | wxPyEndAllowThreads(__tstate); | |
10916 | if (PyErr_Occurred()) SWIG_fail; | |
10917 | } | |
10918 | resultobj = result; | |
10919 | return resultobj; | |
10920 | fail: | |
10921 | return NULL; | |
10922 | } | |
10923 | ||
10924 | ||
c32bde28 | 10925 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10926 | PyObject *resultobj; |
10927 | wxImage *arg1 = (wxImage *) 0 ; | |
10928 | PyObject *arg2 = (PyObject *) 0 ; | |
10929 | PyObject * obj0 = 0 ; | |
10930 | PyObject * obj1 = 0 ; | |
10931 | char *kwnames[] = { | |
10932 | (char *) "self",(char *) "data", NULL | |
10933 | }; | |
10934 | ||
10935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10938 | arg2 = obj1; | |
10939 | { | |
10940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10941 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10942 | ||
10943 | wxPyEndAllowThreads(__tstate); | |
10944 | if (PyErr_Occurred()) SWIG_fail; | |
10945 | } | |
10946 | Py_INCREF(Py_None); resultobj = Py_None; | |
10947 | return resultobj; | |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
c32bde28 | 10953 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10954 | PyObject *resultobj; |
10955 | wxImage *arg1 = (wxImage *) 0 ; | |
10956 | unsigned char arg2 ; | |
10957 | unsigned char arg3 ; | |
10958 | unsigned char arg4 ; | |
10959 | PyObject * obj0 = 0 ; | |
10960 | PyObject * obj1 = 0 ; | |
10961 | PyObject * obj2 = 0 ; | |
10962 | PyObject * obj3 = 0 ; | |
10963 | char *kwnames[] = { | |
10964 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10965 | }; | |
10966 | ||
10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10970 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 10971 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10972 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 10973 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10974 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
10975 | if (PyErr_Occurred()) SWIG_fail; |
10976 | { | |
10977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10978 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10979 | ||
10980 | wxPyEndAllowThreads(__tstate); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
10983 | Py_INCREF(Py_None); resultobj = Py_None; | |
10984 | return resultobj; | |
10985 | fail: | |
10986 | return NULL; | |
10987 | } | |
10988 | ||
10989 | ||
c32bde28 | 10990 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10991 | PyObject *resultobj; |
10992 | wxImage *arg1 = (wxImage *) 0 ; | |
10993 | unsigned char result; | |
10994 | PyObject * obj0 = 0 ; | |
10995 | char *kwnames[] = { | |
10996 | (char *) "self", NULL | |
10997 | }; | |
10998 | ||
10999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
11000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11002 | { | |
11003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11004 | result = (unsigned char)(arg1)->GetMaskRed(); | |
11005 | ||
11006 | wxPyEndAllowThreads(__tstate); | |
11007 | if (PyErr_Occurred()) SWIG_fail; | |
11008 | } | |
c32bde28 | 11009 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
11010 | return resultobj; |
11011 | fail: | |
11012 | return NULL; | |
11013 | } | |
11014 | ||
11015 | ||
c32bde28 | 11016 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11017 | PyObject *resultobj; |
11018 | wxImage *arg1 = (wxImage *) 0 ; | |
11019 | unsigned char result; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | char *kwnames[] = { | |
11022 | (char *) "self", NULL | |
11023 | }; | |
11024 | ||
11025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
11026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11028 | { | |
11029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11030 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
11031 | ||
11032 | wxPyEndAllowThreads(__tstate); | |
11033 | if (PyErr_Occurred()) SWIG_fail; | |
11034 | } | |
c32bde28 | 11035 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
11036 | return resultobj; |
11037 | fail: | |
11038 | return NULL; | |
11039 | } | |
11040 | ||
11041 | ||
c32bde28 | 11042 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11043 | PyObject *resultobj; |
11044 | wxImage *arg1 = (wxImage *) 0 ; | |
11045 | unsigned char result; | |
11046 | PyObject * obj0 = 0 ; | |
11047 | char *kwnames[] = { | |
11048 | (char *) "self", NULL | |
11049 | }; | |
11050 | ||
11051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
11052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11054 | { | |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
c32bde28 | 11061 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
11062 | return resultobj; |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
c32bde28 | 11068 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11069 | PyObject *resultobj; |
11070 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11071 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11072 | PyObject * obj0 = 0 ; |
11073 | PyObject * obj1 = 0 ; | |
11074 | char *kwnames[] = { | |
11075 | (char *) "self",(char *) "mask", NULL | |
11076 | }; | |
11077 | ||
11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11081 | if (obj1) { | |
c32bde28 | 11082 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11083 | if (PyErr_Occurred()) SWIG_fail; |
11084 | } | |
11085 | { | |
11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11087 | (arg1)->SetMask(arg2); | |
11088 | ||
11089 | wxPyEndAllowThreads(__tstate); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | } | |
11092 | Py_INCREF(Py_None); resultobj = Py_None; | |
11093 | return resultobj; | |
11094 | fail: | |
11095 | return NULL; | |
11096 | } | |
11097 | ||
11098 | ||
c32bde28 | 11099 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11100 | PyObject *resultobj; |
11101 | wxImage *arg1 = (wxImage *) 0 ; | |
11102 | bool result; | |
11103 | PyObject * obj0 = 0 ; | |
11104 | char *kwnames[] = { | |
11105 | (char *) "self", NULL | |
11106 | }; | |
11107 | ||
11108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
11109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11111 | { | |
11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11113 | result = (bool)(arg1)->HasMask(); | |
11114 | ||
11115 | wxPyEndAllowThreads(__tstate); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | { | |
11119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11120 | } | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | return NULL; | |
11124 | } | |
11125 | ||
11126 | ||
c32bde28 | 11127 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11128 | PyObject *resultobj; |
11129 | wxImage *arg1 = (wxImage *) 0 ; | |
11130 | double arg2 ; | |
11131 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 11132 | bool arg4 = (bool) true ; |
d55e5bfc RD |
11133 | wxPoint *arg5 = (wxPoint *) NULL ; |
11134 | SwigValueWrapper< wxImage > result; | |
11135 | wxPoint temp3 ; | |
11136 | PyObject * obj0 = 0 ; | |
11137 | PyObject * obj1 = 0 ; | |
11138 | PyObject * obj2 = 0 ; | |
11139 | PyObject * obj3 = 0 ; | |
11140 | PyObject * obj4 = 0 ; | |
11141 | char *kwnames[] = { | |
11142 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
11143 | }; | |
11144 | ||
11145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11148 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
11149 | if (PyErr_Occurred()) SWIG_fail; |
11150 | { | |
11151 | arg3 = &temp3; | |
11152 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11153 | } | |
11154 | if (obj3) { | |
c32bde28 | 11155 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
11156 | if (PyErr_Occurred()) SWIG_fail; |
11157 | } | |
11158 | if (obj4) { | |
11159 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
11160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11161 | } | |
11162 | { | |
11163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11164 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
11165 | ||
11166 | wxPyEndAllowThreads(__tstate); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | } | |
11169 | { | |
11170 | wxImage * resultptr; | |
11171 | resultptr = new wxImage((wxImage &) result); | |
11172 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11173 | } | |
11174 | return resultobj; | |
11175 | fail: | |
11176 | return NULL; | |
11177 | } | |
11178 | ||
11179 | ||
c32bde28 | 11180 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11181 | PyObject *resultobj; |
11182 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11183 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11184 | SwigValueWrapper< wxImage > result; |
11185 | PyObject * obj0 = 0 ; | |
11186 | PyObject * obj1 = 0 ; | |
11187 | char *kwnames[] = { | |
11188 | (char *) "self",(char *) "clockwise", NULL | |
11189 | }; | |
11190 | ||
11191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
11192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11194 | if (obj1) { | |
c32bde28 | 11195 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11196 | if (PyErr_Occurred()) SWIG_fail; |
11197 | } | |
11198 | { | |
11199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11200 | result = (arg1)->Rotate90(arg2); | |
11201 | ||
11202 | wxPyEndAllowThreads(__tstate); | |
11203 | if (PyErr_Occurred()) SWIG_fail; | |
11204 | } | |
11205 | { | |
11206 | wxImage * resultptr; | |
11207 | resultptr = new wxImage((wxImage &) result); | |
11208 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11209 | } | |
11210 | return resultobj; | |
11211 | fail: | |
11212 | return NULL; | |
11213 | } | |
11214 | ||
11215 | ||
c32bde28 | 11216 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11217 | PyObject *resultobj; |
11218 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11219 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11220 | SwigValueWrapper< wxImage > result; |
11221 | PyObject * obj0 = 0 ; | |
11222 | PyObject * obj1 = 0 ; | |
11223 | char *kwnames[] = { | |
11224 | (char *) "self",(char *) "horizontally", NULL | |
11225 | }; | |
11226 | ||
11227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
11228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11230 | if (obj1) { | |
c32bde28 | 11231 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11232 | if (PyErr_Occurred()) SWIG_fail; |
11233 | } | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | result = (arg1)->Mirror(arg2); | |
11237 | ||
11238 | wxPyEndAllowThreads(__tstate); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | } | |
11241 | { | |
11242 | wxImage * resultptr; | |
11243 | resultptr = new wxImage((wxImage &) result); | |
11244 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11245 | } | |
11246 | return resultobj; | |
11247 | fail: | |
11248 | return NULL; | |
11249 | } | |
11250 | ||
11251 | ||
c32bde28 | 11252 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11253 | PyObject *resultobj; |
11254 | wxImage *arg1 = (wxImage *) 0 ; | |
11255 | unsigned char arg2 ; | |
11256 | unsigned char arg3 ; | |
11257 | unsigned char arg4 ; | |
11258 | unsigned char arg5 ; | |
11259 | unsigned char arg6 ; | |
11260 | unsigned char arg7 ; | |
11261 | PyObject * obj0 = 0 ; | |
11262 | PyObject * obj1 = 0 ; | |
11263 | PyObject * obj2 = 0 ; | |
11264 | PyObject * obj3 = 0 ; | |
11265 | PyObject * obj4 = 0 ; | |
11266 | PyObject * obj5 = 0 ; | |
11267 | PyObject * obj6 = 0 ; | |
11268 | char *kwnames[] = { | |
11269 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11270 | }; | |
11271 | ||
11272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11275 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11276 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11277 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11278 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11279 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 11280 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11281 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 11282 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11283 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc | 11284 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11285 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
d55e5bfc RD |
11286 | if (PyErr_Occurred()) SWIG_fail; |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
11294 | Py_INCREF(Py_None); resultobj = Py_None; | |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
11298 | } | |
11299 | ||
11300 | ||
c32bde28 | 11301 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11302 | PyObject *resultobj; |
11303 | wxImage *arg1 = (wxImage *) 0 ; | |
11304 | unsigned char arg2 ; | |
11305 | unsigned char arg3 ; | |
11306 | unsigned char arg4 ; | |
11307 | SwigValueWrapper< wxImage > result; | |
11308 | PyObject * obj0 = 0 ; | |
11309 | PyObject * obj1 = 0 ; | |
11310 | PyObject * obj2 = 0 ; | |
11311 | PyObject * obj3 = 0 ; | |
11312 | char *kwnames[] = { | |
11313 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11314 | }; | |
11315 | ||
11316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11319 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11320 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11321 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11322 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11323 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11324 | if (PyErr_Occurred()) SWIG_fail; |
11325 | { | |
11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11327 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11328 | ||
11329 | wxPyEndAllowThreads(__tstate); | |
11330 | if (PyErr_Occurred()) SWIG_fail; | |
11331 | } | |
11332 | { | |
11333 | wxImage * resultptr; | |
11334 | resultptr = new wxImage((wxImage &) result); | |
11335 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11336 | } | |
11337 | return resultobj; | |
11338 | fail: | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
c32bde28 | 11343 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11344 | PyObject *resultobj; |
11345 | wxImage *arg1 = (wxImage *) 0 ; | |
11346 | wxString *arg2 = 0 ; | |
11347 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
11348 | bool temp2 = false ; |
11349 | bool temp3 = false ; | |
d55e5bfc RD |
11350 | PyObject * obj0 = 0 ; |
11351 | PyObject * obj1 = 0 ; | |
11352 | PyObject * obj2 = 0 ; | |
11353 | char *kwnames[] = { | |
11354 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11355 | }; | |
11356 | ||
11357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11360 | { | |
11361 | arg2 = wxString_in_helper(obj1); | |
11362 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11363 | temp2 = true; |
d55e5bfc RD |
11364 | } |
11365 | { | |
11366 | arg3 = wxString_in_helper(obj2); | |
11367 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11368 | temp3 = true; |
d55e5bfc RD |
11369 | } |
11370 | { | |
11371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11372 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11373 | ||
11374 | wxPyEndAllowThreads(__tstate); | |
11375 | if (PyErr_Occurred()) SWIG_fail; | |
11376 | } | |
11377 | Py_INCREF(Py_None); resultobj = Py_None; | |
11378 | { | |
11379 | if (temp2) | |
11380 | delete arg2; | |
11381 | } | |
11382 | { | |
11383 | if (temp3) | |
11384 | delete arg3; | |
11385 | } | |
11386 | return resultobj; | |
11387 | fail: | |
11388 | { | |
11389 | if (temp2) | |
11390 | delete arg2; | |
11391 | } | |
11392 | { | |
11393 | if (temp3) | |
11394 | delete arg3; | |
11395 | } | |
11396 | return NULL; | |
11397 | } | |
11398 | ||
11399 | ||
c32bde28 | 11400 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11401 | PyObject *resultobj; |
11402 | wxImage *arg1 = (wxImage *) 0 ; | |
11403 | wxString *arg2 = 0 ; | |
11404 | int arg3 ; | |
ae8162c8 | 11405 | bool temp2 = false ; |
d55e5bfc RD |
11406 | PyObject * obj0 = 0 ; |
11407 | PyObject * obj1 = 0 ; | |
11408 | PyObject * obj2 = 0 ; | |
11409 | char *kwnames[] = { | |
11410 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11411 | }; | |
11412 | ||
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11416 | { | |
11417 | arg2 = wxString_in_helper(obj1); | |
11418 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11419 | temp2 = true; |
d55e5bfc | 11420 | } |
c32bde28 | 11421 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11422 | if (PyErr_Occurred()) SWIG_fail; |
11423 | { | |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | Py_INCREF(Py_None); resultobj = Py_None; | |
11431 | { | |
11432 | if (temp2) | |
11433 | delete arg2; | |
11434 | } | |
11435 | return resultobj; | |
11436 | fail: | |
11437 | { | |
11438 | if (temp2) | |
11439 | delete arg2; | |
11440 | } | |
11441 | return NULL; | |
11442 | } | |
11443 | ||
11444 | ||
c32bde28 | 11445 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11446 | PyObject *resultobj; |
11447 | wxImage *arg1 = (wxImage *) 0 ; | |
11448 | wxString *arg2 = 0 ; | |
11449 | wxString result; | |
ae8162c8 | 11450 | bool temp2 = false ; |
d55e5bfc RD |
11451 | PyObject * obj0 = 0 ; |
11452 | PyObject * obj1 = 0 ; | |
11453 | char *kwnames[] = { | |
11454 | (char *) "self",(char *) "name", NULL | |
11455 | }; | |
11456 | ||
11457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
11458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11460 | { | |
11461 | arg2 = wxString_in_helper(obj1); | |
11462 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11463 | temp2 = true; |
d55e5bfc RD |
11464 | } |
11465 | { | |
11466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11467 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11468 | ||
11469 | wxPyEndAllowThreads(__tstate); | |
11470 | if (PyErr_Occurred()) SWIG_fail; | |
11471 | } | |
11472 | { | |
11473 | #if wxUSE_UNICODE | |
11474 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11475 | #else | |
11476 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11477 | #endif | |
11478 | } | |
11479 | { | |
11480 | if (temp2) | |
11481 | delete arg2; | |
11482 | } | |
11483 | return resultobj; | |
11484 | fail: | |
11485 | { | |
11486 | if (temp2) | |
11487 | delete arg2; | |
11488 | } | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
c32bde28 | 11493 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11494 | PyObject *resultobj; |
11495 | wxImage *arg1 = (wxImage *) 0 ; | |
11496 | wxString *arg2 = 0 ; | |
11497 | int result; | |
ae8162c8 | 11498 | bool temp2 = false ; |
d55e5bfc RD |
11499 | PyObject * obj0 = 0 ; |
11500 | PyObject * obj1 = 0 ; | |
11501 | char *kwnames[] = { | |
11502 | (char *) "self",(char *) "name", NULL | |
11503 | }; | |
11504 | ||
11505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11508 | { | |
11509 | arg2 = wxString_in_helper(obj1); | |
11510 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11511 | temp2 = true; |
d55e5bfc RD |
11512 | } |
11513 | { | |
11514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11515 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11516 | ||
11517 | wxPyEndAllowThreads(__tstate); | |
11518 | if (PyErr_Occurred()) SWIG_fail; | |
11519 | } | |
c32bde28 | 11520 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11521 | { |
11522 | if (temp2) | |
11523 | delete arg2; | |
11524 | } | |
11525 | return resultobj; | |
11526 | fail: | |
11527 | { | |
11528 | if (temp2) | |
11529 | delete arg2; | |
11530 | } | |
11531 | return NULL; | |
11532 | } | |
11533 | ||
11534 | ||
c32bde28 | 11535 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11536 | PyObject *resultobj; |
11537 | wxImage *arg1 = (wxImage *) 0 ; | |
11538 | wxString *arg2 = 0 ; | |
11539 | bool result; | |
ae8162c8 | 11540 | bool temp2 = false ; |
d55e5bfc RD |
11541 | PyObject * obj0 = 0 ; |
11542 | PyObject * obj1 = 0 ; | |
11543 | char *kwnames[] = { | |
11544 | (char *) "self",(char *) "name", NULL | |
11545 | }; | |
11546 | ||
11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11550 | { | |
11551 | arg2 = wxString_in_helper(obj1); | |
11552 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11553 | temp2 = true; |
d55e5bfc RD |
11554 | } |
11555 | { | |
11556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11557 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11558 | ||
11559 | wxPyEndAllowThreads(__tstate); | |
11560 | if (PyErr_Occurred()) SWIG_fail; | |
11561 | } | |
11562 | { | |
11563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11564 | } | |
11565 | { | |
11566 | if (temp2) | |
11567 | delete arg2; | |
11568 | } | |
11569 | return resultobj; | |
11570 | fail: | |
11571 | { | |
11572 | if (temp2) | |
11573 | delete arg2; | |
11574 | } | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
c32bde28 | 11579 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11580 | PyObject *resultobj; |
11581 | wxImage *arg1 = (wxImage *) 0 ; | |
11582 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11583 | unsigned long result; | |
11584 | PyObject * obj0 = 0 ; | |
11585 | PyObject * obj1 = 0 ; | |
11586 | char *kwnames[] = { | |
11587 | (char *) "self",(char *) "stopafter", NULL | |
11588 | }; | |
11589 | ||
11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11593 | if (obj1) { | |
c32bde28 | 11594 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
11595 | if (PyErr_Occurred()) SWIG_fail; |
11596 | } | |
11597 | { | |
11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11599 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11600 | ||
11601 | wxPyEndAllowThreads(__tstate); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
c32bde28 | 11604 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11605 | return resultobj; |
11606 | fail: | |
11607 | return NULL; | |
11608 | } | |
11609 | ||
11610 | ||
c32bde28 | 11611 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11612 | PyObject *resultobj; |
11613 | wxImage *arg1 = (wxImage *) 0 ; | |
11614 | wxImageHistogram *arg2 = 0 ; | |
11615 | unsigned long result; | |
11616 | PyObject * obj0 = 0 ; | |
11617 | PyObject * obj1 = 0 ; | |
11618 | char *kwnames[] = { | |
11619 | (char *) "self",(char *) "h", NULL | |
11620 | }; | |
11621 | ||
11622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11626 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11627 | SWIG_fail; | |
11628 | if (arg2 == NULL) { | |
11629 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11630 | SWIG_fail; | |
11631 | } | |
11632 | { | |
11633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11634 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11635 | ||
11636 | wxPyEndAllowThreads(__tstate); | |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
11638 | } | |
c32bde28 | 11639 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11640 | return resultobj; |
11641 | fail: | |
11642 | return NULL; | |
11643 | } | |
11644 | ||
11645 | ||
c32bde28 | 11646 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11647 | PyObject *resultobj; |
11648 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11649 | PyObject * obj0 = 0 ; | |
11650 | char *kwnames[] = { | |
11651 | (char *) "handler", NULL | |
11652 | }; | |
11653 | ||
11654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11657 | { | |
11658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11659 | wxImage::AddHandler(arg1); | |
11660 | ||
11661 | wxPyEndAllowThreads(__tstate); | |
11662 | if (PyErr_Occurred()) SWIG_fail; | |
11663 | } | |
11664 | Py_INCREF(Py_None); resultobj = Py_None; | |
11665 | return resultobj; | |
11666 | fail: | |
11667 | return NULL; | |
11668 | } | |
11669 | ||
11670 | ||
c32bde28 | 11671 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11672 | PyObject *resultobj; |
11673 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11674 | PyObject * obj0 = 0 ; | |
11675 | char *kwnames[] = { | |
11676 | (char *) "handler", NULL | |
11677 | }; | |
11678 | ||
11679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11682 | { | |
11683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11684 | wxImage::InsertHandler(arg1); | |
11685 | ||
11686 | wxPyEndAllowThreads(__tstate); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
11688 | } | |
11689 | Py_INCREF(Py_None); resultobj = Py_None; | |
11690 | return resultobj; | |
11691 | fail: | |
11692 | return NULL; | |
11693 | } | |
11694 | ||
11695 | ||
c32bde28 | 11696 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11697 | PyObject *resultobj; |
11698 | wxString *arg1 = 0 ; | |
11699 | bool result; | |
ae8162c8 | 11700 | bool temp1 = false ; |
d55e5bfc RD |
11701 | PyObject * obj0 = 0 ; |
11702 | char *kwnames[] = { | |
11703 | (char *) "name", NULL | |
11704 | }; | |
11705 | ||
11706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11707 | { | |
11708 | arg1 = wxString_in_helper(obj0); | |
11709 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11710 | temp1 = true; |
d55e5bfc RD |
11711 | } |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11714 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11715 | ||
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
11719 | { | |
11720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11721 | } | |
11722 | { | |
11723 | if (temp1) | |
11724 | delete arg1; | |
11725 | } | |
11726 | return resultobj; | |
11727 | fail: | |
11728 | { | |
11729 | if (temp1) | |
11730 | delete arg1; | |
11731 | } | |
11732 | return NULL; | |
11733 | } | |
11734 | ||
11735 | ||
c32bde28 | 11736 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11737 | PyObject *resultobj; |
11738 | wxString result; | |
11739 | char *kwnames[] = { | |
11740 | NULL | |
11741 | }; | |
11742 | ||
11743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11744 | { | |
11745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11746 | result = wxImage::GetImageExtWildcard(); | |
11747 | ||
11748 | wxPyEndAllowThreads(__tstate); | |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
11750 | } | |
11751 | { | |
11752 | #if wxUSE_UNICODE | |
11753 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11754 | #else | |
11755 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11756 | #endif | |
11757 | } | |
11758 | return resultobj; | |
11759 | fail: | |
11760 | return NULL; | |
11761 | } | |
11762 | ||
11763 | ||
c32bde28 | 11764 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11765 | PyObject *resultobj; |
11766 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 11767 | int arg2 = (int) -1 ; |
d55e5bfc RD |
11768 | wxBitmap result; |
11769 | PyObject * obj0 = 0 ; | |
1fbf26be | 11770 | PyObject * obj1 = 0 ; |
d55e5bfc | 11771 | char *kwnames[] = { |
1fbf26be | 11772 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
11773 | }; |
11774 | ||
1fbf26be | 11775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fbf26be RD |
11778 | if (obj1) { |
11779 | arg2 = (int)SWIG_As_int(obj1); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
d55e5bfc | 11782 | { |
0439c23b | 11783 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 11785 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
11786 | |
11787 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11788 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11789 | } |
11790 | { | |
11791 | wxBitmap * resultptr; | |
11792 | resultptr = new wxBitmap((wxBitmap &) result); | |
11793 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11794 | } | |
11795 | return resultobj; | |
11796 | fail: | |
11797 | return NULL; | |
11798 | } | |
11799 | ||
11800 | ||
c32bde28 | 11801 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11802 | PyObject *resultobj; |
11803 | wxImage *arg1 = (wxImage *) 0 ; | |
11804 | unsigned char arg2 ; | |
11805 | unsigned char arg3 ; | |
11806 | unsigned char arg4 ; | |
11807 | wxBitmap result; | |
11808 | PyObject * obj0 = 0 ; | |
11809 | PyObject * obj1 = 0 ; | |
11810 | PyObject * obj2 = 0 ; | |
11811 | PyObject * obj3 = 0 ; | |
11812 | char *kwnames[] = { | |
11813 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11814 | }; | |
11815 | ||
11816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11819 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11820 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11821 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11822 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11823 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11824 | if (PyErr_Occurred()) SWIG_fail; |
11825 | { | |
0439c23b | 11826 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11828 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11829 | ||
11830 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11831 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11832 | } |
11833 | { | |
11834 | wxBitmap * resultptr; | |
11835 | resultptr = new wxBitmap((wxBitmap &) result); | |
11836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11837 | } | |
11838 | return resultobj; | |
11839 | fail: | |
11840 | return NULL; | |
11841 | } | |
11842 | ||
11843 | ||
c32bde28 | 11844 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11845 | PyObject *obj; |
11846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11847 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11848 | Py_INCREF(obj); | |
11849 | return Py_BuildValue((char *)""); | |
11850 | } | |
c32bde28 | 11851 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
11852 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11853 | return 1; | |
11854 | } | |
11855 | ||
11856 | ||
11857 | static PyObject *_wrap_NullImage_get() { | |
11858 | PyObject *pyobj; | |
11859 | ||
11860 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11861 | return pyobj; | |
11862 | } | |
11863 | ||
11864 | ||
c32bde28 | 11865 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
11866 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11867 | return 1; | |
11868 | } | |
11869 | ||
11870 | ||
11871 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11872 | PyObject *pyobj; | |
11873 | ||
11874 | { | |
11875 | #if wxUSE_UNICODE | |
11876 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11877 | #else | |
11878 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11879 | #endif | |
11880 | } | |
11881 | return pyobj; | |
11882 | } | |
11883 | ||
11884 | ||
c32bde28 | 11885 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
11886 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11887 | return 1; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11892 | PyObject *pyobj; | |
11893 | ||
11894 | { | |
11895 | #if wxUSE_UNICODE | |
11896 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11897 | #else | |
11898 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11899 | #endif | |
11900 | } | |
11901 | return pyobj; | |
11902 | } | |
11903 | ||
11904 | ||
c32bde28 | 11905 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
11906 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11907 | return 1; | |
11908 | } | |
11909 | ||
11910 | ||
11911 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11912 | PyObject *pyobj; | |
11913 | ||
11914 | { | |
11915 | #if wxUSE_UNICODE | |
11916 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11917 | #else | |
11918 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11919 | #endif | |
11920 | } | |
11921 | return pyobj; | |
11922 | } | |
11923 | ||
11924 | ||
c32bde28 | 11925 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
11926 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11927 | return 1; | |
11928 | } | |
11929 | ||
11930 | ||
11931 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11932 | PyObject *pyobj; | |
11933 | ||
11934 | { | |
11935 | #if wxUSE_UNICODE | |
11936 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11937 | #else | |
11938 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11939 | #endif | |
11940 | } | |
11941 | return pyobj; | |
11942 | } | |
11943 | ||
11944 | ||
c32bde28 | 11945 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
11946 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11947 | return 1; | |
11948 | } | |
11949 | ||
11950 | ||
11951 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11952 | PyObject *pyobj; | |
11953 | ||
11954 | { | |
11955 | #if wxUSE_UNICODE | |
11956 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11957 | #else | |
11958 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11959 | #endif | |
11960 | } | |
11961 | return pyobj; | |
11962 | } | |
11963 | ||
11964 | ||
c32bde28 | 11965 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11966 | PyObject *resultobj; |
11967 | wxBMPHandler *result; | |
11968 | char *kwnames[] = { | |
11969 | NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11973 | { | |
11974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11975 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11976 | ||
11977 | wxPyEndAllowThreads(__tstate); | |
11978 | if (PyErr_Occurred()) SWIG_fail; | |
11979 | } | |
11980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11981 | return resultobj; | |
11982 | fail: | |
11983 | return NULL; | |
11984 | } | |
11985 | ||
11986 | ||
c32bde28 | 11987 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11988 | PyObject *obj; |
11989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11990 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11991 | Py_INCREF(obj); | |
11992 | return Py_BuildValue((char *)""); | |
11993 | } | |
c32bde28 | 11994 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11995 | PyObject *resultobj; |
11996 | wxICOHandler *result; | |
11997 | char *kwnames[] = { | |
11998 | NULL | |
11999 | }; | |
12000 | ||
12001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
12002 | { | |
12003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12004 | result = (wxICOHandler *)new wxICOHandler(); | |
12005 | ||
12006 | wxPyEndAllowThreads(__tstate); | |
12007 | if (PyErr_Occurred()) SWIG_fail; | |
12008 | } | |
12009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | return NULL; | |
12013 | } | |
12014 | ||
12015 | ||
c32bde28 | 12016 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12017 | PyObject *obj; |
12018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12019 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
12020 | Py_INCREF(obj); | |
12021 | return Py_BuildValue((char *)""); | |
12022 | } | |
c32bde28 | 12023 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12024 | PyObject *resultobj; |
12025 | wxCURHandler *result; | |
12026 | char *kwnames[] = { | |
12027 | NULL | |
12028 | }; | |
12029 | ||
12030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
12031 | { | |
12032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12033 | result = (wxCURHandler *)new wxCURHandler(); | |
12034 | ||
12035 | wxPyEndAllowThreads(__tstate); | |
12036 | if (PyErr_Occurred()) SWIG_fail; | |
12037 | } | |
12038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
12039 | return resultobj; | |
12040 | fail: | |
12041 | return NULL; | |
12042 | } | |
12043 | ||
12044 | ||
c32bde28 | 12045 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12046 | PyObject *obj; |
12047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12048 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
12049 | Py_INCREF(obj); | |
12050 | return Py_BuildValue((char *)""); | |
12051 | } | |
c32bde28 | 12052 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12053 | PyObject *resultobj; |
12054 | wxANIHandler *result; | |
12055 | char *kwnames[] = { | |
12056 | NULL | |
12057 | }; | |
12058 | ||
12059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
12060 | { | |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | result = (wxANIHandler *)new wxANIHandler(); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
12068 | return resultobj; | |
12069 | fail: | |
12070 | return NULL; | |
12071 | } | |
12072 | ||
12073 | ||
c32bde28 | 12074 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12075 | PyObject *obj; |
12076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12077 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
12078 | Py_INCREF(obj); | |
12079 | return Py_BuildValue((char *)""); | |
12080 | } | |
c32bde28 | 12081 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12082 | PyObject *resultobj; |
12083 | wxPNGHandler *result; | |
12084 | char *kwnames[] = { | |
12085 | NULL | |
12086 | }; | |
12087 | ||
12088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
12089 | { | |
12090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12091 | result = (wxPNGHandler *)new wxPNGHandler(); | |
12092 | ||
12093 | wxPyEndAllowThreads(__tstate); | |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
12096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
12097 | return resultobj; | |
12098 | fail: | |
12099 | return NULL; | |
12100 | } | |
12101 | ||
12102 | ||
c32bde28 | 12103 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12104 | PyObject *obj; |
12105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12106 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
12107 | Py_INCREF(obj); | |
12108 | return Py_BuildValue((char *)""); | |
12109 | } | |
c32bde28 | 12110 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12111 | PyObject *resultobj; |
12112 | wxGIFHandler *result; | |
12113 | char *kwnames[] = { | |
12114 | NULL | |
12115 | }; | |
12116 | ||
12117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
12118 | { | |
12119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12120 | result = (wxGIFHandler *)new wxGIFHandler(); | |
12121 | ||
12122 | wxPyEndAllowThreads(__tstate); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
12125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
12126 | return resultobj; | |
12127 | fail: | |
12128 | return NULL; | |
12129 | } | |
12130 | ||
12131 | ||
c32bde28 | 12132 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12133 | PyObject *obj; |
12134 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12135 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
12136 | Py_INCREF(obj); | |
12137 | return Py_BuildValue((char *)""); | |
12138 | } | |
c32bde28 | 12139 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12140 | PyObject *resultobj; |
12141 | wxPCXHandler *result; | |
12142 | char *kwnames[] = { | |
12143 | NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
12147 | { | |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | result = (wxPCXHandler *)new wxPCXHandler(); | |
12150 | ||
12151 | wxPyEndAllowThreads(__tstate); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | } | |
12154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
12155 | return resultobj; | |
12156 | fail: | |
12157 | return NULL; | |
12158 | } | |
12159 | ||
12160 | ||
c32bde28 | 12161 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12162 | PyObject *obj; |
12163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12164 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
12165 | Py_INCREF(obj); | |
12166 | return Py_BuildValue((char *)""); | |
12167 | } | |
c32bde28 | 12168 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12169 | PyObject *resultobj; |
12170 | wxJPEGHandler *result; | |
12171 | char *kwnames[] = { | |
12172 | NULL | |
12173 | }; | |
12174 | ||
12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
12176 | { | |
12177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12178 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
12179 | ||
12180 | wxPyEndAllowThreads(__tstate); | |
12181 | if (PyErr_Occurred()) SWIG_fail; | |
12182 | } | |
12183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
12184 | return resultobj; | |
12185 | fail: | |
12186 | return NULL; | |
12187 | } | |
12188 | ||
12189 | ||
c32bde28 | 12190 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12191 | PyObject *obj; |
12192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12193 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
12194 | Py_INCREF(obj); | |
12195 | return Py_BuildValue((char *)""); | |
12196 | } | |
c32bde28 | 12197 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12198 | PyObject *resultobj; |
12199 | wxPNMHandler *result; | |
12200 | char *kwnames[] = { | |
12201 | NULL | |
12202 | }; | |
12203 | ||
12204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
12205 | { | |
12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12207 | result = (wxPNMHandler *)new wxPNMHandler(); | |
12208 | ||
12209 | wxPyEndAllowThreads(__tstate); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
12211 | } | |
12212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
12213 | return resultobj; | |
12214 | fail: | |
12215 | return NULL; | |
12216 | } | |
12217 | ||
12218 | ||
c32bde28 | 12219 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12220 | PyObject *obj; |
12221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12222 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
12223 | Py_INCREF(obj); | |
12224 | return Py_BuildValue((char *)""); | |
12225 | } | |
c32bde28 | 12226 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12227 | PyObject *resultobj; |
12228 | wxXPMHandler *result; | |
12229 | char *kwnames[] = { | |
12230 | NULL | |
12231 | }; | |
12232 | ||
12233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
12234 | { | |
12235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12236 | result = (wxXPMHandler *)new wxXPMHandler(); | |
12237 | ||
12238 | wxPyEndAllowThreads(__tstate); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
12240 | } | |
12241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
12242 | return resultobj; | |
12243 | fail: | |
12244 | return NULL; | |
12245 | } | |
12246 | ||
12247 | ||
c32bde28 | 12248 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12249 | PyObject *obj; |
12250 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12251 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12252 | Py_INCREF(obj); | |
12253 | return Py_BuildValue((char *)""); | |
12254 | } | |
c32bde28 | 12255 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12256 | PyObject *resultobj; |
12257 | wxTIFFHandler *result; | |
12258 | char *kwnames[] = { | |
12259 | NULL | |
12260 | }; | |
12261 | ||
12262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12263 | { | |
12264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12265 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12266 | ||
12267 | wxPyEndAllowThreads(__tstate); | |
12268 | if (PyErr_Occurred()) SWIG_fail; | |
12269 | } | |
12270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
12271 | return resultobj; | |
12272 | fail: | |
12273 | return NULL; | |
12274 | } | |
12275 | ||
12276 | ||
c32bde28 | 12277 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12278 | PyObject *obj; |
12279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12280 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12281 | Py_INCREF(obj); | |
12282 | return Py_BuildValue((char *)""); | |
12283 | } | |
c32bde28 | 12284 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12285 | PyObject *resultobj; |
12286 | wxImage *arg1 = 0 ; | |
12287 | wxImage *arg2 = 0 ; | |
12288 | int arg3 = (int) 236 ; | |
12289 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12290 | bool result; | |
12291 | PyObject * obj0 = 0 ; | |
12292 | PyObject * obj1 = 0 ; | |
12293 | PyObject * obj2 = 0 ; | |
12294 | PyObject * obj3 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12302 | SWIG_fail; | |
12303 | if (arg1 == NULL) { | |
12304 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12305 | SWIG_fail; | |
12306 | } | |
12307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12308 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12309 | SWIG_fail; | |
12310 | if (arg2 == NULL) { | |
12311 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12312 | SWIG_fail; | |
12313 | } | |
12314 | if (obj2) { | |
c32bde28 | 12315 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12316 | if (PyErr_Occurred()) SWIG_fail; |
12317 | } | |
12318 | if (obj3) { | |
c32bde28 | 12319 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12320 | if (PyErr_Occurred()) SWIG_fail; |
12321 | } | |
12322 | { | |
12323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12324 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12325 | ||
12326 | wxPyEndAllowThreads(__tstate); | |
12327 | if (PyErr_Occurred()) SWIG_fail; | |
12328 | } | |
12329 | { | |
12330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12331 | } | |
12332 | return resultobj; | |
12333 | fail: | |
12334 | return NULL; | |
12335 | } | |
12336 | ||
12337 | ||
c32bde28 | 12338 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12339 | PyObject *obj; |
12340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12341 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12342 | Py_INCREF(obj); | |
12343 | return Py_BuildValue((char *)""); | |
12344 | } | |
c32bde28 | 12345 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12346 | PyObject *resultobj; |
12347 | wxEvtHandler *result; | |
12348 | char *kwnames[] = { | |
12349 | NULL | |
12350 | }; | |
12351 | ||
12352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12353 | { | |
12354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12355 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12356 | ||
12357 | wxPyEndAllowThreads(__tstate); | |
12358 | if (PyErr_Occurred()) SWIG_fail; | |
12359 | } | |
b0f7404b | 12360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
12361 | return resultobj; |
12362 | fail: | |
12363 | return NULL; | |
12364 | } | |
12365 | ||
12366 | ||
c32bde28 | 12367 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12368 | PyObject *resultobj; |
12369 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12370 | wxEvtHandler *result; | |
12371 | PyObject * obj0 = 0 ; | |
12372 | char *kwnames[] = { | |
12373 | (char *) "self", NULL | |
12374 | }; | |
12375 | ||
12376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
12377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12379 | { | |
12380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12381 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12382 | ||
12383 | wxPyEndAllowThreads(__tstate); | |
12384 | if (PyErr_Occurred()) SWIG_fail; | |
12385 | } | |
12386 | { | |
412d302d | 12387 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12388 | } |
12389 | return resultobj; | |
12390 | fail: | |
12391 | return NULL; | |
12392 | } | |
12393 | ||
12394 | ||
c32bde28 | 12395 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12396 | PyObject *resultobj; |
12397 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12398 | wxEvtHandler *result; | |
12399 | PyObject * obj0 = 0 ; | |
12400 | char *kwnames[] = { | |
12401 | (char *) "self", NULL | |
12402 | }; | |
12403 | ||
12404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
12405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12407 | { | |
12408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12409 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12410 | ||
12411 | wxPyEndAllowThreads(__tstate); | |
12412 | if (PyErr_Occurred()) SWIG_fail; | |
12413 | } | |
12414 | { | |
412d302d | 12415 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12416 | } |
12417 | return resultobj; | |
12418 | fail: | |
12419 | return NULL; | |
12420 | } | |
12421 | ||
12422 | ||
c32bde28 | 12423 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12424 | PyObject *resultobj; |
12425 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12426 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12427 | PyObject * obj0 = 0 ; | |
12428 | PyObject * obj1 = 0 ; | |
12429 | char *kwnames[] = { | |
12430 | (char *) "self",(char *) "handler", NULL | |
12431 | }; | |
12432 | ||
12433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
12434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12438 | { | |
12439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12440 | (arg1)->SetNextHandler(arg2); | |
12441 | ||
12442 | wxPyEndAllowThreads(__tstate); | |
12443 | if (PyErr_Occurred()) SWIG_fail; | |
12444 | } | |
12445 | Py_INCREF(Py_None); resultobj = Py_None; | |
12446 | return resultobj; | |
12447 | fail: | |
12448 | return NULL; | |
12449 | } | |
12450 | ||
12451 | ||
c32bde28 | 12452 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12453 | PyObject *resultobj; |
12454 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12455 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | PyObject * obj1 = 0 ; | |
12458 | char *kwnames[] = { | |
12459 | (char *) "self",(char *) "handler", NULL | |
12460 | }; | |
12461 | ||
12462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
12463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12467 | { | |
12468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12469 | (arg1)->SetPreviousHandler(arg2); | |
12470 | ||
12471 | wxPyEndAllowThreads(__tstate); | |
12472 | if (PyErr_Occurred()) SWIG_fail; | |
12473 | } | |
12474 | Py_INCREF(Py_None); resultobj = Py_None; | |
12475 | return resultobj; | |
12476 | fail: | |
12477 | return NULL; | |
12478 | } | |
12479 | ||
12480 | ||
c32bde28 | 12481 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12482 | PyObject *resultobj; |
12483 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12484 | bool result; | |
12485 | PyObject * obj0 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12493 | { | |
12494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12495 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12496 | ||
12497 | wxPyEndAllowThreads(__tstate); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | } | |
12500 | { | |
12501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12502 | } | |
12503 | return resultobj; | |
12504 | fail: | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
c32bde28 | 12509 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12510 | PyObject *resultobj; |
12511 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12512 | bool arg2 ; | |
12513 | PyObject * obj0 = 0 ; | |
12514 | PyObject * obj1 = 0 ; | |
12515 | char *kwnames[] = { | |
12516 | (char *) "self",(char *) "enabled", NULL | |
12517 | }; | |
12518 | ||
12519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12522 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12523 | if (PyErr_Occurred()) SWIG_fail; |
12524 | { | |
12525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12526 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12527 | ||
12528 | wxPyEndAllowThreads(__tstate); | |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
12530 | } | |
12531 | Py_INCREF(Py_None); resultobj = Py_None; | |
12532 | return resultobj; | |
12533 | fail: | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
c32bde28 | 12538 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12539 | PyObject *resultobj; |
12540 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12541 | wxEvent *arg2 = 0 ; | |
12542 | bool result; | |
12543 | PyObject * obj0 = 0 ; | |
12544 | PyObject * obj1 = 0 ; | |
12545 | char *kwnames[] = { | |
12546 | (char *) "self",(char *) "event", NULL | |
12547 | }; | |
12548 | ||
12549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12554 | SWIG_fail; | |
12555 | if (arg2 == NULL) { | |
12556 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12557 | SWIG_fail; | |
12558 | } | |
12559 | { | |
12560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12561 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12562 | ||
12563 | wxPyEndAllowThreads(__tstate); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
12565 | } | |
12566 | { | |
12567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12568 | } | |
12569 | return resultobj; | |
12570 | fail: | |
12571 | return NULL; | |
12572 | } | |
12573 | ||
12574 | ||
c32bde28 | 12575 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12576 | PyObject *resultobj; |
12577 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12578 | wxEvent *arg2 = 0 ; | |
12579 | PyObject * obj0 = 0 ; | |
12580 | PyObject * obj1 = 0 ; | |
12581 | char *kwnames[] = { | |
12582 | (char *) "self",(char *) "event", NULL | |
12583 | }; | |
12584 | ||
12585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12590 | SWIG_fail; | |
12591 | if (arg2 == NULL) { | |
12592 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12593 | SWIG_fail; | |
12594 | } | |
12595 | { | |
12596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12597 | (arg1)->AddPendingEvent(*arg2); | |
12598 | ||
12599 | wxPyEndAllowThreads(__tstate); | |
12600 | if (PyErr_Occurred()) SWIG_fail; | |
12601 | } | |
12602 | Py_INCREF(Py_None); resultobj = Py_None; | |
12603 | return resultobj; | |
12604 | fail: | |
12605 | return NULL; | |
12606 | } | |
12607 | ||
12608 | ||
c32bde28 | 12609 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12610 | PyObject *resultobj; |
12611 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12612 | PyObject * obj0 = 0 ; | |
12613 | char *kwnames[] = { | |
12614 | (char *) "self", NULL | |
12615 | }; | |
12616 | ||
12617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12620 | { | |
12621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12622 | (arg1)->ProcessPendingEvents(); | |
12623 | ||
12624 | wxPyEndAllowThreads(__tstate); | |
12625 | if (PyErr_Occurred()) SWIG_fail; | |
12626 | } | |
12627 | Py_INCREF(Py_None); resultobj = Py_None; | |
12628 | return resultobj; | |
12629 | fail: | |
12630 | return NULL; | |
12631 | } | |
12632 | ||
12633 | ||
c32bde28 | 12634 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12635 | PyObject *resultobj; |
12636 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12637 | int arg2 ; | |
12638 | int arg3 ; | |
12639 | int arg4 ; | |
12640 | PyObject *arg5 = (PyObject *) 0 ; | |
12641 | PyObject * obj0 = 0 ; | |
12642 | PyObject * obj1 = 0 ; | |
12643 | PyObject * obj2 = 0 ; | |
12644 | PyObject * obj3 = 0 ; | |
12645 | PyObject * obj4 = 0 ; | |
12646 | char *kwnames[] = { | |
12647 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12648 | }; | |
12649 | ||
12650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12653 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12654 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12655 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12656 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12657 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12658 | if (PyErr_Occurred()) SWIG_fail; |
12659 | arg5 = obj4; | |
12660 | { | |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
12667 | Py_INCREF(Py_None); resultobj = Py_None; | |
12668 | return resultobj; | |
12669 | fail: | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
c32bde28 | 12674 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12675 | PyObject *resultobj; |
12676 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12677 | int arg2 ; | |
12678 | int arg3 = (int) -1 ; | |
12679 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12680 | bool result; | |
12681 | PyObject * obj0 = 0 ; | |
12682 | PyObject * obj1 = 0 ; | |
12683 | PyObject * obj2 = 0 ; | |
12684 | PyObject * obj3 = 0 ; | |
12685 | char *kwnames[] = { | |
12686 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12687 | }; | |
12688 | ||
12689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12692 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12693 | if (PyErr_Occurred()) SWIG_fail; |
12694 | if (obj2) { | |
c32bde28 | 12695 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12696 | if (PyErr_Occurred()) SWIG_fail; |
12697 | } | |
12698 | if (obj3) { | |
c32bde28 | 12699 | arg4 = (wxEventType)SWIG_As_int(obj3); |
d55e5bfc RD |
12700 | if (PyErr_Occurred()) SWIG_fail; |
12701 | } | |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12705 | ||
12706 | wxPyEndAllowThreads(__tstate); | |
12707 | if (PyErr_Occurred()) SWIG_fail; | |
12708 | } | |
12709 | { | |
12710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12711 | } | |
12712 | return resultobj; | |
12713 | fail: | |
12714 | return NULL; | |
12715 | } | |
12716 | ||
12717 | ||
c32bde28 | 12718 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12719 | PyObject *resultobj; |
12720 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12721 | PyObject *arg2 = (PyObject *) 0 ; | |
12722 | PyObject * obj0 = 0 ; | |
12723 | PyObject * obj1 = 0 ; | |
12724 | char *kwnames[] = { | |
12725 | (char *) "self",(char *) "_self", NULL | |
12726 | }; | |
12727 | ||
12728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12731 | arg2 = obj1; | |
12732 | { | |
12733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12734 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12735 | ||
12736 | wxPyEndAllowThreads(__tstate); | |
12737 | if (PyErr_Occurred()) SWIG_fail; | |
12738 | } | |
12739 | Py_INCREF(Py_None); resultobj = Py_None; | |
12740 | return resultobj; | |
12741 | fail: | |
12742 | return NULL; | |
12743 | } | |
12744 | ||
12745 | ||
c32bde28 | 12746 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12747 | PyObject *obj; |
12748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12749 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12750 | Py_INCREF(obj); | |
12751 | return Py_BuildValue((char *)""); | |
12752 | } | |
c32bde28 | 12753 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12754 | PyObject *resultobj; |
12755 | wxEventType result; | |
12756 | char *kwnames[] = { | |
12757 | NULL | |
12758 | }; | |
12759 | ||
12760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12761 | { | |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | result = (wxEventType)wxNewEventType(); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
c32bde28 | 12768 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12769 | return resultobj; |
12770 | fail: | |
12771 | return NULL; | |
12772 | } | |
12773 | ||
12774 | ||
c32bde28 | 12775 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12776 | PyObject *resultobj; |
12777 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12778 | PyObject * obj0 = 0 ; | |
12779 | char *kwnames[] = { | |
12780 | (char *) "self", NULL | |
12781 | }; | |
12782 | ||
12783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12786 | { | |
12787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12788 | delete arg1; | |
12789 | ||
12790 | wxPyEndAllowThreads(__tstate); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | } | |
12793 | Py_INCREF(Py_None); resultobj = Py_None; | |
12794 | return resultobj; | |
12795 | fail: | |
12796 | return NULL; | |
12797 | } | |
12798 | ||
12799 | ||
c32bde28 | 12800 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12801 | PyObject *resultobj; |
12802 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12803 | wxEventType arg2 ; | |
12804 | PyObject * obj0 = 0 ; | |
12805 | PyObject * obj1 = 0 ; | |
12806 | char *kwnames[] = { | |
12807 | (char *) "self",(char *) "typ", NULL | |
12808 | }; | |
12809 | ||
12810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12813 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
12814 | if (PyErr_Occurred()) SWIG_fail; |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | (arg1)->SetEventType(arg2); | |
12818 | ||
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
12822 | Py_INCREF(Py_None); resultobj = Py_None; | |
12823 | return resultobj; | |
12824 | fail: | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
c32bde28 | 12829 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12830 | PyObject *resultobj; |
12831 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12832 | wxEventType result; | |
12833 | PyObject * obj0 = 0 ; | |
12834 | char *kwnames[] = { | |
12835 | (char *) "self", NULL | |
12836 | }; | |
12837 | ||
12838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12841 | { | |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
c32bde28 | 12848 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12849 | return resultobj; |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
c32bde28 | 12855 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12856 | PyObject *resultobj; |
12857 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12858 | wxObject *result; | |
12859 | PyObject * obj0 = 0 ; | |
12860 | char *kwnames[] = { | |
12861 | (char *) "self", NULL | |
12862 | }; | |
12863 | ||
12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12867 | { | |
12868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12869 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12870 | ||
12871 | wxPyEndAllowThreads(__tstate); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
12874 | { | |
412d302d | 12875 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12876 | } |
12877 | return resultobj; | |
12878 | fail: | |
12879 | return NULL; | |
12880 | } | |
12881 | ||
12882 | ||
c32bde28 | 12883 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12884 | PyObject *resultobj; |
12885 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12886 | wxObject *arg2 = (wxObject *) 0 ; | |
12887 | PyObject * obj0 = 0 ; | |
12888 | PyObject * obj1 = 0 ; | |
12889 | char *kwnames[] = { | |
12890 | (char *) "self",(char *) "obj", NULL | |
12891 | }; | |
12892 | ||
12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12898 | { | |
12899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12900 | (arg1)->SetEventObject(arg2); | |
12901 | ||
12902 | wxPyEndAllowThreads(__tstate); | |
12903 | if (PyErr_Occurred()) SWIG_fail; | |
12904 | } | |
12905 | Py_INCREF(Py_None); resultobj = Py_None; | |
12906 | return resultobj; | |
12907 | fail: | |
12908 | return NULL; | |
12909 | } | |
12910 | ||
12911 | ||
c32bde28 | 12912 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12913 | PyObject *resultobj; |
12914 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12915 | long result; | |
12916 | PyObject * obj0 = 0 ; | |
12917 | char *kwnames[] = { | |
12918 | (char *) "self", NULL | |
12919 | }; | |
12920 | ||
12921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12924 | { | |
12925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12926 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12927 | ||
12928 | wxPyEndAllowThreads(__tstate); | |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
c32bde28 | 12931 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
12932 | return resultobj; |
12933 | fail: | |
12934 | return NULL; | |
12935 | } | |
12936 | ||
12937 | ||
c32bde28 | 12938 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12939 | PyObject *resultobj; |
12940 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12941 | long arg2 = (long) 0 ; | |
12942 | PyObject * obj0 = 0 ; | |
12943 | PyObject * obj1 = 0 ; | |
12944 | char *kwnames[] = { | |
12945 | (char *) "self",(char *) "ts", NULL | |
12946 | }; | |
12947 | ||
12948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12951 | if (obj1) { | |
c32bde28 | 12952 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
12953 | if (PyErr_Occurred()) SWIG_fail; |
12954 | } | |
12955 | { | |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | (arg1)->SetTimestamp(arg2); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
12962 | Py_INCREF(Py_None); resultobj = Py_None; | |
12963 | return resultobj; | |
12964 | fail: | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
c32bde28 | 12969 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12970 | PyObject *resultobj; |
12971 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12972 | int result; | |
12973 | PyObject * obj0 = 0 ; | |
12974 | char *kwnames[] = { | |
12975 | (char *) "self", NULL | |
12976 | }; | |
12977 | ||
12978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12981 | { | |
12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12983 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12984 | ||
12985 | wxPyEndAllowThreads(__tstate); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
12987 | } | |
c32bde28 | 12988 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12989 | return resultobj; |
12990 | fail: | |
12991 | return NULL; | |
12992 | } | |
12993 | ||
12994 | ||
c32bde28 | 12995 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12996 | PyObject *resultobj; |
12997 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12998 | int arg2 ; | |
12999 | PyObject * obj0 = 0 ; | |
13000 | PyObject * obj1 = 0 ; | |
13001 | char *kwnames[] = { | |
13002 | (char *) "self",(char *) "Id", NULL | |
13003 | }; | |
13004 | ||
13005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
13006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13008 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13009 | if (PyErr_Occurred()) SWIG_fail; |
13010 | { | |
13011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13012 | (arg1)->SetId(arg2); | |
13013 | ||
13014 | wxPyEndAllowThreads(__tstate); | |
13015 | if (PyErr_Occurred()) SWIG_fail; | |
13016 | } | |
13017 | Py_INCREF(Py_None); resultobj = Py_None; | |
13018 | return resultobj; | |
13019 | fail: | |
13020 | return NULL; | |
13021 | } | |
13022 | ||
13023 | ||
c32bde28 | 13024 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13025 | PyObject *resultobj; |
13026 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13027 | bool result; | |
13028 | PyObject * obj0 = 0 ; | |
13029 | char *kwnames[] = { | |
13030 | (char *) "self", NULL | |
13031 | }; | |
13032 | ||
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
13034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13036 | { | |
13037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13038 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
13039 | ||
13040 | wxPyEndAllowThreads(__tstate); | |
13041 | if (PyErr_Occurred()) SWIG_fail; | |
13042 | } | |
13043 | { | |
13044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13045 | } | |
13046 | return resultobj; | |
13047 | fail: | |
13048 | return NULL; | |
13049 | } | |
13050 | ||
13051 | ||
c32bde28 | 13052 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13053 | PyObject *resultobj; |
13054 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 13055 | bool arg2 = (bool) true ; |
d55e5bfc RD |
13056 | PyObject * obj0 = 0 ; |
13057 | PyObject * obj1 = 0 ; | |
13058 | char *kwnames[] = { | |
13059 | (char *) "self",(char *) "skip", NULL | |
13060 | }; | |
13061 | ||
13062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
13063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13065 | if (obj1) { | |
c32bde28 | 13066 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
13067 | if (PyErr_Occurred()) SWIG_fail; |
13068 | } | |
13069 | { | |
13070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13071 | (arg1)->Skip(arg2); | |
13072 | ||
13073 | wxPyEndAllowThreads(__tstate); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
13075 | } | |
13076 | Py_INCREF(Py_None); resultobj = Py_None; | |
13077 | return resultobj; | |
13078 | fail: | |
13079 | return NULL; | |
13080 | } | |
13081 | ||
13082 | ||
c32bde28 | 13083 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13084 | PyObject *resultobj; |
13085 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13086 | bool result; | |
13087 | PyObject * obj0 = 0 ; | |
13088 | char *kwnames[] = { | |
13089 | (char *) "self", NULL | |
13090 | }; | |
13091 | ||
13092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
13093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13095 | { | |
13096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13097 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
13098 | ||
13099 | wxPyEndAllowThreads(__tstate); | |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
13101 | } | |
13102 | { | |
13103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13104 | } | |
13105 | return resultobj; | |
13106 | fail: | |
13107 | return NULL; | |
13108 | } | |
13109 | ||
13110 | ||
c32bde28 | 13111 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13112 | PyObject *resultobj; |
13113 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13114 | bool result; | |
13115 | PyObject * obj0 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "self", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
13121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13123 | { | |
13124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13125 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
13126 | ||
13127 | wxPyEndAllowThreads(__tstate); | |
13128 | if (PyErr_Occurred()) SWIG_fail; | |
13129 | } | |
13130 | { | |
13131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13132 | } | |
13133 | return resultobj; | |
13134 | fail: | |
13135 | return NULL; | |
13136 | } | |
13137 | ||
13138 | ||
c32bde28 | 13139 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13140 | PyObject *resultobj; |
13141 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13142 | int result; | |
13143 | PyObject * obj0 = 0 ; | |
13144 | char *kwnames[] = { | |
13145 | (char *) "self", NULL | |
13146 | }; | |
13147 | ||
13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
13149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13151 | { | |
13152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13153 | result = (int)(arg1)->StopPropagation(); | |
13154 | ||
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
c32bde28 | 13158 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13159 | return resultobj; |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
c32bde28 | 13165 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13166 | PyObject *resultobj; |
13167 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13168 | int arg2 ; | |
13169 | PyObject * obj0 = 0 ; | |
13170 | PyObject * obj1 = 0 ; | |
13171 | char *kwnames[] = { | |
13172 | (char *) "self",(char *) "propagationLevel", NULL | |
13173 | }; | |
13174 | ||
13175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
13176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13178 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13179 | if (PyErr_Occurred()) SWIG_fail; |
13180 | { | |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | (arg1)->ResumePropagation(arg2); | |
13183 | ||
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | Py_INCREF(Py_None); resultobj = Py_None; | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | return NULL; | |
13191 | } | |
13192 | ||
13193 | ||
c32bde28 | 13194 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13195 | PyObject *resultobj; |
13196 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13197 | wxEvent *result; | |
13198 | PyObject * obj0 = 0 ; | |
13199 | char *kwnames[] = { | |
13200 | (char *) "self", NULL | |
13201 | }; | |
13202 | ||
13203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
13204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13206 | { | |
13207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13208 | result = (wxEvent *)(arg1)->Clone(); | |
13209 | ||
13210 | wxPyEndAllowThreads(__tstate); | |
13211 | if (PyErr_Occurred()) SWIG_fail; | |
13212 | } | |
13213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13214 | return resultobj; | |
13215 | fail: | |
13216 | return NULL; | |
13217 | } | |
13218 | ||
13219 | ||
c32bde28 | 13220 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13221 | PyObject *obj; |
13222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13223 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
13224 | Py_INCREF(obj); | |
13225 | return Py_BuildValue((char *)""); | |
13226 | } | |
c32bde28 | 13227 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13228 | PyObject *resultobj; |
13229 | wxEvent *arg1 = 0 ; | |
13230 | wxPropagationDisabler *result; | |
13231 | PyObject * obj0 = 0 ; | |
13232 | char *kwnames[] = { | |
13233 | (char *) "event", NULL | |
13234 | }; | |
13235 | ||
13236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13238 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13239 | SWIG_fail; | |
13240 | if (arg1 == NULL) { | |
13241 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13242 | SWIG_fail; | |
13243 | } | |
13244 | { | |
13245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13246 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13247 | ||
13248 | wxPyEndAllowThreads(__tstate); | |
13249 | if (PyErr_Occurred()) SWIG_fail; | |
13250 | } | |
13251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
13252 | return resultobj; | |
13253 | fail: | |
13254 | return NULL; | |
13255 | } | |
13256 | ||
13257 | ||
c32bde28 | 13258 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13259 | PyObject *resultobj; |
13260 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13261 | PyObject * obj0 = 0 ; | |
13262 | char *kwnames[] = { | |
13263 | (char *) "self", NULL | |
13264 | }; | |
13265 | ||
13266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
13268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13269 | { | |
13270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13271 | delete arg1; | |
13272 | ||
13273 | wxPyEndAllowThreads(__tstate); | |
13274 | if (PyErr_Occurred()) SWIG_fail; | |
13275 | } | |
13276 | Py_INCREF(Py_None); resultobj = Py_None; | |
13277 | return resultobj; | |
13278 | fail: | |
13279 | return NULL; | |
13280 | } | |
13281 | ||
13282 | ||
c32bde28 | 13283 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13284 | PyObject *obj; |
13285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13286 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13287 | Py_INCREF(obj); | |
13288 | return Py_BuildValue((char *)""); | |
13289 | } | |
c32bde28 | 13290 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13291 | PyObject *resultobj; |
13292 | wxEvent *arg1 = 0 ; | |
13293 | wxPropagateOnce *result; | |
13294 | PyObject * obj0 = 0 ; | |
13295 | char *kwnames[] = { | |
13296 | (char *) "event", NULL | |
13297 | }; | |
13298 | ||
13299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
13300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13302 | SWIG_fail; | |
13303 | if (arg1 == NULL) { | |
13304 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13305 | SWIG_fail; | |
13306 | } | |
13307 | { | |
13308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13309 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13310 | ||
13311 | wxPyEndAllowThreads(__tstate); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | } | |
13314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
13315 | return resultobj; | |
13316 | fail: | |
13317 | return NULL; | |
13318 | } | |
13319 | ||
13320 | ||
c32bde28 | 13321 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13322 | PyObject *resultobj; |
13323 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13324 | PyObject * obj0 = 0 ; | |
13325 | char *kwnames[] = { | |
13326 | (char *) "self", NULL | |
13327 | }; | |
13328 | ||
13329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
13330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
13331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13332 | { | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | delete arg1; | |
13335 | ||
13336 | wxPyEndAllowThreads(__tstate); | |
13337 | if (PyErr_Occurred()) SWIG_fail; | |
13338 | } | |
13339 | Py_INCREF(Py_None); resultobj = Py_None; | |
13340 | return resultobj; | |
13341 | fail: | |
13342 | return NULL; | |
13343 | } | |
13344 | ||
13345 | ||
c32bde28 | 13346 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13347 | PyObject *obj; |
13348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13349 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13350 | Py_INCREF(obj); | |
13351 | return Py_BuildValue((char *)""); | |
13352 | } | |
c32bde28 | 13353 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13354 | PyObject *resultobj; |
13355 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13356 | int arg2 = (int) 0 ; | |
13357 | wxCommandEvent *result; | |
13358 | PyObject * obj0 = 0 ; | |
13359 | PyObject * obj1 = 0 ; | |
13360 | char *kwnames[] = { | |
13361 | (char *) "commandType",(char *) "winid", NULL | |
13362 | }; | |
13363 | ||
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
13365 | if (obj0) { | |
c32bde28 | 13366 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13367 | if (PyErr_Occurred()) SWIG_fail; |
13368 | } | |
13369 | if (obj1) { | |
c32bde28 | 13370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13371 | if (PyErr_Occurred()) SWIG_fail; |
13372 | } | |
13373 | { | |
13374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13375 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13376 | ||
13377 | wxPyEndAllowThreads(__tstate); | |
13378 | if (PyErr_Occurred()) SWIG_fail; | |
13379 | } | |
13380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
c32bde28 | 13387 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13388 | PyObject *resultobj; |
13389 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13390 | int result; | |
13391 | PyObject * obj0 = 0 ; | |
13392 | char *kwnames[] = { | |
13393 | (char *) "self", NULL | |
13394 | }; | |
13395 | ||
13396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13399 | { | |
13400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13401 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13402 | ||
13403 | wxPyEndAllowThreads(__tstate); | |
13404 | if (PyErr_Occurred()) SWIG_fail; | |
13405 | } | |
c32bde28 | 13406 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13407 | return resultobj; |
13408 | fail: | |
13409 | return NULL; | |
13410 | } | |
13411 | ||
13412 | ||
c32bde28 | 13413 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13414 | PyObject *resultobj; |
13415 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13416 | wxString *arg2 = 0 ; | |
ae8162c8 | 13417 | bool temp2 = false ; |
d55e5bfc RD |
13418 | PyObject * obj0 = 0 ; |
13419 | PyObject * obj1 = 0 ; | |
13420 | char *kwnames[] = { | |
13421 | (char *) "self",(char *) "s", NULL | |
13422 | }; | |
13423 | ||
13424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
13425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13427 | { | |
13428 | arg2 = wxString_in_helper(obj1); | |
13429 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13430 | temp2 = true; |
d55e5bfc RD |
13431 | } |
13432 | { | |
13433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13434 | (arg1)->SetString((wxString const &)*arg2); | |
13435 | ||
13436 | wxPyEndAllowThreads(__tstate); | |
13437 | if (PyErr_Occurred()) SWIG_fail; | |
13438 | } | |
13439 | Py_INCREF(Py_None); resultobj = Py_None; | |
13440 | { | |
13441 | if (temp2) | |
13442 | delete arg2; | |
13443 | } | |
13444 | return resultobj; | |
13445 | fail: | |
13446 | { | |
13447 | if (temp2) | |
13448 | delete arg2; | |
13449 | } | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
c32bde28 | 13454 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13455 | PyObject *resultobj; |
13456 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13457 | wxString result; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
13464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13466 | { | |
13467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13468 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13469 | ||
13470 | wxPyEndAllowThreads(__tstate); | |
13471 | if (PyErr_Occurred()) SWIG_fail; | |
13472 | } | |
13473 | { | |
13474 | #if wxUSE_UNICODE | |
13475 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13476 | #else | |
13477 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13478 | #endif | |
13479 | } | |
13480 | return resultobj; | |
13481 | fail: | |
13482 | return NULL; | |
13483 | } | |
13484 | ||
13485 | ||
c32bde28 | 13486 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13487 | PyObject *resultobj; |
13488 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13489 | bool result; | |
13490 | PyObject * obj0 = 0 ; | |
13491 | char *kwnames[] = { | |
13492 | (char *) "self", NULL | |
13493 | }; | |
13494 | ||
13495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13498 | { | |
13499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13500 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13501 | ||
13502 | wxPyEndAllowThreads(__tstate); | |
13503 | if (PyErr_Occurred()) SWIG_fail; | |
13504 | } | |
13505 | { | |
13506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13507 | } | |
13508 | return resultobj; | |
13509 | fail: | |
13510 | return NULL; | |
13511 | } | |
13512 | ||
13513 | ||
c32bde28 | 13514 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13515 | PyObject *resultobj; |
13516 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13517 | bool result; | |
13518 | PyObject * obj0 = 0 ; | |
13519 | char *kwnames[] = { | |
13520 | (char *) "self", NULL | |
13521 | }; | |
13522 | ||
13523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13526 | { | |
13527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13528 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13529 | ||
13530 | wxPyEndAllowThreads(__tstate); | |
13531 | if (PyErr_Occurred()) SWIG_fail; | |
13532 | } | |
13533 | { | |
13534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13535 | } | |
13536 | return resultobj; | |
13537 | fail: | |
13538 | return NULL; | |
13539 | } | |
13540 | ||
13541 | ||
c32bde28 | 13542 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13543 | PyObject *resultobj; |
13544 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13545 | long arg2 ; | |
13546 | PyObject * obj0 = 0 ; | |
13547 | PyObject * obj1 = 0 ; | |
13548 | char *kwnames[] = { | |
13549 | (char *) "self",(char *) "extraLong", NULL | |
13550 | }; | |
13551 | ||
13552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13555 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
13556 | if (PyErr_Occurred()) SWIG_fail; |
13557 | { | |
13558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13559 | (arg1)->SetExtraLong(arg2); | |
13560 | ||
13561 | wxPyEndAllowThreads(__tstate); | |
13562 | if (PyErr_Occurred()) SWIG_fail; | |
13563 | } | |
13564 | Py_INCREF(Py_None); resultobj = Py_None; | |
13565 | return resultobj; | |
13566 | fail: | |
13567 | return NULL; | |
13568 | } | |
13569 | ||
13570 | ||
c32bde28 | 13571 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13572 | PyObject *resultobj; |
13573 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13574 | long result; | |
13575 | PyObject * obj0 = 0 ; | |
13576 | char *kwnames[] = { | |
13577 | (char *) "self", NULL | |
13578 | }; | |
13579 | ||
13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13583 | { | |
13584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13585 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13586 | ||
13587 | wxPyEndAllowThreads(__tstate); | |
13588 | if (PyErr_Occurred()) SWIG_fail; | |
13589 | } | |
c32bde28 | 13590 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13591 | return resultobj; |
13592 | fail: | |
13593 | return NULL; | |
13594 | } | |
13595 | ||
13596 | ||
c32bde28 | 13597 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13598 | PyObject *resultobj; |
13599 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13600 | int arg2 ; | |
13601 | PyObject * obj0 = 0 ; | |
13602 | PyObject * obj1 = 0 ; | |
13603 | char *kwnames[] = { | |
13604 | (char *) "self",(char *) "i", NULL | |
13605 | }; | |
13606 | ||
13607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13610 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13611 | if (PyErr_Occurred()) SWIG_fail; |
13612 | { | |
13613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13614 | (arg1)->SetInt(arg2); | |
13615 | ||
13616 | wxPyEndAllowThreads(__tstate); | |
13617 | if (PyErr_Occurred()) SWIG_fail; | |
13618 | } | |
13619 | Py_INCREF(Py_None); resultobj = Py_None; | |
13620 | return resultobj; | |
13621 | fail: | |
13622 | return NULL; | |
13623 | } | |
13624 | ||
13625 | ||
c32bde28 | 13626 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13627 | PyObject *resultobj; |
13628 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13629 | long result; | |
13630 | PyObject * obj0 = 0 ; | |
13631 | char *kwnames[] = { | |
13632 | (char *) "self", NULL | |
13633 | }; | |
13634 | ||
13635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
c32bde28 | 13645 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13646 | return resultobj; |
13647 | fail: | |
13648 | return NULL; | |
13649 | } | |
13650 | ||
13651 | ||
c32bde28 | 13652 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13653 | PyObject *resultobj; |
13654 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13655 | wxEvent *result; | |
13656 | PyObject * obj0 = 0 ; | |
13657 | char *kwnames[] = { | |
13658 | (char *) "self", NULL | |
13659 | }; | |
13660 | ||
13661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13664 | { | |
13665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13666 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13667 | ||
13668 | wxPyEndAllowThreads(__tstate); | |
13669 | if (PyErr_Occurred()) SWIG_fail; | |
13670 | } | |
13671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13672 | return resultobj; | |
13673 | fail: | |
13674 | return NULL; | |
13675 | } | |
13676 | ||
13677 | ||
c32bde28 | 13678 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13679 | PyObject *obj; |
13680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13681 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13682 | Py_INCREF(obj); | |
13683 | return Py_BuildValue((char *)""); | |
13684 | } | |
c32bde28 | 13685 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13686 | PyObject *resultobj; |
13687 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13688 | int arg2 = (int) 0 ; | |
13689 | wxNotifyEvent *result; | |
13690 | PyObject * obj0 = 0 ; | |
13691 | PyObject * obj1 = 0 ; | |
13692 | char *kwnames[] = { | |
13693 | (char *) "commandType",(char *) "winid", NULL | |
13694 | }; | |
13695 | ||
13696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13697 | if (obj0) { | |
c32bde28 | 13698 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13699 | if (PyErr_Occurred()) SWIG_fail; |
13700 | } | |
13701 | if (obj1) { | |
c32bde28 | 13702 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13703 | if (PyErr_Occurred()) SWIG_fail; |
13704 | } | |
13705 | { | |
13706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13707 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
13712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13713 | return resultobj; | |
13714 | fail: | |
13715 | return NULL; | |
13716 | } | |
13717 | ||
13718 | ||
c32bde28 | 13719 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13720 | PyObject *resultobj; |
13721 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13722 | PyObject * obj0 = 0 ; | |
13723 | char *kwnames[] = { | |
13724 | (char *) "self", NULL | |
13725 | }; | |
13726 | ||
13727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13730 | { | |
13731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13732 | (arg1)->Veto(); | |
13733 | ||
13734 | wxPyEndAllowThreads(__tstate); | |
13735 | if (PyErr_Occurred()) SWIG_fail; | |
13736 | } | |
13737 | Py_INCREF(Py_None); resultobj = Py_None; | |
13738 | return resultobj; | |
13739 | fail: | |
13740 | return NULL; | |
13741 | } | |
13742 | ||
13743 | ||
c32bde28 | 13744 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13745 | PyObject *resultobj; |
13746 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13747 | PyObject * obj0 = 0 ; | |
13748 | char *kwnames[] = { | |
13749 | (char *) "self", NULL | |
13750 | }; | |
13751 | ||
13752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13755 | { | |
13756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13757 | (arg1)->Allow(); | |
13758 | ||
13759 | wxPyEndAllowThreads(__tstate); | |
13760 | if (PyErr_Occurred()) SWIG_fail; | |
13761 | } | |
13762 | Py_INCREF(Py_None); resultobj = Py_None; | |
13763 | return resultobj; | |
13764 | fail: | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
c32bde28 | 13769 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13770 | PyObject *resultobj; |
13771 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13772 | bool result; | |
13773 | PyObject * obj0 = 0 ; | |
13774 | char *kwnames[] = { | |
13775 | (char *) "self", NULL | |
13776 | }; | |
13777 | ||
13778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13781 | { | |
13782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13783 | result = (bool)(arg1)->IsAllowed(); | |
13784 | ||
13785 | wxPyEndAllowThreads(__tstate); | |
13786 | if (PyErr_Occurred()) SWIG_fail; | |
13787 | } | |
13788 | { | |
13789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13790 | } | |
13791 | return resultobj; | |
13792 | fail: | |
13793 | return NULL; | |
13794 | } | |
13795 | ||
13796 | ||
c32bde28 | 13797 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13798 | PyObject *obj; |
13799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13800 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13801 | Py_INCREF(obj); | |
13802 | return Py_BuildValue((char *)""); | |
13803 | } | |
c32bde28 | 13804 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13805 | PyObject *resultobj; |
13806 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13807 | int arg2 = (int) 0 ; | |
13808 | int arg3 = (int) 0 ; | |
13809 | int arg4 = (int) 0 ; | |
13810 | wxScrollEvent *result; | |
13811 | PyObject * obj0 = 0 ; | |
13812 | PyObject * obj1 = 0 ; | |
13813 | PyObject * obj2 = 0 ; | |
13814 | PyObject * obj3 = 0 ; | |
13815 | char *kwnames[] = { | |
13816 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13817 | }; | |
13818 | ||
13819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13820 | if (obj0) { | |
c32bde28 | 13821 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13822 | if (PyErr_Occurred()) SWIG_fail; |
13823 | } | |
13824 | if (obj1) { | |
c32bde28 | 13825 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13826 | if (PyErr_Occurred()) SWIG_fail; |
13827 | } | |
13828 | if (obj2) { | |
c32bde28 | 13829 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13830 | if (PyErr_Occurred()) SWIG_fail; |
13831 | } | |
13832 | if (obj3) { | |
c32bde28 | 13833 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13834 | if (PyErr_Occurred()) SWIG_fail; |
13835 | } | |
13836 | { | |
13837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13838 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13839 | ||
13840 | wxPyEndAllowThreads(__tstate); | |
13841 | if (PyErr_Occurred()) SWIG_fail; | |
13842 | } | |
13843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13844 | return resultobj; | |
13845 | fail: | |
13846 | return NULL; | |
13847 | } | |
13848 | ||
13849 | ||
c32bde28 | 13850 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13851 | PyObject *resultobj; |
13852 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13853 | int result; | |
13854 | PyObject * obj0 = 0 ; | |
13855 | char *kwnames[] = { | |
13856 | (char *) "self", NULL | |
13857 | }; | |
13858 | ||
13859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13862 | { | |
13863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13864 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13865 | ||
13866 | wxPyEndAllowThreads(__tstate); | |
13867 | if (PyErr_Occurred()) SWIG_fail; | |
13868 | } | |
c32bde28 | 13869 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13870 | return resultobj; |
13871 | fail: | |
13872 | return NULL; | |
13873 | } | |
13874 | ||
13875 | ||
c32bde28 | 13876 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13877 | PyObject *resultobj; |
13878 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13879 | int result; | |
13880 | PyObject * obj0 = 0 ; | |
13881 | char *kwnames[] = { | |
13882 | (char *) "self", NULL | |
13883 | }; | |
13884 | ||
13885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13888 | { | |
13889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13890 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13891 | ||
13892 | wxPyEndAllowThreads(__tstate); | |
13893 | if (PyErr_Occurred()) SWIG_fail; | |
13894 | } | |
c32bde28 | 13895 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13896 | return resultobj; |
13897 | fail: | |
13898 | return NULL; | |
13899 | } | |
13900 | ||
13901 | ||
c32bde28 | 13902 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13903 | PyObject *resultobj; |
13904 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13905 | int arg2 ; | |
13906 | PyObject * obj0 = 0 ; | |
13907 | PyObject * obj1 = 0 ; | |
13908 | char *kwnames[] = { | |
13909 | (char *) "self",(char *) "orient", NULL | |
13910 | }; | |
13911 | ||
13912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13915 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13916 | if (PyErr_Occurred()) SWIG_fail; |
13917 | { | |
13918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13919 | (arg1)->SetOrientation(arg2); | |
13920 | ||
13921 | wxPyEndAllowThreads(__tstate); | |
13922 | if (PyErr_Occurred()) SWIG_fail; | |
13923 | } | |
13924 | Py_INCREF(Py_None); resultobj = Py_None; | |
13925 | return resultobj; | |
13926 | fail: | |
13927 | return NULL; | |
13928 | } | |
13929 | ||
13930 | ||
c32bde28 | 13931 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13932 | PyObject *resultobj; |
13933 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13934 | int arg2 ; | |
13935 | PyObject * obj0 = 0 ; | |
13936 | PyObject * obj1 = 0 ; | |
13937 | char *kwnames[] = { | |
13938 | (char *) "self",(char *) "pos", NULL | |
13939 | }; | |
13940 | ||
13941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13944 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13945 | if (PyErr_Occurred()) SWIG_fail; |
13946 | { | |
13947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13948 | (arg1)->SetPosition(arg2); | |
13949 | ||
13950 | wxPyEndAllowThreads(__tstate); | |
13951 | if (PyErr_Occurred()) SWIG_fail; | |
13952 | } | |
13953 | Py_INCREF(Py_None); resultobj = Py_None; | |
13954 | return resultobj; | |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
c32bde28 | 13960 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13961 | PyObject *obj; |
13962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13963 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13964 | Py_INCREF(obj); | |
13965 | return Py_BuildValue((char *)""); | |
13966 | } | |
c32bde28 | 13967 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13968 | PyObject *resultobj; |
13969 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13970 | int arg2 = (int) 0 ; | |
13971 | int arg3 = (int) 0 ; | |
13972 | wxScrollWinEvent *result; | |
13973 | PyObject * obj0 = 0 ; | |
13974 | PyObject * obj1 = 0 ; | |
13975 | PyObject * obj2 = 0 ; | |
13976 | char *kwnames[] = { | |
13977 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13978 | }; | |
13979 | ||
13980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13981 | if (obj0) { | |
c32bde28 | 13982 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13983 | if (PyErr_Occurred()) SWIG_fail; |
13984 | } | |
13985 | if (obj1) { | |
c32bde28 | 13986 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13987 | if (PyErr_Occurred()) SWIG_fail; |
13988 | } | |
13989 | if (obj2) { | |
c32bde28 | 13990 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13991 | if (PyErr_Occurred()) SWIG_fail; |
13992 | } | |
13993 | { | |
13994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13995 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13996 | ||
13997 | wxPyEndAllowThreads(__tstate); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
14001 | return resultobj; | |
14002 | fail: | |
14003 | return NULL; | |
14004 | } | |
14005 | ||
14006 | ||
c32bde28 | 14007 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14008 | PyObject *resultobj; |
14009 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14010 | int result; | |
14011 | PyObject * obj0 = 0 ; | |
14012 | char *kwnames[] = { | |
14013 | (char *) "self", NULL | |
14014 | }; | |
14015 | ||
14016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
14017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14019 | { | |
14020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14021 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
14022 | ||
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
c32bde28 | 14026 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14027 | return resultobj; |
14028 | fail: | |
14029 | return NULL; | |
14030 | } | |
14031 | ||
14032 | ||
c32bde28 | 14033 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14034 | PyObject *resultobj; |
14035 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14036 | int result; | |
14037 | PyObject * obj0 = 0 ; | |
14038 | char *kwnames[] = { | |
14039 | (char *) "self", NULL | |
14040 | }; | |
14041 | ||
14042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14045 | { | |
14046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14047 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
14048 | ||
14049 | wxPyEndAllowThreads(__tstate); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
14051 | } | |
c32bde28 | 14052 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14053 | return resultobj; |
14054 | fail: | |
14055 | return NULL; | |
14056 | } | |
14057 | ||
14058 | ||
c32bde28 | 14059 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14060 | PyObject *resultobj; |
14061 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14062 | int arg2 ; | |
14063 | PyObject * obj0 = 0 ; | |
14064 | PyObject * obj1 = 0 ; | |
14065 | char *kwnames[] = { | |
14066 | (char *) "self",(char *) "orient", NULL | |
14067 | }; | |
14068 | ||
14069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
14070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14072 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14073 | if (PyErr_Occurred()) SWIG_fail; |
14074 | { | |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14076 | (arg1)->SetOrientation(arg2); | |
14077 | ||
14078 | wxPyEndAllowThreads(__tstate); | |
14079 | if (PyErr_Occurred()) SWIG_fail; | |
14080 | } | |
14081 | Py_INCREF(Py_None); resultobj = Py_None; | |
14082 | return resultobj; | |
14083 | fail: | |
14084 | return NULL; | |
14085 | } | |
14086 | ||
14087 | ||
c32bde28 | 14088 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14089 | PyObject *resultobj; |
14090 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14091 | int arg2 ; | |
14092 | PyObject * obj0 = 0 ; | |
14093 | PyObject * obj1 = 0 ; | |
14094 | char *kwnames[] = { | |
14095 | (char *) "self",(char *) "pos", NULL | |
14096 | }; | |
14097 | ||
14098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
14099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14101 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14102 | if (PyErr_Occurred()) SWIG_fail; |
14103 | { | |
14104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14105 | (arg1)->SetPosition(arg2); | |
14106 | ||
14107 | wxPyEndAllowThreads(__tstate); | |
14108 | if (PyErr_Occurred()) SWIG_fail; | |
14109 | } | |
14110 | Py_INCREF(Py_None); resultobj = Py_None; | |
14111 | return resultobj; | |
14112 | fail: | |
14113 | return NULL; | |
14114 | } | |
14115 | ||
14116 | ||
c32bde28 | 14117 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14118 | PyObject *obj; |
14119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14120 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
14121 | Py_INCREF(obj); | |
14122 | return Py_BuildValue((char *)""); | |
14123 | } | |
c32bde28 | 14124 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14125 | PyObject *resultobj; |
14126 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14127 | wxMouseEvent *result; | |
14128 | PyObject * obj0 = 0 ; | |
14129 | char *kwnames[] = { | |
14130 | (char *) "mouseType", NULL | |
14131 | }; | |
14132 | ||
14133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
14134 | if (obj0) { | |
c32bde28 | 14135 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
14136 | if (PyErr_Occurred()) SWIG_fail; |
14137 | } | |
14138 | { | |
14139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14140 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
14141 | ||
14142 | wxPyEndAllowThreads(__tstate); | |
14143 | if (PyErr_Occurred()) SWIG_fail; | |
14144 | } | |
14145 | { | |
412d302d | 14146 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
14147 | } |
14148 | return resultobj; | |
14149 | fail: | |
14150 | return NULL; | |
14151 | } | |
14152 | ||
14153 | ||
c32bde28 | 14154 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14155 | PyObject *resultobj; |
14156 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14157 | bool result; | |
14158 | PyObject * obj0 = 0 ; | |
14159 | char *kwnames[] = { | |
14160 | (char *) "self", NULL | |
14161 | }; | |
14162 | ||
14163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
14164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14166 | { | |
14167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14168 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
14169 | ||
14170 | wxPyEndAllowThreads(__tstate); | |
14171 | if (PyErr_Occurred()) SWIG_fail; | |
14172 | } | |
14173 | { | |
14174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14175 | } | |
14176 | return resultobj; | |
14177 | fail: | |
14178 | return NULL; | |
14179 | } | |
14180 | ||
14181 | ||
c32bde28 | 14182 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14183 | PyObject *resultobj; |
14184 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14185 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14186 | bool result; | |
14187 | PyObject * obj0 = 0 ; | |
14188 | PyObject * obj1 = 0 ; | |
14189 | char *kwnames[] = { | |
14190 | (char *) "self",(char *) "but", NULL | |
14191 | }; | |
14192 | ||
14193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
14194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14196 | if (obj1) { | |
c32bde28 | 14197 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14198 | if (PyErr_Occurred()) SWIG_fail; |
14199 | } | |
14200 | { | |
14201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14202 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
14203 | ||
14204 | wxPyEndAllowThreads(__tstate); | |
14205 | if (PyErr_Occurred()) SWIG_fail; | |
14206 | } | |
14207 | { | |
14208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14209 | } | |
14210 | return resultobj; | |
14211 | fail: | |
14212 | return NULL; | |
14213 | } | |
14214 | ||
14215 | ||
c32bde28 | 14216 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14217 | PyObject *resultobj; |
14218 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14219 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14220 | bool result; | |
14221 | PyObject * obj0 = 0 ; | |
14222 | PyObject * obj1 = 0 ; | |
14223 | char *kwnames[] = { | |
14224 | (char *) "self",(char *) "but", NULL | |
14225 | }; | |
14226 | ||
14227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
14228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14230 | if (obj1) { | |
c32bde28 | 14231 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14232 | if (PyErr_Occurred()) SWIG_fail; |
14233 | } | |
14234 | { | |
14235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14236 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
14237 | ||
14238 | wxPyEndAllowThreads(__tstate); | |
14239 | if (PyErr_Occurred()) SWIG_fail; | |
14240 | } | |
14241 | { | |
14242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14243 | } | |
14244 | return resultobj; | |
14245 | fail: | |
14246 | return NULL; | |
14247 | } | |
14248 | ||
14249 | ||
c32bde28 | 14250 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14251 | PyObject *resultobj; |
14252 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14253 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14254 | bool result; | |
14255 | PyObject * obj0 = 0 ; | |
14256 | PyObject * obj1 = 0 ; | |
14257 | char *kwnames[] = { | |
14258 | (char *) "self",(char *) "but", NULL | |
14259 | }; | |
14260 | ||
14261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
14262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14264 | if (obj1) { | |
c32bde28 | 14265 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14266 | if (PyErr_Occurred()) SWIG_fail; |
14267 | } | |
14268 | { | |
14269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14270 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14271 | ||
14272 | wxPyEndAllowThreads(__tstate); | |
14273 | if (PyErr_Occurred()) SWIG_fail; | |
14274 | } | |
14275 | { | |
14276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14277 | } | |
14278 | return resultobj; | |
14279 | fail: | |
14280 | return NULL; | |
14281 | } | |
14282 | ||
14283 | ||
c32bde28 | 14284 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14285 | PyObject *resultobj; |
14286 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14287 | int arg2 ; | |
14288 | bool result; | |
14289 | PyObject * obj0 = 0 ; | |
14290 | PyObject * obj1 = 0 ; | |
14291 | char *kwnames[] = { | |
14292 | (char *) "self",(char *) "but", NULL | |
14293 | }; | |
14294 | ||
14295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
14296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14298 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14299 | if (PyErr_Occurred()) SWIG_fail; |
14300 | { | |
14301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14302 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14303 | ||
14304 | wxPyEndAllowThreads(__tstate); | |
14305 | if (PyErr_Occurred()) SWIG_fail; | |
14306 | } | |
14307 | { | |
14308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14309 | } | |
14310 | return resultobj; | |
14311 | fail: | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
c32bde28 | 14316 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14317 | PyObject *resultobj; |
14318 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14319 | int arg2 ; | |
14320 | bool result; | |
14321 | PyObject * obj0 = 0 ; | |
14322 | PyObject * obj1 = 0 ; | |
14323 | char *kwnames[] = { | |
14324 | (char *) "self",(char *) "but", NULL | |
14325 | }; | |
14326 | ||
14327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
14328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14330 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14331 | if (PyErr_Occurred()) SWIG_fail; |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | { | |
14340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14341 | } | |
14342 | return resultobj; | |
14343 | fail: | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
c32bde28 | 14348 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14349 | PyObject *resultobj; |
14350 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14351 | int result; | |
14352 | PyObject * obj0 = 0 ; | |
14353 | char *kwnames[] = { | |
14354 | (char *) "self", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
14358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14360 | { | |
14361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14362 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14363 | ||
14364 | wxPyEndAllowThreads(__tstate); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | } | |
c32bde28 | 14367 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14368 | return resultobj; |
14369 | fail: | |
14370 | return NULL; | |
14371 | } | |
14372 | ||
14373 | ||
c32bde28 | 14374 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14375 | PyObject *resultobj; |
14376 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14377 | bool result; | |
14378 | PyObject * obj0 = 0 ; | |
14379 | char *kwnames[] = { | |
14380 | (char *) "self", NULL | |
14381 | }; | |
14382 | ||
14383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14386 | { | |
14387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14388 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14389 | ||
14390 | wxPyEndAllowThreads(__tstate); | |
14391 | if (PyErr_Occurred()) SWIG_fail; | |
14392 | } | |
14393 | { | |
14394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14395 | } | |
14396 | return resultobj; | |
14397 | fail: | |
14398 | return NULL; | |
14399 | } | |
14400 | ||
14401 | ||
c32bde28 | 14402 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14403 | PyObject *resultobj; |
14404 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14405 | bool result; | |
14406 | PyObject * obj0 = 0 ; | |
14407 | char *kwnames[] = { | |
14408 | (char *) "self", NULL | |
14409 | }; | |
14410 | ||
14411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14414 | { | |
14415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14416 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14417 | ||
14418 | wxPyEndAllowThreads(__tstate); | |
14419 | if (PyErr_Occurred()) SWIG_fail; | |
14420 | } | |
14421 | { | |
14422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14423 | } | |
14424 | return resultobj; | |
14425 | fail: | |
14426 | return NULL; | |
14427 | } | |
14428 | ||
14429 | ||
c32bde28 | 14430 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14431 | PyObject *resultobj; |
14432 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14433 | bool result; | |
14434 | PyObject * obj0 = 0 ; | |
14435 | char *kwnames[] = { | |
14436 | (char *) "self", NULL | |
14437 | }; | |
14438 | ||
14439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
14440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14442 | { | |
14443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14444 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14445 | ||
14446 | wxPyEndAllowThreads(__tstate); | |
14447 | if (PyErr_Occurred()) SWIG_fail; | |
14448 | } | |
14449 | { | |
14450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14451 | } | |
14452 | return resultobj; | |
14453 | fail: | |
14454 | return NULL; | |
14455 | } | |
14456 | ||
14457 | ||
c32bde28 | 14458 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14459 | PyObject *resultobj; |
14460 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14461 | bool result; | |
14462 | PyObject * obj0 = 0 ; | |
14463 | char *kwnames[] = { | |
14464 | (char *) "self", NULL | |
14465 | }; | |
14466 | ||
14467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14470 | { | |
14471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14472 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14473 | ||
14474 | wxPyEndAllowThreads(__tstate); | |
14475 | if (PyErr_Occurred()) SWIG_fail; | |
14476 | } | |
14477 | { | |
14478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14479 | } | |
14480 | return resultobj; | |
14481 | fail: | |
14482 | return NULL; | |
14483 | } | |
14484 | ||
14485 | ||
c32bde28 | 14486 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14487 | PyObject *resultobj; |
14488 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14489 | bool result; | |
14490 | PyObject * obj0 = 0 ; | |
14491 | char *kwnames[] = { | |
14492 | (char *) "self", NULL | |
14493 | }; | |
14494 | ||
14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14498 | { | |
14499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14500 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14501 | ||
14502 | wxPyEndAllowThreads(__tstate); | |
14503 | if (PyErr_Occurred()) SWIG_fail; | |
14504 | } | |
14505 | { | |
14506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14507 | } | |
14508 | return resultobj; | |
14509 | fail: | |
14510 | return NULL; | |
14511 | } | |
14512 | ||
14513 | ||
c32bde28 | 14514 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14515 | PyObject *resultobj; |
14516 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14517 | bool result; | |
14518 | PyObject * obj0 = 0 ; | |
14519 | char *kwnames[] = { | |
14520 | (char *) "self", NULL | |
14521 | }; | |
14522 | ||
14523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14526 | { | |
14527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14528 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14529 | ||
14530 | wxPyEndAllowThreads(__tstate); | |
14531 | if (PyErr_Occurred()) SWIG_fail; | |
14532 | } | |
14533 | { | |
14534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14535 | } | |
14536 | return resultobj; | |
14537 | fail: | |
14538 | return NULL; | |
14539 | } | |
14540 | ||
14541 | ||
c32bde28 | 14542 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14543 | PyObject *resultobj; |
14544 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14545 | bool result; | |
14546 | PyObject * obj0 = 0 ; | |
14547 | char *kwnames[] = { | |
14548 | (char *) "self", NULL | |
14549 | }; | |
14550 | ||
14551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
14552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14554 | { | |
14555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14556 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14557 | ||
14558 | wxPyEndAllowThreads(__tstate); | |
14559 | if (PyErr_Occurred()) SWIG_fail; | |
14560 | } | |
14561 | { | |
14562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14563 | } | |
14564 | return resultobj; | |
14565 | fail: | |
14566 | return NULL; | |
14567 | } | |
14568 | ||
14569 | ||
c32bde28 | 14570 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14571 | PyObject *resultobj; |
14572 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14573 | bool result; | |
14574 | PyObject * obj0 = 0 ; | |
14575 | char *kwnames[] = { | |
14576 | (char *) "self", NULL | |
14577 | }; | |
14578 | ||
14579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14582 | { | |
14583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14584 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14585 | ||
14586 | wxPyEndAllowThreads(__tstate); | |
14587 | if (PyErr_Occurred()) SWIG_fail; | |
14588 | } | |
14589 | { | |
14590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14591 | } | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
c32bde28 | 14598 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14599 | PyObject *resultobj; |
14600 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14601 | bool result; | |
14602 | PyObject * obj0 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "self", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14610 | { | |
14611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14612 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14613 | ||
14614 | wxPyEndAllowThreads(__tstate); | |
14615 | if (PyErr_Occurred()) SWIG_fail; | |
14616 | } | |
14617 | { | |
14618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14619 | } | |
14620 | return resultobj; | |
14621 | fail: | |
14622 | return NULL; | |
14623 | } | |
14624 | ||
14625 | ||
c32bde28 | 14626 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14627 | PyObject *resultobj; |
14628 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14629 | bool result; | |
14630 | PyObject * obj0 = 0 ; | |
14631 | char *kwnames[] = { | |
14632 | (char *) "self", NULL | |
14633 | }; | |
14634 | ||
14635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14638 | { | |
14639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14640 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14641 | ||
14642 | wxPyEndAllowThreads(__tstate); | |
14643 | if (PyErr_Occurred()) SWIG_fail; | |
14644 | } | |
14645 | { | |
14646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14647 | } | |
14648 | return resultobj; | |
14649 | fail: | |
14650 | return NULL; | |
14651 | } | |
14652 | ||
14653 | ||
c32bde28 | 14654 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14655 | PyObject *resultobj; |
14656 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14657 | bool result; | |
14658 | PyObject * obj0 = 0 ; | |
14659 | char *kwnames[] = { | |
14660 | (char *) "self", NULL | |
14661 | }; | |
14662 | ||
14663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14666 | { | |
14667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14668 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14669 | ||
14670 | wxPyEndAllowThreads(__tstate); | |
14671 | if (PyErr_Occurred()) SWIG_fail; | |
14672 | } | |
14673 | { | |
14674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14675 | } | |
14676 | return resultobj; | |
14677 | fail: | |
14678 | return NULL; | |
14679 | } | |
14680 | ||
14681 | ||
c32bde28 | 14682 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14683 | PyObject *resultobj; |
14684 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14685 | bool result; | |
14686 | PyObject * obj0 = 0 ; | |
14687 | char *kwnames[] = { | |
14688 | (char *) "self", NULL | |
14689 | }; | |
14690 | ||
14691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14694 | { | |
14695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14696 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14697 | ||
14698 | wxPyEndAllowThreads(__tstate); | |
14699 | if (PyErr_Occurred()) SWIG_fail; | |
14700 | } | |
14701 | { | |
14702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14703 | } | |
14704 | return resultobj; | |
14705 | fail: | |
14706 | return NULL; | |
14707 | } | |
14708 | ||
14709 | ||
c32bde28 | 14710 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14711 | PyObject *resultobj; |
14712 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14713 | bool result; | |
14714 | PyObject * obj0 = 0 ; | |
14715 | char *kwnames[] = { | |
14716 | (char *) "self", NULL | |
14717 | }; | |
14718 | ||
14719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14722 | { | |
14723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14724 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14725 | ||
14726 | wxPyEndAllowThreads(__tstate); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | } | |
14729 | { | |
14730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14731 | } | |
14732 | return resultobj; | |
14733 | fail: | |
14734 | return NULL; | |
14735 | } | |
14736 | ||
14737 | ||
c32bde28 | 14738 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14739 | PyObject *resultobj; |
14740 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14741 | bool result; | |
14742 | PyObject * obj0 = 0 ; | |
14743 | char *kwnames[] = { | |
14744 | (char *) "self", NULL | |
14745 | }; | |
14746 | ||
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14750 | { | |
14751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14752 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14753 | ||
14754 | wxPyEndAllowThreads(__tstate); | |
14755 | if (PyErr_Occurred()) SWIG_fail; | |
14756 | } | |
14757 | { | |
14758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14759 | } | |
14760 | return resultobj; | |
14761 | fail: | |
14762 | return NULL; | |
14763 | } | |
14764 | ||
14765 | ||
c32bde28 | 14766 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14767 | PyObject *resultobj; |
14768 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14769 | bool result; | |
14770 | PyObject * obj0 = 0 ; | |
14771 | char *kwnames[] = { | |
14772 | (char *) "self", NULL | |
14773 | }; | |
14774 | ||
14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14778 | { | |
14779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14780 | result = (bool)(arg1)->LeftIsDown(); | |
14781 | ||
14782 | wxPyEndAllowThreads(__tstate); | |
14783 | if (PyErr_Occurred()) SWIG_fail; | |
14784 | } | |
14785 | { | |
14786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14787 | } | |
14788 | return resultobj; | |
14789 | fail: | |
14790 | return NULL; | |
14791 | } | |
14792 | ||
14793 | ||
c32bde28 | 14794 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14795 | PyObject *resultobj; |
14796 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14797 | bool result; | |
14798 | PyObject * obj0 = 0 ; | |
14799 | char *kwnames[] = { | |
14800 | (char *) "self", NULL | |
14801 | }; | |
14802 | ||
14803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14806 | { | |
14807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14808 | result = (bool)(arg1)->MiddleIsDown(); | |
14809 | ||
14810 | wxPyEndAllowThreads(__tstate); | |
14811 | if (PyErr_Occurred()) SWIG_fail; | |
14812 | } | |
14813 | { | |
14814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14815 | } | |
14816 | return resultobj; | |
14817 | fail: | |
14818 | return NULL; | |
14819 | } | |
14820 | ||
14821 | ||
c32bde28 | 14822 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14823 | PyObject *resultobj; |
14824 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14825 | bool result; | |
14826 | PyObject * obj0 = 0 ; | |
14827 | char *kwnames[] = { | |
14828 | (char *) "self", NULL | |
14829 | }; | |
14830 | ||
14831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14834 | { | |
14835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14836 | result = (bool)(arg1)->RightIsDown(); | |
14837 | ||
14838 | wxPyEndAllowThreads(__tstate); | |
14839 | if (PyErr_Occurred()) SWIG_fail; | |
14840 | } | |
14841 | { | |
14842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14843 | } | |
14844 | return resultobj; | |
14845 | fail: | |
14846 | return NULL; | |
14847 | } | |
14848 | ||
14849 | ||
c32bde28 | 14850 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14851 | PyObject *resultobj; |
14852 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14853 | bool result; | |
14854 | PyObject * obj0 = 0 ; | |
14855 | char *kwnames[] = { | |
14856 | (char *) "self", NULL | |
14857 | }; | |
14858 | ||
14859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14862 | { | |
14863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14864 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14865 | ||
14866 | wxPyEndAllowThreads(__tstate); | |
14867 | if (PyErr_Occurred()) SWIG_fail; | |
14868 | } | |
14869 | { | |
14870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14871 | } | |
14872 | return resultobj; | |
14873 | fail: | |
14874 | return NULL; | |
14875 | } | |
14876 | ||
14877 | ||
c32bde28 | 14878 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14879 | PyObject *resultobj; |
14880 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14881 | bool result; | |
14882 | PyObject * obj0 = 0 ; | |
14883 | char *kwnames[] = { | |
14884 | (char *) "self", NULL | |
14885 | }; | |
14886 | ||
14887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14890 | { | |
14891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14892 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14893 | ||
14894 | wxPyEndAllowThreads(__tstate); | |
14895 | if (PyErr_Occurred()) SWIG_fail; | |
14896 | } | |
14897 | { | |
14898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14899 | } | |
14900 | return resultobj; | |
14901 | fail: | |
14902 | return NULL; | |
14903 | } | |
14904 | ||
14905 | ||
c32bde28 | 14906 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14907 | PyObject *resultobj; |
14908 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14909 | bool result; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | char *kwnames[] = { | |
14912 | (char *) "self", NULL | |
14913 | }; | |
14914 | ||
14915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14918 | { | |
14919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14920 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14921 | ||
14922 | wxPyEndAllowThreads(__tstate); | |
14923 | if (PyErr_Occurred()) SWIG_fail; | |
14924 | } | |
14925 | { | |
14926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14927 | } | |
14928 | return resultobj; | |
14929 | fail: | |
14930 | return NULL; | |
14931 | } | |
14932 | ||
14933 | ||
c32bde28 | 14934 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14935 | PyObject *resultobj; |
14936 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14937 | bool result; | |
14938 | PyObject * obj0 = 0 ; | |
14939 | char *kwnames[] = { | |
14940 | (char *) "self", NULL | |
14941 | }; | |
14942 | ||
14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14946 | { | |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14949 | ||
14950 | wxPyEndAllowThreads(__tstate); | |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
14953 | { | |
14954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14955 | } | |
14956 | return resultobj; | |
14957 | fail: | |
14958 | return NULL; | |
14959 | } | |
14960 | ||
14961 | ||
c32bde28 | 14962 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14963 | PyObject *resultobj; |
14964 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14965 | wxPoint result; | |
14966 | PyObject * obj0 = 0 ; | |
14967 | char *kwnames[] = { | |
14968 | (char *) "self", NULL | |
14969 | }; | |
14970 | ||
14971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14974 | { | |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | result = (arg1)->GetPosition(); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
14981 | { | |
14982 | wxPoint * resultptr; | |
14983 | resultptr = new wxPoint((wxPoint &) result); | |
14984 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14985 | } | |
14986 | return resultobj; | |
14987 | fail: | |
14988 | return NULL; | |
14989 | } | |
14990 | ||
14991 | ||
c32bde28 | 14992 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14993 | PyObject *resultobj; |
14994 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14995 | long *arg2 = (long *) 0 ; | |
14996 | long *arg3 = (long *) 0 ; | |
14997 | long temp2 ; | |
c32bde28 | 14998 | int res2 = 0 ; |
d55e5bfc | 14999 | long temp3 ; |
c32bde28 | 15000 | int res3 = 0 ; |
d55e5bfc RD |
15001 | PyObject * obj0 = 0 ; |
15002 | char *kwnames[] = { | |
15003 | (char *) "self", NULL | |
15004 | }; | |
15005 | ||
c32bde28 RD |
15006 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15007 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
15009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15011 | { | |
15012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15013 | (arg1)->GetPosition(arg2,arg3); | |
15014 | ||
15015 | wxPyEndAllowThreads(__tstate); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
15018 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
15019 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15020 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
15021 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15022 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
15023 | return resultobj; |
15024 | fail: | |
15025 | return NULL; | |
15026 | } | |
15027 | ||
15028 | ||
c32bde28 | 15029 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15030 | PyObject *resultobj; |
15031 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15032 | wxDC *arg2 = 0 ; | |
15033 | wxPoint result; | |
15034 | PyObject * obj0 = 0 ; | |
15035 | PyObject * obj1 = 0 ; | |
15036 | char *kwnames[] = { | |
15037 | (char *) "self",(char *) "dc", NULL | |
15038 | }; | |
15039 | ||
15040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15045 | SWIG_fail; | |
15046 | if (arg2 == NULL) { | |
15047 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15048 | SWIG_fail; | |
15049 | } | |
15050 | { | |
15051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15052 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
15053 | ||
15054 | wxPyEndAllowThreads(__tstate); | |
15055 | if (PyErr_Occurred()) SWIG_fail; | |
15056 | } | |
15057 | { | |
15058 | wxPoint * resultptr; | |
15059 | resultptr = new wxPoint((wxPoint &) result); | |
15060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15061 | } | |
15062 | return resultobj; | |
15063 | fail: | |
15064 | return NULL; | |
15065 | } | |
15066 | ||
15067 | ||
c32bde28 | 15068 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15069 | PyObject *resultobj; |
15070 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15071 | int result; | |
15072 | PyObject * obj0 = 0 ; | |
15073 | char *kwnames[] = { | |
15074 | (char *) "self", NULL | |
15075 | }; | |
15076 | ||
15077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15080 | { | |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
c32bde28 | 15087 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15088 | return resultobj; |
15089 | fail: | |
15090 | return NULL; | |
15091 | } | |
15092 | ||
15093 | ||
c32bde28 | 15094 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15095 | PyObject *resultobj; |
15096 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15097 | int result; | |
15098 | PyObject * obj0 = 0 ; | |
15099 | char *kwnames[] = { | |
15100 | (char *) "self", NULL | |
15101 | }; | |
15102 | ||
15103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15106 | { | |
15107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15108 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
15109 | ||
15110 | wxPyEndAllowThreads(__tstate); | |
15111 | if (PyErr_Occurred()) SWIG_fail; | |
15112 | } | |
c32bde28 | 15113 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15114 | return resultobj; |
15115 | fail: | |
15116 | return NULL; | |
15117 | } | |
15118 | ||
15119 | ||
c32bde28 | 15120 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15121 | PyObject *resultobj; |
15122 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15123 | int result; | |
15124 | PyObject * obj0 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15132 | { | |
15133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15134 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
15135 | ||
15136 | wxPyEndAllowThreads(__tstate); | |
15137 | if (PyErr_Occurred()) SWIG_fail; | |
15138 | } | |
c32bde28 | 15139 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15140 | return resultobj; |
15141 | fail: | |
15142 | return NULL; | |
15143 | } | |
15144 | ||
15145 | ||
c32bde28 | 15146 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15147 | PyObject *resultobj; |
15148 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15149 | int result; | |
15150 | PyObject * obj0 = 0 ; | |
15151 | char *kwnames[] = { | |
15152 | (char *) "self", NULL | |
15153 | }; | |
15154 | ||
15155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15160 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
15161 | ||
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
c32bde28 | 15165 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15166 | return resultobj; |
15167 | fail: | |
15168 | return NULL; | |
15169 | } | |
15170 | ||
15171 | ||
c32bde28 | 15172 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15173 | PyObject *resultobj; |
15174 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15175 | int result; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self", NULL | |
15179 | }; | |
15180 | ||
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15184 | { | |
15185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15186 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
15187 | ||
15188 | wxPyEndAllowThreads(__tstate); | |
15189 | if (PyErr_Occurred()) SWIG_fail; | |
15190 | } | |
c32bde28 | 15191 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15192 | return resultobj; |
15193 | fail: | |
15194 | return NULL; | |
15195 | } | |
15196 | ||
15197 | ||
c32bde28 | 15198 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15199 | PyObject *resultobj; |
15200 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15201 | bool result; | |
15202 | PyObject * obj0 = 0 ; | |
15203 | char *kwnames[] = { | |
15204 | (char *) "self", NULL | |
15205 | }; | |
15206 | ||
15207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15210 | { | |
15211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15212 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
15213 | ||
15214 | wxPyEndAllowThreads(__tstate); | |
15215 | if (PyErr_Occurred()) SWIG_fail; | |
15216 | } | |
15217 | { | |
15218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15219 | } | |
15220 | return resultobj; | |
15221 | fail: | |
15222 | return NULL; | |
15223 | } | |
15224 | ||
15225 | ||
c32bde28 | 15226 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15227 | PyObject *resultobj; |
15228 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15229 | int arg2 ; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | PyObject * obj1 = 0 ; | |
15232 | char *kwnames[] = { | |
15233 | (char *) "self",(char *) "m_x", NULL | |
15234 | }; | |
15235 | ||
15236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15239 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15240 | if (PyErr_Occurred()) SWIG_fail; |
15241 | if (arg1) (arg1)->m_x = arg2; | |
15242 | ||
15243 | Py_INCREF(Py_None); resultobj = Py_None; | |
15244 | return resultobj; | |
15245 | fail: | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
c32bde28 | 15250 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15251 | PyObject *resultobj; |
15252 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15253 | int result; | |
15254 | PyObject * obj0 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "self", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15262 | result = (int) ((arg1)->m_x); | |
15263 | ||
c32bde28 | 15264 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15265 | return resultobj; |
15266 | fail: | |
15267 | return NULL; | |
15268 | } | |
15269 | ||
15270 | ||
c32bde28 | 15271 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15272 | PyObject *resultobj; |
15273 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15274 | int arg2 ; | |
15275 | PyObject * obj0 = 0 ; | |
15276 | PyObject * obj1 = 0 ; | |
15277 | char *kwnames[] = { | |
15278 | (char *) "self",(char *) "m_y", NULL | |
15279 | }; | |
15280 | ||
15281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15284 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15285 | if (PyErr_Occurred()) SWIG_fail; |
15286 | if (arg1) (arg1)->m_y = arg2; | |
15287 | ||
15288 | Py_INCREF(Py_None); resultobj = Py_None; | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
15292 | } | |
15293 | ||
15294 | ||
c32bde28 | 15295 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15296 | PyObject *resultobj; |
15297 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15298 | int result; | |
15299 | PyObject * obj0 = 0 ; | |
15300 | char *kwnames[] = { | |
15301 | (char *) "self", NULL | |
15302 | }; | |
15303 | ||
15304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15307 | result = (int) ((arg1)->m_y); | |
15308 | ||
c32bde28 | 15309 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15310 | return resultobj; |
15311 | fail: | |
15312 | return NULL; | |
15313 | } | |
15314 | ||
15315 | ||
c32bde28 | 15316 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15317 | PyObject *resultobj; |
15318 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15319 | bool arg2 ; | |
15320 | PyObject * obj0 = 0 ; | |
15321 | PyObject * obj1 = 0 ; | |
15322 | char *kwnames[] = { | |
15323 | (char *) "self",(char *) "m_leftDown", NULL | |
15324 | }; | |
15325 | ||
15326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15329 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15330 | if (PyErr_Occurred()) SWIG_fail; |
15331 | if (arg1) (arg1)->m_leftDown = arg2; | |
15332 | ||
15333 | Py_INCREF(Py_None); resultobj = Py_None; | |
15334 | return resultobj; | |
15335 | fail: | |
15336 | return NULL; | |
15337 | } | |
15338 | ||
15339 | ||
c32bde28 | 15340 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15341 | PyObject *resultobj; |
15342 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15343 | bool result; | |
15344 | PyObject * obj0 = 0 ; | |
15345 | char *kwnames[] = { | |
15346 | (char *) "self", NULL | |
15347 | }; | |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15352 | result = (bool) ((arg1)->m_leftDown); | |
15353 | ||
15354 | { | |
15355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15356 | } | |
15357 | return resultobj; | |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
c32bde28 | 15363 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15364 | PyObject *resultobj; |
15365 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15366 | bool arg2 ; | |
15367 | PyObject * obj0 = 0 ; | |
15368 | PyObject * obj1 = 0 ; | |
15369 | char *kwnames[] = { | |
15370 | (char *) "self",(char *) "m_middleDown", NULL | |
15371 | }; | |
15372 | ||
15373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15376 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15377 | if (PyErr_Occurred()) SWIG_fail; |
15378 | if (arg1) (arg1)->m_middleDown = arg2; | |
15379 | ||
15380 | Py_INCREF(Py_None); resultobj = Py_None; | |
15381 | return resultobj; | |
15382 | fail: | |
15383 | return NULL; | |
15384 | } | |
15385 | ||
15386 | ||
c32bde28 | 15387 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15388 | PyObject *resultobj; |
15389 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15390 | bool result; | |
15391 | PyObject * obj0 = 0 ; | |
15392 | char *kwnames[] = { | |
15393 | (char *) "self", NULL | |
15394 | }; | |
15395 | ||
15396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15399 | result = (bool) ((arg1)->m_middleDown); | |
15400 | ||
15401 | { | |
15402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15403 | } | |
15404 | return resultobj; | |
15405 | fail: | |
15406 | return NULL; | |
15407 | } | |
15408 | ||
15409 | ||
c32bde28 | 15410 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15411 | PyObject *resultobj; |
15412 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15413 | bool arg2 ; | |
15414 | PyObject * obj0 = 0 ; | |
15415 | PyObject * obj1 = 0 ; | |
15416 | char *kwnames[] = { | |
15417 | (char *) "self",(char *) "m_rightDown", NULL | |
15418 | }; | |
15419 | ||
15420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15423 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15424 | if (PyErr_Occurred()) SWIG_fail; |
15425 | if (arg1) (arg1)->m_rightDown = arg2; | |
15426 | ||
15427 | Py_INCREF(Py_None); resultobj = Py_None; | |
15428 | return resultobj; | |
15429 | fail: | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
c32bde28 | 15434 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15435 | PyObject *resultobj; |
15436 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15437 | bool result; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | char *kwnames[] = { | |
15440 | (char *) "self", NULL | |
15441 | }; | |
15442 | ||
15443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15446 | result = (bool) ((arg1)->m_rightDown); | |
15447 | ||
15448 | { | |
15449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15450 | } | |
15451 | return resultobj; | |
15452 | fail: | |
15453 | return NULL; | |
15454 | } | |
15455 | ||
15456 | ||
c32bde28 | 15457 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15458 | PyObject *resultobj; |
15459 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15460 | bool arg2 ; | |
15461 | PyObject * obj0 = 0 ; | |
15462 | PyObject * obj1 = 0 ; | |
15463 | char *kwnames[] = { | |
15464 | (char *) "self",(char *) "m_controlDown", NULL | |
15465 | }; | |
15466 | ||
15467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15470 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15471 | if (PyErr_Occurred()) SWIG_fail; |
15472 | if (arg1) (arg1)->m_controlDown = arg2; | |
15473 | ||
15474 | Py_INCREF(Py_None); resultobj = Py_None; | |
15475 | return resultobj; | |
15476 | fail: | |
15477 | return NULL; | |
15478 | } | |
15479 | ||
15480 | ||
c32bde28 | 15481 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15482 | PyObject *resultobj; |
15483 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15484 | bool result; | |
15485 | PyObject * obj0 = 0 ; | |
15486 | char *kwnames[] = { | |
15487 | (char *) "self", NULL | |
15488 | }; | |
15489 | ||
15490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15493 | result = (bool) ((arg1)->m_controlDown); | |
15494 | ||
15495 | { | |
15496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15497 | } | |
15498 | return resultobj; | |
15499 | fail: | |
15500 | return NULL; | |
15501 | } | |
15502 | ||
15503 | ||
c32bde28 | 15504 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15505 | PyObject *resultobj; |
15506 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15507 | bool arg2 ; | |
15508 | PyObject * obj0 = 0 ; | |
15509 | PyObject * obj1 = 0 ; | |
15510 | char *kwnames[] = { | |
15511 | (char *) "self",(char *) "m_shiftDown", NULL | |
15512 | }; | |
15513 | ||
15514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15517 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15518 | if (PyErr_Occurred()) SWIG_fail; |
15519 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15520 | ||
15521 | Py_INCREF(Py_None); resultobj = Py_None; | |
15522 | return resultobj; | |
15523 | fail: | |
15524 | return NULL; | |
15525 | } | |
15526 | ||
15527 | ||
c32bde28 | 15528 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15529 | PyObject *resultobj; |
15530 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15531 | bool result; | |
15532 | PyObject * obj0 = 0 ; | |
15533 | char *kwnames[] = { | |
15534 | (char *) "self", NULL | |
15535 | }; | |
15536 | ||
15537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15540 | result = (bool) ((arg1)->m_shiftDown); | |
15541 | ||
15542 | { | |
15543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15544 | } | |
15545 | return resultobj; | |
15546 | fail: | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
c32bde28 | 15551 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15552 | PyObject *resultobj; |
15553 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15554 | bool arg2 ; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | PyObject * obj1 = 0 ; | |
15557 | char *kwnames[] = { | |
15558 | (char *) "self",(char *) "m_altDown", NULL | |
15559 | }; | |
15560 | ||
15561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15564 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15565 | if (PyErr_Occurred()) SWIG_fail; |
15566 | if (arg1) (arg1)->m_altDown = arg2; | |
15567 | ||
15568 | Py_INCREF(Py_None); resultobj = Py_None; | |
15569 | return resultobj; | |
15570 | fail: | |
15571 | return NULL; | |
15572 | } | |
15573 | ||
15574 | ||
c32bde28 | 15575 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15576 | PyObject *resultobj; |
15577 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15578 | bool result; | |
15579 | PyObject * obj0 = 0 ; | |
15580 | char *kwnames[] = { | |
15581 | (char *) "self", NULL | |
15582 | }; | |
15583 | ||
15584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15587 | result = (bool) ((arg1)->m_altDown); | |
15588 | ||
15589 | { | |
15590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15591 | } | |
15592 | return resultobj; | |
15593 | fail: | |
15594 | return NULL; | |
15595 | } | |
15596 | ||
15597 | ||
c32bde28 | 15598 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15599 | PyObject *resultobj; |
15600 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15601 | bool arg2 ; | |
15602 | PyObject * obj0 = 0 ; | |
15603 | PyObject * obj1 = 0 ; | |
15604 | char *kwnames[] = { | |
15605 | (char *) "self",(char *) "m_metaDown", NULL | |
15606 | }; | |
15607 | ||
15608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15611 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15612 | if (PyErr_Occurred()) SWIG_fail; |
15613 | if (arg1) (arg1)->m_metaDown = arg2; | |
15614 | ||
15615 | Py_INCREF(Py_None); resultobj = Py_None; | |
15616 | return resultobj; | |
15617 | fail: | |
15618 | return NULL; | |
15619 | } | |
15620 | ||
15621 | ||
c32bde28 | 15622 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15623 | PyObject *resultobj; |
15624 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15625 | bool result; | |
15626 | PyObject * obj0 = 0 ; | |
15627 | char *kwnames[] = { | |
15628 | (char *) "self", NULL | |
15629 | }; | |
15630 | ||
15631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15634 | result = (bool) ((arg1)->m_metaDown); | |
15635 | ||
15636 | { | |
15637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15638 | } | |
15639 | return resultobj; | |
15640 | fail: | |
15641 | return NULL; | |
15642 | } | |
15643 | ||
15644 | ||
c32bde28 | 15645 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15646 | PyObject *resultobj; |
15647 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15648 | int arg2 ; | |
15649 | PyObject * obj0 = 0 ; | |
15650 | PyObject * obj1 = 0 ; | |
15651 | char *kwnames[] = { | |
15652 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15653 | }; | |
15654 | ||
15655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15658 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15659 | if (PyErr_Occurred()) SWIG_fail; |
15660 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15661 | ||
15662 | Py_INCREF(Py_None); resultobj = Py_None; | |
15663 | return resultobj; | |
15664 | fail: | |
15665 | return NULL; | |
15666 | } | |
15667 | ||
15668 | ||
c32bde28 | 15669 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15670 | PyObject *resultobj; |
15671 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15672 | int result; | |
15673 | PyObject * obj0 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15681 | result = (int) ((arg1)->m_wheelRotation); | |
15682 | ||
c32bde28 | 15683 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15684 | return resultobj; |
15685 | fail: | |
15686 | return NULL; | |
15687 | } | |
15688 | ||
15689 | ||
c32bde28 | 15690 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15691 | PyObject *resultobj; |
15692 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15693 | int arg2 ; | |
15694 | PyObject * obj0 = 0 ; | |
15695 | PyObject * obj1 = 0 ; | |
15696 | char *kwnames[] = { | |
15697 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15698 | }; | |
15699 | ||
15700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15703 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15704 | if (PyErr_Occurred()) SWIG_fail; |
15705 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15706 | ||
15707 | Py_INCREF(Py_None); resultobj = Py_None; | |
15708 | return resultobj; | |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
c32bde28 | 15714 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15715 | PyObject *resultobj; |
15716 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15717 | int result; | |
15718 | PyObject * obj0 = 0 ; | |
15719 | char *kwnames[] = { | |
15720 | (char *) "self", NULL | |
15721 | }; | |
15722 | ||
15723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15726 | result = (int) ((arg1)->m_wheelDelta); | |
15727 | ||
c32bde28 | 15728 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15729 | return resultobj; |
15730 | fail: | |
15731 | return NULL; | |
15732 | } | |
15733 | ||
15734 | ||
c32bde28 | 15735 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15736 | PyObject *resultobj; |
15737 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15738 | int arg2 ; | |
15739 | PyObject * obj0 = 0 ; | |
15740 | PyObject * obj1 = 0 ; | |
15741 | char *kwnames[] = { | |
15742 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15743 | }; | |
15744 | ||
15745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15748 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15749 | if (PyErr_Occurred()) SWIG_fail; |
15750 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15751 | ||
15752 | Py_INCREF(Py_None); resultobj = Py_None; | |
15753 | return resultobj; | |
15754 | fail: | |
15755 | return NULL; | |
15756 | } | |
15757 | ||
15758 | ||
c32bde28 | 15759 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15760 | PyObject *resultobj; |
15761 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15762 | int result; | |
15763 | PyObject * obj0 = 0 ; | |
15764 | char *kwnames[] = { | |
15765 | (char *) "self", NULL | |
15766 | }; | |
15767 | ||
15768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15771 | result = (int) ((arg1)->m_linesPerAction); | |
15772 | ||
c32bde28 | 15773 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15774 | return resultobj; |
15775 | fail: | |
15776 | return NULL; | |
15777 | } | |
15778 | ||
15779 | ||
c32bde28 | 15780 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15781 | PyObject *obj; |
15782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15783 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15784 | Py_INCREF(obj); | |
15785 | return Py_BuildValue((char *)""); | |
15786 | } | |
c32bde28 | 15787 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15788 | PyObject *resultobj; |
15789 | int arg1 = (int) 0 ; | |
15790 | int arg2 = (int) 0 ; | |
15791 | wxSetCursorEvent *result; | |
15792 | PyObject * obj0 = 0 ; | |
15793 | PyObject * obj1 = 0 ; | |
15794 | char *kwnames[] = { | |
15795 | (char *) "x",(char *) "y", NULL | |
15796 | }; | |
15797 | ||
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15799 | if (obj0) { | |
c32bde28 | 15800 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
15801 | if (PyErr_Occurred()) SWIG_fail; |
15802 | } | |
15803 | if (obj1) { | |
c32bde28 | 15804 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15805 | if (PyErr_Occurred()) SWIG_fail; |
15806 | } | |
15807 | { | |
15808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15809 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15810 | ||
15811 | wxPyEndAllowThreads(__tstate); | |
15812 | if (PyErr_Occurred()) SWIG_fail; | |
15813 | } | |
15814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15815 | return resultobj; | |
15816 | fail: | |
15817 | return NULL; | |
15818 | } | |
15819 | ||
15820 | ||
c32bde28 | 15821 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15822 | PyObject *resultobj; |
15823 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15824 | int result; | |
15825 | PyObject * obj0 = 0 ; | |
15826 | char *kwnames[] = { | |
15827 | (char *) "self", NULL | |
15828 | }; | |
15829 | ||
15830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15833 | { | |
15834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15835 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15836 | ||
15837 | wxPyEndAllowThreads(__tstate); | |
15838 | if (PyErr_Occurred()) SWIG_fail; | |
15839 | } | |
c32bde28 | 15840 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15841 | return resultobj; |
15842 | fail: | |
15843 | return NULL; | |
15844 | } | |
15845 | ||
15846 | ||
c32bde28 | 15847 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15848 | PyObject *resultobj; |
15849 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15850 | int result; | |
15851 | PyObject * obj0 = 0 ; | |
15852 | char *kwnames[] = { | |
15853 | (char *) "self", NULL | |
15854 | }; | |
15855 | ||
15856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15859 | { | |
15860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15861 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15862 | ||
15863 | wxPyEndAllowThreads(__tstate); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | } | |
c32bde28 | 15866 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15867 | return resultobj; |
15868 | fail: | |
15869 | return NULL; | |
15870 | } | |
15871 | ||
15872 | ||
c32bde28 | 15873 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15874 | PyObject *resultobj; |
15875 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15876 | wxCursor *arg2 = 0 ; | |
15877 | PyObject * obj0 = 0 ; | |
15878 | PyObject * obj1 = 0 ; | |
15879 | char *kwnames[] = { | |
15880 | (char *) "self",(char *) "cursor", NULL | |
15881 | }; | |
15882 | ||
15883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15888 | SWIG_fail; | |
15889 | if (arg2 == NULL) { | |
15890 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15891 | SWIG_fail; | |
15892 | } | |
15893 | { | |
15894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15895 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15896 | ||
15897 | wxPyEndAllowThreads(__tstate); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
15900 | Py_INCREF(Py_None); resultobj = Py_None; | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
c32bde28 | 15907 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15908 | PyObject *resultobj; |
15909 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15910 | wxCursor *result; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | char *kwnames[] = { | |
15913 | (char *) "self", NULL | |
15914 | }; | |
15915 | ||
15916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15919 | { | |
15920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15921 | { | |
15922 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15923 | result = (wxCursor *) &_result_ref; | |
15924 | } | |
15925 | ||
15926 | wxPyEndAllowThreads(__tstate); | |
15927 | if (PyErr_Occurred()) SWIG_fail; | |
15928 | } | |
15929 | { | |
15930 | wxCursor* resultptr = new wxCursor(*result); | |
15931 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15932 | } | |
15933 | return resultobj; | |
15934 | fail: | |
15935 | return NULL; | |
15936 | } | |
15937 | ||
15938 | ||
c32bde28 | 15939 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15940 | PyObject *resultobj; |
15941 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15942 | bool result; | |
15943 | PyObject * obj0 = 0 ; | |
15944 | char *kwnames[] = { | |
15945 | (char *) "self", NULL | |
15946 | }; | |
15947 | ||
15948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15951 | { | |
15952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15953 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15954 | ||
15955 | wxPyEndAllowThreads(__tstate); | |
15956 | if (PyErr_Occurred()) SWIG_fail; | |
15957 | } | |
15958 | { | |
15959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15960 | } | |
15961 | return resultobj; | |
15962 | fail: | |
15963 | return NULL; | |
15964 | } | |
15965 | ||
15966 | ||
c32bde28 | 15967 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15968 | PyObject *obj; |
15969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15970 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15971 | Py_INCREF(obj); | |
15972 | return Py_BuildValue((char *)""); | |
15973 | } | |
c32bde28 | 15974 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15975 | PyObject *resultobj; |
15976 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15977 | wxKeyEvent *result; | |
15978 | PyObject * obj0 = 0 ; | |
15979 | char *kwnames[] = { | |
15980 | (char *) "keyType", NULL | |
15981 | }; | |
15982 | ||
15983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15984 | if (obj0) { | |
c32bde28 | 15985 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15986 | if (PyErr_Occurred()) SWIG_fail; |
15987 | } | |
15988 | { | |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15990 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15996 | return resultobj; | |
15997 | fail: | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
c32bde28 | 16002 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16003 | PyObject *resultobj; |
16004 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16005 | bool result; | |
16006 | PyObject * obj0 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "self", NULL | |
16009 | }; | |
16010 | ||
16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16014 | { | |
16015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16016 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
16017 | ||
16018 | wxPyEndAllowThreads(__tstate); | |
16019 | if (PyErr_Occurred()) SWIG_fail; | |
16020 | } | |
16021 | { | |
16022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16023 | } | |
16024 | return resultobj; | |
16025 | fail: | |
16026 | return NULL; | |
16027 | } | |
16028 | ||
16029 | ||
c32bde28 | 16030 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16031 | PyObject *resultobj; |
16032 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16033 | bool result; | |
16034 | PyObject * obj0 = 0 ; | |
16035 | char *kwnames[] = { | |
16036 | (char *) "self", NULL | |
16037 | }; | |
16038 | ||
16039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
16040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16042 | { | |
16043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16044 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
16045 | ||
16046 | wxPyEndAllowThreads(__tstate); | |
16047 | if (PyErr_Occurred()) SWIG_fail; | |
16048 | } | |
16049 | { | |
16050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16051 | } | |
16052 | return resultobj; | |
16053 | fail: | |
16054 | return NULL; | |
16055 | } | |
16056 | ||
16057 | ||
c32bde28 | 16058 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16059 | PyObject *resultobj; |
16060 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16061 | bool result; | |
16062 | PyObject * obj0 = 0 ; | |
16063 | char *kwnames[] = { | |
16064 | (char *) "self", NULL | |
16065 | }; | |
16066 | ||
16067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
16068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16070 | { | |
16071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16072 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
16073 | ||
16074 | wxPyEndAllowThreads(__tstate); | |
16075 | if (PyErr_Occurred()) SWIG_fail; | |
16076 | } | |
16077 | { | |
16078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16079 | } | |
16080 | return resultobj; | |
16081 | fail: | |
16082 | return NULL; | |
16083 | } | |
16084 | ||
16085 | ||
c32bde28 | 16086 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16087 | PyObject *resultobj; |
16088 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16089 | bool result; | |
16090 | PyObject * obj0 = 0 ; | |
16091 | char *kwnames[] = { | |
16092 | (char *) "self", NULL | |
16093 | }; | |
16094 | ||
16095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
16096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16098 | { | |
16099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16100 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
16101 | ||
16102 | wxPyEndAllowThreads(__tstate); | |
16103 | if (PyErr_Occurred()) SWIG_fail; | |
16104 | } | |
16105 | { | |
16106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16107 | } | |
16108 | return resultobj; | |
16109 | fail: | |
16110 | return NULL; | |
16111 | } | |
16112 | ||
16113 | ||
c32bde28 | 16114 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
16115 | PyObject *resultobj; |
16116 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16117 | bool result; | |
16118 | PyObject * obj0 = 0 ; | |
16119 | char *kwnames[] = { | |
16120 | (char *) "self", NULL | |
16121 | }; | |
16122 | ||
16123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
16124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16126 | { | |
16127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16128 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
16129 | ||
16130 | wxPyEndAllowThreads(__tstate); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | } | |
16133 | { | |
16134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16135 | } | |
16136 | return resultobj; | |
16137 | fail: | |
16138 | return NULL; | |
16139 | } | |
16140 | ||
16141 | ||
c32bde28 | 16142 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16143 | PyObject *resultobj; |
16144 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16145 | bool result; | |
16146 | PyObject * obj0 = 0 ; | |
16147 | char *kwnames[] = { | |
16148 | (char *) "self", NULL | |
16149 | }; | |
16150 | ||
16151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
16152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16154 | { | |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | { | |
16162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16163 | } | |
16164 | return resultobj; | |
16165 | fail: | |
16166 | return NULL; | |
16167 | } | |
16168 | ||
16169 | ||
c32bde28 | 16170 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16171 | PyObject *resultobj; |
16172 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16173 | int result; | |
16174 | PyObject * obj0 = 0 ; | |
16175 | char *kwnames[] = { | |
16176 | (char *) "self", NULL | |
16177 | }; | |
16178 | ||
16179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
16180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16182 | { | |
16183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16184 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
16185 | ||
16186 | wxPyEndAllowThreads(__tstate); | |
16187 | if (PyErr_Occurred()) SWIG_fail; | |
16188 | } | |
c32bde28 | 16189 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16190 | return resultobj; |
16191 | fail: | |
16192 | return NULL; | |
16193 | } | |
16194 | ||
16195 | ||
c32bde28 | 16196 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16197 | PyObject *resultobj; |
16198 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16199 | int result; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "self", NULL | |
16203 | }; | |
16204 | ||
19272049 | 16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
16206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16208 | { | |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 16210 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
16211 | |
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
c32bde28 | 16215 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16216 | return resultobj; |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
c32bde28 | 16222 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16223 | PyObject *resultobj; |
16224 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16225 | unsigned int result; | |
16226 | PyObject * obj0 = 0 ; | |
16227 | char *kwnames[] = { | |
16228 | (char *) "self", NULL | |
16229 | }; | |
16230 | ||
16231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
16232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16234 | { | |
16235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16236 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
16237 | ||
16238 | wxPyEndAllowThreads(__tstate); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
c32bde28 | 16241 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16242 | return resultobj; |
16243 | fail: | |
16244 | return NULL; | |
16245 | } | |
16246 | ||
16247 | ||
c32bde28 | 16248 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16249 | PyObject *resultobj; |
16250 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16251 | unsigned int result; | |
16252 | PyObject * obj0 = 0 ; | |
16253 | char *kwnames[] = { | |
16254 | (char *) "self", NULL | |
16255 | }; | |
16256 | ||
16257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
16258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16260 | { | |
16261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16262 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
c32bde28 | 16267 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16268 | return resultobj; |
16269 | fail: | |
16270 | return NULL; | |
16271 | } | |
16272 | ||
16273 | ||
c32bde28 | 16274 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16275 | PyObject *resultobj; |
16276 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16277 | wxPoint result; | |
16278 | PyObject * obj0 = 0 ; | |
16279 | char *kwnames[] = { | |
16280 | (char *) "self", NULL | |
16281 | }; | |
16282 | ||
16283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16286 | { | |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | result = (arg1)->GetPosition(); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
16293 | { | |
16294 | wxPoint * resultptr; | |
16295 | resultptr = new wxPoint((wxPoint &) result); | |
16296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16297 | } | |
16298 | return resultobj; | |
16299 | fail: | |
16300 | return NULL; | |
16301 | } | |
16302 | ||
16303 | ||
c32bde28 | 16304 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16305 | PyObject *resultobj; |
16306 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16307 | long *arg2 = (long *) 0 ; | |
16308 | long *arg3 = (long *) 0 ; | |
16309 | long temp2 ; | |
c32bde28 | 16310 | int res2 = 0 ; |
d55e5bfc | 16311 | long temp3 ; |
c32bde28 | 16312 | int res3 = 0 ; |
d55e5bfc RD |
16313 | PyObject * obj0 = 0 ; |
16314 | char *kwnames[] = { | |
16315 | (char *) "self", NULL | |
16316 | }; | |
16317 | ||
c32bde28 RD |
16318 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16319 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
16321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16323 | { | |
16324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16325 | (arg1)->GetPosition(arg2,arg3); | |
16326 | ||
16327 | wxPyEndAllowThreads(__tstate); | |
16328 | if (PyErr_Occurred()) SWIG_fail; | |
16329 | } | |
16330 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16331 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16332 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16333 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16334 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16335 | return resultobj; |
16336 | fail: | |
16337 | return NULL; | |
16338 | } | |
16339 | ||
16340 | ||
c32bde28 | 16341 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16342 | PyObject *resultobj; |
16343 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16344 | int result; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | char *kwnames[] = { | |
16347 | (char *) "self", NULL | |
16348 | }; | |
16349 | ||
16350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
16351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16353 | { | |
16354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16355 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
16356 | ||
16357 | wxPyEndAllowThreads(__tstate); | |
16358 | if (PyErr_Occurred()) SWIG_fail; | |
16359 | } | |
c32bde28 | 16360 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16361 | return resultobj; |
16362 | fail: | |
16363 | return NULL; | |
16364 | } | |
16365 | ||
16366 | ||
c32bde28 | 16367 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16368 | PyObject *resultobj; |
16369 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16370 | int result; | |
16371 | PyObject * obj0 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
16377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16379 | { | |
16380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16381 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
16382 | ||
16383 | wxPyEndAllowThreads(__tstate); | |
16384 | if (PyErr_Occurred()) SWIG_fail; | |
16385 | } | |
c32bde28 | 16386 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16387 | return resultobj; |
16388 | fail: | |
16389 | return NULL; | |
16390 | } | |
16391 | ||
16392 | ||
c32bde28 | 16393 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16394 | PyObject *resultobj; |
16395 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16396 | int arg2 ; | |
16397 | PyObject * obj0 = 0 ; | |
16398 | PyObject * obj1 = 0 ; | |
16399 | char *kwnames[] = { | |
16400 | (char *) "self",(char *) "m_x", NULL | |
16401 | }; | |
16402 | ||
16403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
16404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16406 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16407 | if (PyErr_Occurred()) SWIG_fail; |
16408 | if (arg1) (arg1)->m_x = arg2; | |
16409 | ||
16410 | Py_INCREF(Py_None); resultobj = Py_None; | |
16411 | return resultobj; | |
16412 | fail: | |
16413 | return NULL; | |
16414 | } | |
16415 | ||
16416 | ||
c32bde28 | 16417 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16418 | PyObject *resultobj; |
16419 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16420 | int result; | |
16421 | PyObject * obj0 = 0 ; | |
16422 | char *kwnames[] = { | |
16423 | (char *) "self", NULL | |
16424 | }; | |
16425 | ||
16426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
16427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16429 | result = (int) ((arg1)->m_x); | |
16430 | ||
c32bde28 | 16431 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16432 | return resultobj; |
16433 | fail: | |
16434 | return NULL; | |
16435 | } | |
16436 | ||
16437 | ||
c32bde28 | 16438 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16439 | PyObject *resultobj; |
16440 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16441 | int arg2 ; | |
16442 | PyObject * obj0 = 0 ; | |
16443 | PyObject * obj1 = 0 ; | |
16444 | char *kwnames[] = { | |
16445 | (char *) "self",(char *) "m_y", NULL | |
16446 | }; | |
16447 | ||
16448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
16449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16451 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16452 | if (PyErr_Occurred()) SWIG_fail; |
16453 | if (arg1) (arg1)->m_y = arg2; | |
16454 | ||
16455 | Py_INCREF(Py_None); resultobj = Py_None; | |
16456 | return resultobj; | |
16457 | fail: | |
16458 | return NULL; | |
16459 | } | |
16460 | ||
16461 | ||
c32bde28 | 16462 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16463 | PyObject *resultobj; |
16464 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16465 | int result; | |
16466 | PyObject * obj0 = 0 ; | |
16467 | char *kwnames[] = { | |
16468 | (char *) "self", NULL | |
16469 | }; | |
16470 | ||
16471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16474 | result = (int) ((arg1)->m_y); | |
16475 | ||
c32bde28 | 16476 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16477 | return resultobj; |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
c32bde28 | 16483 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16484 | PyObject *resultobj; |
16485 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16486 | long arg2 ; | |
16487 | PyObject * obj0 = 0 ; | |
16488 | PyObject * obj1 = 0 ; | |
16489 | char *kwnames[] = { | |
16490 | (char *) "self",(char *) "m_keyCode", NULL | |
16491 | }; | |
16492 | ||
16493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16496 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16497 | if (PyErr_Occurred()) SWIG_fail; |
16498 | if (arg1) (arg1)->m_keyCode = arg2; | |
16499 | ||
16500 | Py_INCREF(Py_None); resultobj = Py_None; | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
c32bde28 | 16507 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16508 | PyObject *resultobj; |
16509 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16510 | long result; | |
16511 | PyObject * obj0 = 0 ; | |
16512 | char *kwnames[] = { | |
16513 | (char *) "self", NULL | |
16514 | }; | |
16515 | ||
16516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16519 | result = (long) ((arg1)->m_keyCode); | |
16520 | ||
c32bde28 | 16521 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16522 | return resultobj; |
16523 | fail: | |
16524 | return NULL; | |
16525 | } | |
16526 | ||
16527 | ||
c32bde28 | 16528 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16529 | PyObject *resultobj; |
16530 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16531 | bool arg2 ; | |
16532 | PyObject * obj0 = 0 ; | |
16533 | PyObject * obj1 = 0 ; | |
16534 | char *kwnames[] = { | |
16535 | (char *) "self",(char *) "m_controlDown", NULL | |
16536 | }; | |
16537 | ||
16538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16541 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16542 | if (PyErr_Occurred()) SWIG_fail; |
16543 | if (arg1) (arg1)->m_controlDown = arg2; | |
16544 | ||
16545 | Py_INCREF(Py_None); resultobj = Py_None; | |
16546 | return resultobj; | |
16547 | fail: | |
16548 | return NULL; | |
16549 | } | |
16550 | ||
16551 | ||
c32bde28 | 16552 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16553 | PyObject *resultobj; |
16554 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16555 | bool result; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16564 | result = (bool) ((arg1)->m_controlDown); | |
16565 | ||
16566 | { | |
16567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16568 | } | |
16569 | return resultobj; | |
16570 | fail: | |
16571 | return NULL; | |
16572 | } | |
16573 | ||
16574 | ||
c32bde28 | 16575 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16576 | PyObject *resultobj; |
16577 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16578 | bool arg2 ; | |
16579 | PyObject * obj0 = 0 ; | |
16580 | PyObject * obj1 = 0 ; | |
16581 | char *kwnames[] = { | |
16582 | (char *) "self",(char *) "m_shiftDown", NULL | |
16583 | }; | |
16584 | ||
16585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16588 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16589 | if (PyErr_Occurred()) SWIG_fail; |
16590 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16591 | ||
16592 | Py_INCREF(Py_None); resultobj = Py_None; | |
16593 | return resultobj; | |
16594 | fail: | |
16595 | return NULL; | |
16596 | } | |
16597 | ||
16598 | ||
c32bde28 | 16599 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16600 | PyObject *resultobj; |
16601 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16602 | bool result; | |
16603 | PyObject * obj0 = 0 ; | |
16604 | char *kwnames[] = { | |
16605 | (char *) "self", NULL | |
16606 | }; | |
16607 | ||
16608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16611 | result = (bool) ((arg1)->m_shiftDown); | |
16612 | ||
16613 | { | |
16614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16615 | } | |
16616 | return resultobj; | |
16617 | fail: | |
16618 | return NULL; | |
16619 | } | |
16620 | ||
16621 | ||
c32bde28 | 16622 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16623 | PyObject *resultobj; |
16624 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16625 | bool arg2 ; | |
16626 | PyObject * obj0 = 0 ; | |
16627 | PyObject * obj1 = 0 ; | |
16628 | char *kwnames[] = { | |
16629 | (char *) "self",(char *) "m_altDown", NULL | |
16630 | }; | |
16631 | ||
16632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16635 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16636 | if (PyErr_Occurred()) SWIG_fail; |
16637 | if (arg1) (arg1)->m_altDown = arg2; | |
16638 | ||
16639 | Py_INCREF(Py_None); resultobj = Py_None; | |
16640 | return resultobj; | |
16641 | fail: | |
16642 | return NULL; | |
16643 | } | |
16644 | ||
16645 | ||
c32bde28 | 16646 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16647 | PyObject *resultobj; |
16648 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16649 | bool result; | |
16650 | PyObject * obj0 = 0 ; | |
16651 | char *kwnames[] = { | |
16652 | (char *) "self", NULL | |
16653 | }; | |
16654 | ||
16655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16658 | result = (bool) ((arg1)->m_altDown); | |
16659 | ||
16660 | { | |
16661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16662 | } | |
16663 | return resultobj; | |
16664 | fail: | |
16665 | return NULL; | |
16666 | } | |
16667 | ||
16668 | ||
c32bde28 | 16669 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16670 | PyObject *resultobj; |
16671 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16672 | bool arg2 ; | |
16673 | PyObject * obj0 = 0 ; | |
16674 | PyObject * obj1 = 0 ; | |
16675 | char *kwnames[] = { | |
16676 | (char *) "self",(char *) "m_metaDown", NULL | |
16677 | }; | |
16678 | ||
16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16682 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16683 | if (PyErr_Occurred()) SWIG_fail; |
16684 | if (arg1) (arg1)->m_metaDown = arg2; | |
16685 | ||
16686 | Py_INCREF(Py_None); resultobj = Py_None; | |
16687 | return resultobj; | |
16688 | fail: | |
16689 | return NULL; | |
16690 | } | |
16691 | ||
16692 | ||
c32bde28 | 16693 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16694 | PyObject *resultobj; |
16695 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16696 | bool result; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | char *kwnames[] = { | |
16699 | (char *) "self", NULL | |
16700 | }; | |
16701 | ||
16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16705 | result = (bool) ((arg1)->m_metaDown); | |
16706 | ||
16707 | { | |
16708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16709 | } | |
16710 | return resultobj; | |
16711 | fail: | |
16712 | return NULL; | |
16713 | } | |
16714 | ||
16715 | ||
c32bde28 | 16716 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16717 | PyObject *resultobj; |
16718 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16719 | bool arg2 ; | |
16720 | PyObject * obj0 = 0 ; | |
16721 | PyObject * obj1 = 0 ; | |
16722 | char *kwnames[] = { | |
16723 | (char *) "self",(char *) "m_scanCode", NULL | |
16724 | }; | |
16725 | ||
16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16729 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16730 | if (PyErr_Occurred()) SWIG_fail; |
16731 | if (arg1) (arg1)->m_scanCode = arg2; | |
16732 | ||
16733 | Py_INCREF(Py_None); resultobj = Py_None; | |
16734 | return resultobj; | |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
c32bde28 | 16740 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16741 | PyObject *resultobj; |
16742 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16743 | bool result; | |
16744 | PyObject * obj0 = 0 ; | |
16745 | char *kwnames[] = { | |
16746 | (char *) "self", NULL | |
16747 | }; | |
16748 | ||
16749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16752 | result = (bool) ((arg1)->m_scanCode); | |
16753 | ||
16754 | { | |
16755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16756 | } | |
16757 | return resultobj; | |
16758 | fail: | |
16759 | return NULL; | |
16760 | } | |
16761 | ||
16762 | ||
c32bde28 | 16763 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16764 | PyObject *resultobj; |
16765 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16766 | unsigned int arg2 ; | |
16767 | PyObject * obj0 = 0 ; | |
16768 | PyObject * obj1 = 0 ; | |
16769 | char *kwnames[] = { | |
16770 | (char *) "self",(char *) "m_rawCode", NULL | |
16771 | }; | |
16772 | ||
16773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16776 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16777 | if (PyErr_Occurred()) SWIG_fail; |
16778 | if (arg1) (arg1)->m_rawCode = arg2; | |
16779 | ||
16780 | Py_INCREF(Py_None); resultobj = Py_None; | |
16781 | return resultobj; | |
16782 | fail: | |
16783 | return NULL; | |
16784 | } | |
16785 | ||
16786 | ||
c32bde28 | 16787 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16788 | PyObject *resultobj; |
16789 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16790 | unsigned int result; | |
16791 | PyObject * obj0 = 0 ; | |
16792 | char *kwnames[] = { | |
16793 | (char *) "self", NULL | |
16794 | }; | |
16795 | ||
16796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16799 | result = (unsigned int) ((arg1)->m_rawCode); | |
16800 | ||
c32bde28 | 16801 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16802 | return resultobj; |
16803 | fail: | |
16804 | return NULL; | |
16805 | } | |
16806 | ||
16807 | ||
c32bde28 | 16808 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16809 | PyObject *resultobj; |
16810 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16811 | unsigned int arg2 ; | |
16812 | PyObject * obj0 = 0 ; | |
16813 | PyObject * obj1 = 0 ; | |
16814 | char *kwnames[] = { | |
16815 | (char *) "self",(char *) "m_rawFlags", NULL | |
16816 | }; | |
16817 | ||
16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16821 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16822 | if (PyErr_Occurred()) SWIG_fail; |
16823 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16824 | ||
16825 | Py_INCREF(Py_None); resultobj = Py_None; | |
16826 | return resultobj; | |
16827 | fail: | |
16828 | return NULL; | |
16829 | } | |
16830 | ||
16831 | ||
c32bde28 | 16832 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16833 | PyObject *resultobj; |
16834 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16835 | unsigned int result; | |
16836 | PyObject * obj0 = 0 ; | |
16837 | char *kwnames[] = { | |
16838 | (char *) "self", NULL | |
16839 | }; | |
16840 | ||
16841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16844 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16845 | ||
c32bde28 | 16846 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16847 | return resultobj; |
16848 | fail: | |
16849 | return NULL; | |
16850 | } | |
16851 | ||
16852 | ||
c32bde28 | 16853 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16854 | PyObject *obj; |
16855 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16856 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16857 | Py_INCREF(obj); | |
16858 | return Py_BuildValue((char *)""); | |
16859 | } | |
c32bde28 | 16860 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16861 | PyObject *resultobj; |
16862 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16863 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16864 | int arg2 = (int) 0 ; | |
16865 | wxSizeEvent *result; | |
16866 | wxSize temp1 ; | |
16867 | PyObject * obj0 = 0 ; | |
16868 | PyObject * obj1 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "sz",(char *) "winid", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16874 | if (obj0) { | |
16875 | { | |
16876 | arg1 = &temp1; | |
16877 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16878 | } | |
16879 | } | |
16880 | if (obj1) { | |
c32bde28 | 16881 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16882 | if (PyErr_Occurred()) SWIG_fail; |
16883 | } | |
16884 | { | |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16887 | ||
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
16891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
c32bde28 | 16898 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16899 | PyObject *resultobj; |
16900 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16901 | wxSize result; | |
16902 | PyObject * obj0 = 0 ; | |
16903 | char *kwnames[] = { | |
16904 | (char *) "self", NULL | |
16905 | }; | |
16906 | ||
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16913 | ||
16914 | wxPyEndAllowThreads(__tstate); | |
16915 | if (PyErr_Occurred()) SWIG_fail; | |
16916 | } | |
16917 | { | |
16918 | wxSize * resultptr; | |
16919 | resultptr = new wxSize((wxSize &) result); | |
16920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16921 | } | |
16922 | return resultobj; | |
16923 | fail: | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
c32bde28 | 16928 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16929 | PyObject *resultobj; |
16930 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16931 | wxRect result; | |
16932 | PyObject * obj0 = 0 ; | |
16933 | char *kwnames[] = { | |
16934 | (char *) "self", NULL | |
16935 | }; | |
16936 | ||
16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16940 | { | |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16943 | ||
16944 | wxPyEndAllowThreads(__tstate); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | } | |
16947 | { | |
16948 | wxRect * resultptr; | |
16949 | resultptr = new wxRect((wxRect &) result); | |
16950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16951 | } | |
16952 | return resultobj; | |
16953 | fail: | |
16954 | return NULL; | |
16955 | } | |
16956 | ||
16957 | ||
c32bde28 | 16958 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16959 | PyObject *resultobj; |
16960 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16961 | wxRect arg2 ; | |
16962 | wxRect *argp2 ; | |
16963 | PyObject * obj0 = 0 ; | |
16964 | PyObject * obj1 = 0 ; | |
16965 | char *kwnames[] = { | |
16966 | (char *) "self",(char *) "rect", NULL | |
16967 | }; | |
16968 | ||
16969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16972 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16973 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16974 | arg2 = *argp2; | |
16975 | { | |
16976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16977 | (arg1)->SetRect(arg2); | |
16978 | ||
16979 | wxPyEndAllowThreads(__tstate); | |
16980 | if (PyErr_Occurred()) SWIG_fail; | |
16981 | } | |
16982 | Py_INCREF(Py_None); resultobj = Py_None; | |
16983 | return resultobj; | |
16984 | fail: | |
16985 | return NULL; | |
16986 | } | |
16987 | ||
16988 | ||
c32bde28 | 16989 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16990 | PyObject *resultobj; |
16991 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16992 | wxSize arg2 ; | |
16993 | wxSize *argp2 ; | |
16994 | PyObject * obj0 = 0 ; | |
16995 | PyObject * obj1 = 0 ; | |
16996 | char *kwnames[] = { | |
16997 | (char *) "self",(char *) "size", NULL | |
16998 | }; | |
16999 | ||
17000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
17001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17003 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
17004 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17005 | arg2 = *argp2; | |
17006 | { | |
17007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17008 | wxSizeEvent_SetSize(arg1,arg2); | |
17009 | ||
17010 | wxPyEndAllowThreads(__tstate); | |
17011 | if (PyErr_Occurred()) SWIG_fail; | |
17012 | } | |
17013 | Py_INCREF(Py_None); resultobj = Py_None; | |
17014 | return resultobj; | |
17015 | fail: | |
17016 | return NULL; | |
17017 | } | |
17018 | ||
17019 | ||
c32bde28 | 17020 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17021 | PyObject *resultobj; |
17022 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17023 | wxSize *arg2 = (wxSize *) 0 ; | |
17024 | PyObject * obj0 = 0 ; | |
17025 | PyObject * obj1 = 0 ; | |
17026 | char *kwnames[] = { | |
17027 | (char *) "self",(char *) "m_size", NULL | |
17028 | }; | |
17029 | ||
17030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
17031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17033 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
17034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17035 | if (arg1) (arg1)->m_size = *arg2; | |
17036 | ||
17037 | Py_INCREF(Py_None); resultobj = Py_None; | |
17038 | return resultobj; | |
17039 | fail: | |
17040 | return NULL; | |
17041 | } | |
17042 | ||
17043 | ||
c32bde28 | 17044 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17045 | PyObject *resultobj; |
17046 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17047 | wxSize *result; | |
17048 | PyObject * obj0 = 0 ; | |
17049 | char *kwnames[] = { | |
17050 | (char *) "self", NULL | |
17051 | }; | |
17052 | ||
17053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
17054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17056 | result = (wxSize *)& ((arg1)->m_size); | |
17057 | ||
17058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
17059 | return resultobj; | |
17060 | fail: | |
17061 | return NULL; | |
17062 | } | |
17063 | ||
17064 | ||
c32bde28 | 17065 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17066 | PyObject *resultobj; |
17067 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17068 | wxRect *arg2 = (wxRect *) 0 ; | |
17069 | PyObject * obj0 = 0 ; | |
17070 | PyObject * obj1 = 0 ; | |
17071 | char *kwnames[] = { | |
17072 | (char *) "self",(char *) "m_rect", NULL | |
17073 | }; | |
17074 | ||
17075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17080 | if (arg1) (arg1)->m_rect = *arg2; | |
17081 | ||
17082 | Py_INCREF(Py_None); resultobj = Py_None; | |
17083 | return resultobj; | |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
c32bde28 | 17089 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17090 | PyObject *resultobj; |
17091 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17092 | wxRect *result; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17101 | result = (wxRect *)& ((arg1)->m_rect); | |
17102 | ||
17103 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17104 | return resultobj; | |
17105 | fail: | |
17106 | return NULL; | |
17107 | } | |
17108 | ||
17109 | ||
c32bde28 | 17110 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17111 | PyObject *obj; |
17112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17113 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
17114 | Py_INCREF(obj); | |
17115 | return Py_BuildValue((char *)""); | |
17116 | } | |
c32bde28 | 17117 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17118 | PyObject *resultobj; |
17119 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
17120 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
17121 | int arg2 = (int) 0 ; | |
17122 | wxMoveEvent *result; | |
17123 | wxPoint temp1 ; | |
17124 | PyObject * obj0 = 0 ; | |
17125 | PyObject * obj1 = 0 ; | |
17126 | char *kwnames[] = { | |
17127 | (char *) "pos",(char *) "winid", NULL | |
17128 | }; | |
17129 | ||
17130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
17131 | if (obj0) { | |
17132 | { | |
17133 | arg1 = &temp1; | |
17134 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
17135 | } | |
17136 | } | |
17137 | if (obj1) { | |
c32bde28 | 17138 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17139 | if (PyErr_Occurred()) SWIG_fail; |
17140 | } | |
17141 | { | |
17142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17143 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
17144 | ||
17145 | wxPyEndAllowThreads(__tstate); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
17147 | } | |
17148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
17149 | return resultobj; | |
17150 | fail: | |
17151 | return NULL; | |
17152 | } | |
17153 | ||
17154 | ||
c32bde28 | 17155 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17156 | PyObject *resultobj; |
17157 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17158 | wxPoint result; | |
17159 | PyObject * obj0 = 0 ; | |
17160 | char *kwnames[] = { | |
17161 | (char *) "self", NULL | |
17162 | }; | |
17163 | ||
17164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17167 | { | |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
17170 | ||
17171 | wxPyEndAllowThreads(__tstate); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
17174 | { | |
17175 | wxPoint * resultptr; | |
17176 | resultptr = new wxPoint((wxPoint &) result); | |
17177 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17178 | } | |
17179 | return resultobj; | |
17180 | fail: | |
17181 | return NULL; | |
17182 | } | |
17183 | ||
17184 | ||
c32bde28 | 17185 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17186 | PyObject *resultobj; |
17187 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17188 | wxRect result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "self", NULL | |
17192 | }; | |
17193 | ||
17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
17195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17197 | { | |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
17204 | { | |
17205 | wxRect * resultptr; | |
17206 | resultptr = new wxRect((wxRect &) result); | |
17207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
17208 | } | |
17209 | return resultobj; | |
17210 | fail: | |
17211 | return NULL; | |
17212 | } | |
17213 | ||
17214 | ||
c32bde28 | 17215 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17216 | PyObject *resultobj; |
17217 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17218 | wxRect arg2 ; | |
17219 | wxRect *argp2 ; | |
17220 | PyObject * obj0 = 0 ; | |
17221 | PyObject * obj1 = 0 ; | |
17222 | char *kwnames[] = { | |
17223 | (char *) "self",(char *) "rect", NULL | |
17224 | }; | |
17225 | ||
17226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
17227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17229 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
17230 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17231 | arg2 = *argp2; | |
17232 | { | |
17233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17234 | (arg1)->SetRect(arg2); | |
17235 | ||
17236 | wxPyEndAllowThreads(__tstate); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
17239 | Py_INCREF(Py_None); resultobj = Py_None; | |
17240 | return resultobj; | |
17241 | fail: | |
17242 | return NULL; | |
17243 | } | |
17244 | ||
17245 | ||
c32bde28 | 17246 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17247 | PyObject *resultobj; |
17248 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17249 | wxPoint arg2 ; | |
17250 | wxPoint *argp2 ; | |
17251 | PyObject * obj0 = 0 ; | |
17252 | PyObject * obj1 = 0 ; | |
17253 | char *kwnames[] = { | |
17254 | (char *) "self",(char *) "pos", NULL | |
17255 | }; | |
17256 | ||
17257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17260 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17261 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17262 | arg2 = *argp2; | |
17263 | { | |
17264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17265 | wxMoveEvent_SetPosition(arg1,arg2); | |
17266 | ||
17267 | wxPyEndAllowThreads(__tstate); | |
17268 | if (PyErr_Occurred()) SWIG_fail; | |
17269 | } | |
17270 | Py_INCREF(Py_None); resultobj = Py_None; | |
17271 | return resultobj; | |
17272 | fail: | |
17273 | return NULL; | |
17274 | } | |
17275 | ||
17276 | ||
c32bde28 | 17277 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17278 | PyObject *resultobj; |
17279 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17280 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17281 | PyObject * obj0 = 0 ; | |
17282 | PyObject * obj1 = 0 ; | |
17283 | char *kwnames[] = { | |
17284 | (char *) "self",(char *) "m_pos", NULL | |
17285 | }; | |
17286 | ||
17287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
17288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17292 | if (arg1) (arg1)->m_pos = *arg2; | |
17293 | ||
17294 | Py_INCREF(Py_None); resultobj = Py_None; | |
17295 | return resultobj; | |
17296 | fail: | |
17297 | return NULL; | |
17298 | } | |
17299 | ||
17300 | ||
c32bde28 | 17301 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17302 | PyObject *resultobj; |
17303 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17304 | wxPoint *result; | |
17305 | PyObject * obj0 = 0 ; | |
17306 | char *kwnames[] = { | |
17307 | (char *) "self", NULL | |
17308 | }; | |
17309 | ||
17310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
17311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17313 | result = (wxPoint *)& ((arg1)->m_pos); | |
17314 | ||
17315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
17316 | return resultobj; | |
17317 | fail: | |
17318 | return NULL; | |
17319 | } | |
17320 | ||
17321 | ||
c32bde28 | 17322 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17323 | PyObject *resultobj; |
17324 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17325 | wxRect *arg2 = (wxRect *) 0 ; | |
17326 | PyObject * obj0 = 0 ; | |
17327 | PyObject * obj1 = 0 ; | |
17328 | char *kwnames[] = { | |
17329 | (char *) "self",(char *) "m_rect", NULL | |
17330 | }; | |
17331 | ||
17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17337 | if (arg1) (arg1)->m_rect = *arg2; | |
17338 | ||
17339 | Py_INCREF(Py_None); resultobj = Py_None; | |
17340 | return resultobj; | |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
c32bde28 | 17346 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17347 | PyObject *resultobj; |
17348 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17349 | wxRect *result; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | char *kwnames[] = { | |
17352 | (char *) "self", NULL | |
17353 | }; | |
17354 | ||
17355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17358 | result = (wxRect *)& ((arg1)->m_rect); | |
17359 | ||
17360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17361 | return resultobj; | |
17362 | fail: | |
17363 | return NULL; | |
17364 | } | |
17365 | ||
17366 | ||
c32bde28 | 17367 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17368 | PyObject *obj; |
17369 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17370 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17371 | Py_INCREF(obj); | |
17372 | return Py_BuildValue((char *)""); | |
17373 | } | |
c32bde28 | 17374 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17375 | PyObject *resultobj; |
17376 | int arg1 = (int) 0 ; | |
17377 | wxPaintEvent *result; | |
17378 | PyObject * obj0 = 0 ; | |
17379 | char *kwnames[] = { | |
17380 | (char *) "Id", NULL | |
17381 | }; | |
17382 | ||
17383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
17384 | if (obj0) { | |
c32bde28 | 17385 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17386 | if (PyErr_Occurred()) SWIG_fail; |
17387 | } | |
17388 | { | |
17389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17390 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17391 | ||
17392 | wxPyEndAllowThreads(__tstate); | |
17393 | if (PyErr_Occurred()) SWIG_fail; | |
17394 | } | |
17395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
17396 | return resultobj; | |
17397 | fail: | |
17398 | return NULL; | |
17399 | } | |
17400 | ||
17401 | ||
c32bde28 | 17402 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17403 | PyObject *obj; |
17404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17405 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17406 | Py_INCREF(obj); | |
17407 | return Py_BuildValue((char *)""); | |
17408 | } | |
c32bde28 | 17409 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17410 | PyObject *resultobj; |
17411 | int arg1 = (int) 0 ; | |
17412 | wxNcPaintEvent *result; | |
17413 | PyObject * obj0 = 0 ; | |
17414 | char *kwnames[] = { | |
17415 | (char *) "winid", NULL | |
17416 | }; | |
17417 | ||
17418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
17419 | if (obj0) { | |
c32bde28 | 17420 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17421 | if (PyErr_Occurred()) SWIG_fail; |
17422 | } | |
17423 | { | |
17424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17425 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17426 | ||
17427 | wxPyEndAllowThreads(__tstate); | |
17428 | if (PyErr_Occurred()) SWIG_fail; | |
17429 | } | |
17430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
17431 | return resultobj; | |
17432 | fail: | |
17433 | return NULL; | |
17434 | } | |
17435 | ||
17436 | ||
c32bde28 | 17437 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17438 | PyObject *obj; |
17439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17440 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17441 | Py_INCREF(obj); | |
17442 | return Py_BuildValue((char *)""); | |
17443 | } | |
c32bde28 | 17444 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17445 | PyObject *resultobj; |
17446 | int arg1 = (int) 0 ; | |
17447 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17448 | wxEraseEvent *result; | |
17449 | PyObject * obj0 = 0 ; | |
17450 | PyObject * obj1 = 0 ; | |
17451 | char *kwnames[] = { | |
17452 | (char *) "Id",(char *) "dc", NULL | |
17453 | }; | |
17454 | ||
17455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17456 | if (obj0) { | |
c32bde28 | 17457 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17458 | if (PyErr_Occurred()) SWIG_fail; |
17459 | } | |
17460 | if (obj1) { | |
17461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17463 | } | |
17464 | { | |
17465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17466 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17467 | ||
17468 | wxPyEndAllowThreads(__tstate); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
17470 | } | |
17471 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17472 | return resultobj; | |
17473 | fail: | |
17474 | return NULL; | |
17475 | } | |
17476 | ||
17477 | ||
c32bde28 | 17478 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17479 | PyObject *resultobj; |
17480 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17481 | wxDC *result; | |
17482 | PyObject * obj0 = 0 ; | |
17483 | char *kwnames[] = { | |
17484 | (char *) "self", NULL | |
17485 | }; | |
17486 | ||
17487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17490 | { | |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17493 | ||
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | { | |
412d302d | 17498 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17499 | } |
17500 | return resultobj; | |
17501 | fail: | |
17502 | return NULL; | |
17503 | } | |
17504 | ||
17505 | ||
c32bde28 | 17506 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17507 | PyObject *obj; |
17508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17509 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17510 | Py_INCREF(obj); | |
17511 | return Py_BuildValue((char *)""); | |
17512 | } | |
c32bde28 | 17513 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17514 | PyObject *resultobj; |
17515 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17516 | int arg2 = (int) 0 ; | |
17517 | wxFocusEvent *result; | |
17518 | PyObject * obj0 = 0 ; | |
17519 | PyObject * obj1 = 0 ; | |
17520 | char *kwnames[] = { | |
17521 | (char *) "type",(char *) "winid", NULL | |
17522 | }; | |
17523 | ||
17524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17525 | if (obj0) { | |
c32bde28 | 17526 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17527 | if (PyErr_Occurred()) SWIG_fail; |
17528 | } | |
17529 | if (obj1) { | |
c32bde28 | 17530 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17531 | if (PyErr_Occurred()) SWIG_fail; |
17532 | } | |
17533 | { | |
17534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17535 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17536 | ||
17537 | wxPyEndAllowThreads(__tstate); | |
17538 | if (PyErr_Occurred()) SWIG_fail; | |
17539 | } | |
17540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17541 | return resultobj; | |
17542 | fail: | |
17543 | return NULL; | |
17544 | } | |
17545 | ||
17546 | ||
c32bde28 | 17547 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17548 | PyObject *resultobj; |
17549 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17550 | wxWindow *result; | |
17551 | PyObject * obj0 = 0 ; | |
17552 | char *kwnames[] = { | |
17553 | (char *) "self", NULL | |
17554 | }; | |
17555 | ||
17556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17559 | { | |
17560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17561 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17562 | ||
17563 | wxPyEndAllowThreads(__tstate); | |
17564 | if (PyErr_Occurred()) SWIG_fail; | |
17565 | } | |
17566 | { | |
412d302d | 17567 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17568 | } |
17569 | return resultobj; | |
17570 | fail: | |
17571 | return NULL; | |
17572 | } | |
17573 | ||
17574 | ||
c32bde28 | 17575 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17576 | PyObject *resultobj; |
17577 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17579 | PyObject * obj0 = 0 ; | |
17580 | PyObject * obj1 = 0 ; | |
17581 | char *kwnames[] = { | |
17582 | (char *) "self",(char *) "win", NULL | |
17583 | }; | |
17584 | ||
17585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17590 | { | |
17591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17592 | (arg1)->SetWindow(arg2); | |
17593 | ||
17594 | wxPyEndAllowThreads(__tstate); | |
17595 | if (PyErr_Occurred()) SWIG_fail; | |
17596 | } | |
17597 | Py_INCREF(Py_None); resultobj = Py_None; | |
17598 | return resultobj; | |
17599 | fail: | |
17600 | return NULL; | |
17601 | } | |
17602 | ||
17603 | ||
c32bde28 | 17604 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17605 | PyObject *obj; |
17606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17607 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17608 | Py_INCREF(obj); | |
17609 | return Py_BuildValue((char *)""); | |
17610 | } | |
c32bde28 | 17611 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17612 | PyObject *resultobj; |
17613 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17614 | wxChildFocusEvent *result; | |
17615 | PyObject * obj0 = 0 ; | |
17616 | char *kwnames[] = { | |
17617 | (char *) "win", NULL | |
17618 | }; | |
17619 | ||
17620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17621 | if (obj0) { | |
17622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17624 | } | |
17625 | { | |
17626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17627 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17628 | ||
17629 | wxPyEndAllowThreads(__tstate); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
17631 | } | |
17632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17633 | return resultobj; | |
17634 | fail: | |
17635 | return NULL; | |
17636 | } | |
17637 | ||
17638 | ||
c32bde28 | 17639 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17640 | PyObject *resultobj; |
17641 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17642 | wxWindow *result; | |
17643 | PyObject * obj0 = 0 ; | |
17644 | char *kwnames[] = { | |
17645 | (char *) "self", NULL | |
17646 | }; | |
17647 | ||
17648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17651 | { | |
17652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17653 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17654 | ||
17655 | wxPyEndAllowThreads(__tstate); | |
17656 | if (PyErr_Occurred()) SWIG_fail; | |
17657 | } | |
17658 | { | |
412d302d | 17659 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17660 | } |
17661 | return resultobj; | |
17662 | fail: | |
17663 | return NULL; | |
17664 | } | |
17665 | ||
17666 | ||
c32bde28 | 17667 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17668 | PyObject *obj; |
17669 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17670 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17671 | Py_INCREF(obj); | |
17672 | return Py_BuildValue((char *)""); | |
17673 | } | |
c32bde28 | 17674 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17675 | PyObject *resultobj; |
17676 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 17677 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17678 | int arg3 = (int) 0 ; |
17679 | wxActivateEvent *result; | |
17680 | PyObject * obj0 = 0 ; | |
17681 | PyObject * obj1 = 0 ; | |
17682 | PyObject * obj2 = 0 ; | |
17683 | char *kwnames[] = { | |
17684 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17685 | }; | |
17686 | ||
17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17688 | if (obj0) { | |
c32bde28 | 17689 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17690 | if (PyErr_Occurred()) SWIG_fail; |
17691 | } | |
17692 | if (obj1) { | |
c32bde28 | 17693 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17694 | if (PyErr_Occurred()) SWIG_fail; |
17695 | } | |
17696 | if (obj2) { | |
c32bde28 | 17697 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17698 | if (PyErr_Occurred()) SWIG_fail; |
17699 | } | |
17700 | { | |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17708 | return resultobj; | |
17709 | fail: | |
17710 | return NULL; | |
17711 | } | |
17712 | ||
17713 | ||
c32bde28 | 17714 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17715 | PyObject *resultobj; |
17716 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17717 | bool result; | |
17718 | PyObject * obj0 = 0 ; | |
17719 | char *kwnames[] = { | |
17720 | (char *) "self", NULL | |
17721 | }; | |
17722 | ||
17723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17726 | { | |
17727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17728 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17729 | ||
17730 | wxPyEndAllowThreads(__tstate); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | } | |
17733 | { | |
17734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17735 | } | |
17736 | return resultobj; | |
17737 | fail: | |
17738 | return NULL; | |
17739 | } | |
17740 | ||
17741 | ||
c32bde28 | 17742 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17743 | PyObject *obj; |
17744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17745 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17746 | Py_INCREF(obj); | |
17747 | return Py_BuildValue((char *)""); | |
17748 | } | |
c32bde28 | 17749 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17750 | PyObject *resultobj; |
17751 | int arg1 = (int) 0 ; | |
17752 | wxInitDialogEvent *result; | |
17753 | PyObject * obj0 = 0 ; | |
17754 | char *kwnames[] = { | |
17755 | (char *) "Id", NULL | |
17756 | }; | |
17757 | ||
17758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17759 | if (obj0) { | |
c32bde28 | 17760 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17761 | if (PyErr_Occurred()) SWIG_fail; |
17762 | } | |
17763 | { | |
17764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17765 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17766 | ||
17767 | wxPyEndAllowThreads(__tstate); | |
17768 | if (PyErr_Occurred()) SWIG_fail; | |
17769 | } | |
17770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17771 | return resultobj; | |
17772 | fail: | |
17773 | return NULL; | |
17774 | } | |
17775 | ||
17776 | ||
c32bde28 | 17777 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17778 | PyObject *obj; |
17779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17780 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17781 | Py_INCREF(obj); | |
17782 | return Py_BuildValue((char *)""); | |
17783 | } | |
c32bde28 | 17784 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17785 | PyObject *resultobj; |
17786 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17787 | int arg2 = (int) 0 ; | |
17788 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17789 | wxMenuEvent *result; | |
17790 | PyObject * obj0 = 0 ; | |
17791 | PyObject * obj1 = 0 ; | |
17792 | PyObject * obj2 = 0 ; | |
17793 | char *kwnames[] = { | |
17794 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17795 | }; | |
17796 | ||
17797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17798 | if (obj0) { | |
c32bde28 | 17799 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17800 | if (PyErr_Occurred()) SWIG_fail; |
17801 | } | |
17802 | if (obj1) { | |
c32bde28 | 17803 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17804 | if (PyErr_Occurred()) SWIG_fail; |
17805 | } | |
17806 | if (obj2) { | |
17807 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17809 | } | |
17810 | { | |
17811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17812 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17818 | return resultobj; | |
17819 | fail: | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
c32bde28 | 17824 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17825 | PyObject *resultobj; |
17826 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17827 | int result; | |
17828 | PyObject * obj0 = 0 ; | |
17829 | char *kwnames[] = { | |
17830 | (char *) "self", NULL | |
17831 | }; | |
17832 | ||
17833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17836 | { | |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17839 | ||
17840 | wxPyEndAllowThreads(__tstate); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
c32bde28 | 17843 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17844 | return resultobj; |
17845 | fail: | |
17846 | return NULL; | |
17847 | } | |
17848 | ||
17849 | ||
c32bde28 | 17850 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17851 | PyObject *resultobj; |
17852 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17853 | bool result; | |
17854 | PyObject * obj0 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "self", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17862 | { | |
17863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17864 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17865 | ||
17866 | wxPyEndAllowThreads(__tstate); | |
17867 | if (PyErr_Occurred()) SWIG_fail; | |
17868 | } | |
17869 | { | |
17870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17871 | } | |
17872 | return resultobj; | |
17873 | fail: | |
17874 | return NULL; | |
17875 | } | |
17876 | ||
17877 | ||
c32bde28 | 17878 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17879 | PyObject *resultobj; |
17880 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17881 | wxMenu *result; | |
17882 | PyObject * obj0 = 0 ; | |
17883 | char *kwnames[] = { | |
17884 | (char *) "self", NULL | |
17885 | }; | |
17886 | ||
17887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17890 | { | |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | { | |
412d302d | 17898 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17899 | } |
17900 | return resultobj; | |
17901 | fail: | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
c32bde28 | 17906 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17907 | PyObject *obj; |
17908 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17909 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17910 | Py_INCREF(obj); | |
17911 | return Py_BuildValue((char *)""); | |
17912 | } | |
c32bde28 | 17913 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17914 | PyObject *resultobj; |
17915 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17916 | int arg2 = (int) 0 ; | |
17917 | wxCloseEvent *result; | |
17918 | PyObject * obj0 = 0 ; | |
17919 | PyObject * obj1 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "type",(char *) "winid", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17925 | if (obj0) { | |
c32bde28 | 17926 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17927 | if (PyErr_Occurred()) SWIG_fail; |
17928 | } | |
17929 | if (obj1) { | |
c32bde28 | 17930 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17931 | if (PyErr_Occurred()) SWIG_fail; |
17932 | } | |
17933 | { | |
17934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17935 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17936 | ||
17937 | wxPyEndAllowThreads(__tstate); | |
17938 | if (PyErr_Occurred()) SWIG_fail; | |
17939 | } | |
17940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17941 | return resultobj; | |
17942 | fail: | |
17943 | return NULL; | |
17944 | } | |
17945 | ||
17946 | ||
c32bde28 | 17947 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17948 | PyObject *resultobj; |
17949 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17950 | bool arg2 ; | |
17951 | PyObject * obj0 = 0 ; | |
17952 | PyObject * obj1 = 0 ; | |
17953 | char *kwnames[] = { | |
17954 | (char *) "self",(char *) "logOff", NULL | |
17955 | }; | |
17956 | ||
17957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17960 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17961 | if (PyErr_Occurred()) SWIG_fail; |
17962 | { | |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17964 | (arg1)->SetLoggingOff(arg2); | |
17965 | ||
17966 | wxPyEndAllowThreads(__tstate); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
17968 | } | |
17969 | Py_INCREF(Py_None); resultobj = Py_None; | |
17970 | return resultobj; | |
17971 | fail: | |
17972 | return NULL; | |
17973 | } | |
17974 | ||
17975 | ||
c32bde28 | 17976 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17977 | PyObject *resultobj; |
17978 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17979 | bool result; | |
17980 | PyObject * obj0 = 0 ; | |
17981 | char *kwnames[] = { | |
17982 | (char *) "self", NULL | |
17983 | }; | |
17984 | ||
17985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17988 | { | |
17989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17990 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17991 | ||
17992 | wxPyEndAllowThreads(__tstate); | |
17993 | if (PyErr_Occurred()) SWIG_fail; | |
17994 | } | |
17995 | { | |
17996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17997 | } | |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
18001 | } | |
18002 | ||
18003 | ||
c32bde28 | 18004 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18005 | PyObject *resultobj; |
18006 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 18007 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18008 | PyObject * obj0 = 0 ; |
18009 | PyObject * obj1 = 0 ; | |
18010 | char *kwnames[] = { | |
18011 | (char *) "self",(char *) "veto", NULL | |
18012 | }; | |
18013 | ||
18014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
18015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18017 | if (obj1) { | |
c32bde28 | 18018 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18019 | if (PyErr_Occurred()) SWIG_fail; |
18020 | } | |
18021 | { | |
18022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18023 | (arg1)->Veto(arg2); | |
18024 | ||
18025 | wxPyEndAllowThreads(__tstate); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | } | |
18028 | Py_INCREF(Py_None); resultobj = Py_None; | |
18029 | return resultobj; | |
18030 | fail: | |
18031 | return NULL; | |
18032 | } | |
18033 | ||
18034 | ||
c32bde28 | 18035 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18036 | PyObject *resultobj; |
18037 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18038 | bool arg2 ; | |
18039 | PyObject * obj0 = 0 ; | |
18040 | PyObject * obj1 = 0 ; | |
18041 | char *kwnames[] = { | |
18042 | (char *) "self",(char *) "canVeto", NULL | |
18043 | }; | |
18044 | ||
18045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
18046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18048 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18049 | if (PyErr_Occurred()) SWIG_fail; |
18050 | { | |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | (arg1)->SetCanVeto(arg2); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | Py_INCREF(Py_None); resultobj = Py_None; | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
c32bde28 | 18064 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18065 | PyObject *resultobj; |
18066 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18067 | bool result; | |
18068 | PyObject * obj0 = 0 ; | |
18069 | char *kwnames[] = { | |
18070 | (char *) "self", NULL | |
18071 | }; | |
18072 | ||
18073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
18074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18076 | { | |
18077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18078 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
18079 | ||
18080 | wxPyEndAllowThreads(__tstate); | |
18081 | if (PyErr_Occurred()) SWIG_fail; | |
18082 | } | |
18083 | { | |
18084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18085 | } | |
18086 | return resultobj; | |
18087 | fail: | |
18088 | return NULL; | |
18089 | } | |
18090 | ||
18091 | ||
c32bde28 | 18092 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18093 | PyObject *resultobj; |
18094 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18095 | bool result; | |
18096 | PyObject * obj0 = 0 ; | |
18097 | char *kwnames[] = { | |
18098 | (char *) "self", NULL | |
18099 | }; | |
18100 | ||
18101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
18102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18104 | { | |
18105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18106 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
18107 | ||
18108 | wxPyEndAllowThreads(__tstate); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
18111 | { | |
18112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18113 | } | |
18114 | return resultobj; | |
18115 | fail: | |
18116 | return NULL; | |
18117 | } | |
18118 | ||
18119 | ||
c32bde28 | 18120 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18121 | PyObject *obj; |
18122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18123 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
18124 | Py_INCREF(obj); | |
18125 | return Py_BuildValue((char *)""); | |
18126 | } | |
c32bde28 | 18127 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18128 | PyObject *resultobj; |
18129 | int arg1 = (int) 0 ; | |
ae8162c8 | 18130 | bool arg2 = (bool) false ; |
d55e5bfc RD |
18131 | wxShowEvent *result; |
18132 | PyObject * obj0 = 0 ; | |
18133 | PyObject * obj1 = 0 ; | |
18134 | char *kwnames[] = { | |
18135 | (char *) "winid",(char *) "show", NULL | |
18136 | }; | |
18137 | ||
18138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
18139 | if (obj0) { | |
c32bde28 | 18140 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18141 | if (PyErr_Occurred()) SWIG_fail; |
18142 | } | |
18143 | if (obj1) { | |
c32bde28 | 18144 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18145 | if (PyErr_Occurred()) SWIG_fail; |
18146 | } | |
18147 | { | |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
18150 | ||
18151 | wxPyEndAllowThreads(__tstate); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
18155 | return resultobj; | |
18156 | fail: | |
18157 | return NULL; | |
18158 | } | |
18159 | ||
18160 | ||
c32bde28 | 18161 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18162 | PyObject *resultobj; |
18163 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18164 | bool arg2 ; | |
18165 | PyObject * obj0 = 0 ; | |
18166 | PyObject * obj1 = 0 ; | |
18167 | char *kwnames[] = { | |
18168 | (char *) "self",(char *) "show", NULL | |
18169 | }; | |
18170 | ||
18171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
18172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18174 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18175 | if (PyErr_Occurred()) SWIG_fail; |
18176 | { | |
18177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18178 | (arg1)->SetShow(arg2); | |
18179 | ||
18180 | wxPyEndAllowThreads(__tstate); | |
18181 | if (PyErr_Occurred()) SWIG_fail; | |
18182 | } | |
18183 | Py_INCREF(Py_None); resultobj = Py_None; | |
18184 | return resultobj; | |
18185 | fail: | |
18186 | return NULL; | |
18187 | } | |
18188 | ||
18189 | ||
c32bde28 | 18190 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18191 | PyObject *resultobj; |
18192 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18193 | bool result; | |
18194 | PyObject * obj0 = 0 ; | |
18195 | char *kwnames[] = { | |
18196 | (char *) "self", NULL | |
18197 | }; | |
18198 | ||
18199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
18200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18202 | { | |
18203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18204 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
18205 | ||
18206 | wxPyEndAllowThreads(__tstate); | |
18207 | if (PyErr_Occurred()) SWIG_fail; | |
18208 | } | |
18209 | { | |
18210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18211 | } | |
18212 | return resultobj; | |
18213 | fail: | |
18214 | return NULL; | |
18215 | } | |
18216 | ||
18217 | ||
c32bde28 | 18218 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18219 | PyObject *obj; |
18220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18221 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
18222 | Py_INCREF(obj); | |
18223 | return Py_BuildValue((char *)""); | |
18224 | } | |
c32bde28 | 18225 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18226 | PyObject *resultobj; |
18227 | int arg1 = (int) 0 ; | |
ae8162c8 | 18228 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18229 | wxIconizeEvent *result; |
18230 | PyObject * obj0 = 0 ; | |
18231 | PyObject * obj1 = 0 ; | |
18232 | char *kwnames[] = { | |
18233 | (char *) "id",(char *) "iconized", NULL | |
18234 | }; | |
18235 | ||
18236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
18237 | if (obj0) { | |
c32bde28 | 18238 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18239 | if (PyErr_Occurred()) SWIG_fail; |
18240 | } | |
18241 | if (obj1) { | |
c32bde28 | 18242 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18243 | if (PyErr_Occurred()) SWIG_fail; |
18244 | } | |
18245 | { | |
18246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18247 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18248 | ||
18249 | wxPyEndAllowThreads(__tstate); | |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
18251 | } | |
18252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
18253 | return resultobj; | |
18254 | fail: | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
c32bde28 | 18259 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18260 | PyObject *resultobj; |
18261 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18262 | bool result; | |
18263 | PyObject * obj0 = 0 ; | |
18264 | char *kwnames[] = { | |
18265 | (char *) "self", NULL | |
18266 | }; | |
18267 | ||
18268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
18269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
18270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18271 | { | |
18272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18273 | result = (bool)(arg1)->Iconized(); | |
18274 | ||
18275 | wxPyEndAllowThreads(__tstate); | |
18276 | if (PyErr_Occurred()) SWIG_fail; | |
18277 | } | |
18278 | { | |
18279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18280 | } | |
18281 | return resultobj; | |
18282 | fail: | |
18283 | return NULL; | |
18284 | } | |
18285 | ||
18286 | ||
c32bde28 | 18287 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18288 | PyObject *obj; |
18289 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18290 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18291 | Py_INCREF(obj); | |
18292 | return Py_BuildValue((char *)""); | |
18293 | } | |
c32bde28 | 18294 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18295 | PyObject *resultobj; |
18296 | int arg1 = (int) 0 ; | |
18297 | wxMaximizeEvent *result; | |
18298 | PyObject * obj0 = 0 ; | |
18299 | char *kwnames[] = { | |
18300 | (char *) "id", NULL | |
18301 | }; | |
18302 | ||
18303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
18304 | if (obj0) { | |
c32bde28 | 18305 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18306 | if (PyErr_Occurred()) SWIG_fail; |
18307 | } | |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18311 | ||
18312 | wxPyEndAllowThreads(__tstate); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
18316 | return resultobj; | |
18317 | fail: | |
18318 | return NULL; | |
18319 | } | |
18320 | ||
18321 | ||
c32bde28 | 18322 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18323 | PyObject *obj; |
18324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18325 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18326 | Py_INCREF(obj); | |
18327 | return Py_BuildValue((char *)""); | |
18328 | } | |
c32bde28 | 18329 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18330 | PyObject *resultobj; |
18331 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18332 | wxPoint result; | |
18333 | PyObject * obj0 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18341 | { | |
18342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18343 | result = (arg1)->GetPosition(); | |
18344 | ||
18345 | wxPyEndAllowThreads(__tstate); | |
18346 | if (PyErr_Occurred()) SWIG_fail; | |
18347 | } | |
18348 | { | |
18349 | wxPoint * resultptr; | |
18350 | resultptr = new wxPoint((wxPoint &) result); | |
18351 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
18352 | } | |
18353 | return resultobj; | |
18354 | fail: | |
18355 | return NULL; | |
18356 | } | |
18357 | ||
18358 | ||
c32bde28 | 18359 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18360 | PyObject *resultobj; |
18361 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18362 | int result; | |
18363 | PyObject * obj0 = 0 ; | |
18364 | char *kwnames[] = { | |
18365 | (char *) "self", NULL | |
18366 | }; | |
18367 | ||
18368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
18369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | result = (int)(arg1)->GetNumberOfFiles(); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
c32bde28 | 18378 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18379 | return resultobj; |
18380 | fail: | |
18381 | return NULL; | |
18382 | } | |
18383 | ||
18384 | ||
c32bde28 | 18385 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18386 | PyObject *resultobj; |
18387 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18388 | PyObject *result; | |
18389 | PyObject * obj0 = 0 ; | |
18390 | char *kwnames[] = { | |
18391 | (char *) "self", NULL | |
18392 | }; | |
18393 | ||
18394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
18395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18397 | { | |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18399 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18400 | ||
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
18404 | resultobj = result; | |
18405 | return resultobj; | |
18406 | fail: | |
18407 | return NULL; | |
18408 | } | |
18409 | ||
18410 | ||
c32bde28 | 18411 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18412 | PyObject *obj; |
18413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18414 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18415 | Py_INCREF(obj); | |
18416 | return Py_BuildValue((char *)""); | |
18417 | } | |
c32bde28 | 18418 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18419 | PyObject *resultobj; |
18420 | int arg1 = (int) 0 ; | |
18421 | wxUpdateUIEvent *result; | |
18422 | PyObject * obj0 = 0 ; | |
18423 | char *kwnames[] = { | |
18424 | (char *) "commandId", NULL | |
18425 | }; | |
18426 | ||
18427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
18428 | if (obj0) { | |
c32bde28 | 18429 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18430 | if (PyErr_Occurred()) SWIG_fail; |
18431 | } | |
18432 | { | |
18433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18434 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18435 | ||
18436 | wxPyEndAllowThreads(__tstate); | |
18437 | if (PyErr_Occurred()) SWIG_fail; | |
18438 | } | |
18439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
18440 | return resultobj; | |
18441 | fail: | |
18442 | return NULL; | |
18443 | } | |
18444 | ||
18445 | ||
c32bde28 | 18446 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18447 | PyObject *resultobj; |
18448 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18449 | bool result; | |
18450 | PyObject * obj0 = 0 ; | |
18451 | char *kwnames[] = { | |
18452 | (char *) "self", NULL | |
18453 | }; | |
18454 | ||
18455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
18456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18458 | { | |
18459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18460 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18461 | ||
18462 | wxPyEndAllowThreads(__tstate); | |
18463 | if (PyErr_Occurred()) SWIG_fail; | |
18464 | } | |
18465 | { | |
18466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18467 | } | |
18468 | return resultobj; | |
18469 | fail: | |
18470 | return NULL; | |
18471 | } | |
18472 | ||
18473 | ||
c32bde28 | 18474 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18475 | PyObject *resultobj; |
18476 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18477 | bool result; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | char *kwnames[] = { | |
18480 | (char *) "self", NULL | |
18481 | }; | |
18482 | ||
18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18486 | { | |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18488 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18489 | ||
18490 | wxPyEndAllowThreads(__tstate); | |
18491 | if (PyErr_Occurred()) SWIG_fail; | |
18492 | } | |
18493 | { | |
18494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18495 | } | |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
c32bde28 | 18502 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18503 | PyObject *resultobj; |
18504 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18505 | wxString result; | |
18506 | PyObject * obj0 = 0 ; | |
18507 | char *kwnames[] = { | |
18508 | (char *) "self", NULL | |
18509 | }; | |
18510 | ||
18511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18514 | { | |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18516 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18517 | ||
18518 | wxPyEndAllowThreads(__tstate); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
18520 | } | |
18521 | { | |
18522 | #if wxUSE_UNICODE | |
18523 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18524 | #else | |
18525 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18526 | #endif | |
18527 | } | |
18528 | return resultobj; | |
18529 | fail: | |
18530 | return NULL; | |
18531 | } | |
18532 | ||
18533 | ||
c32bde28 | 18534 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18535 | PyObject *resultobj; |
18536 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18537 | bool result; | |
18538 | PyObject * obj0 = 0 ; | |
18539 | char *kwnames[] = { | |
18540 | (char *) "self", NULL | |
18541 | }; | |
18542 | ||
18543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18546 | { | |
18547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18548 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18549 | ||
18550 | wxPyEndAllowThreads(__tstate); | |
18551 | if (PyErr_Occurred()) SWIG_fail; | |
18552 | } | |
18553 | { | |
18554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18555 | } | |
18556 | return resultobj; | |
18557 | fail: | |
18558 | return NULL; | |
18559 | } | |
18560 | ||
18561 | ||
c32bde28 | 18562 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18563 | PyObject *resultobj; |
18564 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18565 | bool result; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | char *kwnames[] = { | |
18568 | (char *) "self", NULL | |
18569 | }; | |
18570 | ||
18571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18574 | { | |
18575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18576 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18577 | ||
18578 | wxPyEndAllowThreads(__tstate); | |
18579 | if (PyErr_Occurred()) SWIG_fail; | |
18580 | } | |
18581 | { | |
18582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18583 | } | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
c32bde28 | 18590 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18591 | PyObject *resultobj; |
18592 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18593 | bool result; | |
18594 | PyObject * obj0 = 0 ; | |
18595 | char *kwnames[] = { | |
18596 | (char *) "self", NULL | |
18597 | }; | |
18598 | ||
18599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18602 | { | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18605 | ||
18606 | wxPyEndAllowThreads(__tstate); | |
18607 | if (PyErr_Occurred()) SWIG_fail; | |
18608 | } | |
18609 | { | |
18610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18611 | } | |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
c32bde28 | 18618 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18619 | PyObject *resultobj; |
18620 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18621 | bool arg2 ; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | PyObject * obj1 = 0 ; | |
18624 | char *kwnames[] = { | |
18625 | (char *) "self",(char *) "check", NULL | |
18626 | }; | |
18627 | ||
18628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18631 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18632 | if (PyErr_Occurred()) SWIG_fail; |
18633 | { | |
18634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18635 | (arg1)->Check(arg2); | |
18636 | ||
18637 | wxPyEndAllowThreads(__tstate); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
18640 | Py_INCREF(Py_None); resultobj = Py_None; | |
18641 | return resultobj; | |
18642 | fail: | |
18643 | return NULL; | |
18644 | } | |
18645 | ||
18646 | ||
c32bde28 | 18647 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18648 | PyObject *resultobj; |
18649 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18650 | bool arg2 ; | |
18651 | PyObject * obj0 = 0 ; | |
18652 | PyObject * obj1 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self",(char *) "enable", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18660 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18661 | if (PyErr_Occurred()) SWIG_fail; |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | (arg1)->Enable(arg2); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | Py_INCREF(Py_None); resultobj = Py_None; | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
c32bde28 | 18676 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18677 | PyObject *resultobj; |
18678 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18679 | wxString *arg2 = 0 ; | |
ae8162c8 | 18680 | bool temp2 = false ; |
d55e5bfc RD |
18681 | PyObject * obj0 = 0 ; |
18682 | PyObject * obj1 = 0 ; | |
18683 | char *kwnames[] = { | |
18684 | (char *) "self",(char *) "text", NULL | |
18685 | }; | |
18686 | ||
18687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18690 | { | |
18691 | arg2 = wxString_in_helper(obj1); | |
18692 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18693 | temp2 = true; |
d55e5bfc RD |
18694 | } |
18695 | { | |
18696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18697 | (arg1)->SetText((wxString const &)*arg2); | |
18698 | ||
18699 | wxPyEndAllowThreads(__tstate); | |
18700 | if (PyErr_Occurred()) SWIG_fail; | |
18701 | } | |
18702 | Py_INCREF(Py_None); resultobj = Py_None; | |
18703 | { | |
18704 | if (temp2) | |
18705 | delete arg2; | |
18706 | } | |
18707 | return resultobj; | |
18708 | fail: | |
18709 | { | |
18710 | if (temp2) | |
18711 | delete arg2; | |
18712 | } | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
c32bde28 | 18717 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18718 | PyObject *resultobj; |
18719 | long arg1 ; | |
18720 | PyObject * obj0 = 0 ; | |
18721 | char *kwnames[] = { | |
18722 | (char *) "updateInterval", NULL | |
18723 | }; | |
18724 | ||
18725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
c32bde28 | 18726 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
18727 | if (PyErr_Occurred()) SWIG_fail; |
18728 | { | |
18729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18730 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18731 | ||
18732 | wxPyEndAllowThreads(__tstate); | |
18733 | if (PyErr_Occurred()) SWIG_fail; | |
18734 | } | |
18735 | Py_INCREF(Py_None); resultobj = Py_None; | |
18736 | return resultobj; | |
18737 | fail: | |
18738 | return NULL; | |
18739 | } | |
18740 | ||
18741 | ||
c32bde28 | 18742 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18743 | PyObject *resultobj; |
18744 | long result; | |
18745 | char *kwnames[] = { | |
18746 | NULL | |
18747 | }; | |
18748 | ||
18749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18753 | ||
18754 | wxPyEndAllowThreads(__tstate); | |
18755 | if (PyErr_Occurred()) SWIG_fail; | |
18756 | } | |
c32bde28 | 18757 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
18758 | return resultobj; |
18759 | fail: | |
18760 | return NULL; | |
18761 | } | |
18762 | ||
18763 | ||
c32bde28 | 18764 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18765 | PyObject *resultobj; |
18766 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18767 | bool result; | |
18768 | PyObject * obj0 = 0 ; | |
18769 | char *kwnames[] = { | |
18770 | (char *) "win", NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18776 | { | |
18777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18778 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18779 | ||
18780 | wxPyEndAllowThreads(__tstate); | |
18781 | if (PyErr_Occurred()) SWIG_fail; | |
18782 | } | |
18783 | { | |
18784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18785 | } | |
18786 | return resultobj; | |
18787 | fail: | |
18788 | return NULL; | |
18789 | } | |
18790 | ||
18791 | ||
c32bde28 | 18792 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18793 | PyObject *resultobj; |
18794 | char *kwnames[] = { | |
18795 | NULL | |
18796 | }; | |
18797 | ||
18798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18799 | { | |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | wxUpdateUIEvent::ResetUpdateTime(); | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
18806 | Py_INCREF(Py_None); resultobj = Py_None; | |
18807 | return resultobj; | |
18808 | fail: | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
c32bde28 | 18813 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18814 | PyObject *resultobj; |
18815 | int arg1 ; | |
18816 | PyObject * obj0 = 0 ; | |
18817 | char *kwnames[] = { | |
18818 | (char *) "mode", NULL | |
18819 | }; | |
18820 | ||
18821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 18822 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18823 | if (PyErr_Occurred()) SWIG_fail; |
18824 | { | |
18825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18826 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18827 | ||
18828 | wxPyEndAllowThreads(__tstate); | |
18829 | if (PyErr_Occurred()) SWIG_fail; | |
18830 | } | |
18831 | Py_INCREF(Py_None); resultobj = Py_None; | |
18832 | return resultobj; | |
18833 | fail: | |
18834 | return NULL; | |
18835 | } | |
18836 | ||
18837 | ||
c32bde28 | 18838 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18839 | PyObject *resultobj; |
18840 | int result; | |
18841 | char *kwnames[] = { | |
18842 | NULL | |
18843 | }; | |
18844 | ||
18845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18846 | { | |
18847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18848 | result = (int)wxUpdateUIEvent::GetMode(); | |
18849 | ||
18850 | wxPyEndAllowThreads(__tstate); | |
18851 | if (PyErr_Occurred()) SWIG_fail; | |
18852 | } | |
c32bde28 | 18853 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18854 | return resultobj; |
18855 | fail: | |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
c32bde28 | 18860 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18861 | PyObject *obj; |
18862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18863 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18864 | Py_INCREF(obj); | |
18865 | return Py_BuildValue((char *)""); | |
18866 | } | |
c32bde28 | 18867 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18868 | PyObject *resultobj; |
18869 | wxSysColourChangedEvent *result; | |
18870 | char *kwnames[] = { | |
18871 | NULL | |
18872 | }; | |
18873 | ||
18874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18875 | { | |
18876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18877 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18878 | ||
18879 | wxPyEndAllowThreads(__tstate); | |
18880 | if (PyErr_Occurred()) SWIG_fail; | |
18881 | } | |
18882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18883 | return resultobj; | |
18884 | fail: | |
18885 | return NULL; | |
18886 | } | |
18887 | ||
18888 | ||
c32bde28 | 18889 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18890 | PyObject *obj; |
18891 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18892 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18893 | Py_INCREF(obj); | |
18894 | return Py_BuildValue((char *)""); | |
18895 | } | |
c32bde28 | 18896 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18897 | PyObject *resultobj; |
18898 | int arg1 = (int) 0 ; | |
18899 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18900 | wxMouseCaptureChangedEvent *result; | |
18901 | PyObject * obj0 = 0 ; | |
18902 | PyObject * obj1 = 0 ; | |
18903 | char *kwnames[] = { | |
18904 | (char *) "winid",(char *) "gainedCapture", NULL | |
18905 | }; | |
18906 | ||
18907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18908 | if (obj0) { | |
c32bde28 | 18909 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18910 | if (PyErr_Occurred()) SWIG_fail; |
18911 | } | |
18912 | if (obj1) { | |
18913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18915 | } | |
18916 | { | |
18917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18918 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18919 | ||
18920 | wxPyEndAllowThreads(__tstate); | |
18921 | if (PyErr_Occurred()) SWIG_fail; | |
18922 | } | |
18923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18924 | return resultobj; | |
18925 | fail: | |
18926 | return NULL; | |
18927 | } | |
18928 | ||
18929 | ||
c32bde28 | 18930 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18931 | PyObject *resultobj; |
18932 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18933 | wxWindow *result; | |
18934 | PyObject * obj0 = 0 ; | |
18935 | char *kwnames[] = { | |
18936 | (char *) "self", NULL | |
18937 | }; | |
18938 | ||
18939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18942 | { | |
18943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18944 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18945 | ||
18946 | wxPyEndAllowThreads(__tstate); | |
18947 | if (PyErr_Occurred()) SWIG_fail; | |
18948 | } | |
18949 | { | |
412d302d | 18950 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18951 | } |
18952 | return resultobj; | |
18953 | fail: | |
18954 | return NULL; | |
18955 | } | |
18956 | ||
18957 | ||
c32bde28 | 18958 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18959 | PyObject *obj; |
18960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18961 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18962 | Py_INCREF(obj); | |
18963 | return Py_BuildValue((char *)""); | |
18964 | } | |
c32bde28 | 18965 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18966 | PyObject *resultobj; |
18967 | wxDisplayChangedEvent *result; | |
18968 | char *kwnames[] = { | |
18969 | NULL | |
18970 | }; | |
18971 | ||
18972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18973 | { | |
18974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18975 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18976 | ||
18977 | wxPyEndAllowThreads(__tstate); | |
18978 | if (PyErr_Occurred()) SWIG_fail; | |
18979 | } | |
18980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18981 | return resultobj; | |
18982 | fail: | |
18983 | return NULL; | |
18984 | } | |
18985 | ||
18986 | ||
c32bde28 | 18987 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18988 | PyObject *obj; |
18989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18990 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18991 | Py_INCREF(obj); | |
18992 | return Py_BuildValue((char *)""); | |
18993 | } | |
c32bde28 | 18994 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18995 | PyObject *resultobj; |
18996 | int arg1 = (int) 0 ; | |
18997 | wxPaletteChangedEvent *result; | |
18998 | PyObject * obj0 = 0 ; | |
18999 | char *kwnames[] = { | |
19000 | (char *) "id", NULL | |
19001 | }; | |
19002 | ||
19003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
19004 | if (obj0) { | |
c32bde28 | 19005 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19006 | if (PyErr_Occurred()) SWIG_fail; |
19007 | } | |
19008 | { | |
19009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19010 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
19011 | ||
19012 | wxPyEndAllowThreads(__tstate); | |
19013 | if (PyErr_Occurred()) SWIG_fail; | |
19014 | } | |
19015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
19016 | return resultobj; | |
19017 | fail: | |
19018 | return NULL; | |
19019 | } | |
19020 | ||
19021 | ||
c32bde28 | 19022 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19023 | PyObject *resultobj; |
19024 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
19025 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19026 | PyObject * obj0 = 0 ; | |
19027 | PyObject * obj1 = 0 ; | |
19028 | char *kwnames[] = { | |
19029 | (char *) "self",(char *) "win", NULL | |
19030 | }; | |
19031 | ||
19032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
19033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
19034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19037 | { | |
19038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19039 | (arg1)->SetChangedWindow(arg2); | |
19040 | ||
19041 | wxPyEndAllowThreads(__tstate); | |
19042 | if (PyErr_Occurred()) SWIG_fail; | |
19043 | } | |
19044 | Py_INCREF(Py_None); resultobj = Py_None; | |
19045 | return resultobj; | |
19046 | fail: | |
19047 | return NULL; | |
19048 | } | |
19049 | ||
19050 | ||
c32bde28 | 19051 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19052 | PyObject *resultobj; |
19053 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
19054 | wxWindow *result; | |
19055 | PyObject * obj0 = 0 ; | |
19056 | char *kwnames[] = { | |
19057 | (char *) "self", NULL | |
19058 | }; | |
19059 | ||
19060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
19061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
19062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19063 | { | |
19064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19065 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
19066 | ||
19067 | wxPyEndAllowThreads(__tstate); | |
19068 | if (PyErr_Occurred()) SWIG_fail; | |
19069 | } | |
19070 | { | |
412d302d | 19071 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19072 | } |
19073 | return resultobj; | |
19074 | fail: | |
19075 | return NULL; | |
19076 | } | |
19077 | ||
19078 | ||
c32bde28 | 19079 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19080 | PyObject *obj; |
19081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19082 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
19083 | Py_INCREF(obj); | |
19084 | return Py_BuildValue((char *)""); | |
19085 | } | |
c32bde28 | 19086 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19087 | PyObject *resultobj; |
19088 | int arg1 = (int) 0 ; | |
19089 | wxQueryNewPaletteEvent *result; | |
19090 | PyObject * obj0 = 0 ; | |
19091 | char *kwnames[] = { | |
19092 | (char *) "winid", NULL | |
19093 | }; | |
19094 | ||
19095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
19096 | if (obj0) { | |
c32bde28 | 19097 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19098 | if (PyErr_Occurred()) SWIG_fail; |
19099 | } | |
19100 | { | |
19101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19102 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
19103 | ||
19104 | wxPyEndAllowThreads(__tstate); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | } | |
19107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
c32bde28 | 19114 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19115 | PyObject *resultobj; |
19116 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19117 | bool arg2 ; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | PyObject * obj1 = 0 ; | |
19120 | char *kwnames[] = { | |
19121 | (char *) "self",(char *) "realized", NULL | |
19122 | }; | |
19123 | ||
19124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
19125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
19126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19127 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19128 | if (PyErr_Occurred()) SWIG_fail; |
19129 | { | |
19130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19131 | (arg1)->SetPaletteRealized(arg2); | |
19132 | ||
19133 | wxPyEndAllowThreads(__tstate); | |
19134 | if (PyErr_Occurred()) SWIG_fail; | |
19135 | } | |
19136 | Py_INCREF(Py_None); resultobj = Py_None; | |
19137 | return resultobj; | |
19138 | fail: | |
19139 | return NULL; | |
19140 | } | |
19141 | ||
19142 | ||
c32bde28 | 19143 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19144 | PyObject *resultobj; |
19145 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19146 | bool result; | |
19147 | PyObject * obj0 = 0 ; | |
19148 | char *kwnames[] = { | |
19149 | (char *) "self", NULL | |
19150 | }; | |
19151 | ||
19152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
19153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
19154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19155 | { | |
19156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19157 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
19158 | ||
19159 | wxPyEndAllowThreads(__tstate); | |
19160 | if (PyErr_Occurred()) SWIG_fail; | |
19161 | } | |
19162 | { | |
19163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19164 | } | |
19165 | return resultobj; | |
19166 | fail: | |
19167 | return NULL; | |
19168 | } | |
19169 | ||
19170 | ||
c32bde28 | 19171 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19172 | PyObject *obj; |
19173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19174 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
19175 | Py_INCREF(obj); | |
19176 | return Py_BuildValue((char *)""); | |
19177 | } | |
c32bde28 | 19178 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19179 | PyObject *resultobj; |
19180 | wxNavigationKeyEvent *result; | |
19181 | char *kwnames[] = { | |
19182 | NULL | |
19183 | }; | |
19184 | ||
19185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
19189 | ||
19190 | wxPyEndAllowThreads(__tstate); | |
19191 | if (PyErr_Occurred()) SWIG_fail; | |
19192 | } | |
19193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
19194 | return resultobj; | |
19195 | fail: | |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
c32bde28 | 19200 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19201 | PyObject *resultobj; |
19202 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19203 | bool result; | |
19204 | PyObject * obj0 = 0 ; | |
19205 | char *kwnames[] = { | |
19206 | (char *) "self", NULL | |
19207 | }; | |
19208 | ||
19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
19210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19212 | { | |
19213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19214 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
19215 | ||
19216 | wxPyEndAllowThreads(__tstate); | |
19217 | if (PyErr_Occurred()) SWIG_fail; | |
19218 | } | |
19219 | { | |
19220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19221 | } | |
19222 | return resultobj; | |
19223 | fail: | |
19224 | return NULL; | |
19225 | } | |
19226 | ||
19227 | ||
c32bde28 | 19228 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19229 | PyObject *resultobj; |
19230 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19231 | bool arg2 ; | |
19232 | PyObject * obj0 = 0 ; | |
19233 | PyObject * obj1 = 0 ; | |
19234 | char *kwnames[] = { | |
908b74cd | 19235 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
19236 | }; |
19237 | ||
19238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
19239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19241 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19242 | if (PyErr_Occurred()) SWIG_fail; |
19243 | { | |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19245 | (arg1)->SetDirection(arg2); | |
19246 | ||
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
19250 | Py_INCREF(Py_None); resultobj = Py_None; | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
c32bde28 | 19257 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19258 | PyObject *resultobj; |
19259 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19260 | bool result; | |
19261 | PyObject * obj0 = 0 ; | |
19262 | char *kwnames[] = { | |
19263 | (char *) "self", NULL | |
19264 | }; | |
19265 | ||
19266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
19267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19269 | { | |
19270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19271 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19272 | ||
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | { | |
19277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19278 | } | |
19279 | return resultobj; | |
19280 | fail: | |
19281 | return NULL; | |
19282 | } | |
19283 | ||
19284 | ||
c32bde28 | 19285 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19286 | PyObject *resultobj; |
19287 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19288 | bool arg2 ; | |
19289 | PyObject * obj0 = 0 ; | |
19290 | PyObject * obj1 = 0 ; | |
19291 | char *kwnames[] = { | |
908b74cd | 19292 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
19293 | }; |
19294 | ||
19295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
19296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19298 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19299 | if (PyErr_Occurred()) SWIG_fail; |
19300 | { | |
19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19302 | (arg1)->SetWindowChange(arg2); | |
19303 | ||
19304 | wxPyEndAllowThreads(__tstate); | |
19305 | if (PyErr_Occurred()) SWIG_fail; | |
19306 | } | |
19307 | Py_INCREF(Py_None); resultobj = Py_None; | |
19308 | return resultobj; | |
19309 | fail: | |
19310 | return NULL; | |
19311 | } | |
19312 | ||
19313 | ||
c32bde28 | 19314 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19315 | PyObject *resultobj; |
19316 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19317 | long arg2 ; | |
19318 | PyObject * obj0 = 0 ; | |
19319 | PyObject * obj1 = 0 ; | |
19320 | char *kwnames[] = { | |
19321 | (char *) "self",(char *) "flags", NULL | |
19322 | }; | |
19323 | ||
19324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19327 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19328 | if (PyErr_Occurred()) SWIG_fail; |
19329 | { | |
19330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19331 | (arg1)->SetFlags(arg2); | |
19332 | ||
19333 | wxPyEndAllowThreads(__tstate); | |
19334 | if (PyErr_Occurred()) SWIG_fail; | |
19335 | } | |
19336 | Py_INCREF(Py_None); resultobj = Py_None; | |
19337 | return resultobj; | |
19338 | fail: | |
19339 | return NULL; | |
19340 | } | |
19341 | ||
19342 | ||
c32bde28 | 19343 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19344 | PyObject *resultobj; |
19345 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19346 | wxWindow *result; | |
19347 | PyObject * obj0 = 0 ; | |
19348 | char *kwnames[] = { | |
19349 | (char *) "self", NULL | |
19350 | }; | |
19351 | ||
19352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
19353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19355 | { | |
19356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19357 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19358 | ||
19359 | wxPyEndAllowThreads(__tstate); | |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
19361 | } | |
19362 | { | |
412d302d | 19363 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19364 | } |
19365 | return resultobj; | |
19366 | fail: | |
19367 | return NULL; | |
19368 | } | |
19369 | ||
19370 | ||
c32bde28 | 19371 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19372 | PyObject *resultobj; |
19373 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19374 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19375 | PyObject * obj0 = 0 ; | |
19376 | PyObject * obj1 = 0 ; | |
19377 | char *kwnames[] = { | |
19378 | (char *) "self",(char *) "win", NULL | |
19379 | }; | |
19380 | ||
19381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
19382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19386 | { | |
19387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19388 | (arg1)->SetCurrentFocus(arg2); | |
19389 | ||
19390 | wxPyEndAllowThreads(__tstate); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | } | |
19393 | Py_INCREF(Py_None); resultobj = Py_None; | |
19394 | return resultobj; | |
19395 | fail: | |
19396 | return NULL; | |
19397 | } | |
19398 | ||
19399 | ||
c32bde28 | 19400 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19401 | PyObject *obj; |
19402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19403 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19404 | Py_INCREF(obj); | |
19405 | return Py_BuildValue((char *)""); | |
19406 | } | |
c32bde28 | 19407 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19408 | PyObject *resultobj; |
19409 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19410 | wxWindowCreateEvent *result; | |
19411 | PyObject * obj0 = 0 ; | |
19412 | char *kwnames[] = { | |
19413 | (char *) "win", NULL | |
19414 | }; | |
19415 | ||
19416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19417 | if (obj0) { | |
19418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19420 | } | |
19421 | { | |
19422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19423 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19424 | ||
19425 | wxPyEndAllowThreads(__tstate); | |
19426 | if (PyErr_Occurred()) SWIG_fail; | |
19427 | } | |
19428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
19429 | return resultobj; | |
19430 | fail: | |
19431 | return NULL; | |
19432 | } | |
19433 | ||
19434 | ||
c32bde28 | 19435 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19436 | PyObject *resultobj; |
19437 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19438 | wxWindow *result; | |
19439 | PyObject * obj0 = 0 ; | |
19440 | char *kwnames[] = { | |
19441 | (char *) "self", NULL | |
19442 | }; | |
19443 | ||
19444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
19446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19447 | { | |
19448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19449 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19450 | ||
19451 | wxPyEndAllowThreads(__tstate); | |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
19453 | } | |
19454 | { | |
412d302d | 19455 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19456 | } |
19457 | return resultobj; | |
19458 | fail: | |
19459 | return NULL; | |
19460 | } | |
19461 | ||
19462 | ||
c32bde28 | 19463 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19464 | PyObject *obj; |
19465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19466 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19467 | Py_INCREF(obj); | |
19468 | return Py_BuildValue((char *)""); | |
19469 | } | |
c32bde28 | 19470 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19471 | PyObject *resultobj; |
19472 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19473 | wxWindowDestroyEvent *result; | |
19474 | PyObject * obj0 = 0 ; | |
19475 | char *kwnames[] = { | |
19476 | (char *) "win", NULL | |
19477 | }; | |
19478 | ||
19479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19480 | if (obj0) { | |
19481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19483 | } | |
19484 | { | |
19485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19486 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19487 | ||
19488 | wxPyEndAllowThreads(__tstate); | |
19489 | if (PyErr_Occurred()) SWIG_fail; | |
19490 | } | |
19491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19492 | return resultobj; | |
19493 | fail: | |
19494 | return NULL; | |
19495 | } | |
19496 | ||
19497 | ||
c32bde28 | 19498 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19499 | PyObject *resultobj; |
19500 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19501 | wxWindow *result; | |
19502 | PyObject * obj0 = 0 ; | |
19503 | char *kwnames[] = { | |
19504 | (char *) "self", NULL | |
19505 | }; | |
19506 | ||
19507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19510 | { | |
19511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19512 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19513 | ||
19514 | wxPyEndAllowThreads(__tstate); | |
19515 | if (PyErr_Occurred()) SWIG_fail; | |
19516 | } | |
19517 | { | |
412d302d | 19518 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19519 | } |
19520 | return resultobj; | |
19521 | fail: | |
19522 | return NULL; | |
19523 | } | |
19524 | ||
19525 | ||
c32bde28 | 19526 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19527 | PyObject *obj; |
19528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19529 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19530 | Py_INCREF(obj); | |
19531 | return Py_BuildValue((char *)""); | |
19532 | } | |
c32bde28 | 19533 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19534 | PyObject *resultobj; |
19535 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19536 | int arg2 = (int) 0 ; | |
19537 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19538 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19539 | wxContextMenuEvent *result; | |
19540 | wxPoint temp3 ; | |
19541 | PyObject * obj0 = 0 ; | |
19542 | PyObject * obj1 = 0 ; | |
19543 | PyObject * obj2 = 0 ; | |
19544 | char *kwnames[] = { | |
19545 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19546 | }; | |
19547 | ||
19548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19549 | if (obj0) { | |
c32bde28 | 19550 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19551 | if (PyErr_Occurred()) SWIG_fail; |
19552 | } | |
19553 | if (obj1) { | |
c32bde28 | 19554 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19555 | if (PyErr_Occurred()) SWIG_fail; |
19556 | } | |
19557 | if (obj2) { | |
19558 | { | |
19559 | arg3 = &temp3; | |
19560 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19561 | } | |
19562 | } | |
19563 | { | |
19564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19565 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19566 | ||
19567 | wxPyEndAllowThreads(__tstate); | |
19568 | if (PyErr_Occurred()) SWIG_fail; | |
19569 | } | |
19570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19571 | return resultobj; | |
19572 | fail: | |
19573 | return NULL; | |
19574 | } | |
19575 | ||
19576 | ||
c32bde28 | 19577 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19578 | PyObject *resultobj; |
19579 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19580 | wxPoint *result; | |
19581 | PyObject * obj0 = 0 ; | |
19582 | char *kwnames[] = { | |
19583 | (char *) "self", NULL | |
19584 | }; | |
19585 | ||
19586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19589 | { | |
19590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19591 | { | |
19592 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19593 | result = (wxPoint *) &_result_ref; | |
19594 | } | |
19595 | ||
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
19599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19600 | return resultobj; | |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
c32bde28 | 19606 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19607 | PyObject *resultobj; |
19608 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19609 | wxPoint *arg2 = 0 ; | |
19610 | wxPoint temp2 ; | |
19611 | PyObject * obj0 = 0 ; | |
19612 | PyObject * obj1 = 0 ; | |
19613 | char *kwnames[] = { | |
19614 | (char *) "self",(char *) "pos", NULL | |
19615 | }; | |
19616 | ||
19617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19620 | { | |
19621 | arg2 = &temp2; | |
19622 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19623 | } | |
19624 | { | |
19625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19626 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19627 | ||
19628 | wxPyEndAllowThreads(__tstate); | |
19629 | if (PyErr_Occurred()) SWIG_fail; | |
19630 | } | |
19631 | Py_INCREF(Py_None); resultobj = Py_None; | |
19632 | return resultobj; | |
19633 | fail: | |
19634 | return NULL; | |
19635 | } | |
19636 | ||
19637 | ||
c32bde28 | 19638 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19639 | PyObject *obj; |
19640 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19641 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19642 | Py_INCREF(obj); | |
19643 | return Py_BuildValue((char *)""); | |
19644 | } | |
c32bde28 | 19645 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19646 | PyObject *resultobj; |
19647 | wxIdleEvent *result; | |
19648 | char *kwnames[] = { | |
19649 | NULL | |
19650 | }; | |
19651 | ||
19652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19653 | { | |
19654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19655 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19656 | ||
19657 | wxPyEndAllowThreads(__tstate); | |
19658 | if (PyErr_Occurred()) SWIG_fail; | |
19659 | } | |
19660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19661 | return resultobj; | |
19662 | fail: | |
19663 | return NULL; | |
19664 | } | |
19665 | ||
19666 | ||
c32bde28 | 19667 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19668 | PyObject *resultobj; |
19669 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 19670 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19671 | PyObject * obj0 = 0 ; |
19672 | PyObject * obj1 = 0 ; | |
19673 | char *kwnames[] = { | |
19674 | (char *) "self",(char *) "needMore", NULL | |
19675 | }; | |
19676 | ||
19677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19680 | if (obj1) { | |
c32bde28 | 19681 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19682 | if (PyErr_Occurred()) SWIG_fail; |
19683 | } | |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | (arg1)->RequestMore(arg2); | |
19687 | ||
19688 | wxPyEndAllowThreads(__tstate); | |
19689 | if (PyErr_Occurred()) SWIG_fail; | |
19690 | } | |
19691 | Py_INCREF(Py_None); resultobj = Py_None; | |
19692 | return resultobj; | |
19693 | fail: | |
19694 | return NULL; | |
19695 | } | |
19696 | ||
19697 | ||
c32bde28 | 19698 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19699 | PyObject *resultobj; |
19700 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19701 | bool result; | |
19702 | PyObject * obj0 = 0 ; | |
19703 | char *kwnames[] = { | |
19704 | (char *) "self", NULL | |
19705 | }; | |
19706 | ||
19707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19710 | { | |
19711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19712 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19713 | ||
19714 | wxPyEndAllowThreads(__tstate); | |
19715 | if (PyErr_Occurred()) SWIG_fail; | |
19716 | } | |
19717 | { | |
19718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19719 | } | |
19720 | return resultobj; | |
19721 | fail: | |
19722 | return NULL; | |
19723 | } | |
19724 | ||
19725 | ||
c32bde28 | 19726 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19727 | PyObject *resultobj; |
19728 | int arg1 ; | |
19729 | PyObject * obj0 = 0 ; | |
19730 | char *kwnames[] = { | |
19731 | (char *) "mode", NULL | |
19732 | }; | |
19733 | ||
19734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 19735 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19736 | if (PyErr_Occurred()) SWIG_fail; |
19737 | { | |
19738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19739 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19740 | ||
19741 | wxPyEndAllowThreads(__tstate); | |
19742 | if (PyErr_Occurred()) SWIG_fail; | |
19743 | } | |
19744 | Py_INCREF(Py_None); resultobj = Py_None; | |
19745 | return resultobj; | |
19746 | fail: | |
19747 | return NULL; | |
19748 | } | |
19749 | ||
19750 | ||
c32bde28 | 19751 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19752 | PyObject *resultobj; |
19753 | int result; | |
19754 | char *kwnames[] = { | |
19755 | NULL | |
19756 | }; | |
19757 | ||
19758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19759 | { | |
19760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19761 | result = (int)wxIdleEvent::GetMode(); | |
19762 | ||
19763 | wxPyEndAllowThreads(__tstate); | |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
19765 | } | |
c32bde28 | 19766 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19767 | return resultobj; |
19768 | fail: | |
19769 | return NULL; | |
19770 | } | |
19771 | ||
19772 | ||
c32bde28 | 19773 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19774 | PyObject *resultobj; |
19775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19776 | bool result; | |
19777 | PyObject * obj0 = 0 ; | |
19778 | char *kwnames[] = { | |
19779 | (char *) "win", NULL | |
19780 | }; | |
19781 | ||
19782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19785 | { | |
19786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19787 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19788 | ||
19789 | wxPyEndAllowThreads(__tstate); | |
19790 | if (PyErr_Occurred()) SWIG_fail; | |
19791 | } | |
19792 | { | |
19793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19794 | } | |
19795 | return resultobj; | |
19796 | fail: | |
19797 | return NULL; | |
19798 | } | |
19799 | ||
19800 | ||
c32bde28 | 19801 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19802 | PyObject *obj; |
19803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19804 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19805 | Py_INCREF(obj); | |
19806 | return Py_BuildValue((char *)""); | |
19807 | } | |
c32bde28 | 19808 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19809 | PyObject *resultobj; |
19810 | int arg1 = (int) 0 ; | |
19811 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19812 | wxPyEvent *result; | |
19813 | PyObject * obj0 = 0 ; | |
19814 | PyObject * obj1 = 0 ; | |
19815 | char *kwnames[] = { | |
19816 | (char *) "winid",(char *) "commandType", NULL | |
19817 | }; | |
19818 | ||
19819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19820 | if (obj0) { | |
c32bde28 | 19821 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19822 | if (PyErr_Occurred()) SWIG_fail; |
19823 | } | |
19824 | if (obj1) { | |
c32bde28 | 19825 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
19826 | if (PyErr_Occurred()) SWIG_fail; |
19827 | } | |
19828 | { | |
19829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19830 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19831 | ||
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
c32bde28 | 19842 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19843 | PyObject *resultobj; |
19844 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19845 | PyObject * obj0 = 0 ; | |
19846 | char *kwnames[] = { | |
19847 | (char *) "self", NULL | |
19848 | }; | |
19849 | ||
19850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19853 | { | |
19854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19855 | delete arg1; | |
19856 | ||
19857 | wxPyEndAllowThreads(__tstate); | |
19858 | if (PyErr_Occurred()) SWIG_fail; | |
19859 | } | |
19860 | Py_INCREF(Py_None); resultobj = Py_None; | |
19861 | return resultobj; | |
19862 | fail: | |
19863 | return NULL; | |
19864 | } | |
19865 | ||
19866 | ||
c32bde28 | 19867 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19868 | PyObject *resultobj; |
19869 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19870 | PyObject *arg2 = (PyObject *) 0 ; | |
19871 | PyObject * obj0 = 0 ; | |
19872 | PyObject * obj1 = 0 ; | |
19873 | char *kwnames[] = { | |
19874 | (char *) "self",(char *) "self", NULL | |
19875 | }; | |
19876 | ||
19877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19880 | arg2 = obj1; | |
19881 | { | |
19882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19883 | (arg1)->SetSelf(arg2); | |
19884 | ||
19885 | wxPyEndAllowThreads(__tstate); | |
19886 | if (PyErr_Occurred()) SWIG_fail; | |
19887 | } | |
19888 | Py_INCREF(Py_None); resultobj = Py_None; | |
19889 | return resultobj; | |
19890 | fail: | |
19891 | return NULL; | |
19892 | } | |
19893 | ||
19894 | ||
c32bde28 | 19895 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19896 | PyObject *resultobj; |
19897 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19898 | PyObject *result; | |
19899 | PyObject * obj0 = 0 ; | |
19900 | char *kwnames[] = { | |
19901 | (char *) "self", NULL | |
19902 | }; | |
19903 | ||
19904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19907 | { | |
19908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19909 | result = (PyObject *)(arg1)->GetSelf(); | |
19910 | ||
19911 | wxPyEndAllowThreads(__tstate); | |
19912 | if (PyErr_Occurred()) SWIG_fail; | |
19913 | } | |
19914 | resultobj = result; | |
19915 | return resultobj; | |
19916 | fail: | |
19917 | return NULL; | |
19918 | } | |
19919 | ||
19920 | ||
c32bde28 | 19921 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19922 | PyObject *obj; |
19923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19924 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19925 | Py_INCREF(obj); | |
19926 | return Py_BuildValue((char *)""); | |
19927 | } | |
c32bde28 | 19928 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19929 | PyObject *resultobj; |
19930 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19931 | int arg2 = (int) 0 ; | |
19932 | wxPyCommandEvent *result; | |
19933 | PyObject * obj0 = 0 ; | |
19934 | PyObject * obj1 = 0 ; | |
19935 | char *kwnames[] = { | |
19936 | (char *) "commandType",(char *) "id", NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19940 | if (obj0) { | |
c32bde28 | 19941 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19942 | if (PyErr_Occurred()) SWIG_fail; |
19943 | } | |
19944 | if (obj1) { | |
c32bde28 | 19945 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19946 | if (PyErr_Occurred()) SWIG_fail; |
19947 | } | |
19948 | { | |
19949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19950 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19951 | ||
19952 | wxPyEndAllowThreads(__tstate); | |
19953 | if (PyErr_Occurred()) SWIG_fail; | |
19954 | } | |
19955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19956 | return resultobj; | |
19957 | fail: | |
19958 | return NULL; | |
19959 | } | |
19960 | ||
19961 | ||
c32bde28 | 19962 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19963 | PyObject *resultobj; |
19964 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19965 | PyObject * obj0 = 0 ; | |
19966 | char *kwnames[] = { | |
19967 | (char *) "self", NULL | |
19968 | }; | |
19969 | ||
19970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19973 | { | |
19974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19975 | delete arg1; | |
19976 | ||
19977 | wxPyEndAllowThreads(__tstate); | |
19978 | if (PyErr_Occurred()) SWIG_fail; | |
19979 | } | |
19980 | Py_INCREF(Py_None); resultobj = Py_None; | |
19981 | return resultobj; | |
19982 | fail: | |
19983 | return NULL; | |
19984 | } | |
19985 | ||
19986 | ||
c32bde28 | 19987 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19988 | PyObject *resultobj; |
19989 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19990 | PyObject *arg2 = (PyObject *) 0 ; | |
19991 | PyObject * obj0 = 0 ; | |
19992 | PyObject * obj1 = 0 ; | |
19993 | char *kwnames[] = { | |
19994 | (char *) "self",(char *) "self", NULL | |
19995 | }; | |
19996 | ||
19997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20000 | arg2 = obj1; | |
20001 | { | |
20002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20003 | (arg1)->SetSelf(arg2); | |
20004 | ||
20005 | wxPyEndAllowThreads(__tstate); | |
20006 | if (PyErr_Occurred()) SWIG_fail; | |
20007 | } | |
20008 | Py_INCREF(Py_None); resultobj = Py_None; | |
20009 | return resultobj; | |
20010 | fail: | |
20011 | return NULL; | |
20012 | } | |
20013 | ||
20014 | ||
c32bde28 | 20015 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20016 | PyObject *resultobj; |
20017 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
20018 | PyObject *result; | |
20019 | PyObject * obj0 = 0 ; | |
20020 | char *kwnames[] = { | |
20021 | (char *) "self", NULL | |
20022 | }; | |
20023 | ||
20024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
20025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
20026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20027 | { | |
20028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20029 | result = (PyObject *)(arg1)->GetSelf(); | |
20030 | ||
20031 | wxPyEndAllowThreads(__tstate); | |
20032 | if (PyErr_Occurred()) SWIG_fail; | |
20033 | } | |
20034 | resultobj = result; | |
20035 | return resultobj; | |
20036 | fail: | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
c32bde28 | 20041 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20042 | PyObject *obj; |
20043 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20044 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
20045 | Py_INCREF(obj); | |
20046 | return Py_BuildValue((char *)""); | |
20047 | } | |
c32bde28 | 20048 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20049 | PyObject *resultobj; |
20050 | wxPyApp *result; | |
20051 | char *kwnames[] = { | |
20052 | NULL | |
20053 | }; | |
20054 | ||
20055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | result = (wxPyApp *)new_wxPyApp(); | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
b0f7404b | 20063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
20064 | return resultobj; |
20065 | fail: | |
20066 | return NULL; | |
20067 | } | |
20068 | ||
20069 | ||
c32bde28 | 20070 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20071 | PyObject *resultobj; |
20072 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20073 | PyObject * obj0 = 0 ; | |
20074 | char *kwnames[] = { | |
20075 | (char *) "self", NULL | |
20076 | }; | |
20077 | ||
20078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
20079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20081 | { | |
20082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20083 | delete arg1; | |
20084 | ||
20085 | wxPyEndAllowThreads(__tstate); | |
20086 | if (PyErr_Occurred()) SWIG_fail; | |
20087 | } | |
20088 | Py_INCREF(Py_None); resultobj = Py_None; | |
20089 | return resultobj; | |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
c32bde28 | 20095 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20096 | PyObject *resultobj; |
20097 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20098 | PyObject *arg2 = (PyObject *) 0 ; | |
20099 | PyObject *arg3 = (PyObject *) 0 ; | |
20100 | PyObject * obj0 = 0 ; | |
20101 | PyObject * obj1 = 0 ; | |
20102 | PyObject * obj2 = 0 ; | |
20103 | char *kwnames[] = { | |
20104 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20105 | }; | |
20106 | ||
20107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20110 | arg2 = obj1; | |
20111 | arg3 = obj2; | |
20112 | { | |
20113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20114 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20115 | ||
20116 | wxPyEndAllowThreads(__tstate); | |
20117 | if (PyErr_Occurred()) SWIG_fail; | |
20118 | } | |
20119 | Py_INCREF(Py_None); resultobj = Py_None; | |
20120 | return resultobj; | |
20121 | fail: | |
20122 | return NULL; | |
20123 | } | |
20124 | ||
20125 | ||
c32bde28 | 20126 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20127 | PyObject *resultobj; |
20128 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20129 | wxString result; | |
20130 | PyObject * obj0 = 0 ; | |
20131 | char *kwnames[] = { | |
20132 | (char *) "self", NULL | |
20133 | }; | |
20134 | ||
20135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
20136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20138 | { | |
20139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20140 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
20141 | ||
20142 | wxPyEndAllowThreads(__tstate); | |
20143 | if (PyErr_Occurred()) SWIG_fail; | |
20144 | } | |
20145 | { | |
20146 | #if wxUSE_UNICODE | |
20147 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20148 | #else | |
20149 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20150 | #endif | |
20151 | } | |
20152 | return resultobj; | |
20153 | fail: | |
20154 | return NULL; | |
20155 | } | |
20156 | ||
20157 | ||
c32bde28 | 20158 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20159 | PyObject *resultobj; |
20160 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20161 | wxString *arg2 = 0 ; | |
ae8162c8 | 20162 | bool temp2 = false ; |
d55e5bfc RD |
20163 | PyObject * obj0 = 0 ; |
20164 | PyObject * obj1 = 0 ; | |
20165 | char *kwnames[] = { | |
20166 | (char *) "self",(char *) "name", NULL | |
20167 | }; | |
20168 | ||
20169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
20170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20172 | { | |
20173 | arg2 = wxString_in_helper(obj1); | |
20174 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20175 | temp2 = true; |
d55e5bfc RD |
20176 | } |
20177 | { | |
20178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20179 | (arg1)->SetAppName((wxString const &)*arg2); | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
20184 | Py_INCREF(Py_None); resultobj = Py_None; | |
20185 | { | |
20186 | if (temp2) | |
20187 | delete arg2; | |
20188 | } | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | { | |
20192 | if (temp2) | |
20193 | delete arg2; | |
20194 | } | |
20195 | return NULL; | |
20196 | } | |
20197 | ||
20198 | ||
c32bde28 | 20199 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20200 | PyObject *resultobj; |
20201 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20202 | wxString result; | |
20203 | PyObject * obj0 = 0 ; | |
20204 | char *kwnames[] = { | |
20205 | (char *) "self", NULL | |
20206 | }; | |
20207 | ||
20208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
20209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20211 | { | |
20212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20213 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
20214 | ||
20215 | wxPyEndAllowThreads(__tstate); | |
20216 | if (PyErr_Occurred()) SWIG_fail; | |
20217 | } | |
20218 | { | |
20219 | #if wxUSE_UNICODE | |
20220 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20221 | #else | |
20222 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20223 | #endif | |
20224 | } | |
20225 | return resultobj; | |
20226 | fail: | |
20227 | return NULL; | |
20228 | } | |
20229 | ||
20230 | ||
c32bde28 | 20231 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20232 | PyObject *resultobj; |
20233 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20234 | wxString *arg2 = 0 ; | |
ae8162c8 | 20235 | bool temp2 = false ; |
d55e5bfc RD |
20236 | PyObject * obj0 = 0 ; |
20237 | PyObject * obj1 = 0 ; | |
20238 | char *kwnames[] = { | |
20239 | (char *) "self",(char *) "name", NULL | |
20240 | }; | |
20241 | ||
20242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
20243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20245 | { | |
20246 | arg2 = wxString_in_helper(obj1); | |
20247 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20248 | temp2 = true; |
d55e5bfc RD |
20249 | } |
20250 | { | |
20251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20252 | (arg1)->SetClassName((wxString const &)*arg2); | |
20253 | ||
20254 | wxPyEndAllowThreads(__tstate); | |
20255 | if (PyErr_Occurred()) SWIG_fail; | |
20256 | } | |
20257 | Py_INCREF(Py_None); resultobj = Py_None; | |
20258 | { | |
20259 | if (temp2) | |
20260 | delete arg2; | |
20261 | } | |
20262 | return resultobj; | |
20263 | fail: | |
20264 | { | |
20265 | if (temp2) | |
20266 | delete arg2; | |
20267 | } | |
20268 | return NULL; | |
20269 | } | |
20270 | ||
20271 | ||
c32bde28 | 20272 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20273 | PyObject *resultobj; |
20274 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20275 | wxString *result; | |
20276 | PyObject * obj0 = 0 ; | |
20277 | char *kwnames[] = { | |
20278 | (char *) "self", NULL | |
20279 | }; | |
20280 | ||
20281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
20282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20284 | { | |
20285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20286 | { | |
20287 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20288 | result = (wxString *) &_result_ref; | |
20289 | } | |
20290 | ||
20291 | wxPyEndAllowThreads(__tstate); | |
20292 | if (PyErr_Occurred()) SWIG_fail; | |
20293 | } | |
20294 | { | |
20295 | #if wxUSE_UNICODE | |
20296 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20297 | #else | |
20298 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20299 | #endif | |
20300 | } | |
20301 | return resultobj; | |
20302 | fail: | |
20303 | return NULL; | |
20304 | } | |
20305 | ||
20306 | ||
c32bde28 | 20307 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20308 | PyObject *resultobj; |
20309 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20310 | wxString *arg2 = 0 ; | |
ae8162c8 | 20311 | bool temp2 = false ; |
d55e5bfc RD |
20312 | PyObject * obj0 = 0 ; |
20313 | PyObject * obj1 = 0 ; | |
20314 | char *kwnames[] = { | |
20315 | (char *) "self",(char *) "name", NULL | |
20316 | }; | |
20317 | ||
20318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
20319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20321 | { | |
20322 | arg2 = wxString_in_helper(obj1); | |
20323 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20324 | temp2 = true; |
d55e5bfc RD |
20325 | } |
20326 | { | |
20327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20328 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20329 | ||
20330 | wxPyEndAllowThreads(__tstate); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
20333 | Py_INCREF(Py_None); resultobj = Py_None; | |
20334 | { | |
20335 | if (temp2) | |
20336 | delete arg2; | |
20337 | } | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | { | |
20341 | if (temp2) | |
20342 | delete arg2; | |
20343 | } | |
20344 | return NULL; | |
20345 | } | |
20346 | ||
20347 | ||
c32bde28 | 20348 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20349 | PyObject *resultobj; |
20350 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20351 | wxAppTraits *result; | |
20352 | PyObject * obj0 = 0 ; | |
20353 | char *kwnames[] = { | |
20354 | (char *) "self", NULL | |
20355 | }; | |
20356 | ||
20357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
20358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20360 | { | |
20361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20362 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20363 | ||
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
20367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
c32bde28 | 20374 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20375 | PyObject *resultobj; |
20376 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20377 | PyObject * obj0 = 0 ; | |
20378 | char *kwnames[] = { | |
20379 | (char *) "self", NULL | |
20380 | }; | |
20381 | ||
20382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
20383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20385 | { | |
20386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20387 | (arg1)->ProcessPendingEvents(); | |
20388 | ||
20389 | wxPyEndAllowThreads(__tstate); | |
20390 | if (PyErr_Occurred()) SWIG_fail; | |
20391 | } | |
20392 | Py_INCREF(Py_None); resultobj = Py_None; | |
20393 | return resultobj; | |
20394 | fail: | |
20395 | return NULL; | |
20396 | } | |
20397 | ||
20398 | ||
c32bde28 | 20399 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20400 | PyObject *resultobj; |
20401 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 20402 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20403 | bool result; |
20404 | PyObject * obj0 = 0 ; | |
20405 | PyObject * obj1 = 0 ; | |
20406 | char *kwnames[] = { | |
20407 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20408 | }; | |
20409 | ||
20410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
20411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20413 | if (obj1) { | |
c32bde28 | 20414 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20415 | if (PyErr_Occurred()) SWIG_fail; |
20416 | } | |
20417 | { | |
20418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20419 | result = (bool)(arg1)->Yield(arg2); | |
20420 | ||
20421 | wxPyEndAllowThreads(__tstate); | |
20422 | if (PyErr_Occurred()) SWIG_fail; | |
20423 | } | |
20424 | { | |
20425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20426 | } | |
20427 | return resultobj; | |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
c32bde28 | 20433 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20434 | PyObject *resultobj; |
20435 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20436 | PyObject * obj0 = 0 ; | |
20437 | char *kwnames[] = { | |
20438 | (char *) "self", NULL | |
20439 | }; | |
20440 | ||
20441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
20442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20444 | { | |
20445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20446 | (arg1)->WakeUpIdle(); | |
20447 | ||
20448 | wxPyEndAllowThreads(__tstate); | |
20449 | if (PyErr_Occurred()) SWIG_fail; | |
20450 | } | |
20451 | Py_INCREF(Py_None); resultobj = Py_None; | |
20452 | return resultobj; | |
20453 | fail: | |
20454 | return NULL; | |
20455 | } | |
20456 | ||
20457 | ||
84f85550 RD |
20458 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
20459 | PyObject *resultobj; | |
20460 | bool result; | |
20461 | char *kwnames[] = { | |
20462 | NULL | |
20463 | }; | |
20464 | ||
20465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
20466 | { | |
20467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20468 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
20469 | ||
20470 | wxPyEndAllowThreads(__tstate); | |
20471 | if (PyErr_Occurred()) SWIG_fail; | |
20472 | } | |
20473 | { | |
20474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20475 | } | |
20476 | return resultobj; | |
20477 | fail: | |
20478 | return NULL; | |
20479 | } | |
20480 | ||
20481 | ||
c32bde28 | 20482 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20483 | PyObject *resultobj; |
20484 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20485 | int result; | |
20486 | PyObject * obj0 = 0 ; | |
20487 | char *kwnames[] = { | |
20488 | (char *) "self", NULL | |
20489 | }; | |
20490 | ||
20491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20494 | { | |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | result = (int)(arg1)->MainLoop(); | |
20497 | ||
20498 | wxPyEndAllowThreads(__tstate); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | } | |
c32bde28 | 20501 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20502 | return resultobj; |
20503 | fail: | |
20504 | return NULL; | |
20505 | } | |
20506 | ||
20507 | ||
c32bde28 | 20508 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20509 | PyObject *resultobj; |
20510 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20511 | PyObject * obj0 = 0 ; | |
20512 | char *kwnames[] = { | |
20513 | (char *) "self", NULL | |
20514 | }; | |
20515 | ||
20516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20519 | { | |
20520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20521 | (arg1)->Exit(); | |
20522 | ||
20523 | wxPyEndAllowThreads(__tstate); | |
20524 | if (PyErr_Occurred()) SWIG_fail; | |
20525 | } | |
20526 | Py_INCREF(Py_None); resultobj = Py_None; | |
20527 | return resultobj; | |
20528 | fail: | |
20529 | return NULL; | |
20530 | } | |
20531 | ||
20532 | ||
c32bde28 | 20533 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20534 | PyObject *resultobj; |
20535 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20536 | PyObject * obj0 = 0 ; | |
20537 | char *kwnames[] = { | |
20538 | (char *) "self", NULL | |
20539 | }; | |
20540 | ||
20541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20544 | { | |
20545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20546 | (arg1)->ExitMainLoop(); | |
20547 | ||
20548 | wxPyEndAllowThreads(__tstate); | |
20549 | if (PyErr_Occurred()) SWIG_fail; | |
20550 | } | |
20551 | Py_INCREF(Py_None); resultobj = Py_None; | |
20552 | return resultobj; | |
20553 | fail: | |
20554 | return NULL; | |
20555 | } | |
20556 | ||
20557 | ||
c32bde28 | 20558 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20559 | PyObject *resultobj; |
20560 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20561 | bool result; | |
20562 | PyObject * obj0 = 0 ; | |
20563 | char *kwnames[] = { | |
20564 | (char *) "self", NULL | |
20565 | }; | |
20566 | ||
20567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20570 | { | |
20571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20572 | result = (bool)(arg1)->Pending(); | |
20573 | ||
20574 | wxPyEndAllowThreads(__tstate); | |
20575 | if (PyErr_Occurred()) SWIG_fail; | |
20576 | } | |
20577 | { | |
20578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20579 | } | |
20580 | return resultobj; | |
20581 | fail: | |
20582 | return NULL; | |
20583 | } | |
20584 | ||
20585 | ||
c32bde28 | 20586 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20587 | PyObject *resultobj; |
20588 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20589 | bool result; | |
20590 | PyObject * obj0 = 0 ; | |
20591 | char *kwnames[] = { | |
20592 | (char *) "self", NULL | |
20593 | }; | |
20594 | ||
20595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20598 | { | |
20599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20600 | result = (bool)(arg1)->Dispatch(); | |
20601 | ||
20602 | wxPyEndAllowThreads(__tstate); | |
20603 | if (PyErr_Occurred()) SWIG_fail; | |
20604 | } | |
20605 | { | |
20606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20607 | } | |
20608 | return resultobj; | |
20609 | fail: | |
20610 | return NULL; | |
20611 | } | |
20612 | ||
20613 | ||
c32bde28 | 20614 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20615 | PyObject *resultobj; |
20616 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20617 | bool result; | |
20618 | PyObject * obj0 = 0 ; | |
20619 | char *kwnames[] = { | |
20620 | (char *) "self", NULL | |
20621 | }; | |
20622 | ||
20623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20626 | { | |
20627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20628 | result = (bool)(arg1)->ProcessIdle(); | |
20629 | ||
20630 | wxPyEndAllowThreads(__tstate); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | } | |
20633 | { | |
20634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20635 | } | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
c32bde28 | 20642 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20643 | PyObject *resultobj; |
20644 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20646 | wxIdleEvent *arg3 = 0 ; | |
20647 | bool result; | |
20648 | PyObject * obj0 = 0 ; | |
20649 | PyObject * obj1 = 0 ; | |
20650 | PyObject * obj2 = 0 ; | |
20651 | char *kwnames[] = { | |
20652 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20653 | }; | |
20654 | ||
20655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20660 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20662 | SWIG_fail; | |
20663 | if (arg3 == NULL) { | |
20664 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20665 | SWIG_fail; | |
20666 | } | |
20667 | { | |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20669 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20670 | ||
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | { | |
20675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20676 | } | |
20677 | return resultobj; | |
20678 | fail: | |
20679 | return NULL; | |
20680 | } | |
20681 | ||
20682 | ||
c32bde28 | 20683 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20684 | PyObject *resultobj; |
20685 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20686 | bool result; | |
20687 | PyObject * obj0 = 0 ; | |
20688 | char *kwnames[] = { | |
20689 | (char *) "self", NULL | |
20690 | }; | |
20691 | ||
20692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20695 | { | |
20696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20697 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20698 | ||
20699 | wxPyEndAllowThreads(__tstate); | |
20700 | if (PyErr_Occurred()) SWIG_fail; | |
20701 | } | |
20702 | { | |
20703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20704 | } | |
20705 | return resultobj; | |
20706 | fail: | |
20707 | return NULL; | |
20708 | } | |
20709 | ||
20710 | ||
c32bde28 | 20711 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20712 | PyObject *resultobj; |
20713 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20715 | PyObject * obj0 = 0 ; | |
20716 | PyObject * obj1 = 0 ; | |
20717 | char *kwnames[] = { | |
20718 | (char *) "self",(char *) "win", NULL | |
20719 | }; | |
20720 | ||
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20726 | { | |
20727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20728 | (arg1)->SetTopWindow(arg2); | |
20729 | ||
20730 | wxPyEndAllowThreads(__tstate); | |
20731 | if (PyErr_Occurred()) SWIG_fail; | |
20732 | } | |
20733 | Py_INCREF(Py_None); resultobj = Py_None; | |
20734 | return resultobj; | |
20735 | fail: | |
20736 | return NULL; | |
20737 | } | |
20738 | ||
20739 | ||
c32bde28 | 20740 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20741 | PyObject *resultobj; |
20742 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20743 | wxWindow *result; | |
20744 | PyObject * obj0 = 0 ; | |
20745 | char *kwnames[] = { | |
20746 | (char *) "self", NULL | |
20747 | }; | |
20748 | ||
20749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20752 | { | |
20753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20754 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20755 | ||
20756 | wxPyEndAllowThreads(__tstate); | |
20757 | if (PyErr_Occurred()) SWIG_fail; | |
20758 | } | |
20759 | { | |
412d302d | 20760 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20761 | } |
20762 | return resultobj; | |
20763 | fail: | |
20764 | return NULL; | |
20765 | } | |
20766 | ||
20767 | ||
c32bde28 | 20768 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20769 | PyObject *resultobj; |
20770 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20771 | bool arg2 ; | |
20772 | PyObject * obj0 = 0 ; | |
20773 | PyObject * obj1 = 0 ; | |
20774 | char *kwnames[] = { | |
20775 | (char *) "self",(char *) "flag", NULL | |
20776 | }; | |
20777 | ||
20778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20781 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20782 | if (PyErr_Occurred()) SWIG_fail; |
20783 | { | |
20784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20785 | (arg1)->SetExitOnFrameDelete(arg2); | |
20786 | ||
20787 | wxPyEndAllowThreads(__tstate); | |
20788 | if (PyErr_Occurred()) SWIG_fail; | |
20789 | } | |
20790 | Py_INCREF(Py_None); resultobj = Py_None; | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
20794 | } | |
20795 | ||
20796 | ||
c32bde28 | 20797 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20798 | PyObject *resultobj; |
20799 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20800 | bool result; | |
20801 | PyObject * obj0 = 0 ; | |
20802 | char *kwnames[] = { | |
20803 | (char *) "self", NULL | |
20804 | }; | |
20805 | ||
20806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20809 | { | |
20810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20811 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20812 | ||
20813 | wxPyEndAllowThreads(__tstate); | |
20814 | if (PyErr_Occurred()) SWIG_fail; | |
20815 | } | |
20816 | { | |
20817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20818 | } | |
20819 | return resultobj; | |
20820 | fail: | |
20821 | return NULL; | |
20822 | } | |
20823 | ||
20824 | ||
c32bde28 | 20825 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20826 | PyObject *resultobj; |
20827 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20828 | bool arg2 ; | |
20829 | PyObject * obj0 = 0 ; | |
20830 | PyObject * obj1 = 0 ; | |
20831 | char *kwnames[] = { | |
20832 | (char *) "self",(char *) "flag", NULL | |
20833 | }; | |
20834 | ||
20835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20838 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20839 | if (PyErr_Occurred()) SWIG_fail; |
20840 | { | |
20841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20842 | (arg1)->SetUseBestVisual(arg2); | |
20843 | ||
20844 | wxPyEndAllowThreads(__tstate); | |
20845 | if (PyErr_Occurred()) SWIG_fail; | |
20846 | } | |
20847 | Py_INCREF(Py_None); resultobj = Py_None; | |
20848 | return resultobj; | |
20849 | fail: | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
c32bde28 | 20854 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20855 | PyObject *resultobj; |
20856 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20857 | bool result; | |
20858 | PyObject * obj0 = 0 ; | |
20859 | char *kwnames[] = { | |
20860 | (char *) "self", NULL | |
20861 | }; | |
20862 | ||
20863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20866 | { | |
20867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20868 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20869 | ||
20870 | wxPyEndAllowThreads(__tstate); | |
20871 | if (PyErr_Occurred()) SWIG_fail; | |
20872 | } | |
20873 | { | |
20874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20875 | } | |
20876 | return resultobj; | |
20877 | fail: | |
20878 | return NULL; | |
20879 | } | |
20880 | ||
20881 | ||
c32bde28 | 20882 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20883 | PyObject *resultobj; |
20884 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20885 | int arg2 ; | |
20886 | PyObject * obj0 = 0 ; | |
20887 | PyObject * obj1 = 0 ; | |
20888 | char *kwnames[] = { | |
20889 | (char *) "self",(char *) "mode", NULL | |
20890 | }; | |
20891 | ||
20892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20895 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20896 | if (PyErr_Occurred()) SWIG_fail; |
20897 | { | |
20898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20899 | (arg1)->SetPrintMode(arg2); | |
20900 | ||
20901 | wxPyEndAllowThreads(__tstate); | |
20902 | if (PyErr_Occurred()) SWIG_fail; | |
20903 | } | |
20904 | Py_INCREF(Py_None); resultobj = Py_None; | |
20905 | return resultobj; | |
20906 | fail: | |
20907 | return NULL; | |
20908 | } | |
20909 | ||
20910 | ||
c32bde28 | 20911 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20912 | PyObject *resultobj; |
20913 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20914 | int result; | |
20915 | PyObject * obj0 = 0 ; | |
20916 | char *kwnames[] = { | |
20917 | (char *) "self", NULL | |
20918 | }; | |
20919 | ||
20920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20923 | { | |
20924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20925 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20926 | ||
20927 | wxPyEndAllowThreads(__tstate); | |
20928 | if (PyErr_Occurred()) SWIG_fail; | |
20929 | } | |
c32bde28 | 20930 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20931 | return resultobj; |
20932 | fail: | |
20933 | return NULL; | |
20934 | } | |
20935 | ||
20936 | ||
c32bde28 | 20937 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20938 | PyObject *resultobj; |
20939 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20940 | int arg2 ; | |
20941 | PyObject * obj0 = 0 ; | |
20942 | PyObject * obj1 = 0 ; | |
20943 | char *kwnames[] = { | |
20944 | (char *) "self",(char *) "mode", NULL | |
20945 | }; | |
20946 | ||
20947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20950 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20951 | if (PyErr_Occurred()) SWIG_fail; |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | (arg1)->SetAssertMode(arg2); | |
20955 | ||
20956 | wxPyEndAllowThreads(__tstate); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | } | |
20959 | Py_INCREF(Py_None); resultobj = Py_None; | |
20960 | return resultobj; | |
20961 | fail: | |
20962 | return NULL; | |
20963 | } | |
20964 | ||
20965 | ||
c32bde28 | 20966 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20967 | PyObject *resultobj; |
20968 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20969 | int result; | |
20970 | PyObject * obj0 = 0 ; | |
20971 | char *kwnames[] = { | |
20972 | (char *) "self", NULL | |
20973 | }; | |
20974 | ||
20975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20978 | { | |
20979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20980 | result = (int)(arg1)->GetAssertMode(); | |
20981 | ||
20982 | wxPyEndAllowThreads(__tstate); | |
20983 | if (PyErr_Occurred()) SWIG_fail; | |
20984 | } | |
c32bde28 | 20985 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20986 | return resultobj; |
20987 | fail: | |
20988 | return NULL; | |
20989 | } | |
20990 | ||
20991 | ||
c32bde28 | 20992 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20993 | PyObject *resultobj; |
20994 | bool result; | |
20995 | char *kwnames[] = { | |
20996 | NULL | |
20997 | }; | |
20998 | ||
20999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
21000 | { | |
21001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21002 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
21003 | ||
21004 | wxPyEndAllowThreads(__tstate); | |
21005 | if (PyErr_Occurred()) SWIG_fail; | |
21006 | } | |
21007 | { | |
21008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21009 | } | |
21010 | return resultobj; | |
21011 | fail: | |
21012 | return NULL; | |
21013 | } | |
21014 | ||
21015 | ||
c32bde28 | 21016 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21017 | PyObject *resultobj; |
21018 | long result; | |
21019 | char *kwnames[] = { | |
21020 | NULL | |
21021 | }; | |
21022 | ||
21023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
21024 | { | |
21025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21026 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
21027 | ||
21028 | wxPyEndAllowThreads(__tstate); | |
21029 | if (PyErr_Occurred()) SWIG_fail; | |
21030 | } | |
c32bde28 | 21031 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21032 | return resultobj; |
21033 | fail: | |
21034 | return NULL; | |
21035 | } | |
21036 | ||
21037 | ||
c32bde28 | 21038 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21039 | PyObject *resultobj; |
21040 | long result; | |
21041 | char *kwnames[] = { | |
21042 | NULL | |
21043 | }; | |
21044 | ||
21045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
21046 | { | |
21047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21048 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
21049 | ||
21050 | wxPyEndAllowThreads(__tstate); | |
21051 | if (PyErr_Occurred()) SWIG_fail; | |
21052 | } | |
c32bde28 | 21053 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21054 | return resultobj; |
21055 | fail: | |
21056 | return NULL; | |
21057 | } | |
21058 | ||
21059 | ||
c32bde28 | 21060 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21061 | PyObject *resultobj; |
21062 | long result; | |
21063 | char *kwnames[] = { | |
21064 | NULL | |
21065 | }; | |
21066 | ||
21067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
21068 | { | |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
21071 | ||
21072 | wxPyEndAllowThreads(__tstate); | |
21073 | if (PyErr_Occurred()) SWIG_fail; | |
21074 | } | |
c32bde28 | 21075 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21076 | return resultobj; |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
c32bde28 | 21082 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21083 | PyObject *resultobj; |
21084 | wxString result; | |
21085 | char *kwnames[] = { | |
21086 | NULL | |
21087 | }; | |
21088 | ||
21089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
21090 | { | |
21091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21092 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
21093 | ||
21094 | wxPyEndAllowThreads(__tstate); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | } | |
21097 | { | |
21098 | #if wxUSE_UNICODE | |
21099 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21100 | #else | |
21101 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21102 | #endif | |
21103 | } | |
21104 | return resultobj; | |
21105 | fail: | |
21106 | return NULL; | |
21107 | } | |
21108 | ||
21109 | ||
c32bde28 | 21110 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21111 | PyObject *resultobj; |
21112 | bool arg1 ; | |
21113 | PyObject * obj0 = 0 ; | |
21114 | char *kwnames[] = { | |
21115 | (char *) "val", NULL | |
21116 | }; | |
21117 | ||
21118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c32bde28 | 21119 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
21120 | if (PyErr_Occurred()) SWIG_fail; |
21121 | { | |
21122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21123 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
21124 | ||
21125 | wxPyEndAllowThreads(__tstate); | |
21126 | if (PyErr_Occurred()) SWIG_fail; | |
21127 | } | |
21128 | Py_INCREF(Py_None); resultobj = Py_None; | |
21129 | return resultobj; | |
21130 | fail: | |
21131 | return NULL; | |
21132 | } | |
21133 | ||
21134 | ||
c32bde28 | 21135 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21136 | PyObject *resultobj; |
21137 | long arg1 ; | |
21138 | PyObject * obj0 = 0 ; | |
21139 | char *kwnames[] = { | |
21140 | (char *) "val", NULL | |
21141 | }; | |
21142 | ||
21143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21144 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21145 | if (PyErr_Occurred()) SWIG_fail; |
21146 | { | |
21147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21148 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
21149 | ||
21150 | wxPyEndAllowThreads(__tstate); | |
21151 | if (PyErr_Occurred()) SWIG_fail; | |
21152 | } | |
21153 | Py_INCREF(Py_None); resultobj = Py_None; | |
21154 | return resultobj; | |
21155 | fail: | |
21156 | return NULL; | |
21157 | } | |
21158 | ||
21159 | ||
c32bde28 | 21160 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21161 | PyObject *resultobj; |
21162 | long arg1 ; | |
21163 | PyObject * obj0 = 0 ; | |
21164 | char *kwnames[] = { | |
21165 | (char *) "val", NULL | |
21166 | }; | |
21167 | ||
21168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21169 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21170 | if (PyErr_Occurred()) SWIG_fail; |
21171 | { | |
21172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21173 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
21174 | ||
21175 | wxPyEndAllowThreads(__tstate); | |
21176 | if (PyErr_Occurred()) SWIG_fail; | |
21177 | } | |
21178 | Py_INCREF(Py_None); resultobj = Py_None; | |
21179 | return resultobj; | |
21180 | fail: | |
21181 | return NULL; | |
21182 | } | |
21183 | ||
21184 | ||
c32bde28 | 21185 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21186 | PyObject *resultobj; |
21187 | long arg1 ; | |
21188 | PyObject * obj0 = 0 ; | |
21189 | char *kwnames[] = { | |
21190 | (char *) "val", NULL | |
21191 | }; | |
21192 | ||
21193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21194 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21195 | if (PyErr_Occurred()) SWIG_fail; |
21196 | { | |
21197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21198 | wxPyApp::SetMacExitMenuItemId(arg1); | |
21199 | ||
21200 | wxPyEndAllowThreads(__tstate); | |
21201 | if (PyErr_Occurred()) SWIG_fail; | |
21202 | } | |
21203 | Py_INCREF(Py_None); resultobj = Py_None; | |
21204 | return resultobj; | |
21205 | fail: | |
21206 | return NULL; | |
21207 | } | |
21208 | ||
21209 | ||
c32bde28 | 21210 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21211 | PyObject *resultobj; |
21212 | wxString *arg1 = 0 ; | |
ae8162c8 | 21213 | bool temp1 = false ; |
d55e5bfc RD |
21214 | PyObject * obj0 = 0 ; |
21215 | char *kwnames[] = { | |
21216 | (char *) "val", NULL | |
21217 | }; | |
21218 | ||
21219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
21220 | { | |
21221 | arg1 = wxString_in_helper(obj0); | |
21222 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21223 | temp1 = true; |
d55e5bfc RD |
21224 | } |
21225 | { | |
21226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21227 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
21228 | ||
21229 | wxPyEndAllowThreads(__tstate); | |
21230 | if (PyErr_Occurred()) SWIG_fail; | |
21231 | } | |
21232 | Py_INCREF(Py_None); resultobj = Py_None; | |
21233 | { | |
21234 | if (temp1) | |
21235 | delete arg1; | |
21236 | } | |
21237 | return resultobj; | |
21238 | fail: | |
21239 | { | |
21240 | if (temp1) | |
21241 | delete arg1; | |
21242 | } | |
21243 | return NULL; | |
21244 | } | |
21245 | ||
21246 | ||
c32bde28 | 21247 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21248 | PyObject *resultobj; |
21249 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21250 | PyObject * obj0 = 0 ; | |
21251 | char *kwnames[] = { | |
21252 | (char *) "self", NULL | |
21253 | }; | |
21254 | ||
21255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
21256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
21257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21258 | { | |
21259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21260 | (arg1)->_BootstrapApp(); | |
21261 | ||
21262 | wxPyEndAllowThreads(__tstate); | |
21263 | if (PyErr_Occurred()) SWIG_fail; | |
21264 | } | |
21265 | Py_INCREF(Py_None); resultobj = Py_None; | |
21266 | return resultobj; | |
21267 | fail: | |
21268 | return NULL; | |
21269 | } | |
21270 | ||
21271 | ||
c32bde28 | 21272 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21273 | PyObject *resultobj; |
21274 | int result; | |
21275 | char *kwnames[] = { | |
21276 | NULL | |
21277 | }; | |
21278 | ||
21279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21280 | { | |
21281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21282 | result = (int)wxPyApp::GetComCtl32Version(); | |
21283 | ||
21284 | wxPyEndAllowThreads(__tstate); | |
21285 | if (PyErr_Occurred()) SWIG_fail; | |
21286 | } | |
c32bde28 | 21287 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21288 | return resultobj; |
21289 | fail: | |
21290 | return NULL; | |
21291 | } | |
21292 | ||
21293 | ||
c32bde28 | 21294 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21295 | PyObject *obj; |
21296 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21297 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21298 | Py_INCREF(obj); | |
21299 | return Py_BuildValue((char *)""); | |
21300 | } | |
c32bde28 | 21301 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21302 | PyObject *resultobj; |
21303 | char *kwnames[] = { | |
21304 | NULL | |
21305 | }; | |
21306 | ||
21307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21308 | { | |
21309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21310 | wxExit(); | |
21311 | ||
21312 | wxPyEndAllowThreads(__tstate); | |
21313 | if (PyErr_Occurred()) SWIG_fail; | |
21314 | } | |
21315 | Py_INCREF(Py_None); resultobj = Py_None; | |
21316 | return resultobj; | |
21317 | fail: | |
21318 | return NULL; | |
21319 | } | |
21320 | ||
21321 | ||
c32bde28 | 21322 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21323 | PyObject *resultobj; |
21324 | bool result; | |
21325 | char *kwnames[] = { | |
21326 | NULL | |
21327 | }; | |
21328 | ||
21329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21330 | { | |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | result = (bool)wxYield(); | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | { | |
21338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21339 | } | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
c32bde28 | 21346 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21347 | PyObject *resultobj; |
21348 | bool result; | |
21349 | char *kwnames[] = { | |
21350 | NULL | |
21351 | }; | |
21352 | ||
21353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21354 | { | |
21355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21356 | result = (bool)wxYieldIfNeeded(); | |
21357 | ||
21358 | wxPyEndAllowThreads(__tstate); | |
21359 | if (PyErr_Occurred()) SWIG_fail; | |
21360 | } | |
21361 | { | |
21362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21363 | } | |
21364 | return resultobj; | |
21365 | fail: | |
21366 | return NULL; | |
21367 | } | |
21368 | ||
21369 | ||
c32bde28 | 21370 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21371 | PyObject *resultobj; |
21372 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 21373 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21374 | bool result; |
21375 | PyObject * obj0 = 0 ; | |
21376 | PyObject * obj1 = 0 ; | |
21377 | char *kwnames[] = { | |
21378 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21379 | }; | |
21380 | ||
21381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21382 | if (obj0) { | |
21383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21385 | } | |
21386 | if (obj1) { | |
c32bde28 | 21387 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21388 | if (PyErr_Occurred()) SWIG_fail; |
21389 | } | |
21390 | { | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | result = (bool)wxSafeYield(arg1,arg2); | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | { | |
21398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21399 | } | |
21400 | return resultobj; | |
21401 | fail: | |
21402 | return NULL; | |
21403 | } | |
21404 | ||
21405 | ||
c32bde28 | 21406 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21407 | PyObject *resultobj; |
21408 | char *kwnames[] = { | |
21409 | NULL | |
21410 | }; | |
21411 | ||
21412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21413 | { | |
21414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21415 | wxWakeUpIdle(); | |
21416 | ||
21417 | wxPyEndAllowThreads(__tstate); | |
21418 | if (PyErr_Occurred()) SWIG_fail; | |
21419 | } | |
21420 | Py_INCREF(Py_None); resultobj = Py_None; | |
21421 | return resultobj; | |
21422 | fail: | |
21423 | return NULL; | |
21424 | } | |
21425 | ||
21426 | ||
c32bde28 | 21427 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21428 | PyObject *resultobj; |
21429 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21430 | wxEvent *arg2 = 0 ; | |
21431 | PyObject * obj0 = 0 ; | |
21432 | PyObject * obj1 = 0 ; | |
21433 | char *kwnames[] = { | |
21434 | (char *) "dest",(char *) "event", NULL | |
21435 | }; | |
21436 | ||
21437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21442 | SWIG_fail; | |
21443 | if (arg2 == NULL) { | |
21444 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21445 | SWIG_fail; | |
21446 | } | |
21447 | { | |
21448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21449 | wxPostEvent(arg1,*arg2); | |
21450 | ||
21451 | wxPyEndAllowThreads(__tstate); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
21454 | Py_INCREF(Py_None); resultobj = Py_None; | |
21455 | return resultobj; | |
21456 | fail: | |
21457 | return NULL; | |
21458 | } | |
21459 | ||
21460 | ||
c32bde28 | 21461 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21462 | PyObject *resultobj; |
21463 | char *kwnames[] = { | |
21464 | NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21468 | { | |
21469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21470 | wxApp_CleanUp(); | |
21471 | ||
21472 | wxPyEndAllowThreads(__tstate); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
21474 | } | |
21475 | Py_INCREF(Py_None); resultobj = Py_None; | |
21476 | return resultobj; | |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
c32bde28 | 21482 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21483 | PyObject *resultobj; |
21484 | wxPyApp *result; | |
21485 | char *kwnames[] = { | |
21486 | NULL | |
21487 | }; | |
21488 | ||
21489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21490 | { | |
21491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 21492 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21493 | |
21494 | wxPyEndAllowThreads(__tstate); | |
21495 | if (PyErr_Occurred()) SWIG_fail; | |
21496 | } | |
21497 | { | |
412d302d | 21498 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21499 | } |
21500 | return resultobj; | |
21501 | fail: | |
21502 | return NULL; | |
21503 | } | |
21504 | ||
21505 | ||
5cbf236d RD |
21506 | static PyObject *_wrap_SetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
21507 | PyObject *resultobj; | |
21508 | char *arg1 ; | |
21509 | PyObject * obj0 = 0 ; | |
21510 | char *kwnames[] = { | |
21511 | (char *) "encoding", NULL | |
21512 | }; | |
21513 | ||
21514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) goto fail; | |
21515 | if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) SWIG_fail; | |
21516 | { | |
21517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21518 | wxSetDefaultPyEncoding((char const *)arg1); | |
21519 | ||
21520 | wxPyEndAllowThreads(__tstate); | |
21521 | if (PyErr_Occurred()) SWIG_fail; | |
21522 | } | |
21523 | Py_INCREF(Py_None); resultobj = Py_None; | |
21524 | return resultobj; | |
21525 | fail: | |
21526 | return NULL; | |
21527 | } | |
21528 | ||
21529 | ||
21530 | static PyObject *_wrap_GetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
21531 | PyObject *resultobj; | |
21532 | char *result; | |
21533 | char *kwnames[] = { | |
21534 | NULL | |
21535 | }; | |
21536 | ||
21537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDefaultPyEncoding",kwnames)) goto fail; | |
21538 | { | |
21539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21540 | result = (char *)wxGetDefaultPyEncoding(); | |
21541 | ||
21542 | wxPyEndAllowThreads(__tstate); | |
21543 | if (PyErr_Occurred()) SWIG_fail; | |
21544 | } | |
21545 | resultobj = SWIG_FromCharPtr(result); | |
21546 | return resultobj; | |
21547 | fail: | |
21548 | return NULL; | |
21549 | } | |
21550 | ||
21551 | ||
ae8162c8 RD |
21552 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21553 | PyObject *resultobj; | |
21554 | wxEventLoop *result; | |
21555 | char *kwnames[] = { | |
21556 | NULL | |
21557 | }; | |
21558 | ||
21559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21560 | { | |
21561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21562 | result = (wxEventLoop *)new wxEventLoop(); | |
21563 | ||
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21568 | return resultobj; | |
21569 | fail: | |
21570 | return NULL; | |
21571 | } | |
21572 | ||
21573 | ||
21574 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21575 | PyObject *resultobj; | |
21576 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21577 | PyObject * obj0 = 0 ; | |
21578 | char *kwnames[] = { | |
21579 | (char *) "self", NULL | |
21580 | }; | |
21581 | ||
21582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21585 | { | |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | delete arg1; | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
21592 | Py_INCREF(Py_None); resultobj = Py_None; | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21602 | int result; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | char *kwnames[] = { | |
21605 | (char *) "self", NULL | |
21606 | }; | |
21607 | ||
21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21611 | { | |
21612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21613 | result = (int)(arg1)->Run(); | |
21614 | ||
21615 | wxPyEndAllowThreads(__tstate); | |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
21617 | } | |
21618 | resultobj = SWIG_From_int((int)result); | |
21619 | return resultobj; | |
21620 | fail: | |
21621 | return NULL; | |
21622 | } | |
21623 | ||
21624 | ||
21625 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21626 | PyObject *resultobj; | |
21627 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21628 | int arg2 = (int) 0 ; | |
21629 | PyObject * obj0 = 0 ; | |
21630 | PyObject * obj1 = 0 ; | |
21631 | char *kwnames[] = { | |
21632 | (char *) "self",(char *) "rc", NULL | |
21633 | }; | |
21634 | ||
21635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21638 | if (obj1) { | |
21639 | arg2 = (int)SWIG_As_int(obj1); | |
21640 | if (PyErr_Occurred()) SWIG_fail; | |
21641 | } | |
21642 | { | |
21643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21644 | (arg1)->Exit(arg2); | |
21645 | ||
21646 | wxPyEndAllowThreads(__tstate); | |
21647 | if (PyErr_Occurred()) SWIG_fail; | |
21648 | } | |
21649 | Py_INCREF(Py_None); resultobj = Py_None; | |
21650 | return resultobj; | |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
21656 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21657 | PyObject *resultobj; | |
21658 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21659 | bool result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21668 | { | |
21669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21670 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21671 | ||
21672 | wxPyEndAllowThreads(__tstate); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
21675 | { | |
21676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21677 | } | |
21678 | return resultobj; | |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
21684 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21685 | PyObject *resultobj; | |
21686 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21687 | bool result; | |
21688 | PyObject * obj0 = 0 ; | |
21689 | char *kwnames[] = { | |
21690 | (char *) "self", NULL | |
21691 | }; | |
21692 | ||
21693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21696 | { | |
21697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21698 | result = (bool)(arg1)->Dispatch(); | |
21699 | ||
21700 | wxPyEndAllowThreads(__tstate); | |
21701 | if (PyErr_Occurred()) SWIG_fail; | |
21702 | } | |
21703 | { | |
21704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21705 | } | |
21706 | return resultobj; | |
21707 | fail: | |
21708 | return NULL; | |
21709 | } | |
21710 | ||
21711 | ||
21712 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21713 | PyObject *resultobj; | |
21714 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21715 | bool result; | |
21716 | PyObject * obj0 = 0 ; | |
21717 | char *kwnames[] = { | |
21718 | (char *) "self", NULL | |
21719 | }; | |
21720 | ||
21721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21724 | { | |
21725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21726 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21727 | ||
21728 | wxPyEndAllowThreads(__tstate); | |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
21730 | } | |
21731 | { | |
21732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21733 | } | |
21734 | return resultobj; | |
21735 | fail: | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
21740 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21741 | PyObject *resultobj; | |
21742 | wxEventLoop *result; | |
21743 | char *kwnames[] = { | |
21744 | NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21748 | { | |
21749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21750 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21751 | ||
21752 | wxPyEndAllowThreads(__tstate); | |
21753 | if (PyErr_Occurred()) SWIG_fail; | |
21754 | } | |
21755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21756 | return resultobj; | |
21757 | fail: | |
21758 | return NULL; | |
21759 | } | |
21760 | ||
21761 | ||
21762 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21763 | PyObject *resultobj; | |
21764 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21765 | PyObject * obj0 = 0 ; | |
21766 | char *kwnames[] = { | |
21767 | (char *) "loop", NULL | |
21768 | }; | |
21769 | ||
21770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21773 | { | |
21774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21775 | wxEventLoop::SetActive(arg1); | |
21776 | ||
21777 | wxPyEndAllowThreads(__tstate); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
21780 | Py_INCREF(Py_None); resultobj = Py_None; | |
21781 | return resultobj; | |
21782 | fail: | |
21783 | return NULL; | |
21784 | } | |
21785 | ||
21786 | ||
21787 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21788 | PyObject *obj; | |
21789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21790 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21791 | Py_INCREF(obj); | |
21792 | return Py_BuildValue((char *)""); | |
21793 | } | |
c32bde28 | 21794 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21795 | PyObject *resultobj; |
21796 | int arg1 = (int) 0 ; | |
21797 | int arg2 = (int) 0 ; | |
21798 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21799 | wxAcceleratorEntry *result; |
21800 | PyObject * obj0 = 0 ; | |
21801 | PyObject * obj1 = 0 ; | |
21802 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21803 | char *kwnames[] = { |
c24da6d6 | 21804 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21805 | }; |
21806 | ||
c24da6d6 | 21807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21808 | if (obj0) { |
c32bde28 | 21809 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21810 | if (PyErr_Occurred()) SWIG_fail; |
21811 | } | |
21812 | if (obj1) { | |
c32bde28 | 21813 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21814 | if (PyErr_Occurred()) SWIG_fail; |
21815 | } | |
21816 | if (obj2) { | |
c32bde28 | 21817 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21818 | if (PyErr_Occurred()) SWIG_fail; |
21819 | } | |
d55e5bfc RD |
21820 | { |
21821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21822 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21823 | |
21824 | wxPyEndAllowThreads(__tstate); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
21826 | } | |
21827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21828 | return resultobj; | |
21829 | fail: | |
21830 | return NULL; | |
21831 | } | |
21832 | ||
21833 | ||
c32bde28 | 21834 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21835 | PyObject *resultobj; |
21836 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21837 | PyObject * obj0 = 0 ; | |
21838 | char *kwnames[] = { | |
21839 | (char *) "self", NULL | |
21840 | }; | |
21841 | ||
21842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21845 | { | |
21846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21847 | delete arg1; | |
21848 | ||
21849 | wxPyEndAllowThreads(__tstate); | |
21850 | if (PyErr_Occurred()) SWIG_fail; | |
21851 | } | |
21852 | Py_INCREF(Py_None); resultobj = Py_None; | |
21853 | return resultobj; | |
21854 | fail: | |
21855 | return NULL; | |
21856 | } | |
21857 | ||
21858 | ||
c32bde28 | 21859 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21860 | PyObject *resultobj; |
21861 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21862 | int arg2 ; | |
21863 | int arg3 ; | |
21864 | int arg4 ; | |
d55e5bfc RD |
21865 | PyObject * obj0 = 0 ; |
21866 | PyObject * obj1 = 0 ; | |
21867 | PyObject * obj2 = 0 ; | |
21868 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21869 | char *kwnames[] = { |
c24da6d6 | 21870 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21871 | }; |
21872 | ||
c24da6d6 | 21873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21876 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21877 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21878 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21879 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21880 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21881 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21882 | { |
21883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21884 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21885 | |
21886 | wxPyEndAllowThreads(__tstate); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | Py_INCREF(Py_None); resultobj = Py_None; | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | return NULL; | |
21893 | } | |
21894 | ||
21895 | ||
c32bde28 | 21896 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21897 | PyObject *resultobj; |
21898 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21899 | int result; | |
21900 | PyObject * obj0 = 0 ; | |
21901 | char *kwnames[] = { | |
21902 | (char *) "self", NULL | |
21903 | }; | |
21904 | ||
21905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21908 | { | |
21909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21910 | result = (int)(arg1)->GetFlags(); | |
21911 | ||
21912 | wxPyEndAllowThreads(__tstate); | |
21913 | if (PyErr_Occurred()) SWIG_fail; | |
21914 | } | |
c32bde28 | 21915 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21916 | return resultobj; |
21917 | fail: | |
21918 | return NULL; | |
21919 | } | |
21920 | ||
21921 | ||
c32bde28 | 21922 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21923 | PyObject *resultobj; |
21924 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21925 | int result; | |
21926 | PyObject * obj0 = 0 ; | |
21927 | char *kwnames[] = { | |
21928 | (char *) "self", NULL | |
21929 | }; | |
21930 | ||
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21934 | { | |
21935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21936 | result = (int)(arg1)->GetKeyCode(); | |
21937 | ||
21938 | wxPyEndAllowThreads(__tstate); | |
21939 | if (PyErr_Occurred()) SWIG_fail; | |
21940 | } | |
c32bde28 | 21941 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21942 | return resultobj; |
21943 | fail: | |
21944 | return NULL; | |
21945 | } | |
21946 | ||
21947 | ||
c32bde28 | 21948 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21949 | PyObject *resultobj; |
21950 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21951 | int result; | |
21952 | PyObject * obj0 = 0 ; | |
21953 | char *kwnames[] = { | |
21954 | (char *) "self", NULL | |
21955 | }; | |
21956 | ||
21957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21960 | { | |
21961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21962 | result = (int)(arg1)->GetCommand(); | |
21963 | ||
21964 | wxPyEndAllowThreads(__tstate); | |
21965 | if (PyErr_Occurred()) SWIG_fail; | |
21966 | } | |
c32bde28 | 21967 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21968 | return resultobj; |
21969 | fail: | |
21970 | return NULL; | |
21971 | } | |
21972 | ||
21973 | ||
c32bde28 | 21974 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21975 | PyObject *obj; |
21976 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21977 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21978 | Py_INCREF(obj); | |
21979 | return Py_BuildValue((char *)""); | |
21980 | } | |
c32bde28 | 21981 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21982 | PyObject *resultobj; |
21983 | int arg1 ; | |
21984 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21985 | wxAcceleratorTable *result; | |
21986 | PyObject * obj0 = 0 ; | |
21987 | char *kwnames[] = { | |
21988 | (char *) "n", NULL | |
21989 | }; | |
21990 | ||
21991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21992 | { | |
21993 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21994 | if (arg2) arg1 = PyList_Size(obj0); | |
21995 | else arg1 = 0; | |
21996 | } | |
21997 | { | |
21998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21999 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
22000 | ||
22001 | wxPyEndAllowThreads(__tstate); | |
22002 | if (PyErr_Occurred()) SWIG_fail; | |
22003 | } | |
22004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
22005 | { | |
22006 | delete [] arg2; | |
22007 | } | |
22008 | return resultobj; | |
22009 | fail: | |
22010 | { | |
22011 | delete [] arg2; | |
22012 | } | |
22013 | return NULL; | |
22014 | } | |
22015 | ||
22016 | ||
c32bde28 | 22017 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22018 | PyObject *resultobj; |
22019 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
22020 | PyObject * obj0 = 0 ; | |
22021 | char *kwnames[] = { | |
22022 | (char *) "self", NULL | |
22023 | }; | |
22024 | ||
22025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
22026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
22027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22028 | { | |
22029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22030 | delete arg1; | |
22031 | ||
22032 | wxPyEndAllowThreads(__tstate); | |
22033 | if (PyErr_Occurred()) SWIG_fail; | |
22034 | } | |
22035 | Py_INCREF(Py_None); resultobj = Py_None; | |
22036 | return resultobj; | |
22037 | fail: | |
22038 | return NULL; | |
22039 | } | |
22040 | ||
22041 | ||
c32bde28 | 22042 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22043 | PyObject *resultobj; |
22044 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
22045 | bool result; | |
22046 | PyObject * obj0 = 0 ; | |
22047 | char *kwnames[] = { | |
22048 | (char *) "self", NULL | |
22049 | }; | |
22050 | ||
22051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
22052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
22053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22054 | { | |
22055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22056 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
22057 | ||
22058 | wxPyEndAllowThreads(__tstate); | |
22059 | if (PyErr_Occurred()) SWIG_fail; | |
22060 | } | |
22061 | { | |
22062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22063 | } | |
22064 | return resultobj; | |
22065 | fail: | |
22066 | return NULL; | |
22067 | } | |
22068 | ||
22069 | ||
c32bde28 | 22070 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22071 | PyObject *obj; |
22072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22073 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
22074 | Py_INCREF(obj); | |
22075 | return Py_BuildValue((char *)""); | |
22076 | } | |
c32bde28 | 22077 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
22078 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
22079 | return 1; | |
22080 | } | |
22081 | ||
22082 | ||
22083 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
22084 | PyObject *pyobj; | |
22085 | ||
22086 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
22087 | return pyobj; | |
22088 | } | |
22089 | ||
22090 | ||
c32bde28 | 22091 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22092 | PyObject *resultobj; |
22093 | wxString *arg1 = 0 ; | |
22094 | wxAcceleratorEntry *result; | |
ae8162c8 | 22095 | bool temp1 = false ; |
d55e5bfc RD |
22096 | PyObject * obj0 = 0 ; |
22097 | char *kwnames[] = { | |
22098 | (char *) "label", NULL | |
22099 | }; | |
22100 | ||
22101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
22102 | { | |
22103 | arg1 = wxString_in_helper(obj0); | |
22104 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 22105 | temp1 = true; |
d55e5bfc RD |
22106 | } |
22107 | { | |
22108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22109 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
22110 | ||
22111 | wxPyEndAllowThreads(__tstate); | |
22112 | if (PyErr_Occurred()) SWIG_fail; | |
22113 | } | |
22114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
22115 | { | |
22116 | if (temp1) | |
22117 | delete arg1; | |
22118 | } | |
22119 | return resultobj; | |
22120 | fail: | |
22121 | { | |
22122 | if (temp1) | |
22123 | delete arg1; | |
22124 | } | |
22125 | return NULL; | |
22126 | } | |
22127 | ||
22128 | ||
c32bde28 | 22129 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
22130 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
22131 | return 1; | |
22132 | } | |
22133 | ||
22134 | ||
22135 | static PyObject *_wrap_PanelNameStr_get() { | |
22136 | PyObject *pyobj; | |
22137 | ||
22138 | { | |
22139 | #if wxUSE_UNICODE | |
22140 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
22141 | #else | |
22142 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
22143 | #endif | |
22144 | } | |
22145 | return pyobj; | |
22146 | } | |
22147 | ||
22148 | ||
c32bde28 | 22149 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22150 | PyObject *resultobj; |
22151 | wxVisualAttributes *result; | |
22152 | char *kwnames[] = { | |
22153 | NULL | |
22154 | }; | |
22155 | ||
22156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
22157 | { | |
22158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22159 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
22160 | ||
22161 | wxPyEndAllowThreads(__tstate); | |
22162 | if (PyErr_Occurred()) SWIG_fail; | |
22163 | } | |
22164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
22165 | return resultobj; | |
22166 | fail: | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
c32bde28 | 22171 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22172 | PyObject *resultobj; |
22173 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22174 | PyObject * obj0 = 0 ; | |
22175 | char *kwnames[] = { | |
22176 | (char *) "self", NULL | |
22177 | }; | |
22178 | ||
22179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
22180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22182 | { | |
22183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22184 | delete_wxVisualAttributes(arg1); | |
22185 | ||
22186 | wxPyEndAllowThreads(__tstate); | |
22187 | if (PyErr_Occurred()) SWIG_fail; | |
22188 | } | |
22189 | Py_INCREF(Py_None); resultobj = Py_None; | |
22190 | return resultobj; | |
22191 | fail: | |
22192 | return NULL; | |
22193 | } | |
22194 | ||
22195 | ||
c32bde28 | 22196 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22197 | PyObject *resultobj; |
22198 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22199 | wxFont *arg2 = (wxFont *) 0 ; | |
22200 | PyObject * obj0 = 0 ; | |
22201 | PyObject * obj1 = 0 ; | |
22202 | char *kwnames[] = { | |
22203 | (char *) "self",(char *) "font", NULL | |
22204 | }; | |
22205 | ||
22206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
22207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
22210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22211 | if (arg1) (arg1)->font = *arg2; | |
22212 | ||
22213 | Py_INCREF(Py_None); resultobj = Py_None; | |
22214 | return resultobj; | |
22215 | fail: | |
22216 | return NULL; | |
22217 | } | |
22218 | ||
22219 | ||
c32bde28 | 22220 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22221 | PyObject *resultobj; |
22222 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22223 | wxFont *result; | |
22224 | PyObject * obj0 = 0 ; | |
22225 | char *kwnames[] = { | |
22226 | (char *) "self", NULL | |
22227 | }; | |
22228 | ||
22229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
22230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22232 | result = (wxFont *)& ((arg1)->font); | |
22233 | ||
22234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
22235 | return resultobj; | |
22236 | fail: | |
22237 | return NULL; | |
22238 | } | |
22239 | ||
22240 | ||
c32bde28 | 22241 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22242 | PyObject *resultobj; |
22243 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22244 | wxColour *arg2 = (wxColour *) 0 ; | |
22245 | PyObject * obj0 = 0 ; | |
22246 | PyObject * obj1 = 0 ; | |
22247 | char *kwnames[] = { | |
22248 | (char *) "self",(char *) "colFg", NULL | |
22249 | }; | |
22250 | ||
22251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
22252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22256 | if (arg1) (arg1)->colFg = *arg2; | |
22257 | ||
22258 | Py_INCREF(Py_None); resultobj = Py_None; | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
c32bde28 | 22265 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22266 | PyObject *resultobj; |
22267 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22268 | wxColour *result; | |
22269 | PyObject * obj0 = 0 ; | |
22270 | char *kwnames[] = { | |
22271 | (char *) "self", NULL | |
22272 | }; | |
22273 | ||
22274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
22275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22277 | result = (wxColour *)& ((arg1)->colFg); | |
22278 | ||
22279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22280 | return resultobj; | |
22281 | fail: | |
22282 | return NULL; | |
22283 | } | |
22284 | ||
22285 | ||
c32bde28 | 22286 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22287 | PyObject *resultobj; |
22288 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22289 | wxColour *arg2 = (wxColour *) 0 ; | |
22290 | PyObject * obj0 = 0 ; | |
22291 | PyObject * obj1 = 0 ; | |
22292 | char *kwnames[] = { | |
22293 | (char *) "self",(char *) "colBg", NULL | |
22294 | }; | |
22295 | ||
22296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
22297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22301 | if (arg1) (arg1)->colBg = *arg2; | |
22302 | ||
22303 | Py_INCREF(Py_None); resultobj = Py_None; | |
22304 | return resultobj; | |
22305 | fail: | |
22306 | return NULL; | |
22307 | } | |
22308 | ||
22309 | ||
c32bde28 | 22310 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22311 | PyObject *resultobj; |
22312 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22313 | wxColour *result; | |
22314 | PyObject * obj0 = 0 ; | |
22315 | char *kwnames[] = { | |
22316 | (char *) "self", NULL | |
22317 | }; | |
22318 | ||
22319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22322 | result = (wxColour *)& ((arg1)->colBg); | |
22323 | ||
22324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22325 | return resultobj; | |
22326 | fail: | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
c32bde28 | 22331 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22332 | PyObject *obj; |
22333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22334 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22335 | Py_INCREF(obj); | |
22336 | return Py_BuildValue((char *)""); | |
22337 | } | |
c32bde28 | 22338 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22339 | PyObject *resultobj; |
22340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22341 | int arg2 = (int) (int)-1 ; | |
22342 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22343 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22344 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22345 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22346 | long arg5 = (long) 0 ; | |
22347 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22348 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22349 | wxWindow *result; | |
22350 | wxPoint temp3 ; | |
22351 | wxSize temp4 ; | |
ae8162c8 | 22352 | bool temp6 = false ; |
d55e5bfc RD |
22353 | PyObject * obj0 = 0 ; |
22354 | PyObject * obj1 = 0 ; | |
22355 | PyObject * obj2 = 0 ; | |
22356 | PyObject * obj3 = 0 ; | |
22357 | PyObject * obj4 = 0 ; | |
22358 | PyObject * obj5 = 0 ; | |
22359 | char *kwnames[] = { | |
22360 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22361 | }; | |
22362 | ||
22363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22366 | if (obj1) { | |
c32bde28 | 22367 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22368 | if (PyErr_Occurred()) SWIG_fail; |
22369 | } | |
22370 | if (obj2) { | |
22371 | { | |
22372 | arg3 = &temp3; | |
22373 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22374 | } | |
22375 | } | |
22376 | if (obj3) { | |
22377 | { | |
22378 | arg4 = &temp4; | |
22379 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22380 | } | |
22381 | } | |
22382 | if (obj4) { | |
c32bde28 | 22383 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22384 | if (PyErr_Occurred()) SWIG_fail; |
22385 | } | |
22386 | if (obj5) { | |
22387 | { | |
22388 | arg6 = wxString_in_helper(obj5); | |
22389 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 22390 | temp6 = true; |
d55e5bfc RD |
22391 | } |
22392 | } | |
22393 | { | |
0439c23b | 22394 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22396 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22397 | ||
22398 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22399 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22400 | } |
b0f7404b | 22401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22402 | { |
22403 | if (temp6) | |
22404 | delete arg6; | |
22405 | } | |
22406 | return resultobj; | |
22407 | fail: | |
22408 | { | |
22409 | if (temp6) | |
22410 | delete arg6; | |
22411 | } | |
22412 | return NULL; | |
22413 | } | |
22414 | ||
22415 | ||
c32bde28 | 22416 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22417 | PyObject *resultobj; |
22418 | wxWindow *result; | |
22419 | char *kwnames[] = { | |
22420 | NULL | |
22421 | }; | |
22422 | ||
22423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22424 | { | |
0439c23b | 22425 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22427 | result = (wxWindow *)new wxWindow(); | |
22428 | ||
22429 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22430 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22431 | } |
b0f7404b | 22432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22433 | return resultobj; |
22434 | fail: | |
22435 | return NULL; | |
22436 | } | |
22437 | ||
22438 | ||
c32bde28 | 22439 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22440 | PyObject *resultobj; |
22441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22442 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22443 | int arg3 = (int) (int)-1 ; | |
22444 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22445 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22446 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22447 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22448 | long arg6 = (long) 0 ; | |
22449 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22450 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22451 | bool result; | |
22452 | wxPoint temp4 ; | |
22453 | wxSize temp5 ; | |
ae8162c8 | 22454 | bool temp7 = false ; |
d55e5bfc RD |
22455 | PyObject * obj0 = 0 ; |
22456 | PyObject * obj1 = 0 ; | |
22457 | PyObject * obj2 = 0 ; | |
22458 | PyObject * obj3 = 0 ; | |
22459 | PyObject * obj4 = 0 ; | |
22460 | PyObject * obj5 = 0 ; | |
22461 | PyObject * obj6 = 0 ; | |
22462 | char *kwnames[] = { | |
22463 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22464 | }; | |
22465 | ||
22466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22471 | if (obj2) { | |
c32bde28 | 22472 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22473 | if (PyErr_Occurred()) SWIG_fail; |
22474 | } | |
22475 | if (obj3) { | |
22476 | { | |
22477 | arg4 = &temp4; | |
22478 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22479 | } | |
22480 | } | |
22481 | if (obj4) { | |
22482 | { | |
22483 | arg5 = &temp5; | |
22484 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22485 | } | |
22486 | } | |
22487 | if (obj5) { | |
c32bde28 | 22488 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22489 | if (PyErr_Occurred()) SWIG_fail; |
22490 | } | |
22491 | if (obj6) { | |
22492 | { | |
22493 | arg7 = wxString_in_helper(obj6); | |
22494 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 22495 | temp7 = true; |
d55e5bfc RD |
22496 | } |
22497 | } | |
22498 | { | |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22501 | ||
22502 | wxPyEndAllowThreads(__tstate); | |
22503 | if (PyErr_Occurred()) SWIG_fail; | |
22504 | } | |
22505 | { | |
22506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22507 | } | |
22508 | { | |
22509 | if (temp7) | |
22510 | delete arg7; | |
22511 | } | |
22512 | return resultobj; | |
22513 | fail: | |
22514 | { | |
22515 | if (temp7) | |
22516 | delete arg7; | |
22517 | } | |
22518 | return NULL; | |
22519 | } | |
22520 | ||
22521 | ||
c32bde28 | 22522 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22523 | PyObject *resultobj; |
22524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 22525 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22526 | bool result; |
22527 | PyObject * obj0 = 0 ; | |
22528 | PyObject * obj1 = 0 ; | |
22529 | char *kwnames[] = { | |
22530 | (char *) "self",(char *) "force", NULL | |
22531 | }; | |
22532 | ||
22533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22536 | if (obj1) { | |
c32bde28 | 22537 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22538 | if (PyErr_Occurred()) SWIG_fail; |
22539 | } | |
22540 | { | |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | result = (bool)(arg1)->Close(arg2); | |
22543 | ||
22544 | wxPyEndAllowThreads(__tstate); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
22547 | { | |
22548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22549 | } | |
22550 | return resultobj; | |
22551 | fail: | |
22552 | return NULL; | |
22553 | } | |
22554 | ||
22555 | ||
c32bde28 | 22556 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22557 | PyObject *resultobj; |
22558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22559 | bool result; | |
22560 | PyObject * obj0 = 0 ; | |
22561 | char *kwnames[] = { | |
22562 | (char *) "self", NULL | |
22563 | }; | |
22564 | ||
22565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22568 | { | |
22569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22570 | result = (bool)(arg1)->Destroy(); | |
22571 | ||
22572 | wxPyEndAllowThreads(__tstate); | |
22573 | if (PyErr_Occurred()) SWIG_fail; | |
22574 | } | |
22575 | { | |
22576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22577 | } | |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
c32bde28 | 22584 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22585 | PyObject *resultobj; |
22586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22587 | bool result; | |
22588 | PyObject * obj0 = 0 ; | |
22589 | char *kwnames[] = { | |
22590 | (char *) "self", NULL | |
22591 | }; | |
22592 | ||
22593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22596 | { | |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | result = (bool)(arg1)->DestroyChildren(); | |
22599 | ||
22600 | wxPyEndAllowThreads(__tstate); | |
22601 | if (PyErr_Occurred()) SWIG_fail; | |
22602 | } | |
22603 | { | |
22604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22605 | } | |
22606 | return resultobj; | |
22607 | fail: | |
22608 | return NULL; | |
22609 | } | |
22610 | ||
22611 | ||
c32bde28 | 22612 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22613 | PyObject *resultobj; |
22614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22615 | bool result; | |
22616 | PyObject * obj0 = 0 ; | |
22617 | char *kwnames[] = { | |
22618 | (char *) "self", NULL | |
22619 | }; | |
22620 | ||
22621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22624 | { | |
22625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22626 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22627 | ||
22628 | wxPyEndAllowThreads(__tstate); | |
22629 | if (PyErr_Occurred()) SWIG_fail; | |
22630 | } | |
22631 | { | |
22632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22633 | } | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
22637 | } | |
22638 | ||
22639 | ||
c32bde28 | 22640 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22641 | PyObject *resultobj; |
22642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22643 | wxString *arg2 = 0 ; | |
ae8162c8 | 22644 | bool temp2 = false ; |
d55e5bfc RD |
22645 | PyObject * obj0 = 0 ; |
22646 | PyObject * obj1 = 0 ; | |
22647 | char *kwnames[] = { | |
22648 | (char *) "self",(char *) "title", NULL | |
22649 | }; | |
22650 | ||
22651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22654 | { | |
22655 | arg2 = wxString_in_helper(obj1); | |
22656 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22657 | temp2 = true; |
d55e5bfc RD |
22658 | } |
22659 | { | |
22660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22661 | (arg1)->SetTitle((wxString const &)*arg2); | |
22662 | ||
22663 | wxPyEndAllowThreads(__tstate); | |
22664 | if (PyErr_Occurred()) SWIG_fail; | |
22665 | } | |
22666 | Py_INCREF(Py_None); resultobj = Py_None; | |
22667 | { | |
22668 | if (temp2) | |
22669 | delete arg2; | |
22670 | } | |
22671 | return resultobj; | |
22672 | fail: | |
22673 | { | |
22674 | if (temp2) | |
22675 | delete arg2; | |
22676 | } | |
22677 | return NULL; | |
22678 | } | |
22679 | ||
22680 | ||
c32bde28 | 22681 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22682 | PyObject *resultobj; |
22683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22684 | wxString result; | |
22685 | PyObject * obj0 = 0 ; | |
22686 | char *kwnames[] = { | |
22687 | (char *) "self", NULL | |
22688 | }; | |
22689 | ||
22690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22693 | { | |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22696 | ||
22697 | wxPyEndAllowThreads(__tstate); | |
22698 | if (PyErr_Occurred()) SWIG_fail; | |
22699 | } | |
22700 | { | |
22701 | #if wxUSE_UNICODE | |
22702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22703 | #else | |
22704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22705 | #endif | |
22706 | } | |
22707 | return resultobj; | |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
c32bde28 | 22713 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22714 | PyObject *resultobj; |
22715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22716 | wxString *arg2 = 0 ; | |
ae8162c8 | 22717 | bool temp2 = false ; |
d55e5bfc RD |
22718 | PyObject * obj0 = 0 ; |
22719 | PyObject * obj1 = 0 ; | |
22720 | char *kwnames[] = { | |
22721 | (char *) "self",(char *) "label", NULL | |
22722 | }; | |
22723 | ||
22724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22727 | { | |
22728 | arg2 = wxString_in_helper(obj1); | |
22729 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22730 | temp2 = true; |
d55e5bfc RD |
22731 | } |
22732 | { | |
22733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22734 | (arg1)->SetLabel((wxString const &)*arg2); | |
22735 | ||
22736 | wxPyEndAllowThreads(__tstate); | |
22737 | if (PyErr_Occurred()) SWIG_fail; | |
22738 | } | |
22739 | Py_INCREF(Py_None); resultobj = Py_None; | |
22740 | { | |
22741 | if (temp2) | |
22742 | delete arg2; | |
22743 | } | |
22744 | return resultobj; | |
22745 | fail: | |
22746 | { | |
22747 | if (temp2) | |
22748 | delete arg2; | |
22749 | } | |
22750 | return NULL; | |
22751 | } | |
22752 | ||
22753 | ||
c32bde28 | 22754 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22755 | PyObject *resultobj; |
22756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22757 | wxString result; | |
22758 | PyObject * obj0 = 0 ; | |
22759 | char *kwnames[] = { | |
22760 | (char *) "self", NULL | |
22761 | }; | |
22762 | ||
22763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22766 | { | |
22767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22768 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22769 | ||
22770 | wxPyEndAllowThreads(__tstate); | |
22771 | if (PyErr_Occurred()) SWIG_fail; | |
22772 | } | |
22773 | { | |
22774 | #if wxUSE_UNICODE | |
22775 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22776 | #else | |
22777 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22778 | #endif | |
22779 | } | |
22780 | return resultobj; | |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
c32bde28 | 22786 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22787 | PyObject *resultobj; |
22788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22789 | wxString *arg2 = 0 ; | |
ae8162c8 | 22790 | bool temp2 = false ; |
d55e5bfc RD |
22791 | PyObject * obj0 = 0 ; |
22792 | PyObject * obj1 = 0 ; | |
22793 | char *kwnames[] = { | |
22794 | (char *) "self",(char *) "name", NULL | |
22795 | }; | |
22796 | ||
22797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22800 | { | |
22801 | arg2 = wxString_in_helper(obj1); | |
22802 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22803 | temp2 = true; |
d55e5bfc RD |
22804 | } |
22805 | { | |
22806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22807 | (arg1)->SetName((wxString const &)*arg2); | |
22808 | ||
22809 | wxPyEndAllowThreads(__tstate); | |
22810 | if (PyErr_Occurred()) SWIG_fail; | |
22811 | } | |
22812 | Py_INCREF(Py_None); resultobj = Py_None; | |
22813 | { | |
22814 | if (temp2) | |
22815 | delete arg2; | |
22816 | } | |
22817 | return resultobj; | |
22818 | fail: | |
22819 | { | |
22820 | if (temp2) | |
22821 | delete arg2; | |
22822 | } | |
22823 | return NULL; | |
22824 | } | |
22825 | ||
22826 | ||
c32bde28 | 22827 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22828 | PyObject *resultobj; |
22829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22830 | wxString result; | |
22831 | PyObject * obj0 = 0 ; | |
22832 | char *kwnames[] = { | |
22833 | (char *) "self", NULL | |
22834 | }; | |
22835 | ||
22836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22839 | { | |
22840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22841 | result = ((wxWindow const *)arg1)->GetName(); | |
22842 | ||
22843 | wxPyEndAllowThreads(__tstate); | |
22844 | if (PyErr_Occurred()) SWIG_fail; | |
22845 | } | |
22846 | { | |
22847 | #if wxUSE_UNICODE | |
22848 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22849 | #else | |
22850 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22851 | #endif | |
22852 | } | |
22853 | return resultobj; | |
22854 | fail: | |
22855 | return NULL; | |
22856 | } | |
22857 | ||
22858 | ||
c32bde28 | 22859 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22860 | PyObject *resultobj; |
22861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22862 | int arg2 ; | |
22863 | PyObject * obj0 = 0 ; | |
22864 | PyObject * obj1 = 0 ; | |
22865 | char *kwnames[] = { | |
22866 | (char *) "self",(char *) "variant", NULL | |
22867 | }; | |
22868 | ||
22869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22872 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22873 | if (PyErr_Occurred()) SWIG_fail; |
22874 | { | |
22875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22876 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22877 | ||
22878 | wxPyEndAllowThreads(__tstate); | |
22879 | if (PyErr_Occurred()) SWIG_fail; | |
22880 | } | |
22881 | Py_INCREF(Py_None); resultobj = Py_None; | |
22882 | return resultobj; | |
22883 | fail: | |
22884 | return NULL; | |
22885 | } | |
22886 | ||
22887 | ||
c32bde28 | 22888 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22889 | PyObject *resultobj; |
22890 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22891 | int result; | |
22892 | PyObject * obj0 = 0 ; | |
22893 | char *kwnames[] = { | |
22894 | (char *) "self", NULL | |
22895 | }; | |
22896 | ||
22897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22900 | { | |
22901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22902 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22903 | ||
22904 | wxPyEndAllowThreads(__tstate); | |
22905 | if (PyErr_Occurred()) SWIG_fail; | |
22906 | } | |
c32bde28 | 22907 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22908 | return resultobj; |
22909 | fail: | |
22910 | return NULL; | |
22911 | } | |
22912 | ||
22913 | ||
c32bde28 | 22914 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22915 | PyObject *resultobj; |
22916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22917 | int arg2 ; | |
22918 | PyObject * obj0 = 0 ; | |
22919 | PyObject * obj1 = 0 ; | |
22920 | char *kwnames[] = { | |
22921 | (char *) "self",(char *) "winid", NULL | |
22922 | }; | |
22923 | ||
22924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22927 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22928 | if (PyErr_Occurred()) SWIG_fail; |
22929 | { | |
22930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22931 | (arg1)->SetId(arg2); | |
22932 | ||
22933 | wxPyEndAllowThreads(__tstate); | |
22934 | if (PyErr_Occurred()) SWIG_fail; | |
22935 | } | |
22936 | Py_INCREF(Py_None); resultobj = Py_None; | |
22937 | return resultobj; | |
22938 | fail: | |
22939 | return NULL; | |
22940 | } | |
22941 | ||
22942 | ||
c32bde28 | 22943 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22944 | PyObject *resultobj; |
22945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22946 | int result; | |
22947 | PyObject * obj0 = 0 ; | |
22948 | char *kwnames[] = { | |
22949 | (char *) "self", NULL | |
22950 | }; | |
22951 | ||
22952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22955 | { | |
22956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22957 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
c32bde28 | 22962 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22963 | return resultobj; |
22964 | fail: | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
c32bde28 | 22969 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22970 | PyObject *resultobj; |
22971 | int result; | |
22972 | char *kwnames[] = { | |
22973 | NULL | |
22974 | }; | |
22975 | ||
22976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22977 | { | |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | result = (int)wxWindow::NewControlId(); | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
c32bde28 | 22984 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22985 | return resultobj; |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
c32bde28 | 22991 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22992 | PyObject *resultobj; |
22993 | int arg1 ; | |
22994 | int result; | |
22995 | PyObject * obj0 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "winid", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 23001 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23002 | if (PyErr_Occurred()) SWIG_fail; |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | result = (int)wxWindow::NextControlId(arg1); | |
23006 | ||
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
c32bde28 | 23010 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23011 | return resultobj; |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
c32bde28 | 23017 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23018 | PyObject *resultobj; |
23019 | int arg1 ; | |
23020 | int result; | |
23021 | PyObject * obj0 = 0 ; | |
23022 | char *kwnames[] = { | |
23023 | (char *) "winid", NULL | |
23024 | }; | |
23025 | ||
23026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 23027 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23028 | if (PyErr_Occurred()) SWIG_fail; |
23029 | { | |
23030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23031 | result = (int)wxWindow::PrevControlId(arg1); | |
23032 | ||
23033 | wxPyEndAllowThreads(__tstate); | |
23034 | if (PyErr_Occurred()) SWIG_fail; | |
23035 | } | |
c32bde28 | 23036 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23037 | return resultobj; |
23038 | fail: | |
23039 | return NULL; | |
23040 | } | |
23041 | ||
23042 | ||
c32bde28 | 23043 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23044 | PyObject *resultobj; |
23045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23046 | wxSize *arg2 = 0 ; | |
23047 | wxSize temp2 ; | |
23048 | PyObject * obj0 = 0 ; | |
23049 | PyObject * obj1 = 0 ; | |
23050 | char *kwnames[] = { | |
23051 | (char *) "self",(char *) "size", NULL | |
23052 | }; | |
23053 | ||
23054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
23055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23057 | { | |
23058 | arg2 = &temp2; | |
23059 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23060 | } | |
23061 | { | |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23063 | (arg1)->SetSize((wxSize const &)*arg2); | |
23064 | ||
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | Py_INCREF(Py_None); resultobj = Py_None; | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | return NULL; | |
23072 | } | |
23073 | ||
23074 | ||
c32bde28 | 23075 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23076 | PyObject *resultobj; |
23077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23078 | int arg2 ; | |
23079 | int arg3 ; | |
23080 | int arg4 ; | |
23081 | int arg5 ; | |
23082 | int arg6 = (int) wxSIZE_AUTO ; | |
23083 | PyObject * obj0 = 0 ; | |
23084 | PyObject * obj1 = 0 ; | |
23085 | PyObject * obj2 = 0 ; | |
23086 | PyObject * obj3 = 0 ; | |
23087 | PyObject * obj4 = 0 ; | |
23088 | PyObject * obj5 = 0 ; | |
23089 | char *kwnames[] = { | |
23090 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23091 | }; | |
23092 | ||
23093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
23094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23096 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23097 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23098 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 23099 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23100 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 23101 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23102 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23103 | if (PyErr_Occurred()) SWIG_fail; |
23104 | if (obj5) { | |
c32bde28 | 23105 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23106 | if (PyErr_Occurred()) SWIG_fail; |
23107 | } | |
23108 | { | |
23109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23110 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
23111 | ||
23112 | wxPyEndAllowThreads(__tstate); | |
23113 | if (PyErr_Occurred()) SWIG_fail; | |
23114 | } | |
23115 | Py_INCREF(Py_None); resultobj = Py_None; | |
23116 | return resultobj; | |
23117 | fail: | |
23118 | return NULL; | |
23119 | } | |
23120 | ||
23121 | ||
c32bde28 | 23122 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23123 | PyObject *resultobj; |
23124 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23125 | wxRect *arg2 = 0 ; | |
23126 | int arg3 = (int) wxSIZE_AUTO ; | |
23127 | wxRect temp2 ; | |
23128 | PyObject * obj0 = 0 ; | |
23129 | PyObject * obj1 = 0 ; | |
23130 | PyObject * obj2 = 0 ; | |
23131 | char *kwnames[] = { | |
23132 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
23133 | }; | |
23134 | ||
23135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23138 | { | |
23139 | arg2 = &temp2; | |
23140 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23141 | } | |
23142 | if (obj2) { | |
c32bde28 | 23143 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23144 | if (PyErr_Occurred()) SWIG_fail; |
23145 | } | |
23146 | { | |
23147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23148 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
23149 | ||
23150 | wxPyEndAllowThreads(__tstate); | |
23151 | if (PyErr_Occurred()) SWIG_fail; | |
23152 | } | |
23153 | Py_INCREF(Py_None); resultobj = Py_None; | |
23154 | return resultobj; | |
23155 | fail: | |
23156 | return NULL; | |
23157 | } | |
23158 | ||
23159 | ||
c32bde28 | 23160 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23161 | PyObject *resultobj; |
23162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23163 | int arg2 ; | |
23164 | int arg3 ; | |
23165 | PyObject * obj0 = 0 ; | |
23166 | PyObject * obj1 = 0 ; | |
23167 | PyObject * obj2 = 0 ; | |
23168 | char *kwnames[] = { | |
23169 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23170 | }; | |
23171 | ||
23172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23175 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23176 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23177 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23178 | if (PyErr_Occurred()) SWIG_fail; |
23179 | { | |
23180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23181 | (arg1)->SetSize(arg2,arg3); | |
23182 | ||
23183 | wxPyEndAllowThreads(__tstate); | |
23184 | if (PyErr_Occurred()) SWIG_fail; | |
23185 | } | |
23186 | Py_INCREF(Py_None); resultobj = Py_None; | |
23187 | return resultobj; | |
23188 | fail: | |
23189 | return NULL; | |
23190 | } | |
23191 | ||
23192 | ||
c32bde28 | 23193 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23194 | PyObject *resultobj; |
23195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23196 | wxPoint *arg2 = 0 ; | |
23197 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
23198 | wxPoint temp2 ; | |
23199 | PyObject * obj0 = 0 ; | |
23200 | PyObject * obj1 = 0 ; | |
23201 | PyObject * obj2 = 0 ; | |
23202 | char *kwnames[] = { | |
23203 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
23204 | }; | |
23205 | ||
23206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23209 | { | |
23210 | arg2 = &temp2; | |
23211 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23212 | } | |
23213 | if (obj2) { | |
c32bde28 | 23214 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23215 | if (PyErr_Occurred()) SWIG_fail; |
23216 | } | |
23217 | { | |
23218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23219 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
23220 | ||
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
23224 | Py_INCREF(Py_None); resultobj = Py_None; | |
23225 | return resultobj; | |
23226 | fail: | |
23227 | return NULL; | |
23228 | } | |
23229 | ||
23230 | ||
c32bde28 | 23231 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23232 | PyObject *resultobj; |
23233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23234 | int arg2 ; | |
23235 | int arg3 ; | |
23236 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
23237 | PyObject * obj0 = 0 ; | |
23238 | PyObject * obj1 = 0 ; | |
23239 | PyObject * obj2 = 0 ; | |
23240 | PyObject * obj3 = 0 ; | |
23241 | char *kwnames[] = { | |
23242 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
23243 | }; | |
23244 | ||
23245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23248 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23249 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23250 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23251 | if (PyErr_Occurred()) SWIG_fail; |
23252 | if (obj3) { | |
c32bde28 | 23253 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23254 | if (PyErr_Occurred()) SWIG_fail; |
23255 | } | |
23256 | { | |
23257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23258 | (arg1)->Move(arg2,arg3,arg4); | |
23259 | ||
23260 | wxPyEndAllowThreads(__tstate); | |
23261 | if (PyErr_Occurred()) SWIG_fail; | |
23262 | } | |
23263 | Py_INCREF(Py_None); resultobj = Py_None; | |
23264 | return resultobj; | |
23265 | fail: | |
23266 | return NULL; | |
23267 | } | |
23268 | ||
23269 | ||
c32bde28 | 23270 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
23271 | PyObject *resultobj; |
23272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23273 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
23274 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
23275 | wxSize temp2 ; | |
23276 | PyObject * obj0 = 0 ; | |
23277 | PyObject * obj1 = 0 ; | |
23278 | char *kwnames[] = { | |
23279 | (char *) "self",(char *) "size", NULL | |
23280 | }; | |
23281 | ||
23282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
23283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23285 | if (obj1) { | |
23286 | { | |
23287 | arg2 = &temp2; | |
23288 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23289 | } | |
23290 | } | |
23291 | { | |
23292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23293 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
23294 | ||
23295 | wxPyEndAllowThreads(__tstate); | |
23296 | if (PyErr_Occurred()) SWIG_fail; | |
23297 | } | |
23298 | Py_INCREF(Py_None); resultobj = Py_None; | |
23299 | return resultobj; | |
23300 | fail: | |
23301 | return NULL; | |
23302 | } | |
23303 | ||
23304 | ||
c32bde28 | 23305 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23306 | PyObject *resultobj; |
23307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23308 | PyObject * obj0 = 0 ; | |
23309 | char *kwnames[] = { | |
23310 | (char *) "self", NULL | |
23311 | }; | |
23312 | ||
23313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | (arg1)->Raise(); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
23323 | Py_INCREF(Py_None); resultobj = Py_None; | |
23324 | return resultobj; | |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
c32bde28 | 23330 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23331 | PyObject *resultobj; |
23332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23333 | PyObject * obj0 = 0 ; | |
23334 | char *kwnames[] = { | |
23335 | (char *) "self", NULL | |
23336 | }; | |
23337 | ||
23338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23341 | { | |
23342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23343 | (arg1)->Lower(); | |
23344 | ||
23345 | wxPyEndAllowThreads(__tstate); | |
23346 | if (PyErr_Occurred()) SWIG_fail; | |
23347 | } | |
23348 | Py_INCREF(Py_None); resultobj = Py_None; | |
23349 | return resultobj; | |
23350 | fail: | |
23351 | return NULL; | |
23352 | } | |
23353 | ||
23354 | ||
c32bde28 | 23355 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23356 | PyObject *resultobj; |
23357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23358 | wxSize *arg2 = 0 ; | |
23359 | wxSize temp2 ; | |
23360 | PyObject * obj0 = 0 ; | |
23361 | PyObject * obj1 = 0 ; | |
23362 | char *kwnames[] = { | |
23363 | (char *) "self",(char *) "size", NULL | |
23364 | }; | |
23365 | ||
23366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23369 | { | |
23370 | arg2 = &temp2; | |
23371 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23372 | } | |
23373 | { | |
23374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23375 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23376 | ||
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | Py_INCREF(Py_None); resultobj = Py_None; | |
23381 | return resultobj; | |
23382 | fail: | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
c32bde28 | 23387 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23388 | PyObject *resultobj; |
23389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23390 | int arg2 ; | |
23391 | int arg3 ; | |
23392 | PyObject * obj0 = 0 ; | |
23393 | PyObject * obj1 = 0 ; | |
23394 | PyObject * obj2 = 0 ; | |
23395 | char *kwnames[] = { | |
23396 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23397 | }; | |
23398 | ||
23399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23402 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23403 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23404 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23405 | if (PyErr_Occurred()) SWIG_fail; |
23406 | { | |
23407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23408 | (arg1)->SetClientSize(arg2,arg3); | |
23409 | ||
23410 | wxPyEndAllowThreads(__tstate); | |
23411 | if (PyErr_Occurred()) SWIG_fail; | |
23412 | } | |
23413 | Py_INCREF(Py_None); resultobj = Py_None; | |
23414 | return resultobj; | |
23415 | fail: | |
23416 | return NULL; | |
23417 | } | |
23418 | ||
23419 | ||
c32bde28 | 23420 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23421 | PyObject *resultobj; |
23422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23423 | wxRect *arg2 = 0 ; | |
23424 | wxRect temp2 ; | |
23425 | PyObject * obj0 = 0 ; | |
23426 | PyObject * obj1 = 0 ; | |
23427 | char *kwnames[] = { | |
23428 | (char *) "self",(char *) "rect", NULL | |
23429 | }; | |
23430 | ||
23431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23434 | { | |
23435 | arg2 = &temp2; | |
23436 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23437 | } | |
23438 | { | |
23439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23440 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23441 | ||
23442 | wxPyEndAllowThreads(__tstate); | |
23443 | if (PyErr_Occurred()) SWIG_fail; | |
23444 | } | |
23445 | Py_INCREF(Py_None); resultobj = Py_None; | |
23446 | return resultobj; | |
23447 | fail: | |
23448 | return NULL; | |
23449 | } | |
23450 | ||
23451 | ||
c32bde28 | 23452 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23453 | PyObject *resultobj; |
23454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23455 | wxPoint result; | |
23456 | PyObject * obj0 = 0 ; | |
23457 | char *kwnames[] = { | |
23458 | (char *) "self", NULL | |
23459 | }; | |
23460 | ||
23461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23464 | { | |
23465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23466 | result = (arg1)->GetPosition(); | |
23467 | ||
23468 | wxPyEndAllowThreads(__tstate); | |
23469 | if (PyErr_Occurred()) SWIG_fail; | |
23470 | } | |
23471 | { | |
23472 | wxPoint * resultptr; | |
23473 | resultptr = new wxPoint((wxPoint &) result); | |
23474 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23475 | } | |
23476 | return resultobj; | |
23477 | fail: | |
23478 | return NULL; | |
23479 | } | |
23480 | ||
23481 | ||
c32bde28 | 23482 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23483 | PyObject *resultobj; |
23484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23485 | int *arg2 = (int *) 0 ; | |
23486 | int *arg3 = (int *) 0 ; | |
23487 | int temp2 ; | |
c32bde28 | 23488 | int res2 = 0 ; |
d55e5bfc | 23489 | int temp3 ; |
c32bde28 | 23490 | int res3 = 0 ; |
d55e5bfc RD |
23491 | PyObject * obj0 = 0 ; |
23492 | char *kwnames[] = { | |
23493 | (char *) "self", NULL | |
23494 | }; | |
23495 | ||
c32bde28 RD |
23496 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23497 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23501 | { | |
23502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23503 | (arg1)->GetPosition(arg2,arg3); | |
23504 | ||
23505 | wxPyEndAllowThreads(__tstate); | |
23506 | if (PyErr_Occurred()) SWIG_fail; | |
23507 | } | |
23508 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23509 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23510 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23511 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23512 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23513 | return resultobj; |
23514 | fail: | |
23515 | return NULL; | |
23516 | } | |
23517 | ||
23518 | ||
c32bde28 | 23519 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23520 | PyObject *resultobj; |
23521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23522 | wxSize result; | |
23523 | PyObject * obj0 = 0 ; | |
23524 | char *kwnames[] = { | |
23525 | (char *) "self", NULL | |
23526 | }; | |
23527 | ||
23528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23531 | { | |
23532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23533 | result = ((wxWindow const *)arg1)->GetSize(); | |
23534 | ||
23535 | wxPyEndAllowThreads(__tstate); | |
23536 | if (PyErr_Occurred()) SWIG_fail; | |
23537 | } | |
23538 | { | |
23539 | wxSize * resultptr; | |
23540 | resultptr = new wxSize((wxSize &) result); | |
23541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23542 | } | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
c32bde28 | 23549 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23550 | PyObject *resultobj; |
23551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23552 | int *arg2 = (int *) 0 ; | |
23553 | int *arg3 = (int *) 0 ; | |
23554 | int temp2 ; | |
c32bde28 | 23555 | int res2 = 0 ; |
d55e5bfc | 23556 | int temp3 ; |
c32bde28 | 23557 | int res3 = 0 ; |
d55e5bfc RD |
23558 | PyObject * obj0 = 0 ; |
23559 | char *kwnames[] = { | |
23560 | (char *) "self", NULL | |
23561 | }; | |
23562 | ||
c32bde28 RD |
23563 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23564 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23568 | { | |
23569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23570 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23571 | ||
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23576 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23577 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23578 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23579 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23580 | return resultobj; |
23581 | fail: | |
23582 | return NULL; | |
23583 | } | |
23584 | ||
23585 | ||
c32bde28 | 23586 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23587 | PyObject *resultobj; |
23588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23589 | wxRect result; | |
23590 | PyObject * obj0 = 0 ; | |
23591 | char *kwnames[] = { | |
23592 | (char *) "self", NULL | |
23593 | }; | |
23594 | ||
23595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23598 | { | |
23599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23600 | result = ((wxWindow const *)arg1)->GetRect(); | |
23601 | ||
23602 | wxPyEndAllowThreads(__tstate); | |
23603 | if (PyErr_Occurred()) SWIG_fail; | |
23604 | } | |
23605 | { | |
23606 | wxRect * resultptr; | |
23607 | resultptr = new wxRect((wxRect &) result); | |
23608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23609 | } | |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
c32bde28 | 23616 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23617 | PyObject *resultobj; |
23618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23619 | wxSize result; | |
23620 | PyObject * obj0 = 0 ; | |
23621 | char *kwnames[] = { | |
23622 | (char *) "self", NULL | |
23623 | }; | |
23624 | ||
23625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23628 | { | |
23629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23630 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23631 | ||
23632 | wxPyEndAllowThreads(__tstate); | |
23633 | if (PyErr_Occurred()) SWIG_fail; | |
23634 | } | |
23635 | { | |
23636 | wxSize * resultptr; | |
23637 | resultptr = new wxSize((wxSize &) result); | |
23638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23639 | } | |
23640 | return resultobj; | |
23641 | fail: | |
23642 | return NULL; | |
23643 | } | |
23644 | ||
23645 | ||
c32bde28 | 23646 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23647 | PyObject *resultobj; |
23648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23649 | int *arg2 = (int *) 0 ; | |
23650 | int *arg3 = (int *) 0 ; | |
23651 | int temp2 ; | |
c32bde28 | 23652 | int res2 = 0 ; |
d55e5bfc | 23653 | int temp3 ; |
c32bde28 | 23654 | int res3 = 0 ; |
d55e5bfc RD |
23655 | PyObject * obj0 = 0 ; |
23656 | char *kwnames[] = { | |
23657 | (char *) "self", NULL | |
23658 | }; | |
23659 | ||
c32bde28 RD |
23660 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23661 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23665 | { | |
23666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23667 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23668 | ||
23669 | wxPyEndAllowThreads(__tstate); | |
23670 | if (PyErr_Occurred()) SWIG_fail; | |
23671 | } | |
23672 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23673 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23674 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23675 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23676 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23677 | return resultobj; |
23678 | fail: | |
23679 | return NULL; | |
23680 | } | |
23681 | ||
23682 | ||
c32bde28 | 23683 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23684 | PyObject *resultobj; |
23685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23686 | wxPoint result; | |
23687 | PyObject * obj0 = 0 ; | |
23688 | char *kwnames[] = { | |
23689 | (char *) "self", NULL | |
23690 | }; | |
23691 | ||
23692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23695 | { | |
23696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23697 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23698 | ||
23699 | wxPyEndAllowThreads(__tstate); | |
23700 | if (PyErr_Occurred()) SWIG_fail; | |
23701 | } | |
23702 | { | |
23703 | wxPoint * resultptr; | |
23704 | resultptr = new wxPoint((wxPoint &) result); | |
23705 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23706 | } | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
c32bde28 | 23713 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23714 | PyObject *resultobj; |
23715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23716 | wxRect result; | |
23717 | PyObject * obj0 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23725 | { | |
23726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23727 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23728 | ||
23729 | wxPyEndAllowThreads(__tstate); | |
23730 | if (PyErr_Occurred()) SWIG_fail; | |
23731 | } | |
23732 | { | |
23733 | wxRect * resultptr; | |
23734 | resultptr = new wxRect((wxRect &) result); | |
23735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23736 | } | |
23737 | return resultobj; | |
23738 | fail: | |
23739 | return NULL; | |
23740 | } | |
23741 | ||
23742 | ||
c32bde28 | 23743 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23744 | PyObject *resultobj; |
23745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23746 | wxSize result; | |
23747 | PyObject * obj0 = 0 ; | |
23748 | char *kwnames[] = { | |
23749 | (char *) "self", NULL | |
23750 | }; | |
23751 | ||
23752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23755 | { | |
23756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23757 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23758 | ||
23759 | wxPyEndAllowThreads(__tstate); | |
23760 | if (PyErr_Occurred()) SWIG_fail; | |
23761 | } | |
23762 | { | |
23763 | wxSize * resultptr; | |
23764 | resultptr = new wxSize((wxSize &) result); | |
23765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23766 | } | |
23767 | return resultobj; | |
23768 | fail: | |
23769 | return NULL; | |
23770 | } | |
23771 | ||
23772 | ||
c32bde28 | 23773 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23774 | PyObject *resultobj; |
23775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23776 | int *arg2 = (int *) 0 ; | |
23777 | int *arg3 = (int *) 0 ; | |
23778 | int temp2 ; | |
c32bde28 | 23779 | int res2 = 0 ; |
d55e5bfc | 23780 | int temp3 ; |
c32bde28 | 23781 | int res3 = 0 ; |
d55e5bfc RD |
23782 | PyObject * obj0 = 0 ; |
23783 | char *kwnames[] = { | |
23784 | (char *) "self", NULL | |
23785 | }; | |
23786 | ||
c32bde28 RD |
23787 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23788 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23792 | { | |
23793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23794 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23795 | ||
23796 | wxPyEndAllowThreads(__tstate); | |
23797 | if (PyErr_Occurred()) SWIG_fail; | |
23798 | } | |
23799 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23800 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23801 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23802 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23803 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23804 | return resultobj; |
23805 | fail: | |
23806 | return NULL; | |
23807 | } | |
23808 | ||
23809 | ||
c32bde28 | 23810 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23811 | PyObject *resultobj; |
23812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23813 | PyObject * obj0 = 0 ; | |
23814 | char *kwnames[] = { | |
23815 | (char *) "self", NULL | |
23816 | }; | |
23817 | ||
23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23821 | { | |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | (arg1)->InvalidateBestSize(); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
23828 | Py_INCREF(Py_None); resultobj = Py_None; | |
23829 | return resultobj; | |
23830 | fail: | |
23831 | return NULL; | |
23832 | } | |
23833 | ||
23834 | ||
c32bde28 | 23835 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23836 | PyObject *resultobj; |
23837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23838 | wxSize result; | |
23839 | PyObject * obj0 = 0 ; | |
23840 | char *kwnames[] = { | |
23841 | (char *) "self", NULL | |
23842 | }; | |
23843 | ||
23844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23847 | { | |
23848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23849 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23850 | ||
23851 | wxPyEndAllowThreads(__tstate); | |
23852 | if (PyErr_Occurred()) SWIG_fail; | |
23853 | } | |
23854 | { | |
23855 | wxSize * resultptr; | |
23856 | resultptr = new wxSize((wxSize &) result); | |
23857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23858 | } | |
23859 | return resultobj; | |
23860 | fail: | |
23861 | return NULL; | |
23862 | } | |
23863 | ||
23864 | ||
c32bde28 | 23865 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23866 | PyObject *resultobj; |
23867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23868 | wxSize result; | |
23869 | PyObject * obj0 = 0 ; | |
23870 | char *kwnames[] = { | |
23871 | (char *) "self", NULL | |
23872 | }; | |
23873 | ||
23874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23877 | { | |
23878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23879 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23880 | ||
23881 | wxPyEndAllowThreads(__tstate); | |
23882 | if (PyErr_Occurred()) SWIG_fail; | |
23883 | } | |
23884 | { | |
23885 | wxSize * resultptr; | |
23886 | resultptr = new wxSize((wxSize &) result); | |
23887 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23888 | } | |
23889 | return resultobj; | |
23890 | fail: | |
23891 | return NULL; | |
23892 | } | |
23893 | ||
23894 | ||
c32bde28 | 23895 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23896 | PyObject *resultobj; |
23897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23898 | int arg2 = (int) wxBOTH ; | |
23899 | PyObject * obj0 = 0 ; | |
23900 | PyObject * obj1 = 0 ; | |
23901 | char *kwnames[] = { | |
23902 | (char *) "self",(char *) "direction", NULL | |
23903 | }; | |
23904 | ||
23905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23908 | if (obj1) { | |
c32bde28 | 23909 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23910 | if (PyErr_Occurred()) SWIG_fail; |
23911 | } | |
23912 | { | |
23913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23914 | (arg1)->Center(arg2); | |
23915 | ||
23916 | wxPyEndAllowThreads(__tstate); | |
23917 | if (PyErr_Occurred()) SWIG_fail; | |
23918 | } | |
23919 | Py_INCREF(Py_None); resultobj = Py_None; | |
23920 | return resultobj; | |
23921 | fail: | |
23922 | return NULL; | |
23923 | } | |
23924 | ||
23925 | ||
c32bde28 | 23926 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23927 | PyObject *resultobj; |
23928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23929 | int arg2 = (int) wxBOTH ; | |
23930 | PyObject * obj0 = 0 ; | |
23931 | PyObject * obj1 = 0 ; | |
23932 | char *kwnames[] = { | |
23933 | (char *) "self",(char *) "dir", NULL | |
23934 | }; | |
23935 | ||
23936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23939 | if (obj1) { | |
c32bde28 | 23940 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23941 | if (PyErr_Occurred()) SWIG_fail; |
23942 | } | |
23943 | { | |
23944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23945 | (arg1)->CenterOnScreen(arg2); | |
23946 | ||
23947 | wxPyEndAllowThreads(__tstate); | |
23948 | if (PyErr_Occurred()) SWIG_fail; | |
23949 | } | |
23950 | Py_INCREF(Py_None); resultobj = Py_None; | |
23951 | return resultobj; | |
23952 | fail: | |
23953 | return NULL; | |
23954 | } | |
23955 | ||
23956 | ||
c32bde28 | 23957 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23958 | PyObject *resultobj; |
23959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23960 | int arg2 = (int) wxBOTH ; | |
23961 | PyObject * obj0 = 0 ; | |
23962 | PyObject * obj1 = 0 ; | |
23963 | char *kwnames[] = { | |
23964 | (char *) "self",(char *) "dir", NULL | |
23965 | }; | |
23966 | ||
23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23970 | if (obj1) { | |
c32bde28 | 23971 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23972 | if (PyErr_Occurred()) SWIG_fail; |
23973 | } | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | (arg1)->CenterOnParent(arg2); | |
23977 | ||
23978 | wxPyEndAllowThreads(__tstate); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
23981 | Py_INCREF(Py_None); resultobj = Py_None; | |
23982 | return resultobj; | |
23983 | fail: | |
23984 | return NULL; | |
23985 | } | |
23986 | ||
23987 | ||
c32bde28 | 23988 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23989 | PyObject *resultobj; |
23990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23991 | PyObject * obj0 = 0 ; | |
23992 | char *kwnames[] = { | |
23993 | (char *) "self", NULL | |
23994 | }; | |
23995 | ||
23996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23999 | { | |
24000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24001 | (arg1)->Fit(); | |
24002 | ||
24003 | wxPyEndAllowThreads(__tstate); | |
24004 | if (PyErr_Occurred()) SWIG_fail; | |
24005 | } | |
24006 | Py_INCREF(Py_None); resultobj = Py_None; | |
24007 | return resultobj; | |
24008 | fail: | |
24009 | return NULL; | |
24010 | } | |
24011 | ||
24012 | ||
c32bde28 | 24013 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24014 | PyObject *resultobj; |
24015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24016 | PyObject * obj0 = 0 ; | |
24017 | char *kwnames[] = { | |
24018 | (char *) "self", NULL | |
24019 | }; | |
24020 | ||
24021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
24022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24024 | { | |
24025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24026 | (arg1)->FitInside(); | |
24027 | ||
24028 | wxPyEndAllowThreads(__tstate); | |
24029 | if (PyErr_Occurred()) SWIG_fail; | |
24030 | } | |
24031 | Py_INCREF(Py_None); resultobj = Py_None; | |
24032 | return resultobj; | |
24033 | fail: | |
24034 | return NULL; | |
24035 | } | |
24036 | ||
24037 | ||
c32bde28 | 24038 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24039 | PyObject *resultobj; |
24040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24041 | int arg2 ; | |
24042 | int arg3 ; | |
24043 | int arg4 = (int) -1 ; | |
24044 | int arg5 = (int) -1 ; | |
24045 | int arg6 = (int) -1 ; | |
24046 | int arg7 = (int) -1 ; | |
24047 | PyObject * obj0 = 0 ; | |
24048 | PyObject * obj1 = 0 ; | |
24049 | PyObject * obj2 = 0 ; | |
24050 | PyObject * obj3 = 0 ; | |
24051 | PyObject * obj4 = 0 ; | |
24052 | PyObject * obj5 = 0 ; | |
24053 | PyObject * obj6 = 0 ; | |
03837c5c RD |
24054 | char *kwnames[] = { |
24055 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
24056 | }; | |
d55e5bfc | 24057 | |
03837c5c | 24058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
24059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24061 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24062 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24063 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24064 | if (PyErr_Occurred()) SWIG_fail; |
24065 | if (obj3) { | |
c32bde28 | 24066 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
24067 | if (PyErr_Occurred()) SWIG_fail; |
24068 | } | |
24069 | if (obj4) { | |
c32bde28 | 24070 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
24071 | if (PyErr_Occurred()) SWIG_fail; |
24072 | } | |
24073 | if (obj5) { | |
c32bde28 | 24074 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
24075 | if (PyErr_Occurred()) SWIG_fail; |
24076 | } | |
24077 | if (obj6) { | |
c32bde28 | 24078 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
24079 | if (PyErr_Occurred()) SWIG_fail; |
24080 | } | |
24081 | { | |
24082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24083 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
24084 | ||
24085 | wxPyEndAllowThreads(__tstate); | |
24086 | if (PyErr_Occurred()) SWIG_fail; | |
24087 | } | |
24088 | Py_INCREF(Py_None); resultobj = Py_None; | |
24089 | return resultobj; | |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
c32bde28 | 24095 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24096 | PyObject *resultobj; |
24097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
24098 | wxSize *arg2 = 0 ; |
24099 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
24100 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
24101 | wxSize const &arg4_defvalue = wxDefaultSize ; |
24102 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
24103 | wxSize temp2 ; |
24104 | wxSize temp3 ; | |
03837c5c | 24105 | wxSize temp4 ; |
d55e5bfc RD |
24106 | PyObject * obj0 = 0 ; |
24107 | PyObject * obj1 = 0 ; | |
24108 | PyObject * obj2 = 0 ; | |
03837c5c RD |
24109 | PyObject * obj3 = 0 ; |
24110 | char *kwnames[] = { | |
24111 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
24112 | }; | |
d55e5bfc | 24113 | |
03837c5c | 24114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
24115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
24117 | { |
24118 | arg2 = &temp2; | |
24119 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 24120 | } |
908b74cd RD |
24121 | if (obj2) { |
24122 | { | |
24123 | arg3 = &temp3; | |
24124 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
24125 | } | |
d55e5bfc | 24126 | } |
03837c5c RD |
24127 | if (obj3) { |
24128 | { | |
24129 | arg4 = &temp4; | |
24130 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24131 | } | |
24132 | } | |
d55e5bfc RD |
24133 | { |
24134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 24135 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
24136 | |
24137 | wxPyEndAllowThreads(__tstate); | |
24138 | if (PyErr_Occurred()) SWIG_fail; | |
24139 | } | |
24140 | Py_INCREF(Py_None); resultobj = Py_None; | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
c32bde28 | 24147 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24148 | PyObject *resultobj; |
24149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
24150 | int arg2 ; |
24151 | int arg3 ; | |
24152 | int arg4 = (int) -1 ; | |
24153 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
24154 | PyObject * obj0 = 0 ; |
24155 | PyObject * obj1 = 0 ; | |
24156 | PyObject * obj2 = 0 ; | |
908b74cd RD |
24157 | PyObject * obj3 = 0 ; |
24158 | PyObject * obj4 = 0 ; | |
03837c5c RD |
24159 | char *kwnames[] = { |
24160 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
24161 | }; | |
d55e5bfc | 24162 | |
03837c5c | 24163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
24164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24166 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 24167 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24168 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
24169 | if (PyErr_Occurred()) SWIG_fail; |
24170 | if (obj3) { | |
c32bde28 | 24171 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 24172 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 24173 | } |
908b74cd | 24174 | if (obj4) { |
c32bde28 | 24175 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 24176 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24177 | } |
24178 | { | |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24180 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
24181 | |
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
24185 | Py_INCREF(Py_None); resultobj = Py_None; | |
24186 | return resultobj; | |
24187 | fail: | |
24188 | return NULL; | |
24189 | } | |
24190 | ||
24191 | ||
c32bde28 | 24192 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
24193 | PyObject *resultobj; |
24194 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24195 | wxSize *arg2 = 0 ; | |
24196 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
24197 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
24198 | wxSize temp2 ; | |
24199 | wxSize temp3 ; | |
24200 | PyObject * obj0 = 0 ; | |
24201 | PyObject * obj1 = 0 ; | |
24202 | PyObject * obj2 = 0 ; | |
24203 | char *kwnames[] = { | |
24204 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
24205 | }; | |
d55e5bfc | 24206 | |
03837c5c RD |
24207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
24208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24210 | { | |
24211 | arg2 = &temp2; | |
24212 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 24213 | } |
03837c5c | 24214 | if (obj2) { |
d55e5bfc | 24215 | { |
03837c5c RD |
24216 | arg3 = &temp3; |
24217 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
24218 | } |
24219 | } | |
03837c5c RD |
24220 | { |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 24226 | } |
03837c5c RD |
24227 | Py_INCREF(Py_None); resultobj = Py_None; |
24228 | return resultobj; | |
24229 | fail: | |
d55e5bfc RD |
24230 | return NULL; |
24231 | } | |
24232 | ||
24233 | ||
c32bde28 | 24234 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24235 | PyObject *resultobj; |
24236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24237 | wxSize result; |
d55e5bfc RD |
24238 | PyObject * obj0 = 0 ; |
24239 | char *kwnames[] = { | |
24240 | (char *) "self", NULL | |
24241 | }; | |
24242 | ||
908b74cd | 24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24246 | { | |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24248 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
24249 | |
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
908b74cd RD |
24253 | { |
24254 | wxSize * resultptr; | |
24255 | resultptr = new wxSize((wxSize &) result); | |
24256 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24257 | } | |
d55e5bfc RD |
24258 | return resultobj; |
24259 | fail: | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
c32bde28 | 24264 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24265 | PyObject *resultobj; |
24266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24267 | wxSize result; |
d55e5bfc RD |
24268 | PyObject * obj0 = 0 ; |
24269 | char *kwnames[] = { | |
24270 | (char *) "self", NULL | |
24271 | }; | |
24272 | ||
908b74cd | 24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24276 | { | |
24277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24278 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
24279 | |
24280 | wxPyEndAllowThreads(__tstate); | |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
24282 | } | |
908b74cd RD |
24283 | { |
24284 | wxSize * resultptr; | |
24285 | resultptr = new wxSize((wxSize &) result); | |
24286 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24287 | } | |
d55e5bfc RD |
24288 | return resultobj; |
24289 | fail: | |
24290 | return NULL; | |
24291 | } | |
24292 | ||
24293 | ||
c32bde28 | 24294 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24295 | PyObject *resultobj; |
24296 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24297 | wxSize *arg2 = 0 ; | |
24298 | wxSize temp2 ; | |
24299 | PyObject * obj0 = 0 ; | |
24300 | PyObject * obj1 = 0 ; | |
24301 | char *kwnames[] = { | |
24302 | (char *) "self",(char *) "minSize", NULL | |
24303 | }; | |
24304 | ||
24305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
24306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24308 | { | |
24309 | arg2 = &temp2; | |
24310 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24311 | } | |
24312 | { | |
24313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24314 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24315 | ||
24316 | wxPyEndAllowThreads(__tstate); | |
24317 | if (PyErr_Occurred()) SWIG_fail; | |
24318 | } | |
24319 | Py_INCREF(Py_None); resultobj = Py_None; | |
24320 | return resultobj; | |
24321 | fail: | |
24322 | return NULL; | |
24323 | } | |
24324 | ||
24325 | ||
c32bde28 | 24326 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24327 | PyObject *resultobj; |
24328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24329 | wxSize *arg2 = 0 ; | |
24330 | wxSize temp2 ; | |
24331 | PyObject * obj0 = 0 ; | |
24332 | PyObject * obj1 = 0 ; | |
24333 | char *kwnames[] = { | |
24334 | (char *) "self",(char *) "maxSize", NULL | |
24335 | }; | |
24336 | ||
24337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24340 | { | |
24341 | arg2 = &temp2; | |
24342 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24343 | } | |
24344 | { | |
24345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24346 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24347 | ||
24348 | wxPyEndAllowThreads(__tstate); | |
24349 | if (PyErr_Occurred()) SWIG_fail; | |
24350 | } | |
24351 | Py_INCREF(Py_None); resultobj = Py_None; | |
24352 | return resultobj; | |
24353 | fail: | |
24354 | return NULL; | |
24355 | } | |
24356 | ||
24357 | ||
c32bde28 | 24358 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24359 | PyObject *resultobj; |
24360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24361 | int result; | |
24362 | PyObject * obj0 = 0 ; | |
24363 | char *kwnames[] = { | |
24364 | (char *) "self", NULL | |
24365 | }; | |
24366 | ||
908b74cd | 24367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24370 | { | |
24371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24372 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24373 | |
24374 | wxPyEndAllowThreads(__tstate); | |
24375 | if (PyErr_Occurred()) SWIG_fail; | |
24376 | } | |
c32bde28 | 24377 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24378 | return resultobj; |
24379 | fail: | |
24380 | return NULL; | |
24381 | } | |
24382 | ||
24383 | ||
c32bde28 | 24384 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24385 | PyObject *resultobj; |
24386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24387 | int result; | |
24388 | PyObject * obj0 = 0 ; | |
24389 | char *kwnames[] = { | |
24390 | (char *) "self", NULL | |
24391 | }; | |
24392 | ||
908b74cd | 24393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24396 | { | |
24397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24398 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24399 | |
24400 | wxPyEndAllowThreads(__tstate); | |
24401 | if (PyErr_Occurred()) SWIG_fail; | |
24402 | } | |
c32bde28 | 24403 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24404 | return resultobj; |
24405 | fail: | |
24406 | return NULL; | |
24407 | } | |
24408 | ||
24409 | ||
c32bde28 | 24410 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24411 | PyObject *resultobj; |
24412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24413 | int result; |
d55e5bfc RD |
24414 | PyObject * obj0 = 0 ; |
24415 | char *kwnames[] = { | |
24416 | (char *) "self", NULL | |
24417 | }; | |
24418 | ||
908b74cd | 24419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24422 | { | |
24423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24424 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24425 | |
24426 | wxPyEndAllowThreads(__tstate); | |
24427 | if (PyErr_Occurred()) SWIG_fail; | |
24428 | } | |
c32bde28 | 24429 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24430 | return resultobj; |
24431 | fail: | |
24432 | return NULL; | |
24433 | } | |
24434 | ||
24435 | ||
c32bde28 | 24436 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24437 | PyObject *resultobj; |
24438 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24439 | int result; |
d55e5bfc RD |
24440 | PyObject * obj0 = 0 ; |
24441 | char *kwnames[] = { | |
24442 | (char *) "self", NULL | |
24443 | }; | |
24444 | ||
908b74cd | 24445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24448 | { | |
24449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24450 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24451 | |
24452 | wxPyEndAllowThreads(__tstate); | |
24453 | if (PyErr_Occurred()) SWIG_fail; | |
24454 | } | |
c32bde28 | 24455 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24456 | return resultobj; |
24457 | fail: | |
24458 | return NULL; | |
24459 | } | |
24460 | ||
24461 | ||
c32bde28 | 24462 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24463 | PyObject *resultobj; |
24464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24465 | wxSize *arg2 = 0 ; | |
24466 | wxSize temp2 ; | |
24467 | PyObject * obj0 = 0 ; | |
24468 | PyObject * obj1 = 0 ; | |
24469 | char *kwnames[] = { | |
24470 | (char *) "self",(char *) "size", NULL | |
24471 | }; | |
24472 | ||
24473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24476 | { | |
24477 | arg2 = &temp2; | |
24478 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24479 | } | |
24480 | { | |
24481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24482 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24483 | ||
24484 | wxPyEndAllowThreads(__tstate); | |
24485 | if (PyErr_Occurred()) SWIG_fail; | |
24486 | } | |
24487 | Py_INCREF(Py_None); resultobj = Py_None; | |
24488 | return resultobj; | |
24489 | fail: | |
24490 | return NULL; | |
24491 | } | |
24492 | ||
24493 | ||
c32bde28 | 24494 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24495 | PyObject *resultobj; |
24496 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24497 | int arg2 ; | |
24498 | int arg3 ; | |
24499 | PyObject * obj0 = 0 ; | |
24500 | PyObject * obj1 = 0 ; | |
24501 | PyObject * obj2 = 0 ; | |
24502 | char *kwnames[] = { | |
24503 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24504 | }; | |
24505 | ||
24506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24509 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24510 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24511 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24512 | if (PyErr_Occurred()) SWIG_fail; |
24513 | { | |
24514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24515 | (arg1)->SetVirtualSize(arg2,arg3); | |
24516 | ||
24517 | wxPyEndAllowThreads(__tstate); | |
24518 | if (PyErr_Occurred()) SWIG_fail; | |
24519 | } | |
24520 | Py_INCREF(Py_None); resultobj = Py_None; | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | return NULL; | |
24524 | } | |
24525 | ||
24526 | ||
c32bde28 | 24527 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24528 | PyObject *resultobj; |
24529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24530 | wxSize result; | |
24531 | PyObject * obj0 = 0 ; | |
24532 | char *kwnames[] = { | |
24533 | (char *) "self", NULL | |
24534 | }; | |
24535 | ||
24536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24539 | { | |
24540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24541 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24542 | ||
24543 | wxPyEndAllowThreads(__tstate); | |
24544 | if (PyErr_Occurred()) SWIG_fail; | |
24545 | } | |
24546 | { | |
24547 | wxSize * resultptr; | |
24548 | resultptr = new wxSize((wxSize &) result); | |
24549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24550 | } | |
24551 | return resultobj; | |
24552 | fail: | |
24553 | return NULL; | |
24554 | } | |
24555 | ||
24556 | ||
c32bde28 | 24557 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24558 | PyObject *resultobj; |
24559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24560 | int *arg2 = (int *) 0 ; | |
24561 | int *arg3 = (int *) 0 ; | |
24562 | int temp2 ; | |
c32bde28 | 24563 | int res2 = 0 ; |
d55e5bfc | 24564 | int temp3 ; |
c32bde28 | 24565 | int res3 = 0 ; |
d55e5bfc RD |
24566 | PyObject * obj0 = 0 ; |
24567 | char *kwnames[] = { | |
24568 | (char *) "self", NULL | |
24569 | }; | |
24570 | ||
c32bde28 RD |
24571 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24572 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24576 | { | |
24577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24578 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24579 | ||
24580 | wxPyEndAllowThreads(__tstate); | |
24581 | if (PyErr_Occurred()) SWIG_fail; | |
24582 | } | |
24583 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
24584 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24585 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24586 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24587 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24588 | return resultobj; |
24589 | fail: | |
24590 | return NULL; | |
24591 | } | |
24592 | ||
24593 | ||
c32bde28 | 24594 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24595 | PyObject *resultobj; |
24596 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24597 | wxSize result; | |
24598 | PyObject * obj0 = 0 ; | |
24599 | char *kwnames[] = { | |
24600 | (char *) "self", NULL | |
24601 | }; | |
24602 | ||
24603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24606 | { | |
24607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24608 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24609 | ||
24610 | wxPyEndAllowThreads(__tstate); | |
24611 | if (PyErr_Occurred()) SWIG_fail; | |
24612 | } | |
24613 | { | |
24614 | wxSize * resultptr; | |
24615 | resultptr = new wxSize((wxSize &) result); | |
24616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24617 | } | |
24618 | return resultobj; | |
24619 | fail: | |
24620 | return NULL; | |
24621 | } | |
24622 | ||
24623 | ||
c32bde28 | 24624 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24625 | PyObject *resultobj; |
24626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24627 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24628 | bool result; |
24629 | PyObject * obj0 = 0 ; | |
24630 | PyObject * obj1 = 0 ; | |
24631 | char *kwnames[] = { | |
24632 | (char *) "self",(char *) "show", NULL | |
24633 | }; | |
24634 | ||
24635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24638 | if (obj1) { | |
c32bde28 | 24639 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24640 | if (PyErr_Occurred()) SWIG_fail; |
24641 | } | |
24642 | { | |
24643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24644 | result = (bool)(arg1)->Show(arg2); | |
24645 | ||
24646 | wxPyEndAllowThreads(__tstate); | |
24647 | if (PyErr_Occurred()) SWIG_fail; | |
24648 | } | |
24649 | { | |
24650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24651 | } | |
24652 | return resultobj; | |
24653 | fail: | |
24654 | return NULL; | |
24655 | } | |
24656 | ||
24657 | ||
c32bde28 | 24658 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24659 | PyObject *resultobj; |
24660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24661 | bool result; | |
24662 | PyObject * obj0 = 0 ; | |
24663 | char *kwnames[] = { | |
24664 | (char *) "self", NULL | |
24665 | }; | |
24666 | ||
24667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",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 = (bool)(arg1)->Hide(); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
24677 | { | |
24678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24679 | } | |
24680 | return resultobj; | |
24681 | fail: | |
24682 | return NULL; | |
24683 | } | |
24684 | ||
24685 | ||
c32bde28 | 24686 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24687 | PyObject *resultobj; |
24688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24689 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24690 | bool result; |
24691 | PyObject * obj0 = 0 ; | |
24692 | PyObject * obj1 = 0 ; | |
24693 | char *kwnames[] = { | |
24694 | (char *) "self",(char *) "enable", NULL | |
24695 | }; | |
24696 | ||
24697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24700 | if (obj1) { | |
c32bde28 | 24701 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24702 | if (PyErr_Occurred()) SWIG_fail; |
24703 | } | |
24704 | { | |
24705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24706 | result = (bool)(arg1)->Enable(arg2); | |
24707 | ||
24708 | wxPyEndAllowThreads(__tstate); | |
24709 | if (PyErr_Occurred()) SWIG_fail; | |
24710 | } | |
24711 | { | |
24712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24713 | } | |
24714 | return resultobj; | |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
c32bde28 | 24720 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24721 | PyObject *resultobj; |
24722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24723 | bool result; | |
24724 | PyObject * obj0 = 0 ; | |
24725 | char *kwnames[] = { | |
24726 | (char *) "self", NULL | |
24727 | }; | |
24728 | ||
24729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24732 | { | |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | result = (bool)(arg1)->Disable(); | |
24735 | ||
24736 | wxPyEndAllowThreads(__tstate); | |
24737 | if (PyErr_Occurred()) SWIG_fail; | |
24738 | } | |
24739 | { | |
24740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24741 | } | |
24742 | return resultobj; | |
24743 | fail: | |
24744 | return NULL; | |
24745 | } | |
24746 | ||
24747 | ||
c32bde28 | 24748 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24749 | PyObject *resultobj; |
24750 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24751 | bool result; | |
24752 | PyObject * obj0 = 0 ; | |
24753 | char *kwnames[] = { | |
24754 | (char *) "self", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24760 | { | |
24761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24762 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24763 | ||
24764 | wxPyEndAllowThreads(__tstate); | |
24765 | if (PyErr_Occurred()) SWIG_fail; | |
24766 | } | |
24767 | { | |
24768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24769 | } | |
24770 | return resultobj; | |
24771 | fail: | |
24772 | return NULL; | |
24773 | } | |
24774 | ||
24775 | ||
c32bde28 | 24776 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24777 | PyObject *resultobj; |
24778 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24779 | bool result; | |
24780 | PyObject * obj0 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "self", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24788 | { | |
24789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24790 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24791 | ||
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | { | |
24796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24797 | } | |
24798 | return resultobj; | |
24799 | fail: | |
24800 | return NULL; | |
24801 | } | |
24802 | ||
24803 | ||
c32bde28 | 24804 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24805 | PyObject *resultobj; |
24806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24807 | long arg2 ; | |
24808 | PyObject * obj0 = 0 ; | |
24809 | PyObject * obj1 = 0 ; | |
24810 | char *kwnames[] = { | |
24811 | (char *) "self",(char *) "style", NULL | |
24812 | }; | |
24813 | ||
24814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24817 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24818 | if (PyErr_Occurred()) SWIG_fail; |
24819 | { | |
24820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24821 | (arg1)->SetWindowStyleFlag(arg2); | |
24822 | ||
24823 | wxPyEndAllowThreads(__tstate); | |
24824 | if (PyErr_Occurred()) SWIG_fail; | |
24825 | } | |
24826 | Py_INCREF(Py_None); resultobj = Py_None; | |
24827 | return resultobj; | |
24828 | fail: | |
24829 | return NULL; | |
24830 | } | |
24831 | ||
24832 | ||
c32bde28 | 24833 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24834 | PyObject *resultobj; |
24835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24836 | long result; | |
24837 | PyObject * obj0 = 0 ; | |
24838 | char *kwnames[] = { | |
24839 | (char *) "self", NULL | |
24840 | }; | |
24841 | ||
24842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24845 | { | |
24846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24847 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24848 | ||
24849 | wxPyEndAllowThreads(__tstate); | |
24850 | if (PyErr_Occurred()) SWIG_fail; | |
24851 | } | |
c32bde28 | 24852 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24853 | return resultobj; |
24854 | fail: | |
24855 | return NULL; | |
24856 | } | |
24857 | ||
24858 | ||
c32bde28 | 24859 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24860 | PyObject *resultobj; |
24861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24862 | int arg2 ; | |
24863 | bool result; | |
24864 | PyObject * obj0 = 0 ; | |
24865 | PyObject * obj1 = 0 ; | |
24866 | char *kwnames[] = { | |
24867 | (char *) "self",(char *) "flag", NULL | |
24868 | }; | |
24869 | ||
24870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24873 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24874 | if (PyErr_Occurred()) SWIG_fail; |
24875 | { | |
24876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24877 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24878 | ||
24879 | wxPyEndAllowThreads(__tstate); | |
24880 | if (PyErr_Occurred()) SWIG_fail; | |
24881 | } | |
24882 | { | |
24883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24884 | } | |
24885 | return resultobj; | |
24886 | fail: | |
24887 | return NULL; | |
24888 | } | |
24889 | ||
24890 | ||
c32bde28 | 24891 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24892 | PyObject *resultobj; |
24893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24894 | bool result; | |
24895 | PyObject * obj0 = 0 ; | |
24896 | char *kwnames[] = { | |
24897 | (char *) "self", NULL | |
24898 | }; | |
24899 | ||
24900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24903 | { | |
24904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24905 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24906 | ||
24907 | wxPyEndAllowThreads(__tstate); | |
24908 | if (PyErr_Occurred()) SWIG_fail; | |
24909 | } | |
24910 | { | |
24911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24912 | } | |
24913 | return resultobj; | |
24914 | fail: | |
24915 | return NULL; | |
24916 | } | |
24917 | ||
24918 | ||
c32bde28 | 24919 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24920 | PyObject *resultobj; |
24921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24922 | long arg2 ; | |
24923 | PyObject * obj0 = 0 ; | |
24924 | PyObject * obj1 = 0 ; | |
24925 | char *kwnames[] = { | |
24926 | (char *) "self",(char *) "exStyle", NULL | |
24927 | }; | |
24928 | ||
24929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24932 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24933 | if (PyErr_Occurred()) SWIG_fail; |
24934 | { | |
24935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24936 | (arg1)->SetExtraStyle(arg2); | |
24937 | ||
24938 | wxPyEndAllowThreads(__tstate); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
24941 | Py_INCREF(Py_None); resultobj = Py_None; | |
24942 | return resultobj; | |
24943 | fail: | |
24944 | return NULL; | |
24945 | } | |
24946 | ||
24947 | ||
c32bde28 | 24948 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24949 | PyObject *resultobj; |
24950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24951 | long result; | |
24952 | PyObject * obj0 = 0 ; | |
24953 | char *kwnames[] = { | |
24954 | (char *) "self", NULL | |
24955 | }; | |
24956 | ||
24957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24960 | { | |
24961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24962 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24963 | ||
24964 | wxPyEndAllowThreads(__tstate); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | } | |
c32bde28 | 24967 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24968 | return resultobj; |
24969 | fail: | |
24970 | return NULL; | |
24971 | } | |
24972 | ||
24973 | ||
c32bde28 | 24974 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24975 | PyObject *resultobj; |
24976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24977 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24978 | PyObject * obj0 = 0 ; |
24979 | PyObject * obj1 = 0 ; | |
24980 | char *kwnames[] = { | |
24981 | (char *) "self",(char *) "modal", NULL | |
24982 | }; | |
24983 | ||
24984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24987 | if (obj1) { | |
c32bde28 | 24988 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24989 | if (PyErr_Occurred()) SWIG_fail; |
24990 | } | |
24991 | { | |
24992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24993 | (arg1)->MakeModal(arg2); | |
24994 | ||
24995 | wxPyEndAllowThreads(__tstate); | |
24996 | if (PyErr_Occurred()) SWIG_fail; | |
24997 | } | |
24998 | Py_INCREF(Py_None); resultobj = Py_None; | |
24999 | return resultobj; | |
25000 | fail: | |
25001 | return NULL; | |
25002 | } | |
25003 | ||
25004 | ||
c32bde28 | 25005 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25006 | PyObject *resultobj; |
25007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25008 | bool arg2 ; | |
25009 | PyObject * obj0 = 0 ; | |
25010 | PyObject * obj1 = 0 ; | |
25011 | char *kwnames[] = { | |
25012 | (char *) "self",(char *) "enableTheme", NULL | |
25013 | }; | |
25014 | ||
25015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
25016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25018 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25019 | if (PyErr_Occurred()) SWIG_fail; |
25020 | { | |
25021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25022 | (arg1)->SetThemeEnabled(arg2); | |
25023 | ||
25024 | wxPyEndAllowThreads(__tstate); | |
25025 | if (PyErr_Occurred()) SWIG_fail; | |
25026 | } | |
25027 | Py_INCREF(Py_None); resultobj = Py_None; | |
25028 | return resultobj; | |
25029 | fail: | |
25030 | return NULL; | |
25031 | } | |
25032 | ||
25033 | ||
c32bde28 | 25034 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25035 | PyObject *resultobj; |
25036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25037 | bool result; | |
25038 | PyObject * obj0 = 0 ; | |
25039 | char *kwnames[] = { | |
25040 | (char *) "self", NULL | |
25041 | }; | |
25042 | ||
25043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
25044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25046 | { | |
25047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25048 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
25049 | ||
25050 | wxPyEndAllowThreads(__tstate); | |
25051 | if (PyErr_Occurred()) SWIG_fail; | |
25052 | } | |
25053 | { | |
25054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25055 | } | |
25056 | return resultobj; | |
25057 | fail: | |
25058 | return NULL; | |
25059 | } | |
25060 | ||
25061 | ||
c32bde28 | 25062 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25063 | PyObject *resultobj; |
25064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25065 | PyObject * obj0 = 0 ; | |
25066 | char *kwnames[] = { | |
25067 | (char *) "self", NULL | |
25068 | }; | |
25069 | ||
25070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
25071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25073 | { | |
25074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25075 | (arg1)->SetFocus(); | |
25076 | ||
25077 | wxPyEndAllowThreads(__tstate); | |
25078 | if (PyErr_Occurred()) SWIG_fail; | |
25079 | } | |
25080 | Py_INCREF(Py_None); resultobj = Py_None; | |
25081 | return resultobj; | |
25082 | fail: | |
25083 | return NULL; | |
25084 | } | |
25085 | ||
25086 | ||
c32bde28 | 25087 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25088 | PyObject *resultobj; |
25089 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25090 | PyObject * obj0 = 0 ; | |
25091 | char *kwnames[] = { | |
25092 | (char *) "self", NULL | |
25093 | }; | |
25094 | ||
25095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
25096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25098 | { | |
25099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25100 | (arg1)->SetFocusFromKbd(); | |
25101 | ||
25102 | wxPyEndAllowThreads(__tstate); | |
25103 | if (PyErr_Occurred()) SWIG_fail; | |
25104 | } | |
25105 | Py_INCREF(Py_None); resultobj = Py_None; | |
25106 | return resultobj; | |
25107 | fail: | |
25108 | return NULL; | |
25109 | } | |
25110 | ||
25111 | ||
c32bde28 | 25112 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25113 | PyObject *resultobj; |
25114 | wxWindow *result; | |
25115 | char *kwnames[] = { | |
25116 | NULL | |
25117 | }; | |
25118 | ||
25119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
25120 | { | |
0439c23b | 25121 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25123 | result = (wxWindow *)wxWindow::FindFocus(); | |
25124 | ||
25125 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25126 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25127 | } |
25128 | { | |
412d302d | 25129 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25130 | } |
25131 | return resultobj; | |
25132 | fail: | |
25133 | return NULL; | |
25134 | } | |
25135 | ||
25136 | ||
c32bde28 | 25137 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25138 | PyObject *resultobj; |
25139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25140 | bool result; | |
25141 | PyObject * obj0 = 0 ; | |
25142 | char *kwnames[] = { | |
25143 | (char *) "self", NULL | |
25144 | }; | |
25145 | ||
25146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
25147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25149 | { | |
25150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25151 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
25152 | ||
25153 | wxPyEndAllowThreads(__tstate); | |
25154 | if (PyErr_Occurred()) SWIG_fail; | |
25155 | } | |
25156 | { | |
25157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25158 | } | |
25159 | return resultobj; | |
25160 | fail: | |
25161 | return NULL; | |
25162 | } | |
25163 | ||
25164 | ||
c32bde28 | 25165 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25166 | PyObject *resultobj; |
25167 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25168 | bool result; | |
25169 | PyObject * obj0 = 0 ; | |
25170 | char *kwnames[] = { | |
25171 | (char *) "self", NULL | |
25172 | }; | |
25173 | ||
25174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
25175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25177 | { | |
25178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25179 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
25180 | ||
25181 | wxPyEndAllowThreads(__tstate); | |
25182 | if (PyErr_Occurred()) SWIG_fail; | |
25183 | } | |
25184 | { | |
25185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25186 | } | |
25187 | return resultobj; | |
25188 | fail: | |
25189 | return NULL; | |
25190 | } | |
25191 | ||
25192 | ||
c32bde28 | 25193 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25194 | PyObject *resultobj; |
25195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25196 | wxWindow *result; | |
25197 | PyObject * obj0 = 0 ; | |
25198 | char *kwnames[] = { | |
25199 | (char *) "self", NULL | |
25200 | }; | |
25201 | ||
25202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
25203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25205 | { | |
25206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25207 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
25208 | ||
25209 | wxPyEndAllowThreads(__tstate); | |
25210 | if (PyErr_Occurred()) SWIG_fail; | |
25211 | } | |
25212 | { | |
412d302d | 25213 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25214 | } |
25215 | return resultobj; | |
25216 | fail: | |
25217 | return NULL; | |
25218 | } | |
25219 | ||
25220 | ||
c32bde28 | 25221 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25222 | PyObject *resultobj; |
25223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25224 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25225 | wxWindow *result; | |
25226 | PyObject * obj0 = 0 ; | |
25227 | PyObject * obj1 = 0 ; | |
25228 | char *kwnames[] = { | |
25229 | (char *) "self",(char *) "child", NULL | |
25230 | }; | |
25231 | ||
25232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25237 | { | |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
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_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25254 | PyObject *resultobj; |
25255 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25256 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25257 | PyObject * obj0 = 0 ; | |
25258 | PyObject * obj1 = 0 ; | |
25259 | char *kwnames[] = { | |
25260 | (char *) "self",(char *) "win", NULL | |
25261 | }; | |
25262 | ||
25263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25266 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25268 | { | |
25269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25270 | (arg1)->SetTmpDefaultItem(arg2); | |
25271 | ||
25272 | wxPyEndAllowThreads(__tstate); | |
25273 | if (PyErr_Occurred()) SWIG_fail; | |
25274 | } | |
25275 | Py_INCREF(Py_None); resultobj = Py_None; | |
25276 | return resultobj; | |
25277 | fail: | |
25278 | return NULL; | |
25279 | } | |
25280 | ||
25281 | ||
c32bde28 | 25282 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
25283 | PyObject *resultobj; |
25284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25285 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
25286 | bool result; | |
25287 | PyObject * obj0 = 0 ; | |
25288 | PyObject * obj1 = 0 ; | |
25289 | char *kwnames[] = { | |
25290 | (char *) "self",(char *) "flags", NULL | |
25291 | }; | |
25292 | ||
25293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
25294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25296 | if (obj1) { | |
c32bde28 | 25297 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
25298 | if (PyErr_Occurred()) SWIG_fail; |
25299 | } | |
25300 | { | |
25301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25302 | result = (bool)(arg1)->Navigate(arg2); | |
25303 | ||
25304 | wxPyEndAllowThreads(__tstate); | |
25305 | if (PyErr_Occurred()) SWIG_fail; | |
25306 | } | |
25307 | { | |
25308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25309 | } | |
25310 | return resultobj; | |
25311 | fail: | |
25312 | return NULL; | |
25313 | } | |
25314 | ||
25315 | ||
c32bde28 | 25316 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25317 | PyObject *resultobj; |
25318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25319 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25320 | PyObject * obj0 = 0 ; | |
25321 | PyObject * obj1 = 0 ; | |
25322 | char *kwnames[] = { | |
25323 | (char *) "self",(char *) "win", NULL | |
25324 | }; | |
25325 | ||
25326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25331 | { | |
25332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25333 | (arg1)->MoveAfterInTabOrder(arg2); | |
25334 | ||
25335 | wxPyEndAllowThreads(__tstate); | |
25336 | if (PyErr_Occurred()) SWIG_fail; | |
25337 | } | |
25338 | Py_INCREF(Py_None); resultobj = Py_None; | |
25339 | return resultobj; | |
25340 | fail: | |
25341 | return NULL; | |
25342 | } | |
25343 | ||
25344 | ||
c32bde28 | 25345 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25346 | PyObject *resultobj; |
25347 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25348 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25349 | PyObject * obj0 = 0 ; | |
25350 | PyObject * obj1 = 0 ; | |
25351 | char *kwnames[] = { | |
25352 | (char *) "self",(char *) "win", NULL | |
25353 | }; | |
25354 | ||
25355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25360 | { | |
25361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25362 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25363 | ||
25364 | wxPyEndAllowThreads(__tstate); | |
25365 | if (PyErr_Occurred()) SWIG_fail; | |
25366 | } | |
25367 | Py_INCREF(Py_None); resultobj = Py_None; | |
25368 | return resultobj; | |
25369 | fail: | |
25370 | return NULL; | |
25371 | } | |
25372 | ||
25373 | ||
c32bde28 | 25374 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25375 | PyObject *resultobj; |
25376 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25377 | PyObject *result; | |
25378 | PyObject * obj0 = 0 ; | |
25379 | char *kwnames[] = { | |
25380 | (char *) "self", NULL | |
25381 | }; | |
25382 | ||
25383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25386 | { | |
25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25388 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25389 | ||
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
25393 | resultobj = result; | |
25394 | return resultobj; | |
25395 | fail: | |
25396 | return NULL; | |
25397 | } | |
25398 | ||
25399 | ||
c32bde28 | 25400 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25401 | PyObject *resultobj; |
25402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25403 | wxWindow *result; | |
25404 | PyObject * obj0 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25412 | { | |
25413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25414 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25415 | ||
25416 | wxPyEndAllowThreads(__tstate); | |
25417 | if (PyErr_Occurred()) SWIG_fail; | |
25418 | } | |
25419 | { | |
412d302d | 25420 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25421 | } |
25422 | return resultobj; | |
25423 | fail: | |
25424 | return NULL; | |
25425 | } | |
25426 | ||
25427 | ||
c32bde28 | 25428 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25429 | PyObject *resultobj; |
25430 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25431 | wxWindow *result; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | char *kwnames[] = { | |
25434 | (char *) "self", NULL | |
25435 | }; | |
25436 | ||
25437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25440 | { | |
25441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25442 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25443 | ||
25444 | wxPyEndAllowThreads(__tstate); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
25447 | { | |
412d302d | 25448 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25449 | } |
25450 | return resultobj; | |
25451 | fail: | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
c32bde28 | 25456 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25457 | PyObject *resultobj; |
25458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25459 | bool result; | |
25460 | PyObject * obj0 = 0 ; | |
25461 | char *kwnames[] = { | |
25462 | (char *) "self", NULL | |
25463 | }; | |
25464 | ||
25465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25468 | { | |
25469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25470 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25471 | ||
25472 | wxPyEndAllowThreads(__tstate); | |
25473 | if (PyErr_Occurred()) SWIG_fail; | |
25474 | } | |
25475 | { | |
25476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25477 | } | |
25478 | return resultobj; | |
25479 | fail: | |
25480 | return NULL; | |
25481 | } | |
25482 | ||
25483 | ||
c32bde28 | 25484 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25485 | PyObject *resultobj; |
25486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25487 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25488 | bool result; | |
25489 | PyObject * obj0 = 0 ; | |
25490 | PyObject * obj1 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self",(char *) "newParent", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25500 | { | |
25501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25502 | result = (bool)(arg1)->Reparent(arg2); | |
25503 | ||
25504 | wxPyEndAllowThreads(__tstate); | |
25505 | if (PyErr_Occurred()) SWIG_fail; | |
25506 | } | |
25507 | { | |
25508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25509 | } | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
c32bde28 | 25516 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25517 | PyObject *resultobj; |
25518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25519 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25520 | PyObject * obj0 = 0 ; | |
25521 | PyObject * obj1 = 0 ; | |
25522 | char *kwnames[] = { | |
25523 | (char *) "self",(char *) "child", NULL | |
25524 | }; | |
25525 | ||
25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25531 | { | |
25532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25533 | (arg1)->AddChild(arg2); | |
25534 | ||
25535 | wxPyEndAllowThreads(__tstate); | |
25536 | if (PyErr_Occurred()) SWIG_fail; | |
25537 | } | |
25538 | Py_INCREF(Py_None); resultobj = Py_None; | |
25539 | return resultobj; | |
25540 | fail: | |
25541 | return NULL; | |
25542 | } | |
25543 | ||
25544 | ||
c32bde28 | 25545 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25546 | PyObject *resultobj; |
25547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25548 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25549 | PyObject * obj0 = 0 ; | |
25550 | PyObject * obj1 = 0 ; | |
25551 | char *kwnames[] = { | |
25552 | (char *) "self",(char *) "child", NULL | |
25553 | }; | |
25554 | ||
25555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25560 | { | |
25561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25562 | (arg1)->RemoveChild(arg2); | |
25563 | ||
25564 | wxPyEndAllowThreads(__tstate); | |
25565 | if (PyErr_Occurred()) SWIG_fail; | |
25566 | } | |
25567 | Py_INCREF(Py_None); resultobj = Py_None; | |
25568 | return resultobj; | |
25569 | fail: | |
25570 | return NULL; | |
25571 | } | |
25572 | ||
25573 | ||
c32bde28 | 25574 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25575 | PyObject *resultobj; |
25576 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25577 | long arg2 ; | |
25578 | wxWindow *result; | |
25579 | PyObject * obj0 = 0 ; | |
25580 | PyObject * obj1 = 0 ; | |
25581 | char *kwnames[] = { | |
25582 | (char *) "self",(char *) "winid", NULL | |
25583 | }; | |
25584 | ||
25585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25588 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25589 | if (PyErr_Occurred()) SWIG_fail; |
25590 | { | |
25591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25592 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25593 | ||
25594 | wxPyEndAllowThreads(__tstate); | |
25595 | if (PyErr_Occurred()) SWIG_fail; | |
25596 | } | |
25597 | { | |
412d302d | 25598 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25599 | } |
25600 | return resultobj; | |
25601 | fail: | |
25602 | return NULL; | |
25603 | } | |
25604 | ||
25605 | ||
c32bde28 | 25606 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25607 | PyObject *resultobj; |
25608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25609 | wxString *arg2 = 0 ; | |
25610 | wxWindow *result; | |
ae8162c8 | 25611 | bool temp2 = false ; |
d55e5bfc RD |
25612 | PyObject * obj0 = 0 ; |
25613 | PyObject * obj1 = 0 ; | |
25614 | char *kwnames[] = { | |
25615 | (char *) "self",(char *) "name", NULL | |
25616 | }; | |
25617 | ||
25618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25621 | { | |
25622 | arg2 = wxString_in_helper(obj1); | |
25623 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25624 | temp2 = true; |
d55e5bfc RD |
25625 | } |
25626 | { | |
25627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25628 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25629 | ||
25630 | wxPyEndAllowThreads(__tstate); | |
25631 | if (PyErr_Occurred()) SWIG_fail; | |
25632 | } | |
25633 | { | |
412d302d | 25634 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25635 | } |
25636 | { | |
25637 | if (temp2) | |
25638 | delete arg2; | |
25639 | } | |
25640 | return resultobj; | |
25641 | fail: | |
25642 | { | |
25643 | if (temp2) | |
25644 | delete arg2; | |
25645 | } | |
25646 | return NULL; | |
25647 | } | |
25648 | ||
25649 | ||
c32bde28 | 25650 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25651 | PyObject *resultobj; |
25652 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25653 | wxEvtHandler *result; | |
25654 | PyObject * obj0 = 0 ; | |
25655 | char *kwnames[] = { | |
25656 | (char *) "self", NULL | |
25657 | }; | |
25658 | ||
25659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25662 | { | |
25663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25664 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25665 | ||
25666 | wxPyEndAllowThreads(__tstate); | |
25667 | if (PyErr_Occurred()) SWIG_fail; | |
25668 | } | |
25669 | { | |
412d302d | 25670 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25671 | } |
25672 | return resultobj; | |
25673 | fail: | |
25674 | return NULL; | |
25675 | } | |
25676 | ||
25677 | ||
c32bde28 | 25678 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25679 | PyObject *resultobj; |
25680 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25681 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25682 | PyObject * obj0 = 0 ; | |
25683 | PyObject * obj1 = 0 ; | |
25684 | char *kwnames[] = { | |
25685 | (char *) "self",(char *) "handler", NULL | |
25686 | }; | |
25687 | ||
25688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25693 | { | |
25694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25695 | (arg1)->SetEventHandler(arg2); | |
25696 | ||
25697 | wxPyEndAllowThreads(__tstate); | |
25698 | if (PyErr_Occurred()) SWIG_fail; | |
25699 | } | |
25700 | Py_INCREF(Py_None); resultobj = Py_None; | |
25701 | return resultobj; | |
25702 | fail: | |
25703 | return NULL; | |
25704 | } | |
25705 | ||
25706 | ||
c32bde28 | 25707 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25708 | PyObject *resultobj; |
25709 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25710 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25711 | PyObject * obj0 = 0 ; | |
25712 | PyObject * obj1 = 0 ; | |
25713 | char *kwnames[] = { | |
25714 | (char *) "self",(char *) "handler", NULL | |
25715 | }; | |
25716 | ||
25717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25722 | { | |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | (arg1)->PushEventHandler(arg2); | |
25725 | ||
25726 | wxPyEndAllowThreads(__tstate); | |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
25729 | Py_INCREF(Py_None); resultobj = Py_None; | |
25730 | return resultobj; | |
25731 | fail: | |
25732 | return NULL; | |
25733 | } | |
25734 | ||
25735 | ||
c32bde28 | 25736 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25737 | PyObject *resultobj; |
25738 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25739 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25740 | wxEvtHandler *result; |
25741 | PyObject * obj0 = 0 ; | |
25742 | PyObject * obj1 = 0 ; | |
25743 | char *kwnames[] = { | |
25744 | (char *) "self",(char *) "deleteHandler", NULL | |
25745 | }; | |
25746 | ||
25747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25750 | if (obj1) { | |
c32bde28 | 25751 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25752 | if (PyErr_Occurred()) SWIG_fail; |
25753 | } | |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25757 | ||
25758 | wxPyEndAllowThreads(__tstate); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | } | |
25761 | { | |
412d302d | 25762 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25763 | } |
25764 | return resultobj; | |
25765 | fail: | |
25766 | return NULL; | |
25767 | } | |
25768 | ||
25769 | ||
c32bde28 | 25770 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25771 | PyObject *resultobj; |
25772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25773 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25774 | bool result; | |
25775 | PyObject * obj0 = 0 ; | |
25776 | PyObject * obj1 = 0 ; | |
25777 | char *kwnames[] = { | |
25778 | (char *) "self",(char *) "handler", NULL | |
25779 | }; | |
25780 | ||
25781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25784 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25786 | { | |
25787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25788 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25789 | ||
25790 | wxPyEndAllowThreads(__tstate); | |
25791 | if (PyErr_Occurred()) SWIG_fail; | |
25792 | } | |
25793 | { | |
25794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25795 | } | |
25796 | return resultobj; | |
25797 | fail: | |
25798 | return NULL; | |
25799 | } | |
25800 | ||
25801 | ||
c32bde28 | 25802 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25803 | PyObject *resultobj; |
25804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25805 | wxValidator *arg2 = 0 ; | |
25806 | PyObject * obj0 = 0 ; | |
25807 | PyObject * obj1 = 0 ; | |
25808 | char *kwnames[] = { | |
25809 | (char *) "self",(char *) "validator", NULL | |
25810 | }; | |
25811 | ||
25812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25817 | SWIG_fail; | |
25818 | if (arg2 == NULL) { | |
25819 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25820 | SWIG_fail; | |
25821 | } | |
25822 | { | |
25823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25824 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25825 | ||
25826 | wxPyEndAllowThreads(__tstate); | |
25827 | if (PyErr_Occurred()) SWIG_fail; | |
25828 | } | |
25829 | Py_INCREF(Py_None); resultobj = Py_None; | |
25830 | return resultobj; | |
25831 | fail: | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
c32bde28 | 25836 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25837 | PyObject *resultobj; |
25838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25839 | wxValidator *result; | |
25840 | PyObject * obj0 = 0 ; | |
25841 | char *kwnames[] = { | |
25842 | (char *) "self", NULL | |
25843 | }; | |
25844 | ||
25845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25848 | { | |
25849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25850 | result = (wxValidator *)(arg1)->GetValidator(); | |
25851 | ||
25852 | wxPyEndAllowThreads(__tstate); | |
25853 | if (PyErr_Occurred()) SWIG_fail; | |
25854 | } | |
25855 | { | |
412d302d | 25856 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25857 | } |
25858 | return resultobj; | |
25859 | fail: | |
25860 | return NULL; | |
25861 | } | |
25862 | ||
25863 | ||
c32bde28 | 25864 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25865 | PyObject *resultobj; |
25866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25867 | bool result; | |
25868 | PyObject * obj0 = 0 ; | |
25869 | char *kwnames[] = { | |
25870 | (char *) "self", NULL | |
25871 | }; | |
25872 | ||
25873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25876 | { | |
25877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25878 | result = (bool)(arg1)->Validate(); | |
25879 | ||
25880 | wxPyEndAllowThreads(__tstate); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
25882 | } | |
25883 | { | |
25884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25885 | } | |
25886 | return resultobj; | |
25887 | fail: | |
25888 | return NULL; | |
25889 | } | |
25890 | ||
25891 | ||
c32bde28 | 25892 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25893 | PyObject *resultobj; |
25894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25895 | bool result; | |
25896 | PyObject * obj0 = 0 ; | |
25897 | char *kwnames[] = { | |
25898 | (char *) "self", NULL | |
25899 | }; | |
25900 | ||
25901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25904 | { | |
25905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25906 | result = (bool)(arg1)->TransferDataToWindow(); | |
25907 | ||
25908 | wxPyEndAllowThreads(__tstate); | |
25909 | if (PyErr_Occurred()) SWIG_fail; | |
25910 | } | |
25911 | { | |
25912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25913 | } | |
25914 | return resultobj; | |
25915 | fail: | |
25916 | return NULL; | |
25917 | } | |
25918 | ||
25919 | ||
c32bde28 | 25920 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25921 | PyObject *resultobj; |
25922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25923 | bool result; | |
25924 | PyObject * obj0 = 0 ; | |
25925 | char *kwnames[] = { | |
25926 | (char *) "self", NULL | |
25927 | }; | |
25928 | ||
25929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25932 | { | |
25933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25934 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25935 | ||
25936 | wxPyEndAllowThreads(__tstate); | |
25937 | if (PyErr_Occurred()) SWIG_fail; | |
25938 | } | |
25939 | { | |
25940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25941 | } | |
25942 | return resultobj; | |
25943 | fail: | |
25944 | return NULL; | |
25945 | } | |
25946 | ||
25947 | ||
c32bde28 | 25948 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25949 | PyObject *resultobj; |
25950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25951 | PyObject * obj0 = 0 ; | |
25952 | char *kwnames[] = { | |
25953 | (char *) "self", NULL | |
25954 | }; | |
25955 | ||
25956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25959 | { | |
25960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25961 | (arg1)->InitDialog(); | |
25962 | ||
25963 | wxPyEndAllowThreads(__tstate); | |
25964 | if (PyErr_Occurred()) SWIG_fail; | |
25965 | } | |
25966 | Py_INCREF(Py_None); resultobj = Py_None; | |
25967 | return resultobj; | |
25968 | fail: | |
25969 | return NULL; | |
25970 | } | |
25971 | ||
25972 | ||
c32bde28 | 25973 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25974 | PyObject *resultobj; |
25975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25976 | wxAcceleratorTable *arg2 = 0 ; | |
25977 | PyObject * obj0 = 0 ; | |
25978 | PyObject * obj1 = 0 ; | |
25979 | char *kwnames[] = { | |
25980 | (char *) "self",(char *) "accel", NULL | |
25981 | }; | |
25982 | ||
25983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25988 | SWIG_fail; | |
25989 | if (arg2 == NULL) { | |
25990 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25991 | SWIG_fail; | |
25992 | } | |
25993 | { | |
25994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25995 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25996 | ||
25997 | wxPyEndAllowThreads(__tstate); | |
25998 | if (PyErr_Occurred()) SWIG_fail; | |
25999 | } | |
26000 | Py_INCREF(Py_None); resultobj = Py_None; | |
26001 | return resultobj; | |
26002 | fail: | |
26003 | return NULL; | |
26004 | } | |
26005 | ||
26006 | ||
c32bde28 | 26007 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26008 | PyObject *resultobj; |
26009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26010 | wxAcceleratorTable *result; | |
26011 | PyObject * obj0 = 0 ; | |
26012 | char *kwnames[] = { | |
26013 | (char *) "self", NULL | |
26014 | }; | |
26015 | ||
26016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
26017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26019 | { | |
26020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26021 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
26022 | ||
26023 | wxPyEndAllowThreads(__tstate); | |
26024 | if (PyErr_Occurred()) SWIG_fail; | |
26025 | } | |
26026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
26027 | return resultobj; | |
26028 | fail: | |
26029 | return NULL; | |
26030 | } | |
26031 | ||
26032 | ||
c32bde28 | 26033 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26034 | PyObject *resultobj; |
26035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26036 | int arg2 ; | |
26037 | int arg3 ; | |
26038 | int arg4 ; | |
26039 | bool result; | |
26040 | PyObject * obj0 = 0 ; | |
26041 | PyObject * obj1 = 0 ; | |
26042 | PyObject * obj2 = 0 ; | |
26043 | PyObject * obj3 = 0 ; | |
26044 | char *kwnames[] = { | |
26045 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
26046 | }; | |
26047 | ||
26048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26051 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26052 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26053 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26054 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26055 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26056 | if (PyErr_Occurred()) SWIG_fail; |
26057 | { | |
26058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26059 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
26060 | ||
26061 | wxPyEndAllowThreads(__tstate); | |
26062 | if (PyErr_Occurred()) SWIG_fail; | |
26063 | } | |
26064 | { | |
26065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26066 | } | |
26067 | return resultobj; | |
26068 | fail: | |
26069 | return NULL; | |
26070 | } | |
26071 | ||
26072 | ||
c32bde28 | 26073 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26074 | PyObject *resultobj; |
26075 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26076 | int arg2 ; | |
26077 | bool result; | |
26078 | PyObject * obj0 = 0 ; | |
26079 | PyObject * obj1 = 0 ; | |
26080 | char *kwnames[] = { | |
26081 | (char *) "self",(char *) "hotkeyId", NULL | |
26082 | }; | |
26083 | ||
26084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
26085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26087 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26088 | if (PyErr_Occurred()) SWIG_fail; |
26089 | { | |
26090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26091 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
26092 | ||
26093 | wxPyEndAllowThreads(__tstate); | |
26094 | if (PyErr_Occurred()) SWIG_fail; | |
26095 | } | |
26096 | { | |
26097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26098 | } | |
26099 | return resultobj; | |
26100 | fail: | |
26101 | return NULL; | |
26102 | } | |
26103 | ||
26104 | ||
c32bde28 | 26105 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26106 | PyObject *resultobj; |
26107 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26108 | wxPoint *arg2 = 0 ; | |
26109 | wxPoint result; | |
26110 | wxPoint temp2 ; | |
26111 | PyObject * obj0 = 0 ; | |
26112 | PyObject * obj1 = 0 ; | |
26113 | char *kwnames[] = { | |
26114 | (char *) "self",(char *) "pt", NULL | |
26115 | }; | |
26116 | ||
26117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
26118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26120 | { | |
26121 | arg2 = &temp2; | |
26122 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26123 | } | |
26124 | { | |
26125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26126 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26127 | ||
26128 | wxPyEndAllowThreads(__tstate); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
26130 | } | |
26131 | { | |
26132 | wxPoint * resultptr; | |
26133 | resultptr = new wxPoint((wxPoint &) result); | |
26134 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26135 | } | |
26136 | return resultobj; | |
26137 | fail: | |
26138 | return NULL; | |
26139 | } | |
26140 | ||
26141 | ||
c32bde28 | 26142 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26143 | PyObject *resultobj; |
26144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26145 | wxSize *arg2 = 0 ; | |
26146 | wxSize result; | |
26147 | wxSize temp2 ; | |
26148 | PyObject * obj0 = 0 ; | |
26149 | PyObject * obj1 = 0 ; | |
26150 | char *kwnames[] = { | |
26151 | (char *) "self",(char *) "sz", NULL | |
26152 | }; | |
26153 | ||
26154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
26155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26157 | { | |
26158 | arg2 = &temp2; | |
26159 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26160 | } | |
26161 | { | |
26162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26163 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26164 | ||
26165 | wxPyEndAllowThreads(__tstate); | |
26166 | if (PyErr_Occurred()) SWIG_fail; | |
26167 | } | |
26168 | { | |
26169 | wxSize * resultptr; | |
26170 | resultptr = new wxSize((wxSize &) result); | |
26171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26172 | } | |
26173 | return resultobj; | |
26174 | fail: | |
26175 | return NULL; | |
26176 | } | |
26177 | ||
26178 | ||
c32bde28 | 26179 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26180 | PyObject *resultobj; |
26181 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26182 | wxPoint *arg2 = 0 ; | |
26183 | wxPoint result; | |
26184 | wxPoint temp2 ; | |
26185 | PyObject * obj0 = 0 ; | |
26186 | PyObject * obj1 = 0 ; | |
26187 | char *kwnames[] = { | |
26188 | (char *) "self",(char *) "pt", NULL | |
26189 | }; | |
26190 | ||
26191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
26192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26194 | { | |
26195 | arg2 = &temp2; | |
26196 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26197 | } | |
26198 | { | |
26199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26200 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26201 | ||
26202 | wxPyEndAllowThreads(__tstate); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
26204 | } | |
26205 | { | |
26206 | wxPoint * resultptr; | |
26207 | resultptr = new wxPoint((wxPoint &) result); | |
26208 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26209 | } | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
c32bde28 | 26216 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26217 | PyObject *resultobj; |
26218 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26219 | wxSize *arg2 = 0 ; | |
26220 | wxSize result; | |
26221 | wxSize temp2 ; | |
26222 | PyObject * obj0 = 0 ; | |
26223 | PyObject * obj1 = 0 ; | |
26224 | char *kwnames[] = { | |
26225 | (char *) "self",(char *) "sz", NULL | |
26226 | }; | |
26227 | ||
26228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
26229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26231 | { | |
26232 | arg2 = &temp2; | |
26233 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26234 | } | |
26235 | { | |
26236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26237 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26238 | ||
26239 | wxPyEndAllowThreads(__tstate); | |
26240 | if (PyErr_Occurred()) SWIG_fail; | |
26241 | } | |
26242 | { | |
26243 | wxSize * resultptr; | |
26244 | resultptr = new wxSize((wxSize &) result); | |
26245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26246 | } | |
26247 | return resultobj; | |
26248 | fail: | |
26249 | return NULL; | |
26250 | } | |
26251 | ||
26252 | ||
c32bde28 | 26253 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26254 | PyObject *resultobj; |
26255 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26256 | wxPoint *arg2 = 0 ; | |
26257 | wxPoint result; | |
26258 | wxPoint temp2 ; | |
26259 | PyObject * obj0 = 0 ; | |
26260 | PyObject * obj1 = 0 ; | |
26261 | char *kwnames[] = { | |
26262 | (char *) "self",(char *) "pt", NULL | |
26263 | }; | |
26264 | ||
26265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26268 | { | |
26269 | arg2 = &temp2; | |
26270 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26271 | } | |
26272 | { | |
26273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26274 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
26275 | ||
26276 | wxPyEndAllowThreads(__tstate); | |
26277 | if (PyErr_Occurred()) SWIG_fail; | |
26278 | } | |
26279 | { | |
26280 | wxPoint * resultptr; | |
26281 | resultptr = new wxPoint((wxPoint &) result); | |
26282 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26283 | } | |
26284 | return resultobj; | |
26285 | fail: | |
26286 | return NULL; | |
26287 | } | |
26288 | ||
26289 | ||
c32bde28 | 26290 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26291 | PyObject *resultobj; |
26292 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26293 | wxSize *arg2 = 0 ; | |
26294 | wxSize result; | |
26295 | wxSize temp2 ; | |
26296 | PyObject * obj0 = 0 ; | |
26297 | PyObject * obj1 = 0 ; | |
26298 | char *kwnames[] = { | |
26299 | (char *) "self",(char *) "sz", NULL | |
26300 | }; | |
26301 | ||
26302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26305 | { | |
26306 | arg2 = &temp2; | |
26307 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26308 | } | |
26309 | { | |
26310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26311 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26312 | ||
26313 | wxPyEndAllowThreads(__tstate); | |
26314 | if (PyErr_Occurred()) SWIG_fail; | |
26315 | } | |
26316 | { | |
26317 | wxSize * resultptr; | |
26318 | resultptr = new wxSize((wxSize &) result); | |
26319 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26320 | } | |
26321 | return resultobj; | |
26322 | fail: | |
26323 | return NULL; | |
26324 | } | |
26325 | ||
26326 | ||
c32bde28 | 26327 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26328 | PyObject *resultobj; |
26329 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26330 | int arg2 ; | |
26331 | int arg3 ; | |
26332 | PyObject * obj0 = 0 ; | |
26333 | PyObject * obj1 = 0 ; | |
26334 | PyObject * obj2 = 0 ; | |
26335 | char *kwnames[] = { | |
26336 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26337 | }; | |
26338 | ||
26339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26342 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26343 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26344 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26345 | if (PyErr_Occurred()) SWIG_fail; |
26346 | { | |
26347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26348 | (arg1)->WarpPointer(arg2,arg3); | |
26349 | ||
26350 | wxPyEndAllowThreads(__tstate); | |
26351 | if (PyErr_Occurred()) SWIG_fail; | |
26352 | } | |
26353 | Py_INCREF(Py_None); resultobj = Py_None; | |
26354 | return resultobj; | |
26355 | fail: | |
26356 | return NULL; | |
26357 | } | |
26358 | ||
26359 | ||
c32bde28 | 26360 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26361 | PyObject *resultobj; |
26362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26363 | PyObject * obj0 = 0 ; | |
26364 | char *kwnames[] = { | |
26365 | (char *) "self", NULL | |
26366 | }; | |
26367 | ||
26368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26371 | { | |
26372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26373 | (arg1)->CaptureMouse(); | |
26374 | ||
26375 | wxPyEndAllowThreads(__tstate); | |
26376 | if (PyErr_Occurred()) SWIG_fail; | |
26377 | } | |
26378 | Py_INCREF(Py_None); resultobj = Py_None; | |
26379 | return resultobj; | |
26380 | fail: | |
26381 | return NULL; | |
26382 | } | |
26383 | ||
26384 | ||
c32bde28 | 26385 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26386 | PyObject *resultobj; |
26387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26388 | PyObject * obj0 = 0 ; | |
26389 | char *kwnames[] = { | |
26390 | (char *) "self", NULL | |
26391 | }; | |
26392 | ||
26393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26396 | { | |
26397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26398 | (arg1)->ReleaseMouse(); | |
26399 | ||
26400 | wxPyEndAllowThreads(__tstate); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
26403 | Py_INCREF(Py_None); resultobj = Py_None; | |
26404 | return resultobj; | |
26405 | fail: | |
26406 | return NULL; | |
26407 | } | |
26408 | ||
26409 | ||
c32bde28 | 26410 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26411 | PyObject *resultobj; |
26412 | wxWindow *result; | |
26413 | char *kwnames[] = { | |
26414 | NULL | |
26415 | }; | |
26416 | ||
26417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26418 | { | |
0439c23b | 26419 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26421 | result = (wxWindow *)wxWindow::GetCapture(); | |
26422 | ||
26423 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26424 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26425 | } |
26426 | { | |
412d302d | 26427 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26428 | } |
26429 | return resultobj; | |
26430 | fail: | |
26431 | return NULL; | |
26432 | } | |
26433 | ||
26434 | ||
c32bde28 | 26435 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26436 | PyObject *resultobj; |
26437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26438 | bool result; | |
26439 | PyObject * obj0 = 0 ; | |
26440 | char *kwnames[] = { | |
26441 | (char *) "self", NULL | |
26442 | }; | |
26443 | ||
26444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26447 | { | |
26448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26449 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26450 | ||
26451 | wxPyEndAllowThreads(__tstate); | |
26452 | if (PyErr_Occurred()) SWIG_fail; | |
26453 | } | |
26454 | { | |
26455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26456 | } | |
26457 | return resultobj; | |
26458 | fail: | |
26459 | return NULL; | |
26460 | } | |
26461 | ||
26462 | ||
c32bde28 | 26463 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26464 | PyObject *resultobj; |
26465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26466 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26467 | wxRect *arg3 = (wxRect *) NULL ; |
26468 | PyObject * obj0 = 0 ; | |
26469 | PyObject * obj1 = 0 ; | |
26470 | PyObject * obj2 = 0 ; | |
26471 | char *kwnames[] = { | |
26472 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26473 | }; | |
26474 | ||
26475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26478 | if (obj1) { | |
c32bde28 | 26479 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26480 | if (PyErr_Occurred()) SWIG_fail; |
26481 | } | |
26482 | if (obj2) { | |
26483 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26485 | } | |
26486 | { | |
26487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26488 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26489 | ||
26490 | wxPyEndAllowThreads(__tstate); | |
26491 | if (PyErr_Occurred()) SWIG_fail; | |
26492 | } | |
26493 | Py_INCREF(Py_None); resultobj = Py_None; | |
26494 | return resultobj; | |
26495 | fail: | |
26496 | return NULL; | |
26497 | } | |
26498 | ||
26499 | ||
c32bde28 | 26500 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26501 | PyObject *resultobj; |
26502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26503 | wxRect *arg2 = 0 ; | |
26504 | wxRect temp2 ; | |
26505 | PyObject * obj0 = 0 ; | |
26506 | PyObject * obj1 = 0 ; | |
26507 | char *kwnames[] = { | |
26508 | (char *) "self",(char *) "rect", NULL | |
26509 | }; | |
26510 | ||
26511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26514 | { | |
26515 | arg2 = &temp2; | |
26516 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26517 | } | |
26518 | { | |
26519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26520 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26521 | ||
26522 | wxPyEndAllowThreads(__tstate); | |
26523 | if (PyErr_Occurred()) SWIG_fail; | |
26524 | } | |
26525 | Py_INCREF(Py_None); resultobj = Py_None; | |
26526 | return resultobj; | |
26527 | fail: | |
26528 | return NULL; | |
26529 | } | |
26530 | ||
26531 | ||
c32bde28 | 26532 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26533 | PyObject *resultobj; |
26534 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26535 | PyObject * obj0 = 0 ; | |
26536 | char *kwnames[] = { | |
26537 | (char *) "self", NULL | |
26538 | }; | |
26539 | ||
26540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26543 | { | |
26544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26545 | (arg1)->Update(); | |
26546 | ||
26547 | wxPyEndAllowThreads(__tstate); | |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
26549 | } | |
26550 | Py_INCREF(Py_None); resultobj = Py_None; | |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
c32bde28 | 26557 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26558 | PyObject *resultobj; |
26559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26560 | PyObject * obj0 = 0 ; | |
26561 | char *kwnames[] = { | |
26562 | (char *) "self", NULL | |
26563 | }; | |
26564 | ||
26565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26568 | { | |
26569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26570 | (arg1)->ClearBackground(); | |
26571 | ||
26572 | wxPyEndAllowThreads(__tstate); | |
26573 | if (PyErr_Occurred()) SWIG_fail; | |
26574 | } | |
26575 | Py_INCREF(Py_None); resultobj = Py_None; | |
26576 | return resultobj; | |
26577 | fail: | |
26578 | return NULL; | |
26579 | } | |
26580 | ||
26581 | ||
c32bde28 | 26582 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26583 | PyObject *resultobj; |
26584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26585 | PyObject * obj0 = 0 ; | |
26586 | char *kwnames[] = { | |
26587 | (char *) "self", NULL | |
26588 | }; | |
26589 | ||
26590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26593 | { | |
26594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26595 | (arg1)->Freeze(); | |
26596 | ||
26597 | wxPyEndAllowThreads(__tstate); | |
26598 | if (PyErr_Occurred()) SWIG_fail; | |
26599 | } | |
26600 | Py_INCREF(Py_None); resultobj = Py_None; | |
26601 | return resultobj; | |
26602 | fail: | |
26603 | return NULL; | |
26604 | } | |
26605 | ||
26606 | ||
c32bde28 | 26607 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26608 | PyObject *resultobj; |
26609 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26610 | PyObject * obj0 = 0 ; | |
26611 | char *kwnames[] = { | |
26612 | (char *) "self", NULL | |
26613 | }; | |
26614 | ||
26615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26618 | { | |
26619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26620 | (arg1)->Thaw(); | |
26621 | ||
26622 | wxPyEndAllowThreads(__tstate); | |
26623 | if (PyErr_Occurred()) SWIG_fail; | |
26624 | } | |
26625 | Py_INCREF(Py_None); resultobj = Py_None; | |
26626 | return resultobj; | |
26627 | fail: | |
26628 | return NULL; | |
26629 | } | |
26630 | ||
26631 | ||
c32bde28 | 26632 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26633 | PyObject *resultobj; |
26634 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26635 | wxDC *arg2 = 0 ; | |
26636 | PyObject * obj0 = 0 ; | |
26637 | PyObject * obj1 = 0 ; | |
26638 | char *kwnames[] = { | |
26639 | (char *) "self",(char *) "dc", NULL | |
26640 | }; | |
26641 | ||
26642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26645 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26646 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26647 | SWIG_fail; | |
26648 | if (arg2 == NULL) { | |
26649 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26650 | SWIG_fail; | |
26651 | } | |
26652 | { | |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | (arg1)->PrepareDC(*arg2); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | Py_INCREF(Py_None); resultobj = Py_None; | |
26660 | return resultobj; | |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
c32bde28 | 26666 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26667 | PyObject *resultobj; |
26668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26669 | wxRegion *result; | |
26670 | PyObject * obj0 = 0 ; | |
26671 | char *kwnames[] = { | |
26672 | (char *) "self", NULL | |
26673 | }; | |
26674 | ||
26675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26678 | { | |
26679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26680 | { | |
26681 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26682 | result = (wxRegion *) &_result_ref; | |
26683 | } | |
26684 | ||
26685 | wxPyEndAllowThreads(__tstate); | |
26686 | if (PyErr_Occurred()) SWIG_fail; | |
26687 | } | |
26688 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26689 | return resultobj; | |
26690 | fail: | |
26691 | return NULL; | |
26692 | } | |
26693 | ||
26694 | ||
c32bde28 | 26695 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26696 | PyObject *resultobj; |
26697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26698 | wxRect result; | |
26699 | PyObject * obj0 = 0 ; | |
26700 | char *kwnames[] = { | |
26701 | (char *) "self", NULL | |
26702 | }; | |
26703 | ||
26704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26707 | { | |
26708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26709 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26710 | ||
26711 | wxPyEndAllowThreads(__tstate); | |
26712 | if (PyErr_Occurred()) SWIG_fail; | |
26713 | } | |
26714 | { | |
26715 | wxRect * resultptr; | |
26716 | resultptr = new wxRect((wxRect &) result); | |
26717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26718 | } | |
26719 | return resultobj; | |
26720 | fail: | |
26721 | return NULL; | |
26722 | } | |
26723 | ||
26724 | ||
c32bde28 | 26725 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26726 | PyObject *resultobj; |
26727 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26728 | int arg2 ; | |
26729 | int arg3 ; | |
26730 | int arg4 = (int) 1 ; | |
26731 | int arg5 = (int) 1 ; | |
26732 | bool result; | |
26733 | PyObject * obj0 = 0 ; | |
26734 | PyObject * obj1 = 0 ; | |
26735 | PyObject * obj2 = 0 ; | |
26736 | PyObject * obj3 = 0 ; | |
26737 | PyObject * obj4 = 0 ; | |
26738 | char *kwnames[] = { | |
26739 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26740 | }; | |
26741 | ||
26742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26745 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26746 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26747 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26748 | if (PyErr_Occurred()) SWIG_fail; |
26749 | if (obj3) { | |
c32bde28 | 26750 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26751 | if (PyErr_Occurred()) SWIG_fail; |
26752 | } | |
26753 | if (obj4) { | |
c32bde28 | 26754 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26755 | if (PyErr_Occurred()) SWIG_fail; |
26756 | } | |
26757 | { | |
26758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26759 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26760 | ||
26761 | wxPyEndAllowThreads(__tstate); | |
26762 | if (PyErr_Occurred()) SWIG_fail; | |
26763 | } | |
26764 | { | |
26765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26766 | } | |
26767 | return resultobj; | |
26768 | fail: | |
26769 | return NULL; | |
26770 | } | |
26771 | ||
26772 | ||
c32bde28 | 26773 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26774 | PyObject *resultobj; |
26775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26776 | wxPoint *arg2 = 0 ; | |
26777 | bool result; | |
26778 | wxPoint temp2 ; | |
26779 | PyObject * obj0 = 0 ; | |
26780 | PyObject * obj1 = 0 ; | |
26781 | char *kwnames[] = { | |
26782 | (char *) "self",(char *) "pt", NULL | |
26783 | }; | |
26784 | ||
26785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26788 | { | |
26789 | arg2 = &temp2; | |
26790 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26791 | } | |
26792 | { | |
26793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26794 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26795 | ||
26796 | wxPyEndAllowThreads(__tstate); | |
26797 | if (PyErr_Occurred()) SWIG_fail; | |
26798 | } | |
26799 | { | |
26800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26801 | } | |
26802 | return resultobj; | |
26803 | fail: | |
26804 | return NULL; | |
26805 | } | |
26806 | ||
26807 | ||
c32bde28 | 26808 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26809 | PyObject *resultobj; |
26810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26811 | wxRect *arg2 = 0 ; | |
26812 | bool result; | |
26813 | wxRect temp2 ; | |
26814 | PyObject * obj0 = 0 ; | |
26815 | PyObject * obj1 = 0 ; | |
26816 | char *kwnames[] = { | |
26817 | (char *) "self",(char *) "rect", NULL | |
26818 | }; | |
26819 | ||
26820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26823 | { | |
26824 | arg2 = &temp2; | |
26825 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26826 | } | |
26827 | { | |
26828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26829 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26830 | ||
26831 | wxPyEndAllowThreads(__tstate); | |
26832 | if (PyErr_Occurred()) SWIG_fail; | |
26833 | } | |
26834 | { | |
26835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26836 | } | |
26837 | return resultobj; | |
26838 | fail: | |
26839 | return NULL; | |
26840 | } | |
26841 | ||
26842 | ||
c32bde28 | 26843 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26844 | PyObject *resultobj; |
26845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26846 | wxVisualAttributes result; | |
26847 | PyObject * obj0 = 0 ; | |
26848 | char *kwnames[] = { | |
26849 | (char *) "self", NULL | |
26850 | }; | |
26851 | ||
26852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26855 | { | |
26856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26857 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26858 | ||
26859 | wxPyEndAllowThreads(__tstate); | |
26860 | if (PyErr_Occurred()) SWIG_fail; | |
26861 | } | |
26862 | { | |
26863 | wxVisualAttributes * resultptr; | |
26864 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26866 | } | |
26867 | return resultobj; | |
26868 | fail: | |
26869 | return NULL; | |
26870 | } | |
26871 | ||
26872 | ||
c32bde28 | 26873 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26874 | PyObject *resultobj; |
26875 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26876 | wxVisualAttributes result; | |
26877 | PyObject * obj0 = 0 ; | |
26878 | char *kwnames[] = { | |
26879 | (char *) "variant", NULL | |
26880 | }; | |
26881 | ||
26882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26883 | if (obj0) { | |
c32bde28 | 26884 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26885 | if (PyErr_Occurred()) SWIG_fail; |
26886 | } | |
26887 | { | |
0439c23b | 26888 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26890 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26891 | ||
26892 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26893 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26894 | } |
26895 | { | |
26896 | wxVisualAttributes * resultptr; | |
26897 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26898 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26899 | } | |
26900 | return resultobj; | |
26901 | fail: | |
26902 | return NULL; | |
26903 | } | |
26904 | ||
26905 | ||
c32bde28 | 26906 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26907 | PyObject *resultobj; |
26908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26909 | wxColour *arg2 = 0 ; | |
26910 | bool result; | |
26911 | wxColour temp2 ; | |
26912 | PyObject * obj0 = 0 ; | |
26913 | PyObject * obj1 = 0 ; | |
26914 | char *kwnames[] = { | |
26915 | (char *) "self",(char *) "colour", NULL | |
26916 | }; | |
26917 | ||
26918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26921 | { | |
26922 | arg2 = &temp2; | |
26923 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26924 | } | |
26925 | { | |
26926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26927 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26928 | ||
26929 | wxPyEndAllowThreads(__tstate); | |
26930 | if (PyErr_Occurred()) SWIG_fail; | |
26931 | } | |
26932 | { | |
26933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26934 | } | |
26935 | return resultobj; | |
26936 | fail: | |
26937 | return NULL; | |
26938 | } | |
26939 | ||
26940 | ||
c32bde28 | 26941 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26942 | PyObject *resultobj; |
26943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26944 | wxColour *arg2 = 0 ; | |
26945 | wxColour temp2 ; | |
26946 | PyObject * obj0 = 0 ; | |
26947 | PyObject * obj1 = 0 ; | |
26948 | char *kwnames[] = { | |
26949 | (char *) "self",(char *) "colour", NULL | |
26950 | }; | |
26951 | ||
412d302d | 26952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26955 | { | |
26956 | arg2 = &temp2; | |
26957 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26958 | } | |
26959 | { | |
26960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26961 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26962 | |
26963 | wxPyEndAllowThreads(__tstate); | |
26964 | if (PyErr_Occurred()) SWIG_fail; | |
26965 | } | |
26966 | Py_INCREF(Py_None); resultobj = Py_None; | |
26967 | return resultobj; | |
26968 | fail: | |
26969 | return NULL; | |
26970 | } | |
26971 | ||
26972 | ||
c32bde28 | 26973 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26974 | PyObject *resultobj; |
26975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26976 | wxColour *arg2 = 0 ; | |
26977 | bool result; | |
26978 | wxColour temp2 ; | |
26979 | PyObject * obj0 = 0 ; | |
26980 | PyObject * obj1 = 0 ; | |
26981 | char *kwnames[] = { | |
26982 | (char *) "self",(char *) "colour", NULL | |
26983 | }; | |
26984 | ||
26985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26988 | { | |
26989 | arg2 = &temp2; | |
26990 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26991 | } | |
26992 | { | |
26993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26994 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26995 | ||
26996 | wxPyEndAllowThreads(__tstate); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
26999 | { | |
27000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27001 | } | |
27002 | return resultobj; | |
27003 | fail: | |
27004 | return NULL; | |
27005 | } | |
27006 | ||
27007 | ||
c32bde28 | 27008 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27009 | PyObject *resultobj; |
27010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27011 | wxColour *arg2 = 0 ; | |
27012 | wxColour temp2 ; | |
27013 | PyObject * obj0 = 0 ; | |
27014 | PyObject * obj1 = 0 ; | |
27015 | char *kwnames[] = { | |
27016 | (char *) "self",(char *) "colour", NULL | |
27017 | }; | |
27018 | ||
fa47d7a7 | 27019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
27020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27022 | { | |
27023 | arg2 = &temp2; | |
27024 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27025 | } | |
27026 | { | |
27027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27028 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
27029 | |
27030 | wxPyEndAllowThreads(__tstate); | |
27031 | if (PyErr_Occurred()) SWIG_fail; | |
27032 | } | |
27033 | Py_INCREF(Py_None); resultobj = Py_None; | |
27034 | return resultobj; | |
27035 | fail: | |
27036 | return NULL; | |
27037 | } | |
27038 | ||
27039 | ||
c32bde28 | 27040 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27041 | PyObject *resultobj; |
27042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27043 | wxColour result; | |
27044 | PyObject * obj0 = 0 ; | |
27045 | char *kwnames[] = { | |
27046 | (char *) "self", NULL | |
27047 | }; | |
27048 | ||
27049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
27050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27052 | { | |
27053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27054 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
27055 | ||
27056 | wxPyEndAllowThreads(__tstate); | |
27057 | if (PyErr_Occurred()) SWIG_fail; | |
27058 | } | |
27059 | { | |
27060 | wxColour * resultptr; | |
27061 | resultptr = new wxColour((wxColour &) result); | |
27062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
27063 | } | |
27064 | return resultobj; | |
27065 | fail: | |
27066 | return NULL; | |
27067 | } | |
27068 | ||
27069 | ||
c32bde28 | 27070 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27071 | PyObject *resultobj; |
27072 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27073 | wxColour result; | |
27074 | PyObject * obj0 = 0 ; | |
27075 | char *kwnames[] = { | |
27076 | (char *) "self", NULL | |
27077 | }; | |
27078 | ||
27079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
27080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27082 | { | |
27083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27084 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
27085 | ||
27086 | wxPyEndAllowThreads(__tstate); | |
27087 | if (PyErr_Occurred()) SWIG_fail; | |
27088 | } | |
27089 | { | |
27090 | wxColour * resultptr; | |
27091 | resultptr = new wxColour((wxColour &) result); | |
27092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
27093 | } | |
27094 | return resultobj; | |
27095 | fail: | |
27096 | return NULL; | |
27097 | } | |
27098 | ||
27099 | ||
c32bde28 | 27100 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
27101 | PyObject *resultobj; |
27102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27103 | int arg2 ; | |
27104 | bool result; | |
27105 | PyObject * obj0 = 0 ; | |
27106 | PyObject * obj1 = 0 ; | |
27107 | char *kwnames[] = { | |
27108 | (char *) "self",(char *) "style", NULL | |
27109 | }; | |
27110 | ||
27111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
27112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27114 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
27115 | if (PyErr_Occurred()) SWIG_fail; |
27116 | { | |
27117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27118 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
27119 | ||
27120 | wxPyEndAllowThreads(__tstate); | |
27121 | if (PyErr_Occurred()) SWIG_fail; | |
27122 | } | |
27123 | { | |
27124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27125 | } | |
27126 | return resultobj; | |
27127 | fail: | |
27128 | return NULL; | |
27129 | } | |
27130 | ||
27131 | ||
c32bde28 | 27132 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
27133 | PyObject *resultobj; |
27134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27135 | int result; | |
27136 | PyObject * obj0 = 0 ; | |
27137 | char *kwnames[] = { | |
27138 | (char *) "self", NULL | |
27139 | }; | |
27140 | ||
27141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
27142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27144 | { | |
27145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27146 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
27147 | ||
27148 | wxPyEndAllowThreads(__tstate); | |
27149 | if (PyErr_Occurred()) SWIG_fail; | |
27150 | } | |
c32bde28 | 27151 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
27152 | return resultobj; |
27153 | fail: | |
27154 | return NULL; | |
27155 | } | |
27156 | ||
27157 | ||
c32bde28 | 27158 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27159 | PyObject *resultobj; |
27160 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27161 | wxCursor *arg2 = 0 ; | |
27162 | bool result; | |
27163 | PyObject * obj0 = 0 ; | |
27164 | PyObject * obj1 = 0 ; | |
27165 | char *kwnames[] = { | |
27166 | (char *) "self",(char *) "cursor", NULL | |
27167 | }; | |
27168 | ||
27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
27170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27172 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
27173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27174 | SWIG_fail; | |
27175 | if (arg2 == NULL) { | |
27176 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27177 | SWIG_fail; | |
27178 | } | |
27179 | { | |
27180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27181 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
27182 | ||
27183 | wxPyEndAllowThreads(__tstate); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
27186 | { | |
27187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27188 | } | |
27189 | return resultobj; | |
27190 | fail: | |
27191 | return NULL; | |
27192 | } | |
27193 | ||
27194 | ||
c32bde28 | 27195 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27196 | PyObject *resultobj; |
27197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27198 | wxCursor result; |
d55e5bfc RD |
27199 | PyObject * obj0 = 0 ; |
27200 | char *kwnames[] = { | |
27201 | (char *) "self", NULL | |
27202 | }; | |
27203 | ||
27204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
27205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27207 | { | |
27208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27209 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
27210 | |
27211 | wxPyEndAllowThreads(__tstate); | |
27212 | if (PyErr_Occurred()) SWIG_fail; | |
27213 | } | |
27214 | { | |
a001823c RD |
27215 | wxCursor * resultptr; |
27216 | resultptr = new wxCursor((wxCursor &) result); | |
27217 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
27218 | } |
27219 | return resultobj; | |
27220 | fail: | |
27221 | return NULL; | |
27222 | } | |
27223 | ||
27224 | ||
c32bde28 | 27225 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27226 | PyObject *resultobj; |
27227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27228 | wxFont *arg2 = 0 ; | |
27229 | bool result; | |
27230 | PyObject * obj0 = 0 ; | |
27231 | PyObject * obj1 = 0 ; | |
27232 | char *kwnames[] = { | |
27233 | (char *) "self",(char *) "font", NULL | |
27234 | }; | |
27235 | ||
27236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
27237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27241 | SWIG_fail; | |
27242 | if (arg2 == NULL) { | |
27243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27244 | SWIG_fail; | |
27245 | } | |
27246 | { | |
27247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27248 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
27249 | ||
27250 | wxPyEndAllowThreads(__tstate); | |
27251 | if (PyErr_Occurred()) SWIG_fail; | |
27252 | } | |
27253 | { | |
27254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27255 | } | |
27256 | return resultobj; | |
27257 | fail: | |
27258 | return NULL; | |
27259 | } | |
27260 | ||
27261 | ||
c32bde28 | 27262 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27263 | PyObject *resultobj; |
27264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27265 | wxFont *arg2 = 0 ; | |
27266 | PyObject * obj0 = 0 ; | |
27267 | PyObject * obj1 = 0 ; | |
27268 | char *kwnames[] = { | |
27269 | (char *) "self",(char *) "font", NULL | |
27270 | }; | |
27271 | ||
fa47d7a7 | 27272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
27273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27277 | SWIG_fail; | |
27278 | if (arg2 == NULL) { | |
27279 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27280 | SWIG_fail; | |
27281 | } | |
27282 | { | |
27283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27284 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
27285 | |
27286 | wxPyEndAllowThreads(__tstate); | |
27287 | if (PyErr_Occurred()) SWIG_fail; | |
27288 | } | |
27289 | Py_INCREF(Py_None); resultobj = Py_None; | |
27290 | return resultobj; | |
27291 | fail: | |
27292 | return NULL; | |
27293 | } | |
27294 | ||
27295 | ||
c32bde28 | 27296 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27297 | PyObject *resultobj; |
27298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27299 | wxFont result; |
d55e5bfc RD |
27300 | PyObject * obj0 = 0 ; |
27301 | char *kwnames[] = { | |
27302 | (char *) "self", NULL | |
27303 | }; | |
27304 | ||
27305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
27306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27308 | { | |
27309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27310 | result = (arg1)->GetFont(); |
d55e5bfc RD |
27311 | |
27312 | wxPyEndAllowThreads(__tstate); | |
27313 | if (PyErr_Occurred()) SWIG_fail; | |
27314 | } | |
27315 | { | |
a001823c RD |
27316 | wxFont * resultptr; |
27317 | resultptr = new wxFont((wxFont &) result); | |
27318 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27319 | } |
27320 | return resultobj; | |
27321 | fail: | |
27322 | return NULL; | |
27323 | } | |
27324 | ||
27325 | ||
c32bde28 | 27326 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27327 | PyObject *resultobj; |
27328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27329 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27330 | PyObject * obj0 = 0 ; | |
27331 | PyObject * obj1 = 0 ; | |
27332 | char *kwnames[] = { | |
27333 | (char *) "self",(char *) "caret", NULL | |
27334 | }; | |
27335 | ||
27336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27341 | { | |
27342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27343 | (arg1)->SetCaret(arg2); | |
27344 | ||
27345 | wxPyEndAllowThreads(__tstate); | |
27346 | if (PyErr_Occurred()) SWIG_fail; | |
27347 | } | |
27348 | Py_INCREF(Py_None); resultobj = Py_None; | |
27349 | return resultobj; | |
27350 | fail: | |
27351 | return NULL; | |
27352 | } | |
27353 | ||
27354 | ||
c32bde28 | 27355 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27356 | PyObject *resultobj; |
27357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27358 | wxCaret *result; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | char *kwnames[] = { | |
27361 | (char *) "self", NULL | |
27362 | }; | |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27367 | { | |
27368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27369 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27370 | ||
27371 | wxPyEndAllowThreads(__tstate); | |
27372 | if (PyErr_Occurred()) SWIG_fail; | |
27373 | } | |
27374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27375 | return resultobj; | |
27376 | fail: | |
27377 | return NULL; | |
27378 | } | |
27379 | ||
27380 | ||
c32bde28 | 27381 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27382 | PyObject *resultobj; |
27383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27384 | int result; | |
27385 | PyObject * obj0 = 0 ; | |
27386 | char *kwnames[] = { | |
27387 | (char *) "self", NULL | |
27388 | }; | |
27389 | ||
27390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27393 | { | |
27394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27395 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27396 | ||
27397 | wxPyEndAllowThreads(__tstate); | |
27398 | if (PyErr_Occurred()) SWIG_fail; | |
27399 | } | |
c32bde28 | 27400 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27401 | return resultobj; |
27402 | fail: | |
27403 | return NULL; | |
27404 | } | |
27405 | ||
27406 | ||
c32bde28 | 27407 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27408 | PyObject *resultobj; |
27409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27410 | int result; | |
27411 | PyObject * obj0 = 0 ; | |
27412 | char *kwnames[] = { | |
27413 | (char *) "self", NULL | |
27414 | }; | |
27415 | ||
27416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27419 | { | |
27420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27421 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27422 | ||
27423 | wxPyEndAllowThreads(__tstate); | |
27424 | if (PyErr_Occurred()) SWIG_fail; | |
27425 | } | |
c32bde28 | 27426 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27427 | return resultobj; |
27428 | fail: | |
27429 | return NULL; | |
27430 | } | |
27431 | ||
27432 | ||
c32bde28 | 27433 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27434 | PyObject *resultobj; |
27435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27436 | wxString *arg2 = 0 ; | |
27437 | int *arg3 = (int *) 0 ; | |
27438 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 27439 | bool temp2 = false ; |
d55e5bfc | 27440 | int temp3 ; |
c32bde28 | 27441 | int res3 = 0 ; |
d55e5bfc | 27442 | int temp4 ; |
c32bde28 | 27443 | int res4 = 0 ; |
d55e5bfc RD |
27444 | PyObject * obj0 = 0 ; |
27445 | PyObject * obj1 = 0 ; | |
27446 | char *kwnames[] = { | |
27447 | (char *) "self",(char *) "string", NULL | |
27448 | }; | |
27449 | ||
c32bde28 RD |
27450 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27451 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27455 | { | |
27456 | arg2 = wxString_in_helper(obj1); | |
27457 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27458 | temp2 = true; |
d55e5bfc RD |
27459 | } |
27460 | { | |
27461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27462 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27463 | ||
27464 | wxPyEndAllowThreads(__tstate); | |
27465 | if (PyErr_Occurred()) SWIG_fail; | |
27466 | } | |
27467 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27468 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27469 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27470 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27471 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27472 | { |
27473 | if (temp2) | |
27474 | delete arg2; | |
27475 | } | |
27476 | return resultobj; | |
27477 | fail: | |
27478 | { | |
27479 | if (temp2) | |
27480 | delete arg2; | |
27481 | } | |
27482 | return NULL; | |
27483 | } | |
27484 | ||
27485 | ||
c32bde28 | 27486 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27487 | PyObject *resultobj; |
27488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27489 | wxString *arg2 = 0 ; | |
27490 | int *arg3 = (int *) 0 ; | |
27491 | int *arg4 = (int *) 0 ; | |
27492 | int *arg5 = (int *) 0 ; | |
27493 | int *arg6 = (int *) 0 ; | |
27494 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 27495 | bool temp2 = false ; |
d55e5bfc | 27496 | int temp3 ; |
c32bde28 | 27497 | int res3 = 0 ; |
d55e5bfc | 27498 | int temp4 ; |
c32bde28 | 27499 | int res4 = 0 ; |
d55e5bfc | 27500 | int temp5 ; |
c32bde28 | 27501 | int res5 = 0 ; |
d55e5bfc | 27502 | int temp6 ; |
c32bde28 | 27503 | int res6 = 0 ; |
d55e5bfc RD |
27504 | PyObject * obj0 = 0 ; |
27505 | PyObject * obj1 = 0 ; | |
27506 | PyObject * obj2 = 0 ; | |
27507 | char *kwnames[] = { | |
27508 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27509 | }; | |
27510 | ||
c32bde28 RD |
27511 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27512 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27513 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27514 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27518 | { | |
27519 | arg2 = wxString_in_helper(obj1); | |
27520 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27521 | temp2 = true; |
d55e5bfc RD |
27522 | } |
27523 | if (obj2) { | |
27524 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27526 | } | |
27527 | { | |
27528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27529 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27530 | ||
27531 | wxPyEndAllowThreads(__tstate); | |
27532 | if (PyErr_Occurred()) SWIG_fail; | |
27533 | } | |
27534 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27535 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27536 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27537 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27538 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27539 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27540 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27541 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27542 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27543 | { |
27544 | if (temp2) | |
27545 | delete arg2; | |
27546 | } | |
27547 | return resultobj; | |
27548 | fail: | |
27549 | { | |
27550 | if (temp2) | |
27551 | delete arg2; | |
27552 | } | |
27553 | return NULL; | |
27554 | } | |
27555 | ||
27556 | ||
c32bde28 | 27557 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27558 | PyObject *resultobj; |
27559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27560 | int *arg2 = (int *) 0 ; | |
27561 | int *arg3 = (int *) 0 ; | |
27562 | int temp2 ; | |
c32bde28 | 27563 | int res2 = 0 ; |
d55e5bfc | 27564 | int temp3 ; |
c32bde28 | 27565 | int res3 = 0 ; |
d55e5bfc RD |
27566 | PyObject * obj0 = 0 ; |
27567 | PyObject * obj1 = 0 ; | |
27568 | PyObject * obj2 = 0 ; | |
27569 | char *kwnames[] = { | |
27570 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27571 | }; | |
27572 | ||
27573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27576 | { | |
c32bde28 RD |
27577 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27578 | temp2 = SWIG_As_int(obj1); | |
27579 | if (PyErr_Occurred()) SWIG_fail; | |
27580 | arg2 = &temp2; | |
27581 | res2 = SWIG_NEWOBJ; | |
27582 | } | |
d55e5bfc RD |
27583 | } |
27584 | { | |
c32bde28 RD |
27585 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27586 | temp3 = SWIG_As_int(obj2); | |
27587 | if (PyErr_Occurred()) SWIG_fail; | |
27588 | arg3 = &temp3; | |
27589 | res3 = SWIG_NEWOBJ; | |
27590 | } | |
d55e5bfc RD |
27591 | } |
27592 | { | |
27593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27594 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27595 | ||
27596 | wxPyEndAllowThreads(__tstate); | |
27597 | if (PyErr_Occurred()) SWIG_fail; | |
27598 | } | |
27599 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27600 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27601 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27602 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27603 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27604 | return resultobj; |
27605 | fail: | |
27606 | return NULL; | |
27607 | } | |
27608 | ||
27609 | ||
c32bde28 | 27610 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27611 | PyObject *resultobj; |
27612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27613 | int *arg2 = (int *) 0 ; | |
27614 | int *arg3 = (int *) 0 ; | |
27615 | int temp2 ; | |
c32bde28 | 27616 | int res2 = 0 ; |
d55e5bfc | 27617 | int temp3 ; |
c32bde28 | 27618 | int res3 = 0 ; |
d55e5bfc RD |
27619 | PyObject * obj0 = 0 ; |
27620 | PyObject * obj1 = 0 ; | |
27621 | PyObject * obj2 = 0 ; | |
27622 | char *kwnames[] = { | |
27623 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27624 | }; | |
27625 | ||
27626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27629 | { | |
c32bde28 RD |
27630 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27631 | temp2 = SWIG_As_int(obj1); | |
27632 | if (PyErr_Occurred()) SWIG_fail; | |
27633 | arg2 = &temp2; | |
27634 | res2 = SWIG_NEWOBJ; | |
27635 | } | |
d55e5bfc RD |
27636 | } |
27637 | { | |
c32bde28 RD |
27638 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27639 | temp3 = SWIG_As_int(obj2); | |
27640 | if (PyErr_Occurred()) SWIG_fail; | |
27641 | arg3 = &temp3; | |
27642 | res3 = SWIG_NEWOBJ; | |
27643 | } | |
d55e5bfc RD |
27644 | } |
27645 | { | |
27646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27647 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27648 | ||
27649 | wxPyEndAllowThreads(__tstate); | |
27650 | if (PyErr_Occurred()) SWIG_fail; | |
27651 | } | |
27652 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27653 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27654 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27655 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27656 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27657 | return resultobj; |
27658 | fail: | |
27659 | return NULL; | |
27660 | } | |
27661 | ||
27662 | ||
c32bde28 | 27663 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27664 | PyObject *resultobj; |
27665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27666 | wxPoint *arg2 = 0 ; | |
27667 | wxPoint result; | |
27668 | wxPoint temp2 ; | |
27669 | PyObject * obj0 = 0 ; | |
27670 | PyObject * obj1 = 0 ; | |
27671 | char *kwnames[] = { | |
27672 | (char *) "self",(char *) "pt", NULL | |
27673 | }; | |
27674 | ||
27675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27678 | { | |
27679 | arg2 = &temp2; | |
27680 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27681 | } | |
27682 | { | |
27683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27684 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27685 | ||
27686 | wxPyEndAllowThreads(__tstate); | |
27687 | if (PyErr_Occurred()) SWIG_fail; | |
27688 | } | |
27689 | { | |
27690 | wxPoint * resultptr; | |
27691 | resultptr = new wxPoint((wxPoint &) result); | |
27692 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27693 | } | |
27694 | return resultobj; | |
27695 | fail: | |
27696 | return NULL; | |
27697 | } | |
27698 | ||
27699 | ||
c32bde28 | 27700 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27701 | PyObject *resultobj; |
27702 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27703 | wxPoint *arg2 = 0 ; | |
27704 | wxPoint result; | |
27705 | wxPoint temp2 ; | |
27706 | PyObject * obj0 = 0 ; | |
27707 | PyObject * obj1 = 0 ; | |
27708 | char *kwnames[] = { | |
27709 | (char *) "self",(char *) "pt", NULL | |
27710 | }; | |
27711 | ||
27712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27715 | { | |
27716 | arg2 = &temp2; | |
27717 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27718 | } | |
27719 | { | |
27720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27721 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27722 | ||
27723 | wxPyEndAllowThreads(__tstate); | |
27724 | if (PyErr_Occurred()) SWIG_fail; | |
27725 | } | |
27726 | { | |
27727 | wxPoint * resultptr; | |
27728 | resultptr = new wxPoint((wxPoint &) result); | |
27729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27730 | } | |
27731 | return resultobj; | |
27732 | fail: | |
27733 | return NULL; | |
27734 | } | |
27735 | ||
27736 | ||
c32bde28 | 27737 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27738 | PyObject *resultobj; |
27739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27740 | int arg2 ; | |
27741 | int arg3 ; | |
27742 | int result; | |
27743 | PyObject * obj0 = 0 ; | |
27744 | PyObject * obj1 = 0 ; | |
27745 | PyObject * obj2 = 0 ; | |
27746 | char *kwnames[] = { | |
27747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27748 | }; | |
27749 | ||
27750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27753 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27754 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27755 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27756 | if (PyErr_Occurred()) SWIG_fail; |
27757 | { | |
27758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27759 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27760 | ||
27761 | wxPyEndAllowThreads(__tstate); | |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
27763 | } | |
c32bde28 | 27764 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27765 | return resultobj; |
27766 | fail: | |
27767 | return NULL; | |
27768 | } | |
27769 | ||
27770 | ||
c32bde28 | 27771 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27772 | PyObject *resultobj; |
27773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27774 | wxPoint *arg2 = 0 ; | |
27775 | int result; | |
27776 | wxPoint temp2 ; | |
27777 | PyObject * obj0 = 0 ; | |
27778 | PyObject * obj1 = 0 ; | |
27779 | char *kwnames[] = { | |
27780 | (char *) "self",(char *) "pt", NULL | |
27781 | }; | |
27782 | ||
27783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27786 | { | |
27787 | arg2 = &temp2; | |
27788 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27789 | } | |
27790 | { | |
27791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27792 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27793 | ||
27794 | wxPyEndAllowThreads(__tstate); | |
27795 | if (PyErr_Occurred()) SWIG_fail; | |
27796 | } | |
c32bde28 | 27797 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27798 | return resultobj; |
27799 | fail: | |
27800 | return NULL; | |
27801 | } | |
27802 | ||
27803 | ||
c32bde28 | 27804 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27805 | PyObject *resultobj; |
27806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27807 | long arg2 ; | |
27808 | int result; | |
27809 | PyObject * obj0 = 0 ; | |
27810 | PyObject * obj1 = 0 ; | |
27811 | ||
27812 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27815 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27816 | if (PyErr_Occurred()) SWIG_fail; |
27817 | { | |
27818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27819 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27820 | ||
27821 | wxPyEndAllowThreads(__tstate); | |
27822 | if (PyErr_Occurred()) SWIG_fail; | |
27823 | } | |
c32bde28 | 27824 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27825 | return resultobj; |
27826 | fail: | |
27827 | return NULL; | |
27828 | } | |
27829 | ||
27830 | ||
c32bde28 | 27831 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27832 | PyObject *resultobj; |
27833 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27834 | int result; | |
27835 | PyObject * obj0 = 0 ; | |
27836 | ||
27837 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27840 | { | |
27841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27842 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27843 | ||
27844 | wxPyEndAllowThreads(__tstate); | |
27845 | if (PyErr_Occurred()) SWIG_fail; | |
27846 | } | |
c32bde28 | 27847 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27848 | return resultobj; |
27849 | fail: | |
27850 | return NULL; | |
27851 | } | |
27852 | ||
27853 | ||
27854 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27855 | int argc; | |
27856 | PyObject *argv[3]; | |
27857 | int ii; | |
27858 | ||
27859 | argc = PyObject_Length(args); | |
27860 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27861 | argv[ii] = PyTuple_GetItem(args,ii); | |
27862 | } | |
27863 | if (argc == 1) { | |
27864 | int _v; | |
27865 | { | |
27866 | void *ptr; | |
27867 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27868 | _v = 0; | |
27869 | PyErr_Clear(); | |
27870 | } else { | |
27871 | _v = 1; | |
27872 | } | |
27873 | } | |
27874 | if (_v) { | |
27875 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27876 | } | |
27877 | } | |
27878 | if (argc == 2) { | |
27879 | int _v; | |
27880 | { | |
27881 | void *ptr; | |
27882 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27883 | _v = 0; | |
27884 | PyErr_Clear(); | |
27885 | } else { | |
27886 | _v = 1; | |
27887 | } | |
27888 | } | |
27889 | if (_v) { | |
c32bde28 | 27890 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27891 | if (_v) { |
27892 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27893 | } | |
27894 | } | |
27895 | } | |
27896 | ||
27897 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27898 | return NULL; | |
27899 | } | |
27900 | ||
27901 | ||
c32bde28 | 27902 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27903 | PyObject *resultobj; |
27904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27905 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27906 | PyObject * obj0 = 0 ; | |
27907 | PyObject * obj1 = 0 ; | |
27908 | char *kwnames[] = { | |
27909 | (char *) "self",(char *) "flags", NULL | |
27910 | }; | |
27911 | ||
27912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27915 | if (obj1) { | |
c32bde28 | 27916 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27917 | if (PyErr_Occurred()) SWIG_fail; |
27918 | } | |
27919 | { | |
27920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27921 | (arg1)->UpdateWindowUI(arg2); | |
27922 | ||
27923 | wxPyEndAllowThreads(__tstate); | |
27924 | if (PyErr_Occurred()) SWIG_fail; | |
27925 | } | |
27926 | Py_INCREF(Py_None); resultobj = Py_None; | |
27927 | return resultobj; | |
27928 | fail: | |
27929 | return NULL; | |
27930 | } | |
27931 | ||
27932 | ||
c32bde28 | 27933 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27934 | PyObject *resultobj; |
27935 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27936 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27937 | int arg3 = (int) -1 ; |
27938 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27939 | bool result; |
27940 | PyObject * obj0 = 0 ; | |
27941 | PyObject * obj1 = 0 ; | |
27942 | PyObject * obj2 = 0 ; | |
27943 | PyObject * obj3 = 0 ; | |
27944 | char *kwnames[] = { | |
27945 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27946 | }; | |
27947 | ||
7a0b95b0 | 27948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 | 27953 | if (obj2) { |
c32bde28 | 27954 | arg3 = (int)SWIG_As_int(obj2); |
7a0b95b0 RD |
27955 | if (PyErr_Occurred()) SWIG_fail; |
27956 | } | |
27957 | if (obj3) { | |
c32bde28 | 27958 | arg4 = (int)SWIG_As_int(obj3); |
7a0b95b0 RD |
27959 | if (PyErr_Occurred()) SWIG_fail; |
27960 | } | |
d55e5bfc RD |
27961 | { |
27962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27963 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27964 | ||
27965 | wxPyEndAllowThreads(__tstate); | |
27966 | if (PyErr_Occurred()) SWIG_fail; | |
27967 | } | |
27968 | { | |
27969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27970 | } | |
27971 | return resultobj; | |
27972 | fail: | |
27973 | return NULL; | |
27974 | } | |
27975 | ||
27976 | ||
c32bde28 | 27977 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27978 | PyObject *resultobj; |
27979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27980 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27981 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27982 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27983 | bool result; |
27984 | wxPoint temp3 ; | |
27985 | PyObject * obj0 = 0 ; | |
27986 | PyObject * obj1 = 0 ; | |
27987 | PyObject * obj2 = 0 ; | |
27988 | char *kwnames[] = { | |
27989 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27990 | }; | |
27991 | ||
7a0b95b0 | 27992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 RD |
27997 | if (obj2) { |
27998 | { | |
27999 | arg3 = &temp3; | |
28000 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28001 | } | |
d55e5bfc RD |
28002 | } |
28003 | { | |
28004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28005 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
28006 | ||
28007 | wxPyEndAllowThreads(__tstate); | |
28008 | if (PyErr_Occurred()) SWIG_fail; | |
28009 | } | |
28010 | { | |
28011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28012 | } | |
28013 | return resultobj; | |
28014 | fail: | |
28015 | return NULL; | |
28016 | } | |
28017 | ||
28018 | ||
c32bde28 | 28019 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28020 | PyObject *resultobj; |
28021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28022 | long result; | |
28023 | PyObject * obj0 = 0 ; | |
28024 | char *kwnames[] = { | |
28025 | (char *) "self", NULL | |
28026 | }; | |
28027 | ||
28028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
28029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28031 | { | |
28032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28033 | result = (long)wxWindow_GetHandle(arg1); | |
28034 | ||
28035 | wxPyEndAllowThreads(__tstate); | |
28036 | if (PyErr_Occurred()) SWIG_fail; | |
28037 | } | |
c32bde28 | 28038 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
28039 | return resultobj; |
28040 | fail: | |
28041 | return NULL; | |
28042 | } | |
28043 | ||
28044 | ||
7e63a440 RD |
28045 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
28046 | PyObject *resultobj; | |
28047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28048 | long arg2 ; | |
28049 | PyObject * obj0 = 0 ; | |
28050 | PyObject * obj1 = 0 ; | |
28051 | char *kwnames[] = { | |
28052 | (char *) "self",(char *) "handle", NULL | |
28053 | }; | |
28054 | ||
28055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
28056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28058 | arg2 = (long)SWIG_As_long(obj1); | |
28059 | if (PyErr_Occurred()) SWIG_fail; | |
28060 | { | |
28061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28062 | wxWindow_AssociateHandle(arg1,arg2); | |
28063 | ||
28064 | wxPyEndAllowThreads(__tstate); | |
28065 | if (PyErr_Occurred()) SWIG_fail; | |
28066 | } | |
28067 | Py_INCREF(Py_None); resultobj = Py_None; | |
28068 | return resultobj; | |
28069 | fail: | |
28070 | return NULL; | |
28071 | } | |
28072 | ||
28073 | ||
28074 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
28075 | PyObject *resultobj; | |
28076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28077 | PyObject * obj0 = 0 ; | |
28078 | char *kwnames[] = { | |
28079 | (char *) "self", NULL | |
28080 | }; | |
28081 | ||
28082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
28083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28085 | { | |
28086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28087 | (arg1)->DissociateHandle(); | |
28088 | ||
28089 | wxPyEndAllowThreads(__tstate); | |
28090 | if (PyErr_Occurred()) SWIG_fail; | |
28091 | } | |
28092 | Py_INCREF(Py_None); resultobj = Py_None; | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | return NULL; | |
28096 | } | |
28097 | ||
28098 | ||
c32bde28 | 28099 | static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28100 | PyObject *resultobj; |
28101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28102 | wxPaintEvent *arg2 = 0 ; | |
28103 | PyObject * obj0 = 0 ; | |
28104 | PyObject * obj1 = 0 ; | |
28105 | char *kwnames[] = { | |
28106 | (char *) "self",(char *) "event", NULL | |
28107 | }; | |
28108 | ||
28109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
28110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
28113 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28114 | SWIG_fail; | |
28115 | if (arg2 == NULL) { | |
28116 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28117 | SWIG_fail; | |
28118 | } | |
28119 | { | |
28120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28121 | (arg1)->OnPaint(*arg2); | |
28122 | ||
28123 | wxPyEndAllowThreads(__tstate); | |
28124 | if (PyErr_Occurred()) SWIG_fail; | |
28125 | } | |
28126 | Py_INCREF(Py_None); resultobj = Py_None; | |
28127 | return resultobj; | |
28128 | fail: | |
28129 | return NULL; | |
28130 | } | |
28131 | ||
28132 | ||
c32bde28 | 28133 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28134 | PyObject *resultobj; |
28135 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28136 | int arg2 ; | |
28137 | bool result; | |
28138 | PyObject * obj0 = 0 ; | |
28139 | PyObject * obj1 = 0 ; | |
28140 | char *kwnames[] = { | |
28141 | (char *) "self",(char *) "orient", NULL | |
28142 | }; | |
28143 | ||
28144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
28145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28147 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28148 | if (PyErr_Occurred()) SWIG_fail; |
28149 | { | |
28150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28151 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
28152 | ||
28153 | wxPyEndAllowThreads(__tstate); | |
28154 | if (PyErr_Occurred()) SWIG_fail; | |
28155 | } | |
28156 | { | |
28157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28158 | } | |
28159 | return resultobj; | |
28160 | fail: | |
28161 | return NULL; | |
28162 | } | |
28163 | ||
28164 | ||
c32bde28 | 28165 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28166 | PyObject *resultobj; |
28167 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28168 | int arg2 ; | |
28169 | int arg3 ; | |
28170 | int arg4 ; | |
28171 | int arg5 ; | |
ae8162c8 | 28172 | bool arg6 = (bool) true ; |
d55e5bfc RD |
28173 | PyObject * obj0 = 0 ; |
28174 | PyObject * obj1 = 0 ; | |
28175 | PyObject * obj2 = 0 ; | |
28176 | PyObject * obj3 = 0 ; | |
28177 | PyObject * obj4 = 0 ; | |
28178 | PyObject * obj5 = 0 ; | |
28179 | char *kwnames[] = { | |
79fccf9d | 28180 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
28181 | }; |
28182 | ||
28183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28186 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28187 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28188 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 28189 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28190 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 28191 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28192 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
28193 | if (PyErr_Occurred()) SWIG_fail; |
28194 | if (obj5) { | |
c32bde28 | 28195 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
28196 | if (PyErr_Occurred()) SWIG_fail; |
28197 | } | |
28198 | { | |
28199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28200 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
28201 | ||
28202 | wxPyEndAllowThreads(__tstate); | |
28203 | if (PyErr_Occurred()) SWIG_fail; | |
28204 | } | |
28205 | Py_INCREF(Py_None); resultobj = Py_None; | |
28206 | return resultobj; | |
28207 | fail: | |
28208 | return NULL; | |
28209 | } | |
28210 | ||
28211 | ||
c32bde28 | 28212 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28213 | PyObject *resultobj; |
28214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28215 | int arg2 ; | |
28216 | int arg3 ; | |
ae8162c8 | 28217 | bool arg4 = (bool) true ; |
d55e5bfc RD |
28218 | PyObject * obj0 = 0 ; |
28219 | PyObject * obj1 = 0 ; | |
28220 | PyObject * obj2 = 0 ; | |
28221 | PyObject * obj3 = 0 ; | |
28222 | char *kwnames[] = { | |
28223 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
28224 | }; | |
28225 | ||
28226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28229 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28230 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28231 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28232 | if (PyErr_Occurred()) SWIG_fail; |
28233 | if (obj3) { | |
c32bde28 | 28234 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
28235 | if (PyErr_Occurred()) SWIG_fail; |
28236 | } | |
28237 | { | |
28238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28239 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
28240 | ||
28241 | wxPyEndAllowThreads(__tstate); | |
28242 | if (PyErr_Occurred()) SWIG_fail; | |
28243 | } | |
28244 | Py_INCREF(Py_None); resultobj = Py_None; | |
28245 | return resultobj; | |
28246 | fail: | |
28247 | return NULL; | |
28248 | } | |
28249 | ||
28250 | ||
c32bde28 | 28251 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28252 | PyObject *resultobj; |
28253 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28254 | int arg2 ; | |
28255 | int result; | |
28256 | PyObject * obj0 = 0 ; | |
28257 | PyObject * obj1 = 0 ; | |
28258 | char *kwnames[] = { | |
28259 | (char *) "self",(char *) "orientation", NULL | |
28260 | }; | |
28261 | ||
28262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
28263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28265 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28266 | if (PyErr_Occurred()) SWIG_fail; |
28267 | { | |
28268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28269 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
28270 | ||
28271 | wxPyEndAllowThreads(__tstate); | |
28272 | if (PyErr_Occurred()) SWIG_fail; | |
28273 | } | |
c32bde28 | 28274 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28275 | return resultobj; |
28276 | fail: | |
28277 | return NULL; | |
28278 | } | |
28279 | ||
28280 | ||
c32bde28 | 28281 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28282 | PyObject *resultobj; |
28283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28284 | int arg2 ; | |
28285 | int result; | |
28286 | PyObject * obj0 = 0 ; | |
28287 | PyObject * obj1 = 0 ; | |
28288 | char *kwnames[] = { | |
28289 | (char *) "self",(char *) "orientation", NULL | |
28290 | }; | |
28291 | ||
28292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
28293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28295 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28296 | if (PyErr_Occurred()) SWIG_fail; |
28297 | { | |
28298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28299 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
28300 | ||
28301 | wxPyEndAllowThreads(__tstate); | |
28302 | if (PyErr_Occurred()) SWIG_fail; | |
28303 | } | |
c32bde28 | 28304 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28305 | return resultobj; |
28306 | fail: | |
28307 | return NULL; | |
28308 | } | |
28309 | ||
28310 | ||
c32bde28 | 28311 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28312 | PyObject *resultobj; |
28313 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28314 | int arg2 ; | |
28315 | int result; | |
28316 | PyObject * obj0 = 0 ; | |
28317 | PyObject * obj1 = 0 ; | |
28318 | char *kwnames[] = { | |
28319 | (char *) "self",(char *) "orientation", NULL | |
28320 | }; | |
28321 | ||
28322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
28323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28325 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28326 | if (PyErr_Occurred()) SWIG_fail; |
28327 | { | |
28328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28329 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28330 | ||
28331 | wxPyEndAllowThreads(__tstate); | |
28332 | if (PyErr_Occurred()) SWIG_fail; | |
28333 | } | |
c32bde28 | 28334 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28335 | return resultobj; |
28336 | fail: | |
28337 | return NULL; | |
28338 | } | |
28339 | ||
28340 | ||
c32bde28 | 28341 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28342 | PyObject *resultobj; |
28343 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28344 | int arg2 ; | |
28345 | int arg3 ; | |
28346 | wxRect *arg4 = (wxRect *) NULL ; | |
28347 | PyObject * obj0 = 0 ; | |
28348 | PyObject * obj1 = 0 ; | |
28349 | PyObject * obj2 = 0 ; | |
28350 | PyObject * obj3 = 0 ; | |
28351 | char *kwnames[] = { | |
28352 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28353 | }; | |
28354 | ||
28355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28358 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28359 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28360 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28361 | if (PyErr_Occurred()) SWIG_fail; |
28362 | if (obj3) { | |
28363 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28365 | } | |
28366 | { | |
28367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28368 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28369 | ||
28370 | wxPyEndAllowThreads(__tstate); | |
28371 | if (PyErr_Occurred()) SWIG_fail; | |
28372 | } | |
28373 | Py_INCREF(Py_None); resultobj = Py_None; | |
28374 | return resultobj; | |
28375 | fail: | |
28376 | return NULL; | |
28377 | } | |
28378 | ||
28379 | ||
c32bde28 | 28380 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28381 | PyObject *resultobj; |
28382 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28383 | int arg2 ; | |
28384 | bool result; | |
28385 | PyObject * obj0 = 0 ; | |
28386 | PyObject * obj1 = 0 ; | |
28387 | char *kwnames[] = { | |
28388 | (char *) "self",(char *) "lines", NULL | |
28389 | }; | |
28390 | ||
28391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28394 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28395 | if (PyErr_Occurred()) SWIG_fail; |
28396 | { | |
28397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28398 | result = (bool)(arg1)->ScrollLines(arg2); | |
28399 | ||
28400 | wxPyEndAllowThreads(__tstate); | |
28401 | if (PyErr_Occurred()) SWIG_fail; | |
28402 | } | |
28403 | { | |
28404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28405 | } | |
28406 | return resultobj; | |
28407 | fail: | |
28408 | return NULL; | |
28409 | } | |
28410 | ||
28411 | ||
c32bde28 | 28412 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28413 | PyObject *resultobj; |
28414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28415 | int arg2 ; | |
28416 | bool result; | |
28417 | PyObject * obj0 = 0 ; | |
28418 | PyObject * obj1 = 0 ; | |
28419 | char *kwnames[] = { | |
28420 | (char *) "self",(char *) "pages", NULL | |
28421 | }; | |
28422 | ||
28423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
28424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28426 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28427 | if (PyErr_Occurred()) SWIG_fail; |
28428 | { | |
28429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28430 | result = (bool)(arg1)->ScrollPages(arg2); | |
28431 | ||
28432 | wxPyEndAllowThreads(__tstate); | |
28433 | if (PyErr_Occurred()) SWIG_fail; | |
28434 | } | |
28435 | { | |
28436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28437 | } | |
28438 | return resultobj; | |
28439 | fail: | |
28440 | return NULL; | |
28441 | } | |
28442 | ||
28443 | ||
c32bde28 | 28444 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28445 | PyObject *resultobj; |
28446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28447 | bool result; | |
28448 | PyObject * obj0 = 0 ; | |
28449 | char *kwnames[] = { | |
28450 | (char *) "self", NULL | |
28451 | }; | |
28452 | ||
28453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28456 | { | |
28457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28458 | result = (bool)(arg1)->LineUp(); | |
28459 | ||
28460 | wxPyEndAllowThreads(__tstate); | |
28461 | if (PyErr_Occurred()) SWIG_fail; | |
28462 | } | |
28463 | { | |
28464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28465 | } | |
28466 | return resultobj; | |
28467 | fail: | |
28468 | return NULL; | |
28469 | } | |
28470 | ||
28471 | ||
c32bde28 | 28472 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28473 | PyObject *resultobj; |
28474 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28475 | bool result; | |
28476 | PyObject * obj0 = 0 ; | |
28477 | char *kwnames[] = { | |
28478 | (char *) "self", NULL | |
28479 | }; | |
28480 | ||
28481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28484 | { | |
28485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28486 | result = (bool)(arg1)->LineDown(); | |
28487 | ||
28488 | wxPyEndAllowThreads(__tstate); | |
28489 | if (PyErr_Occurred()) SWIG_fail; | |
28490 | } | |
28491 | { | |
28492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28493 | } | |
28494 | return resultobj; | |
28495 | fail: | |
28496 | return NULL; | |
28497 | } | |
28498 | ||
28499 | ||
c32bde28 | 28500 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28501 | PyObject *resultobj; |
28502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28503 | bool result; | |
28504 | PyObject * obj0 = 0 ; | |
28505 | char *kwnames[] = { | |
28506 | (char *) "self", NULL | |
28507 | }; | |
28508 | ||
28509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28512 | { | |
28513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28514 | result = (bool)(arg1)->PageUp(); | |
28515 | ||
28516 | wxPyEndAllowThreads(__tstate); | |
28517 | if (PyErr_Occurred()) SWIG_fail; | |
28518 | } | |
28519 | { | |
28520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28521 | } | |
28522 | return resultobj; | |
28523 | fail: | |
28524 | return NULL; | |
28525 | } | |
28526 | ||
28527 | ||
c32bde28 | 28528 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28529 | PyObject *resultobj; |
28530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28531 | bool result; | |
28532 | PyObject * obj0 = 0 ; | |
28533 | char *kwnames[] = { | |
28534 | (char *) "self", NULL | |
28535 | }; | |
28536 | ||
28537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28540 | { | |
28541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28542 | result = (bool)(arg1)->PageDown(); | |
28543 | ||
28544 | wxPyEndAllowThreads(__tstate); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
28547 | { | |
28548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28549 | } | |
28550 | return resultobj; | |
28551 | fail: | |
28552 | return NULL; | |
28553 | } | |
28554 | ||
28555 | ||
c32bde28 | 28556 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28557 | PyObject *resultobj; |
28558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28559 | wxString *arg2 = 0 ; | |
ae8162c8 | 28560 | bool temp2 = false ; |
d55e5bfc RD |
28561 | PyObject * obj0 = 0 ; |
28562 | PyObject * obj1 = 0 ; | |
28563 | char *kwnames[] = { | |
28564 | (char *) "self",(char *) "text", NULL | |
28565 | }; | |
28566 | ||
28567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28570 | { | |
28571 | arg2 = wxString_in_helper(obj1); | |
28572 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28573 | temp2 = true; |
d55e5bfc RD |
28574 | } |
28575 | { | |
28576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28577 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28578 | ||
28579 | wxPyEndAllowThreads(__tstate); | |
28580 | if (PyErr_Occurred()) SWIG_fail; | |
28581 | } | |
28582 | Py_INCREF(Py_None); resultobj = Py_None; | |
28583 | { | |
28584 | if (temp2) | |
28585 | delete arg2; | |
28586 | } | |
28587 | return resultobj; | |
28588 | fail: | |
28589 | { | |
28590 | if (temp2) | |
28591 | delete arg2; | |
28592 | } | |
28593 | return NULL; | |
28594 | } | |
28595 | ||
28596 | ||
c32bde28 | 28597 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28598 | PyObject *resultobj; |
28599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28600 | wxString *arg2 = 0 ; | |
ae8162c8 | 28601 | bool temp2 = false ; |
d55e5bfc RD |
28602 | PyObject * obj0 = 0 ; |
28603 | PyObject * obj1 = 0 ; | |
28604 | char *kwnames[] = { | |
28605 | (char *) "self",(char *) "text", NULL | |
28606 | }; | |
28607 | ||
28608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28611 | { | |
28612 | arg2 = wxString_in_helper(obj1); | |
28613 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28614 | temp2 = true; |
d55e5bfc RD |
28615 | } |
28616 | { | |
28617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28618 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28619 | ||
28620 | wxPyEndAllowThreads(__tstate); | |
28621 | if (PyErr_Occurred()) SWIG_fail; | |
28622 | } | |
28623 | Py_INCREF(Py_None); resultobj = Py_None; | |
28624 | { | |
28625 | if (temp2) | |
28626 | delete arg2; | |
28627 | } | |
28628 | return resultobj; | |
28629 | fail: | |
28630 | { | |
28631 | if (temp2) | |
28632 | delete arg2; | |
28633 | } | |
28634 | return NULL; | |
28635 | } | |
28636 | ||
28637 | ||
c32bde28 | 28638 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28639 | PyObject *resultobj; |
28640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28641 | wxString result; | |
28642 | PyObject * obj0 = 0 ; | |
28643 | char *kwnames[] = { | |
28644 | (char *) "self", NULL | |
28645 | }; | |
28646 | ||
28647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28650 | { | |
28651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28652 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28653 | ||
28654 | wxPyEndAllowThreads(__tstate); | |
28655 | if (PyErr_Occurred()) SWIG_fail; | |
28656 | } | |
28657 | { | |
28658 | #if wxUSE_UNICODE | |
28659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28660 | #else | |
28661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28662 | #endif | |
28663 | } | |
28664 | return resultobj; | |
28665 | fail: | |
28666 | return NULL; | |
28667 | } | |
28668 | ||
28669 | ||
c32bde28 | 28670 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28671 | PyObject *resultobj; |
28672 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28673 | wxString *arg2 = 0 ; | |
ae8162c8 | 28674 | bool temp2 = false ; |
d55e5bfc RD |
28675 | PyObject * obj0 = 0 ; |
28676 | PyObject * obj1 = 0 ; | |
28677 | char *kwnames[] = { | |
28678 | (char *) "self",(char *) "tip", NULL | |
28679 | }; | |
28680 | ||
28681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28684 | { | |
28685 | arg2 = wxString_in_helper(obj1); | |
28686 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28687 | temp2 = true; |
d55e5bfc RD |
28688 | } |
28689 | { | |
28690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28691 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28692 | ||
28693 | wxPyEndAllowThreads(__tstate); | |
28694 | if (PyErr_Occurred()) SWIG_fail; | |
28695 | } | |
28696 | Py_INCREF(Py_None); resultobj = Py_None; | |
28697 | { | |
28698 | if (temp2) | |
28699 | delete arg2; | |
28700 | } | |
28701 | return resultobj; | |
28702 | fail: | |
28703 | { | |
28704 | if (temp2) | |
28705 | delete arg2; | |
28706 | } | |
28707 | return NULL; | |
28708 | } | |
28709 | ||
28710 | ||
c32bde28 | 28711 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28712 | PyObject *resultobj; |
28713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28714 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28715 | PyObject * obj0 = 0 ; | |
28716 | PyObject * obj1 = 0 ; | |
28717 | char *kwnames[] = { | |
28718 | (char *) "self",(char *) "tip", NULL | |
28719 | }; | |
28720 | ||
28721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28726 | { | |
28727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28728 | (arg1)->SetToolTip(arg2); | |
28729 | ||
28730 | wxPyEndAllowThreads(__tstate); | |
28731 | if (PyErr_Occurred()) SWIG_fail; | |
28732 | } | |
28733 | Py_INCREF(Py_None); resultobj = Py_None; | |
28734 | return resultobj; | |
28735 | fail: | |
28736 | return NULL; | |
28737 | } | |
28738 | ||
28739 | ||
c32bde28 | 28740 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28741 | PyObject *resultobj; |
28742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28743 | wxToolTip *result; | |
28744 | PyObject * obj0 = 0 ; | |
28745 | char *kwnames[] = { | |
28746 | (char *) "self", NULL | |
28747 | }; | |
28748 | ||
28749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
28750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28752 | { | |
28753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28754 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28755 | ||
28756 | wxPyEndAllowThreads(__tstate); | |
28757 | if (PyErr_Occurred()) SWIG_fail; | |
28758 | } | |
28759 | { | |
412d302d | 28760 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28761 | } |
28762 | return resultobj; | |
28763 | fail: | |
28764 | return NULL; | |
28765 | } | |
28766 | ||
28767 | ||
c32bde28 | 28768 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28769 | PyObject *resultobj; |
28770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28771 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28772 | PyObject * obj0 = 0 ; | |
28773 | PyObject * obj1 = 0 ; | |
28774 | char *kwnames[] = { | |
28775 | (char *) "self",(char *) "dropTarget", NULL | |
28776 | }; | |
28777 | ||
28778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28781 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28782 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28783 | { | |
28784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28785 | (arg1)->SetDropTarget(arg2); | |
28786 | ||
28787 | wxPyEndAllowThreads(__tstate); | |
28788 | if (PyErr_Occurred()) SWIG_fail; | |
28789 | } | |
28790 | Py_INCREF(Py_None); resultobj = Py_None; | |
28791 | return resultobj; | |
28792 | fail: | |
28793 | return NULL; | |
28794 | } | |
28795 | ||
28796 | ||
c32bde28 | 28797 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28798 | PyObject *resultobj; |
28799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28800 | wxPyDropTarget *result; | |
28801 | PyObject * obj0 = 0 ; | |
28802 | char *kwnames[] = { | |
28803 | (char *) "self", NULL | |
28804 | }; | |
28805 | ||
28806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28809 | { | |
28810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28811 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28812 | ||
28813 | wxPyEndAllowThreads(__tstate); | |
28814 | if (PyErr_Occurred()) SWIG_fail; | |
28815 | } | |
28816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28817 | return resultobj; | |
28818 | fail: | |
28819 | return NULL; | |
28820 | } | |
28821 | ||
28822 | ||
c32bde28 | 28823 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28824 | PyObject *resultobj; |
28825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28826 | bool arg2 ; | |
28827 | PyObject * obj0 = 0 ; | |
28828 | PyObject * obj1 = 0 ; | |
28829 | char *kwnames[] = { | |
28830 | (char *) "self",(char *) "accept", NULL | |
28831 | }; | |
28832 | ||
28833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
28834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28836 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28837 | if (PyErr_Occurred()) SWIG_fail; |
28838 | { | |
28839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28840 | (arg1)->DragAcceptFiles(arg2); | |
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_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28853 | PyObject *resultobj; |
28854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28855 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28856 | PyObject * obj0 = 0 ; | |
28857 | PyObject * obj1 = 0 ; | |
28858 | char *kwnames[] = { | |
28859 | (char *) "self",(char *) "constraints", NULL | |
28860 | }; | |
28861 | ||
28862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28867 | { | |
28868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28869 | (arg1)->SetConstraints(arg2); | |
28870 | ||
28871 | wxPyEndAllowThreads(__tstate); | |
28872 | if (PyErr_Occurred()) SWIG_fail; | |
28873 | } | |
28874 | Py_INCREF(Py_None); resultobj = Py_None; | |
28875 | return resultobj; | |
28876 | fail: | |
28877 | return NULL; | |
28878 | } | |
28879 | ||
28880 | ||
c32bde28 | 28881 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28882 | PyObject *resultobj; |
28883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28884 | wxLayoutConstraints *result; | |
28885 | PyObject * obj0 = 0 ; | |
28886 | char *kwnames[] = { | |
28887 | (char *) "self", NULL | |
28888 | }; | |
28889 | ||
28890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28893 | { | |
28894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28895 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28896 | ||
28897 | wxPyEndAllowThreads(__tstate); | |
28898 | if (PyErr_Occurred()) SWIG_fail; | |
28899 | } | |
28900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28901 | return resultobj; | |
28902 | fail: | |
28903 | return NULL; | |
28904 | } | |
28905 | ||
28906 | ||
c32bde28 | 28907 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28908 | PyObject *resultobj; |
28909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28910 | bool arg2 ; | |
28911 | PyObject * obj0 = 0 ; | |
28912 | PyObject * obj1 = 0 ; | |
28913 | char *kwnames[] = { | |
28914 | (char *) "self",(char *) "autoLayout", NULL | |
28915 | }; | |
28916 | ||
28917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28920 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28921 | if (PyErr_Occurred()) SWIG_fail; |
28922 | { | |
28923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28924 | (arg1)->SetAutoLayout(arg2); | |
28925 | ||
28926 | wxPyEndAllowThreads(__tstate); | |
28927 | if (PyErr_Occurred()) SWIG_fail; | |
28928 | } | |
28929 | Py_INCREF(Py_None); resultobj = Py_None; | |
28930 | return resultobj; | |
28931 | fail: | |
28932 | return NULL; | |
28933 | } | |
28934 | ||
28935 | ||
c32bde28 | 28936 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28937 | PyObject *resultobj; |
28938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28939 | bool result; | |
28940 | PyObject * obj0 = 0 ; | |
28941 | char *kwnames[] = { | |
28942 | (char *) "self", NULL | |
28943 | }; | |
28944 | ||
28945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28948 | { | |
28949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28950 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28951 | ||
28952 | wxPyEndAllowThreads(__tstate); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
28955 | { | |
28956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28957 | } | |
28958 | return resultobj; | |
28959 | fail: | |
28960 | return NULL; | |
28961 | } | |
28962 | ||
28963 | ||
c32bde28 | 28964 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28965 | PyObject *resultobj; |
28966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28967 | bool result; | |
28968 | PyObject * obj0 = 0 ; | |
28969 | char *kwnames[] = { | |
28970 | (char *) "self", NULL | |
28971 | }; | |
28972 | ||
28973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28976 | { | |
28977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28978 | result = (bool)(arg1)->Layout(); | |
28979 | ||
28980 | wxPyEndAllowThreads(__tstate); | |
28981 | if (PyErr_Occurred()) SWIG_fail; | |
28982 | } | |
28983 | { | |
28984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28985 | } | |
28986 | return resultobj; | |
28987 | fail: | |
28988 | return NULL; | |
28989 | } | |
28990 | ||
28991 | ||
c32bde28 | 28992 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28993 | PyObject *resultobj; |
28994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28995 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28996 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28997 | PyObject * obj0 = 0 ; |
28998 | PyObject * obj1 = 0 ; | |
28999 | PyObject * obj2 = 0 ; | |
29000 | char *kwnames[] = { | |
29001 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
29002 | }; | |
29003 | ||
29004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
29008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29009 | if (obj2) { | |
c32bde28 | 29010 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
29011 | if (PyErr_Occurred()) SWIG_fail; |
29012 | } | |
29013 | { | |
29014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29015 | (arg1)->SetSizer(arg2,arg3); | |
29016 | ||
29017 | wxPyEndAllowThreads(__tstate); | |
29018 | if (PyErr_Occurred()) SWIG_fail; | |
29019 | } | |
29020 | Py_INCREF(Py_None); resultobj = Py_None; | |
29021 | return resultobj; | |
29022 | fail: | |
29023 | return NULL; | |
29024 | } | |
29025 | ||
29026 | ||
c32bde28 | 29027 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29028 | PyObject *resultobj; |
29029 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29030 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 29031 | bool arg3 = (bool) true ; |
d55e5bfc RD |
29032 | PyObject * obj0 = 0 ; |
29033 | PyObject * obj1 = 0 ; | |
29034 | PyObject * obj2 = 0 ; | |
29035 | char *kwnames[] = { | |
29036 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
29037 | }; | |
29038 | ||
29039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
29043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29044 | if (obj2) { | |
c32bde28 | 29045 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
29046 | if (PyErr_Occurred()) SWIG_fail; |
29047 | } | |
29048 | { | |
29049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29050 | (arg1)->SetSizerAndFit(arg2,arg3); | |
29051 | ||
29052 | wxPyEndAllowThreads(__tstate); | |
29053 | if (PyErr_Occurred()) SWIG_fail; | |
29054 | } | |
29055 | Py_INCREF(Py_None); resultobj = Py_None; | |
29056 | return resultobj; | |
29057 | fail: | |
29058 | return NULL; | |
29059 | } | |
29060 | ||
29061 | ||
c32bde28 | 29062 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29063 | PyObject *resultobj; |
29064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29065 | wxSizer *result; | |
29066 | PyObject * obj0 = 0 ; | |
29067 | char *kwnames[] = { | |
29068 | (char *) "self", NULL | |
29069 | }; | |
29070 | ||
29071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
29072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29074 | { | |
29075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29076 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
29077 | ||
29078 | wxPyEndAllowThreads(__tstate); | |
29079 | if (PyErr_Occurred()) SWIG_fail; | |
29080 | } | |
29081 | { | |
412d302d | 29082 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
29083 | } |
29084 | return resultobj; | |
29085 | fail: | |
29086 | return NULL; | |
29087 | } | |
29088 | ||
29089 | ||
c32bde28 | 29090 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29091 | PyObject *resultobj; |
29092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29093 | wxSizer *arg2 = (wxSizer *) 0 ; | |
29094 | PyObject * obj0 = 0 ; | |
29095 | PyObject * obj1 = 0 ; | |
29096 | char *kwnames[] = { | |
29097 | (char *) "self",(char *) "sizer", NULL | |
29098 | }; | |
29099 | ||
29100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
29101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29103 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
29104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29105 | { | |
29106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29107 | (arg1)->SetContainingSizer(arg2); | |
29108 | ||
29109 | wxPyEndAllowThreads(__tstate); | |
29110 | if (PyErr_Occurred()) SWIG_fail; | |
29111 | } | |
29112 | Py_INCREF(Py_None); resultobj = Py_None; | |
29113 | return resultobj; | |
29114 | fail: | |
29115 | return NULL; | |
29116 | } | |
29117 | ||
29118 | ||
c32bde28 | 29119 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29120 | PyObject *resultobj; |
29121 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29122 | wxSizer *result; | |
29123 | PyObject * obj0 = 0 ; | |
29124 | char *kwnames[] = { | |
29125 | (char *) "self", NULL | |
29126 | }; | |
29127 | ||
29128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
29129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29131 | { | |
29132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29133 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
29134 | ||
29135 | wxPyEndAllowThreads(__tstate); | |
29136 | if (PyErr_Occurred()) SWIG_fail; | |
29137 | } | |
29138 | { | |
412d302d | 29139 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
29140 | } |
29141 | return resultobj; | |
29142 | fail: | |
29143 | return NULL; | |
29144 | } | |
29145 | ||
29146 | ||
c32bde28 | 29147 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29148 | PyObject *resultobj; |
29149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29150 | PyObject * obj0 = 0 ; | |
29151 | char *kwnames[] = { | |
29152 | (char *) "self", NULL | |
29153 | }; | |
29154 | ||
29155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
29156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29158 | { | |
29159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29160 | (arg1)->InheritAttributes(); | |
29161 | ||
29162 | wxPyEndAllowThreads(__tstate); | |
29163 | if (PyErr_Occurred()) SWIG_fail; | |
29164 | } | |
29165 | Py_INCREF(Py_None); resultobj = Py_None; | |
29166 | return resultobj; | |
29167 | fail: | |
29168 | return NULL; | |
29169 | } | |
29170 | ||
29171 | ||
c32bde28 | 29172 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29173 | PyObject *resultobj; |
29174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29175 | bool result; | |
29176 | PyObject * obj0 = 0 ; | |
29177 | char *kwnames[] = { | |
29178 | (char *) "self", NULL | |
29179 | }; | |
29180 | ||
29181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29184 | { | |
29185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29186 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
29187 | ||
29188 | wxPyEndAllowThreads(__tstate); | |
29189 | if (PyErr_Occurred()) SWIG_fail; | |
29190 | } | |
29191 | { | |
29192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29193 | } | |
29194 | return resultobj; | |
29195 | fail: | |
29196 | return NULL; | |
29197 | } | |
29198 | ||
29199 | ||
c32bde28 | 29200 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29201 | PyObject *obj; |
29202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29203 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
29204 | Py_INCREF(obj); | |
29205 | return Py_BuildValue((char *)""); | |
29206 | } | |
c32bde28 | 29207 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29208 | PyObject *resultobj; |
29209 | long arg1 ; | |
29210 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29211 | wxWindow *result; | |
29212 | PyObject * obj0 = 0 ; | |
29213 | PyObject * obj1 = 0 ; | |
29214 | char *kwnames[] = { | |
29215 | (char *) "id",(char *) "parent", NULL | |
29216 | }; | |
29217 | ||
29218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 29219 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
29220 | if (PyErr_Occurred()) SWIG_fail; |
29221 | if (obj1) { | |
29222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29224 | } | |
29225 | { | |
0439c23b | 29226 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29228 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29231 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29232 | } |
29233 | { | |
412d302d | 29234 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29235 | } |
29236 | return resultobj; | |
29237 | fail: | |
29238 | return NULL; | |
29239 | } | |
29240 | ||
29241 | ||
c32bde28 | 29242 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29243 | PyObject *resultobj; |
29244 | wxString *arg1 = 0 ; | |
29245 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29246 | wxWindow *result; | |
ae8162c8 | 29247 | bool temp1 = false ; |
d55e5bfc RD |
29248 | PyObject * obj0 = 0 ; |
29249 | PyObject * obj1 = 0 ; | |
29250 | char *kwnames[] = { | |
29251 | (char *) "name",(char *) "parent", NULL | |
29252 | }; | |
29253 | ||
29254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
29255 | { | |
29256 | arg1 = wxString_in_helper(obj0); | |
29257 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29258 | temp1 = true; |
d55e5bfc RD |
29259 | } |
29260 | if (obj1) { | |
29261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29263 | } | |
29264 | { | |
0439c23b | 29265 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29267 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
29268 | ||
29269 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29270 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29271 | } |
29272 | { | |
412d302d | 29273 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29274 | } |
29275 | { | |
29276 | if (temp1) | |
29277 | delete arg1; | |
29278 | } | |
29279 | return resultobj; | |
29280 | fail: | |
29281 | { | |
29282 | if (temp1) | |
29283 | delete arg1; | |
29284 | } | |
29285 | return NULL; | |
29286 | } | |
29287 | ||
29288 | ||
c32bde28 | 29289 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29290 | PyObject *resultobj; |
29291 | wxString *arg1 = 0 ; | |
29292 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29293 | wxWindow *result; | |
ae8162c8 | 29294 | bool temp1 = false ; |
d55e5bfc RD |
29295 | PyObject * obj0 = 0 ; |
29296 | PyObject * obj1 = 0 ; | |
29297 | char *kwnames[] = { | |
29298 | (char *) "label",(char *) "parent", NULL | |
29299 | }; | |
29300 | ||
29301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
29302 | { | |
29303 | arg1 = wxString_in_helper(obj0); | |
29304 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29305 | temp1 = true; |
d55e5bfc RD |
29306 | } |
29307 | if (obj1) { | |
29308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29310 | } | |
29311 | { | |
0439c23b | 29312 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29314 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
29315 | ||
29316 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29317 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29318 | } |
29319 | { | |
412d302d | 29320 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29321 | } |
29322 | { | |
29323 | if (temp1) | |
29324 | delete arg1; | |
29325 | } | |
29326 | return resultobj; | |
29327 | fail: | |
29328 | { | |
29329 | if (temp1) | |
29330 | delete arg1; | |
29331 | } | |
29332 | return NULL; | |
29333 | } | |
29334 | ||
29335 | ||
c32bde28 | 29336 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29337 | PyObject *resultobj; |
29338 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29339 | unsigned long arg2 ; | |
29340 | wxWindow *result; | |
29341 | PyObject * obj0 = 0 ; | |
29342 | PyObject * obj1 = 0 ; | |
29343 | char *kwnames[] = { | |
29344 | (char *) "parent",(char *) "_hWnd", NULL | |
29345 | }; | |
29346 | ||
29347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
29348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29350 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29351 | if (PyErr_Occurred()) SWIG_fail; |
29352 | { | |
29353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29354 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
29355 | ||
29356 | wxPyEndAllowThreads(__tstate); | |
29357 | if (PyErr_Occurred()) SWIG_fail; | |
29358 | } | |
29359 | { | |
412d302d | 29360 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29361 | } |
29362 | return resultobj; | |
29363 | fail: | |
29364 | return NULL; | |
29365 | } | |
29366 | ||
29367 | ||
c32bde28 | 29368 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29369 | PyObject *resultobj; |
29370 | wxValidator *result; | |
29371 | char *kwnames[] = { | |
29372 | NULL | |
29373 | }; | |
29374 | ||
29375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29376 | { | |
29377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29378 | result = (wxValidator *)new wxValidator(); | |
29379 | ||
29380 | wxPyEndAllowThreads(__tstate); | |
29381 | if (PyErr_Occurred()) SWIG_fail; | |
29382 | } | |
b0f7404b | 29383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29384 | return resultobj; |
29385 | fail: | |
29386 | return NULL; | |
29387 | } | |
29388 | ||
29389 | ||
c32bde28 | 29390 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29391 | PyObject *resultobj; |
29392 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29393 | wxValidator *result; | |
29394 | PyObject * obj0 = 0 ; | |
29395 | char *kwnames[] = { | |
29396 | (char *) "self", NULL | |
29397 | }; | |
29398 | ||
29399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29402 | { | |
29403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29404 | result = (wxValidator *)(arg1)->Clone(); | |
29405 | ||
29406 | wxPyEndAllowThreads(__tstate); | |
29407 | if (PyErr_Occurred()) SWIG_fail; | |
29408 | } | |
29409 | { | |
412d302d | 29410 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29411 | } |
29412 | return resultobj; | |
29413 | fail: | |
29414 | return NULL; | |
29415 | } | |
29416 | ||
29417 | ||
c32bde28 | 29418 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29419 | PyObject *resultobj; |
29420 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29421 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29422 | bool result; | |
29423 | PyObject * obj0 = 0 ; | |
29424 | PyObject * obj1 = 0 ; | |
29425 | char *kwnames[] = { | |
29426 | (char *) "self",(char *) "parent", NULL | |
29427 | }; | |
29428 | ||
29429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29434 | { | |
29435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29436 | result = (bool)(arg1)->Validate(arg2); | |
29437 | ||
29438 | wxPyEndAllowThreads(__tstate); | |
29439 | if (PyErr_Occurred()) SWIG_fail; | |
29440 | } | |
29441 | { | |
29442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29443 | } | |
29444 | return resultobj; | |
29445 | fail: | |
29446 | return NULL; | |
29447 | } | |
29448 | ||
29449 | ||
c32bde28 | 29450 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29451 | PyObject *resultobj; |
29452 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29453 | bool result; | |
29454 | PyObject * obj0 = 0 ; | |
29455 | char *kwnames[] = { | |
29456 | (char *) "self", NULL | |
29457 | }; | |
29458 | ||
29459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29462 | { | |
29463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29464 | result = (bool)(arg1)->TransferToWindow(); | |
29465 | ||
29466 | wxPyEndAllowThreads(__tstate); | |
29467 | if (PyErr_Occurred()) SWIG_fail; | |
29468 | } | |
29469 | { | |
29470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29471 | } | |
29472 | return resultobj; | |
29473 | fail: | |
29474 | return NULL; | |
29475 | } | |
29476 | ||
29477 | ||
c32bde28 | 29478 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29479 | PyObject *resultobj; |
29480 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29481 | bool result; | |
29482 | PyObject * obj0 = 0 ; | |
29483 | char *kwnames[] = { | |
29484 | (char *) "self", NULL | |
29485 | }; | |
29486 | ||
29487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29490 | { | |
29491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29492 | result = (bool)(arg1)->TransferFromWindow(); | |
29493 | ||
29494 | wxPyEndAllowThreads(__tstate); | |
29495 | if (PyErr_Occurred()) SWIG_fail; | |
29496 | } | |
29497 | { | |
29498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29499 | } | |
29500 | return resultobj; | |
29501 | fail: | |
29502 | return NULL; | |
29503 | } | |
29504 | ||
29505 | ||
c32bde28 | 29506 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29507 | PyObject *resultobj; |
29508 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29509 | wxWindow *result; | |
29510 | PyObject * obj0 = 0 ; | |
29511 | char *kwnames[] = { | |
29512 | (char *) "self", NULL | |
29513 | }; | |
29514 | ||
29515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29518 | { | |
29519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29520 | result = (wxWindow *)(arg1)->GetWindow(); | |
29521 | ||
29522 | wxPyEndAllowThreads(__tstate); | |
29523 | if (PyErr_Occurred()) SWIG_fail; | |
29524 | } | |
29525 | { | |
412d302d | 29526 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29527 | } |
29528 | return resultobj; | |
29529 | fail: | |
29530 | return NULL; | |
29531 | } | |
29532 | ||
29533 | ||
c32bde28 | 29534 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29535 | PyObject *resultobj; |
29536 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29537 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29538 | PyObject * obj0 = 0 ; | |
29539 | PyObject * obj1 = 0 ; | |
29540 | char *kwnames[] = { | |
29541 | (char *) "self",(char *) "window", NULL | |
29542 | }; | |
29543 | ||
29544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29549 | { | |
29550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29551 | (arg1)->SetWindow(arg2); | |
29552 | ||
29553 | wxPyEndAllowThreads(__tstate); | |
29554 | if (PyErr_Occurred()) SWIG_fail; | |
29555 | } | |
29556 | Py_INCREF(Py_None); resultobj = Py_None; | |
29557 | return resultobj; | |
29558 | fail: | |
29559 | return NULL; | |
29560 | } | |
29561 | ||
29562 | ||
c32bde28 | 29563 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29564 | PyObject *resultobj; |
29565 | bool result; | |
29566 | char *kwnames[] = { | |
29567 | NULL | |
29568 | }; | |
29569 | ||
29570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29571 | { | |
29572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29573 | result = (bool)wxValidator::IsSilent(); | |
29574 | ||
29575 | wxPyEndAllowThreads(__tstate); | |
29576 | if (PyErr_Occurred()) SWIG_fail; | |
29577 | } | |
29578 | { | |
29579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29580 | } | |
29581 | return resultobj; | |
29582 | fail: | |
29583 | return NULL; | |
29584 | } | |
29585 | ||
29586 | ||
c32bde28 | 29587 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29588 | PyObject *resultobj; |
ae8162c8 | 29589 | int arg1 = (int) true ; |
d55e5bfc RD |
29590 | PyObject * obj0 = 0 ; |
29591 | char *kwnames[] = { | |
29592 | (char *) "doIt", NULL | |
29593 | }; | |
29594 | ||
29595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29596 | if (obj0) { | |
c32bde28 | 29597 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29598 | if (PyErr_Occurred()) SWIG_fail; |
29599 | } | |
29600 | { | |
29601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29602 | wxValidator::SetBellOnError(arg1); | |
29603 | ||
29604 | wxPyEndAllowThreads(__tstate); | |
29605 | if (PyErr_Occurred()) SWIG_fail; | |
29606 | } | |
29607 | Py_INCREF(Py_None); resultobj = Py_None; | |
29608 | return resultobj; | |
29609 | fail: | |
29610 | return NULL; | |
29611 | } | |
29612 | ||
29613 | ||
c32bde28 | 29614 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29615 | PyObject *obj; |
29616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29617 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29618 | Py_INCREF(obj); | |
29619 | return Py_BuildValue((char *)""); | |
29620 | } | |
c32bde28 | 29621 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29622 | PyObject *resultobj; |
29623 | wxPyValidator *result; | |
29624 | char *kwnames[] = { | |
29625 | NULL | |
29626 | }; | |
29627 | ||
29628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29629 | { | |
29630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29631 | result = (wxPyValidator *)new wxPyValidator(); | |
29632 | ||
29633 | wxPyEndAllowThreads(__tstate); | |
29634 | if (PyErr_Occurred()) SWIG_fail; | |
29635 | } | |
29636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29637 | return resultobj; | |
29638 | fail: | |
29639 | return NULL; | |
29640 | } | |
29641 | ||
29642 | ||
c32bde28 | 29643 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29644 | PyObject *resultobj; |
29645 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29646 | PyObject *arg2 = (PyObject *) 0 ; | |
29647 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 29648 | int arg4 = (int) true ; |
d55e5bfc RD |
29649 | PyObject * obj0 = 0 ; |
29650 | PyObject * obj1 = 0 ; | |
29651 | PyObject * obj2 = 0 ; | |
29652 | PyObject * obj3 = 0 ; | |
29653 | char *kwnames[] = { | |
29654 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29655 | }; | |
29656 | ||
29657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29660 | arg2 = obj1; | |
29661 | arg3 = obj2; | |
29662 | if (obj3) { | |
c32bde28 | 29663 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29664 | if (PyErr_Occurred()) SWIG_fail; |
29665 | } | |
29666 | { | |
29667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29668 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29669 | ||
29670 | wxPyEndAllowThreads(__tstate); | |
29671 | if (PyErr_Occurred()) SWIG_fail; | |
29672 | } | |
29673 | Py_INCREF(Py_None); resultobj = Py_None; | |
29674 | return resultobj; | |
29675 | fail: | |
29676 | return NULL; | |
29677 | } | |
29678 | ||
29679 | ||
c32bde28 | 29680 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29681 | PyObject *obj; |
29682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29683 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29684 | Py_INCREF(obj); | |
29685 | return Py_BuildValue((char *)""); | |
29686 | } | |
c32bde28 | 29687 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29688 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29689 | return 1; | |
29690 | } | |
29691 | ||
29692 | ||
29693 | static PyObject *_wrap_DefaultValidator_get() { | |
29694 | PyObject *pyobj; | |
29695 | ||
29696 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29697 | return pyobj; | |
29698 | } | |
29699 | ||
29700 | ||
c32bde28 | 29701 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29702 | PyObject *resultobj; |
29703 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29704 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29705 | long arg2 = (long) 0 ; | |
29706 | wxMenu *result; | |
ae8162c8 | 29707 | bool temp1 = false ; |
d55e5bfc RD |
29708 | PyObject * obj0 = 0 ; |
29709 | PyObject * obj1 = 0 ; | |
29710 | char *kwnames[] = { | |
29711 | (char *) "title",(char *) "style", NULL | |
29712 | }; | |
29713 | ||
29714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29715 | if (obj0) { | |
29716 | { | |
29717 | arg1 = wxString_in_helper(obj0); | |
29718 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29719 | temp1 = true; |
d55e5bfc RD |
29720 | } |
29721 | } | |
29722 | if (obj1) { | |
c32bde28 | 29723 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29724 | if (PyErr_Occurred()) SWIG_fail; |
29725 | } | |
29726 | { | |
0439c23b | 29727 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29729 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29730 | ||
29731 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29732 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29733 | } |
b0f7404b | 29734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29735 | { |
29736 | if (temp1) | |
29737 | delete arg1; | |
29738 | } | |
29739 | return resultobj; | |
29740 | fail: | |
29741 | { | |
29742 | if (temp1) | |
29743 | delete arg1; | |
29744 | } | |
29745 | return NULL; | |
29746 | } | |
29747 | ||
29748 | ||
c32bde28 | 29749 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29750 | PyObject *resultobj; |
29751 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29752 | int arg2 ; | |
29753 | wxString *arg3 = 0 ; | |
29754 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29755 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29756 | int arg5 = (int) wxITEM_NORMAL ; | |
29757 | wxMenuItem *result; | |
ae8162c8 RD |
29758 | bool temp3 = false ; |
29759 | bool temp4 = false ; | |
d55e5bfc RD |
29760 | PyObject * obj0 = 0 ; |
29761 | PyObject * obj1 = 0 ; | |
29762 | PyObject * obj2 = 0 ; | |
29763 | PyObject * obj3 = 0 ; | |
29764 | PyObject * obj4 = 0 ; | |
29765 | char *kwnames[] = { | |
29766 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29767 | }; | |
29768 | ||
29769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29772 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29773 | if (PyErr_Occurred()) SWIG_fail; |
29774 | { | |
29775 | arg3 = wxString_in_helper(obj2); | |
29776 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29777 | temp3 = true; |
d55e5bfc RD |
29778 | } |
29779 | if (obj3) { | |
29780 | { | |
29781 | arg4 = wxString_in_helper(obj3); | |
29782 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29783 | temp4 = true; |
d55e5bfc RD |
29784 | } |
29785 | } | |
29786 | if (obj4) { | |
c32bde28 | 29787 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29788 | if (PyErr_Occurred()) SWIG_fail; |
29789 | } | |
29790 | { | |
29791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29792 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29793 | ||
29794 | wxPyEndAllowThreads(__tstate); | |
29795 | if (PyErr_Occurred()) SWIG_fail; | |
29796 | } | |
29797 | { | |
412d302d | 29798 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29799 | } |
29800 | { | |
29801 | if (temp3) | |
29802 | delete arg3; | |
29803 | } | |
29804 | { | |
29805 | if (temp4) | |
29806 | delete arg4; | |
29807 | } | |
29808 | return resultobj; | |
29809 | fail: | |
29810 | { | |
29811 | if (temp3) | |
29812 | delete arg3; | |
29813 | } | |
29814 | { | |
29815 | if (temp4) | |
29816 | delete arg4; | |
29817 | } | |
29818 | return NULL; | |
29819 | } | |
29820 | ||
29821 | ||
c32bde28 | 29822 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29823 | PyObject *resultobj; |
29824 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29825 | wxMenuItem *result; | |
29826 | PyObject * obj0 = 0 ; | |
29827 | char *kwnames[] = { | |
29828 | (char *) "self", NULL | |
29829 | }; | |
29830 | ||
29831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29834 | { | |
29835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29836 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29837 | ||
29838 | wxPyEndAllowThreads(__tstate); | |
29839 | if (PyErr_Occurred()) SWIG_fail; | |
29840 | } | |
29841 | { | |
412d302d | 29842 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29843 | } |
29844 | return resultobj; | |
29845 | fail: | |
29846 | return NULL; | |
29847 | } | |
29848 | ||
29849 | ||
c32bde28 | 29850 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29851 | PyObject *resultobj; |
29852 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29853 | int arg2 ; | |
29854 | wxString *arg3 = 0 ; | |
29855 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29856 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29857 | wxMenuItem *result; | |
ae8162c8 RD |
29858 | bool temp3 = false ; |
29859 | bool temp4 = false ; | |
d55e5bfc RD |
29860 | PyObject * obj0 = 0 ; |
29861 | PyObject * obj1 = 0 ; | |
29862 | PyObject * obj2 = 0 ; | |
29863 | PyObject * obj3 = 0 ; | |
29864 | char *kwnames[] = { | |
29865 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29866 | }; | |
29867 | ||
29868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29871 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29872 | if (PyErr_Occurred()) SWIG_fail; |
29873 | { | |
29874 | arg3 = wxString_in_helper(obj2); | |
29875 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29876 | temp3 = true; |
d55e5bfc RD |
29877 | } |
29878 | if (obj3) { | |
29879 | { | |
29880 | arg4 = wxString_in_helper(obj3); | |
29881 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29882 | temp4 = true; |
d55e5bfc RD |
29883 | } |
29884 | } | |
29885 | { | |
29886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29887 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29888 | ||
29889 | wxPyEndAllowThreads(__tstate); | |
29890 | if (PyErr_Occurred()) SWIG_fail; | |
29891 | } | |
29892 | { | |
412d302d | 29893 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29894 | } |
29895 | { | |
29896 | if (temp3) | |
29897 | delete arg3; | |
29898 | } | |
29899 | { | |
29900 | if (temp4) | |
29901 | delete arg4; | |
29902 | } | |
29903 | return resultobj; | |
29904 | fail: | |
29905 | { | |
29906 | if (temp3) | |
29907 | delete arg3; | |
29908 | } | |
29909 | { | |
29910 | if (temp4) | |
29911 | delete arg4; | |
29912 | } | |
29913 | return NULL; | |
29914 | } | |
29915 | ||
29916 | ||
c32bde28 | 29917 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29918 | PyObject *resultobj; |
29919 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29920 | int arg2 ; | |
29921 | wxString *arg3 = 0 ; | |
29922 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29923 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29924 | wxMenuItem *result; | |
ae8162c8 RD |
29925 | bool temp3 = false ; |
29926 | bool temp4 = false ; | |
d55e5bfc RD |
29927 | PyObject * obj0 = 0 ; |
29928 | PyObject * obj1 = 0 ; | |
29929 | PyObject * obj2 = 0 ; | |
29930 | PyObject * obj3 = 0 ; | |
29931 | char *kwnames[] = { | |
29932 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29933 | }; | |
29934 | ||
29935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29938 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29939 | if (PyErr_Occurred()) SWIG_fail; |
29940 | { | |
29941 | arg3 = wxString_in_helper(obj2); | |
29942 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29943 | temp3 = true; |
d55e5bfc RD |
29944 | } |
29945 | if (obj3) { | |
29946 | { | |
29947 | arg4 = wxString_in_helper(obj3); | |
29948 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29949 | temp4 = true; |
d55e5bfc RD |
29950 | } |
29951 | } | |
29952 | { | |
29953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29954 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29955 | ||
29956 | wxPyEndAllowThreads(__tstate); | |
29957 | if (PyErr_Occurred()) SWIG_fail; | |
29958 | } | |
29959 | { | |
412d302d | 29960 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29961 | } |
29962 | { | |
29963 | if (temp3) | |
29964 | delete arg3; | |
29965 | } | |
29966 | { | |
29967 | if (temp4) | |
29968 | delete arg4; | |
29969 | } | |
29970 | return resultobj; | |
29971 | fail: | |
29972 | { | |
29973 | if (temp3) | |
29974 | delete arg3; | |
29975 | } | |
29976 | { | |
29977 | if (temp4) | |
29978 | delete arg4; | |
29979 | } | |
29980 | return NULL; | |
29981 | } | |
29982 | ||
29983 | ||
c32bde28 | 29984 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29985 | PyObject *resultobj; |
29986 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29987 | int arg2 ; | |
29988 | wxString *arg3 = 0 ; | |
29989 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29990 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29991 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29992 | wxMenuItem *result; | |
ae8162c8 RD |
29993 | bool temp3 = false ; |
29994 | bool temp5 = false ; | |
d55e5bfc RD |
29995 | PyObject * obj0 = 0 ; |
29996 | PyObject * obj1 = 0 ; | |
29997 | PyObject * obj2 = 0 ; | |
29998 | PyObject * obj3 = 0 ; | |
29999 | PyObject * obj4 = 0 ; | |
30000 | char *kwnames[] = { | |
30001 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30002 | }; | |
30003 | ||
30004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30007 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30008 | if (PyErr_Occurred()) SWIG_fail; |
30009 | { | |
30010 | arg3 = wxString_in_helper(obj2); | |
30011 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30012 | temp3 = true; |
d55e5bfc RD |
30013 | } |
30014 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30016 | if (obj4) { | |
30017 | { | |
30018 | arg5 = wxString_in_helper(obj4); | |
30019 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30020 | temp5 = true; |
d55e5bfc RD |
30021 | } |
30022 | } | |
30023 | { | |
30024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30025 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30026 | ||
30027 | wxPyEndAllowThreads(__tstate); | |
30028 | if (PyErr_Occurred()) SWIG_fail; | |
30029 | } | |
30030 | { | |
412d302d | 30031 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30032 | } |
30033 | { | |
30034 | if (temp3) | |
30035 | delete arg3; | |
30036 | } | |
30037 | { | |
30038 | if (temp5) | |
30039 | delete arg5; | |
30040 | } | |
30041 | return resultobj; | |
30042 | fail: | |
30043 | { | |
30044 | if (temp3) | |
30045 | delete arg3; | |
30046 | } | |
30047 | { | |
30048 | if (temp5) | |
30049 | delete arg5; | |
30050 | } | |
30051 | return NULL; | |
30052 | } | |
30053 | ||
30054 | ||
c32bde28 | 30055 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30056 | PyObject *resultobj; |
30057 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30058 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30059 | wxMenuItem *result; | |
30060 | PyObject * obj0 = 0 ; | |
30061 | PyObject * obj1 = 0 ; | |
30062 | char *kwnames[] = { | |
30063 | (char *) "self",(char *) "item", NULL | |
30064 | }; | |
30065 | ||
30066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
30067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30069 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30071 | { | |
30072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30073 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
30074 | ||
30075 | wxPyEndAllowThreads(__tstate); | |
30076 | if (PyErr_Occurred()) SWIG_fail; | |
30077 | } | |
30078 | { | |
412d302d | 30079 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30080 | } |
30081 | return resultobj; | |
30082 | fail: | |
30083 | return NULL; | |
30084 | } | |
30085 | ||
30086 | ||
c32bde28 | 30087 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30088 | PyObject *resultobj; |
30089 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30090 | PyObject * obj0 = 0 ; | |
30091 | char *kwnames[] = { | |
30092 | (char *) "self", NULL | |
30093 | }; | |
30094 | ||
30095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
30096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30098 | { | |
30099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30100 | (arg1)->Break(); | |
30101 | ||
30102 | wxPyEndAllowThreads(__tstate); | |
30103 | if (PyErr_Occurred()) SWIG_fail; | |
30104 | } | |
30105 | Py_INCREF(Py_None); resultobj = Py_None; | |
30106 | return resultobj; | |
30107 | fail: | |
30108 | return NULL; | |
30109 | } | |
30110 | ||
30111 | ||
c32bde28 | 30112 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30113 | PyObject *resultobj; |
30114 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30115 | size_t arg2 ; | |
30116 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
30117 | wxMenuItem *result; | |
30118 | PyObject * obj0 = 0 ; | |
30119 | PyObject * obj1 = 0 ; | |
30120 | PyObject * obj2 = 0 ; | |
30121 | char *kwnames[] = { | |
30122 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
30123 | }; | |
30124 | ||
30125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30128 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30129 | if (PyErr_Occurred()) SWIG_fail; |
30130 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
30131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30132 | { | |
30133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30134 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
30135 | ||
30136 | wxPyEndAllowThreads(__tstate); | |
30137 | if (PyErr_Occurred()) SWIG_fail; | |
30138 | } | |
30139 | { | |
412d302d | 30140 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30141 | } |
30142 | return resultobj; | |
30143 | fail: | |
30144 | return NULL; | |
30145 | } | |
30146 | ||
30147 | ||
c32bde28 | 30148 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30149 | PyObject *resultobj; |
30150 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30151 | size_t arg2 ; | |
30152 | int arg3 ; | |
30153 | wxString *arg4 = 0 ; | |
30154 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30155 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30156 | int arg6 = (int) wxITEM_NORMAL ; | |
30157 | wxMenuItem *result; | |
ae8162c8 RD |
30158 | bool temp4 = false ; |
30159 | bool temp5 = false ; | |
d55e5bfc RD |
30160 | PyObject * obj0 = 0 ; |
30161 | PyObject * obj1 = 0 ; | |
30162 | PyObject * obj2 = 0 ; | |
30163 | PyObject * obj3 = 0 ; | |
30164 | PyObject * obj4 = 0 ; | |
30165 | PyObject * obj5 = 0 ; | |
30166 | char *kwnames[] = { | |
30167 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30168 | }; | |
30169 | ||
30170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30173 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30174 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30175 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30176 | if (PyErr_Occurred()) SWIG_fail; |
30177 | { | |
30178 | arg4 = wxString_in_helper(obj3); | |
30179 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30180 | temp4 = true; |
d55e5bfc RD |
30181 | } |
30182 | if (obj4) { | |
30183 | { | |
30184 | arg5 = wxString_in_helper(obj4); | |
30185 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30186 | temp5 = true; |
d55e5bfc RD |
30187 | } |
30188 | } | |
30189 | if (obj5) { | |
c32bde28 | 30190 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
30191 | if (PyErr_Occurred()) SWIG_fail; |
30192 | } | |
30193 | { | |
30194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30195 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
30196 | ||
30197 | wxPyEndAllowThreads(__tstate); | |
30198 | if (PyErr_Occurred()) SWIG_fail; | |
30199 | } | |
30200 | { | |
412d302d | 30201 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30202 | } |
30203 | { | |
30204 | if (temp4) | |
30205 | delete arg4; | |
30206 | } | |
30207 | { | |
30208 | if (temp5) | |
30209 | delete arg5; | |
30210 | } | |
30211 | return resultobj; | |
30212 | fail: | |
30213 | { | |
30214 | if (temp4) | |
30215 | delete arg4; | |
30216 | } | |
30217 | { | |
30218 | if (temp5) | |
30219 | delete arg5; | |
30220 | } | |
30221 | return NULL; | |
30222 | } | |
30223 | ||
30224 | ||
c32bde28 | 30225 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30226 | PyObject *resultobj; |
30227 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30228 | size_t arg2 ; | |
30229 | wxMenuItem *result; | |
30230 | PyObject * obj0 = 0 ; | |
30231 | PyObject * obj1 = 0 ; | |
30232 | char *kwnames[] = { | |
30233 | (char *) "self",(char *) "pos", NULL | |
30234 | }; | |
30235 | ||
30236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
30237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30239 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30240 | if (PyErr_Occurred()) SWIG_fail; |
30241 | { | |
30242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30243 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
30244 | ||
30245 | wxPyEndAllowThreads(__tstate); | |
30246 | if (PyErr_Occurred()) SWIG_fail; | |
30247 | } | |
30248 | { | |
412d302d | 30249 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30250 | } |
30251 | return resultobj; | |
30252 | fail: | |
30253 | return NULL; | |
30254 | } | |
30255 | ||
30256 | ||
c32bde28 | 30257 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30258 | PyObject *resultobj; |
30259 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30260 | size_t arg2 ; | |
30261 | int arg3 ; | |
30262 | wxString *arg4 = 0 ; | |
30263 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30264 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30265 | wxMenuItem *result; | |
ae8162c8 RD |
30266 | bool temp4 = false ; |
30267 | bool temp5 = false ; | |
d55e5bfc RD |
30268 | PyObject * obj0 = 0 ; |
30269 | PyObject * obj1 = 0 ; | |
30270 | PyObject * obj2 = 0 ; | |
30271 | PyObject * obj3 = 0 ; | |
30272 | PyObject * obj4 = 0 ; | |
30273 | char *kwnames[] = { | |
30274 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30275 | }; | |
30276 | ||
30277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30280 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30281 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30282 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30283 | if (PyErr_Occurred()) SWIG_fail; |
30284 | { | |
30285 | arg4 = wxString_in_helper(obj3); | |
30286 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30287 | temp4 = true; |
d55e5bfc RD |
30288 | } |
30289 | if (obj4) { | |
30290 | { | |
30291 | arg5 = wxString_in_helper(obj4); | |
30292 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30293 | temp5 = true; |
d55e5bfc RD |
30294 | } |
30295 | } | |
30296 | { | |
30297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30298 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30299 | ||
30300 | wxPyEndAllowThreads(__tstate); | |
30301 | if (PyErr_Occurred()) SWIG_fail; | |
30302 | } | |
30303 | { | |
412d302d | 30304 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30305 | } |
30306 | { | |
30307 | if (temp4) | |
30308 | delete arg4; | |
30309 | } | |
30310 | { | |
30311 | if (temp5) | |
30312 | delete arg5; | |
30313 | } | |
30314 | return resultobj; | |
30315 | fail: | |
30316 | { | |
30317 | if (temp4) | |
30318 | delete arg4; | |
30319 | } | |
30320 | { | |
30321 | if (temp5) | |
30322 | delete arg5; | |
30323 | } | |
30324 | return NULL; | |
30325 | } | |
30326 | ||
30327 | ||
c32bde28 | 30328 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30329 | PyObject *resultobj; |
30330 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30331 | size_t arg2 ; | |
30332 | int arg3 ; | |
30333 | wxString *arg4 = 0 ; | |
30334 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30335 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30336 | wxMenuItem *result; | |
ae8162c8 RD |
30337 | bool temp4 = false ; |
30338 | bool temp5 = false ; | |
d55e5bfc RD |
30339 | PyObject * obj0 = 0 ; |
30340 | PyObject * obj1 = 0 ; | |
30341 | PyObject * obj2 = 0 ; | |
30342 | PyObject * obj3 = 0 ; | |
30343 | PyObject * obj4 = 0 ; | |
30344 | char *kwnames[] = { | |
30345 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30346 | }; | |
30347 | ||
30348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30351 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30352 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30353 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30354 | if (PyErr_Occurred()) SWIG_fail; |
30355 | { | |
30356 | arg4 = wxString_in_helper(obj3); | |
30357 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30358 | temp4 = true; |
d55e5bfc RD |
30359 | } |
30360 | if (obj4) { | |
30361 | { | |
30362 | arg5 = wxString_in_helper(obj4); | |
30363 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30364 | temp5 = true; |
d55e5bfc RD |
30365 | } |
30366 | } | |
30367 | { | |
30368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30369 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30370 | ||
30371 | wxPyEndAllowThreads(__tstate); | |
30372 | if (PyErr_Occurred()) SWIG_fail; | |
30373 | } | |
30374 | { | |
412d302d | 30375 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30376 | } |
30377 | { | |
30378 | if (temp4) | |
30379 | delete arg4; | |
30380 | } | |
30381 | { | |
30382 | if (temp5) | |
30383 | delete arg5; | |
30384 | } | |
30385 | return resultobj; | |
30386 | fail: | |
30387 | { | |
30388 | if (temp4) | |
30389 | delete arg4; | |
30390 | } | |
30391 | { | |
30392 | if (temp5) | |
30393 | delete arg5; | |
30394 | } | |
30395 | return NULL; | |
30396 | } | |
30397 | ||
30398 | ||
c32bde28 | 30399 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30400 | PyObject *resultobj; |
30401 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30402 | size_t arg2 ; | |
30403 | int arg3 ; | |
30404 | wxString *arg4 = 0 ; | |
30405 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30406 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30407 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30408 | wxMenuItem *result; | |
ae8162c8 RD |
30409 | bool temp4 = false ; |
30410 | bool temp6 = false ; | |
d55e5bfc RD |
30411 | PyObject * obj0 = 0 ; |
30412 | PyObject * obj1 = 0 ; | |
30413 | PyObject * obj2 = 0 ; | |
30414 | PyObject * obj3 = 0 ; | |
30415 | PyObject * obj4 = 0 ; | |
30416 | PyObject * obj5 = 0 ; | |
30417 | char *kwnames[] = { | |
30418 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30419 | }; | |
30420 | ||
30421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30424 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30425 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30426 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30427 | if (PyErr_Occurred()) SWIG_fail; |
30428 | { | |
30429 | arg4 = wxString_in_helper(obj3); | |
30430 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30431 | temp4 = true; |
d55e5bfc RD |
30432 | } |
30433 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30435 | if (obj5) { | |
30436 | { | |
30437 | arg6 = wxString_in_helper(obj5); | |
30438 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 30439 | temp6 = true; |
d55e5bfc RD |
30440 | } |
30441 | } | |
30442 | { | |
30443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30444 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30445 | ||
30446 | wxPyEndAllowThreads(__tstate); | |
30447 | if (PyErr_Occurred()) SWIG_fail; | |
30448 | } | |
30449 | { | |
412d302d | 30450 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30451 | } |
30452 | { | |
30453 | if (temp4) | |
30454 | delete arg4; | |
30455 | } | |
30456 | { | |
30457 | if (temp6) | |
30458 | delete arg6; | |
30459 | } | |
30460 | return resultobj; | |
30461 | fail: | |
30462 | { | |
30463 | if (temp4) | |
30464 | delete arg4; | |
30465 | } | |
30466 | { | |
30467 | if (temp6) | |
30468 | delete arg6; | |
30469 | } | |
30470 | return NULL; | |
30471 | } | |
30472 | ||
30473 | ||
c32bde28 | 30474 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30475 | PyObject *resultobj; |
30476 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30477 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30478 | wxMenuItem *result; | |
30479 | PyObject * obj0 = 0 ; | |
30480 | PyObject * obj1 = 0 ; | |
30481 | char *kwnames[] = { | |
30482 | (char *) "self",(char *) "item", NULL | |
30483 | }; | |
30484 | ||
30485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30490 | { | |
30491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30492 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30493 | ||
30494 | wxPyEndAllowThreads(__tstate); | |
30495 | if (PyErr_Occurred()) SWIG_fail; | |
30496 | } | |
30497 | { | |
412d302d | 30498 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30499 | } |
30500 | return resultobj; | |
30501 | fail: | |
30502 | return NULL; | |
30503 | } | |
30504 | ||
30505 | ||
c32bde28 | 30506 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30507 | PyObject *resultobj; |
30508 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30509 | int arg2 ; | |
30510 | wxString *arg3 = 0 ; | |
30511 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30512 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30513 | int arg5 = (int) wxITEM_NORMAL ; | |
30514 | wxMenuItem *result; | |
ae8162c8 RD |
30515 | bool temp3 = false ; |
30516 | bool temp4 = false ; | |
d55e5bfc RD |
30517 | PyObject * obj0 = 0 ; |
30518 | PyObject * obj1 = 0 ; | |
30519 | PyObject * obj2 = 0 ; | |
30520 | PyObject * obj3 = 0 ; | |
30521 | PyObject * obj4 = 0 ; | |
30522 | char *kwnames[] = { | |
30523 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30524 | }; | |
30525 | ||
30526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30529 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30530 | if (PyErr_Occurred()) SWIG_fail; |
30531 | { | |
30532 | arg3 = wxString_in_helper(obj2); | |
30533 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30534 | temp3 = true; |
d55e5bfc RD |
30535 | } |
30536 | if (obj3) { | |
30537 | { | |
30538 | arg4 = wxString_in_helper(obj3); | |
30539 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30540 | temp4 = true; |
d55e5bfc RD |
30541 | } |
30542 | } | |
30543 | if (obj4) { | |
c32bde28 | 30544 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30545 | if (PyErr_Occurred()) SWIG_fail; |
30546 | } | |
30547 | { | |
30548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30549 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
30550 | ||
30551 | wxPyEndAllowThreads(__tstate); | |
30552 | if (PyErr_Occurred()) SWIG_fail; | |
30553 | } | |
30554 | { | |
412d302d | 30555 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30556 | } |
30557 | { | |
30558 | if (temp3) | |
30559 | delete arg3; | |
30560 | } | |
30561 | { | |
30562 | if (temp4) | |
30563 | delete arg4; | |
30564 | } | |
30565 | return resultobj; | |
30566 | fail: | |
30567 | { | |
30568 | if (temp3) | |
30569 | delete arg3; | |
30570 | } | |
30571 | { | |
30572 | if (temp4) | |
30573 | delete arg4; | |
30574 | } | |
30575 | return NULL; | |
30576 | } | |
30577 | ||
30578 | ||
c32bde28 | 30579 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30580 | PyObject *resultobj; |
30581 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30582 | wxMenuItem *result; | |
30583 | PyObject * obj0 = 0 ; | |
30584 | char *kwnames[] = { | |
30585 | (char *) "self", NULL | |
30586 | }; | |
30587 | ||
30588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30591 | { | |
30592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30593 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30594 | ||
30595 | wxPyEndAllowThreads(__tstate); | |
30596 | if (PyErr_Occurred()) SWIG_fail; | |
30597 | } | |
30598 | { | |
412d302d | 30599 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30600 | } |
30601 | return resultobj; | |
30602 | fail: | |
30603 | return NULL; | |
30604 | } | |
30605 | ||
30606 | ||
c32bde28 | 30607 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30608 | PyObject *resultobj; |
30609 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30610 | int arg2 ; | |
30611 | wxString *arg3 = 0 ; | |
30612 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30613 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30614 | wxMenuItem *result; | |
ae8162c8 RD |
30615 | bool temp3 = false ; |
30616 | bool temp4 = false ; | |
d55e5bfc RD |
30617 | PyObject * obj0 = 0 ; |
30618 | PyObject * obj1 = 0 ; | |
30619 | PyObject * obj2 = 0 ; | |
30620 | PyObject * obj3 = 0 ; | |
30621 | char *kwnames[] = { | |
30622 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30623 | }; | |
30624 | ||
30625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30628 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30629 | if (PyErr_Occurred()) SWIG_fail; |
30630 | { | |
30631 | arg3 = wxString_in_helper(obj2); | |
30632 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30633 | temp3 = true; |
d55e5bfc RD |
30634 | } |
30635 | if (obj3) { | |
30636 | { | |
30637 | arg4 = wxString_in_helper(obj3); | |
30638 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30639 | temp4 = true; |
d55e5bfc RD |
30640 | } |
30641 | } | |
30642 | { | |
30643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30644 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30645 | ||
30646 | wxPyEndAllowThreads(__tstate); | |
30647 | if (PyErr_Occurred()) SWIG_fail; | |
30648 | } | |
30649 | { | |
412d302d | 30650 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30651 | } |
30652 | { | |
30653 | if (temp3) | |
30654 | delete arg3; | |
30655 | } | |
30656 | { | |
30657 | if (temp4) | |
30658 | delete arg4; | |
30659 | } | |
30660 | return resultobj; | |
30661 | fail: | |
30662 | { | |
30663 | if (temp3) | |
30664 | delete arg3; | |
30665 | } | |
30666 | { | |
30667 | if (temp4) | |
30668 | delete arg4; | |
30669 | } | |
30670 | return NULL; | |
30671 | } | |
30672 | ||
30673 | ||
c32bde28 | 30674 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30675 | PyObject *resultobj; |
30676 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30677 | int arg2 ; | |
30678 | wxString *arg3 = 0 ; | |
30679 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30680 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30681 | wxMenuItem *result; | |
ae8162c8 RD |
30682 | bool temp3 = false ; |
30683 | bool temp4 = false ; | |
d55e5bfc RD |
30684 | PyObject * obj0 = 0 ; |
30685 | PyObject * obj1 = 0 ; | |
30686 | PyObject * obj2 = 0 ; | |
30687 | PyObject * obj3 = 0 ; | |
30688 | char *kwnames[] = { | |
30689 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30690 | }; | |
30691 | ||
30692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30695 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30696 | if (PyErr_Occurred()) SWIG_fail; |
30697 | { | |
30698 | arg3 = wxString_in_helper(obj2); | |
30699 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30700 | temp3 = true; |
d55e5bfc RD |
30701 | } |
30702 | if (obj3) { | |
30703 | { | |
30704 | arg4 = wxString_in_helper(obj3); | |
30705 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30706 | temp4 = true; |
d55e5bfc RD |
30707 | } |
30708 | } | |
30709 | { | |
30710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30711 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30712 | ||
30713 | wxPyEndAllowThreads(__tstate); | |
30714 | if (PyErr_Occurred()) SWIG_fail; | |
30715 | } | |
30716 | { | |
412d302d | 30717 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30718 | } |
30719 | { | |
30720 | if (temp3) | |
30721 | delete arg3; | |
30722 | } | |
30723 | { | |
30724 | if (temp4) | |
30725 | delete arg4; | |
30726 | } | |
30727 | return resultobj; | |
30728 | fail: | |
30729 | { | |
30730 | if (temp3) | |
30731 | delete arg3; | |
30732 | } | |
30733 | { | |
30734 | if (temp4) | |
30735 | delete arg4; | |
30736 | } | |
30737 | return NULL; | |
30738 | } | |
30739 | ||
30740 | ||
c32bde28 | 30741 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30742 | PyObject *resultobj; |
30743 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30744 | int arg2 ; | |
30745 | wxString *arg3 = 0 ; | |
30746 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30747 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30748 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30749 | wxMenuItem *result; | |
ae8162c8 RD |
30750 | bool temp3 = false ; |
30751 | bool temp5 = false ; | |
d55e5bfc RD |
30752 | PyObject * obj0 = 0 ; |
30753 | PyObject * obj1 = 0 ; | |
30754 | PyObject * obj2 = 0 ; | |
30755 | PyObject * obj3 = 0 ; | |
30756 | PyObject * obj4 = 0 ; | |
30757 | char *kwnames[] = { | |
30758 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30759 | }; | |
30760 | ||
30761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30764 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30765 | if (PyErr_Occurred()) SWIG_fail; |
30766 | { | |
30767 | arg3 = wxString_in_helper(obj2); | |
30768 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30769 | temp3 = true; |
d55e5bfc RD |
30770 | } |
30771 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30773 | if (obj4) { | |
30774 | { | |
30775 | arg5 = wxString_in_helper(obj4); | |
30776 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30777 | temp5 = true; |
d55e5bfc RD |
30778 | } |
30779 | } | |
30780 | { | |
30781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30782 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30783 | ||
30784 | wxPyEndAllowThreads(__tstate); | |
30785 | if (PyErr_Occurred()) SWIG_fail; | |
30786 | } | |
30787 | { | |
412d302d | 30788 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30789 | } |
30790 | { | |
30791 | if (temp3) | |
30792 | delete arg3; | |
30793 | } | |
30794 | { | |
30795 | if (temp5) | |
30796 | delete arg5; | |
30797 | } | |
30798 | return resultobj; | |
30799 | fail: | |
30800 | { | |
30801 | if (temp3) | |
30802 | delete arg3; | |
30803 | } | |
30804 | { | |
30805 | if (temp5) | |
30806 | delete arg5; | |
30807 | } | |
30808 | return NULL; | |
30809 | } | |
30810 | ||
30811 | ||
c32bde28 | 30812 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30813 | PyObject *resultobj; |
30814 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30815 | int arg2 ; | |
30816 | wxMenuItem *result; | |
30817 | PyObject * obj0 = 0 ; | |
30818 | PyObject * obj1 = 0 ; | |
30819 | char *kwnames[] = { | |
30820 | (char *) "self",(char *) "id", NULL | |
30821 | }; | |
30822 | ||
30823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30826 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30827 | if (PyErr_Occurred()) SWIG_fail; |
30828 | { | |
30829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30830 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30831 | ||
30832 | wxPyEndAllowThreads(__tstate); | |
30833 | if (PyErr_Occurred()) SWIG_fail; | |
30834 | } | |
30835 | { | |
412d302d | 30836 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30837 | } |
30838 | return resultobj; | |
30839 | fail: | |
30840 | return NULL; | |
30841 | } | |
30842 | ||
30843 | ||
c32bde28 | 30844 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30845 | PyObject *resultobj; |
30846 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30847 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30848 | wxMenuItem *result; | |
30849 | PyObject * obj0 = 0 ; | |
30850 | PyObject * obj1 = 0 ; | |
30851 | char *kwnames[] = { | |
30852 | (char *) "self",(char *) "item", NULL | |
30853 | }; | |
30854 | ||
30855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30860 | { | |
30861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30862 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30863 | ||
30864 | wxPyEndAllowThreads(__tstate); | |
30865 | if (PyErr_Occurred()) SWIG_fail; | |
30866 | } | |
30867 | { | |
412d302d | 30868 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30869 | } |
30870 | return resultobj; | |
30871 | fail: | |
30872 | return NULL; | |
30873 | } | |
30874 | ||
30875 | ||
c32bde28 | 30876 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30877 | PyObject *resultobj; |
30878 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30879 | int arg2 ; | |
30880 | bool result; | |
30881 | PyObject * obj0 = 0 ; | |
30882 | PyObject * obj1 = 0 ; | |
30883 | char *kwnames[] = { | |
30884 | (char *) "self",(char *) "id", NULL | |
30885 | }; | |
30886 | ||
30887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30890 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30891 | if (PyErr_Occurred()) SWIG_fail; |
30892 | { | |
30893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30894 | result = (bool)(arg1)->Delete(arg2); | |
30895 | ||
30896 | wxPyEndAllowThreads(__tstate); | |
30897 | if (PyErr_Occurred()) SWIG_fail; | |
30898 | } | |
30899 | { | |
30900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30901 | } | |
30902 | return resultobj; | |
30903 | fail: | |
30904 | return NULL; | |
30905 | } | |
30906 | ||
30907 | ||
c32bde28 | 30908 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30909 | PyObject *resultobj; |
30910 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30911 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30912 | bool result; | |
30913 | PyObject * obj0 = 0 ; | |
30914 | PyObject * obj1 = 0 ; | |
30915 | char *kwnames[] = { | |
30916 | (char *) "self",(char *) "item", NULL | |
30917 | }; | |
30918 | ||
30919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30924 | { | |
30925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30926 | result = (bool)(arg1)->Delete(arg2); | |
30927 | ||
30928 | wxPyEndAllowThreads(__tstate); | |
30929 | if (PyErr_Occurred()) SWIG_fail; | |
30930 | } | |
30931 | { | |
30932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30933 | } | |
30934 | return resultobj; | |
30935 | fail: | |
30936 | return NULL; | |
30937 | } | |
30938 | ||
30939 | ||
c32bde28 | 30940 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30941 | PyObject *resultobj; |
30942 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30943 | PyObject * obj0 = 0 ; | |
30944 | char *kwnames[] = { | |
30945 | (char *) "self", NULL | |
30946 | }; | |
30947 | ||
30948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30951 | { | |
30952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30953 | wxMenu_Destroy(arg1); | |
30954 | ||
30955 | wxPyEndAllowThreads(__tstate); | |
30956 | if (PyErr_Occurred()) SWIG_fail; | |
30957 | } | |
30958 | Py_INCREF(Py_None); resultobj = Py_None; | |
30959 | return resultobj; | |
30960 | fail: | |
30961 | return NULL; | |
30962 | } | |
30963 | ||
30964 | ||
c32bde28 | 30965 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30966 | PyObject *resultobj; |
30967 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30968 | int arg2 ; | |
30969 | bool result; | |
30970 | PyObject * obj0 = 0 ; | |
30971 | PyObject * obj1 = 0 ; | |
30972 | char *kwnames[] = { | |
30973 | (char *) "self",(char *) "id", NULL | |
30974 | }; | |
30975 | ||
30976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30979 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30980 | if (PyErr_Occurred()) SWIG_fail; |
30981 | { | |
30982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30983 | result = (bool)(arg1)->Destroy(arg2); | |
30984 | ||
30985 | wxPyEndAllowThreads(__tstate); | |
30986 | if (PyErr_Occurred()) SWIG_fail; | |
30987 | } | |
30988 | { | |
30989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30990 | } | |
30991 | return resultobj; | |
30992 | fail: | |
30993 | return NULL; | |
30994 | } | |
30995 | ||
30996 | ||
c32bde28 | 30997 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30998 | PyObject *resultobj; |
30999 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31000 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
31001 | bool result; | |
31002 | PyObject * obj0 = 0 ; | |
31003 | PyObject * obj1 = 0 ; | |
31004 | char *kwnames[] = { | |
31005 | (char *) "self",(char *) "item", NULL | |
31006 | }; | |
31007 | ||
31008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
31009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
31012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31013 | { | |
31014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31015 | result = (bool)(arg1)->Destroy(arg2); | |
31016 | ||
31017 | wxPyEndAllowThreads(__tstate); | |
31018 | if (PyErr_Occurred()) SWIG_fail; | |
31019 | } | |
31020 | { | |
31021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31022 | } | |
31023 | return resultobj; | |
31024 | fail: | |
31025 | return NULL; | |
31026 | } | |
31027 | ||
31028 | ||
c32bde28 | 31029 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31030 | PyObject *resultobj; |
31031 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31032 | size_t result; | |
31033 | PyObject * obj0 = 0 ; | |
31034 | char *kwnames[] = { | |
31035 | (char *) "self", NULL | |
31036 | }; | |
31037 | ||
31038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
31039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31041 | { | |
31042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31043 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
31044 | ||
31045 | wxPyEndAllowThreads(__tstate); | |
31046 | if (PyErr_Occurred()) SWIG_fail; | |
31047 | } | |
c32bde28 | 31048 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31049 | return resultobj; |
31050 | fail: | |
31051 | return NULL; | |
31052 | } | |
31053 | ||
31054 | ||
c32bde28 | 31055 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31056 | PyObject *resultobj; |
31057 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31058 | PyObject *result; | |
31059 | PyObject * obj0 = 0 ; | |
31060 | char *kwnames[] = { | |
31061 | (char *) "self", NULL | |
31062 | }; | |
31063 | ||
31064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
31065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31067 | { | |
31068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31069 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
31070 | ||
31071 | wxPyEndAllowThreads(__tstate); | |
31072 | if (PyErr_Occurred()) SWIG_fail; | |
31073 | } | |
31074 | resultobj = result; | |
31075 | return resultobj; | |
31076 | fail: | |
31077 | return NULL; | |
31078 | } | |
31079 | ||
31080 | ||
c32bde28 | 31081 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31082 | PyObject *resultobj; |
31083 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31084 | wxString *arg2 = 0 ; | |
31085 | int result; | |
ae8162c8 | 31086 | bool temp2 = false ; |
d55e5bfc RD |
31087 | PyObject * obj0 = 0 ; |
31088 | PyObject * obj1 = 0 ; | |
31089 | char *kwnames[] = { | |
31090 | (char *) "self",(char *) "item", NULL | |
31091 | }; | |
31092 | ||
31093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
31094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31096 | { | |
31097 | arg2 = wxString_in_helper(obj1); | |
31098 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31099 | temp2 = true; |
d55e5bfc RD |
31100 | } |
31101 | { | |
31102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31103 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
31104 | ||
31105 | wxPyEndAllowThreads(__tstate); | |
31106 | if (PyErr_Occurred()) SWIG_fail; | |
31107 | } | |
c32bde28 | 31108 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
31109 | { |
31110 | if (temp2) | |
31111 | delete arg2; | |
31112 | } | |
31113 | return resultobj; | |
31114 | fail: | |
31115 | { | |
31116 | if (temp2) | |
31117 | delete arg2; | |
31118 | } | |
31119 | return NULL; | |
31120 | } | |
31121 | ||
31122 | ||
c32bde28 | 31123 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31124 | PyObject *resultobj; |
31125 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31126 | int arg2 ; | |
31127 | wxMenuItem *result; | |
31128 | PyObject * obj0 = 0 ; | |
31129 | PyObject * obj1 = 0 ; | |
31130 | char *kwnames[] = { | |
31131 | (char *) "self",(char *) "id", NULL | |
31132 | }; | |
31133 | ||
31134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
31135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31137 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31138 | if (PyErr_Occurred()) SWIG_fail; |
31139 | { | |
31140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31141 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
31142 | ||
31143 | wxPyEndAllowThreads(__tstate); | |
31144 | if (PyErr_Occurred()) SWIG_fail; | |
31145 | } | |
31146 | { | |
412d302d | 31147 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31148 | } |
31149 | return resultobj; | |
31150 | fail: | |
31151 | return NULL; | |
31152 | } | |
31153 | ||
31154 | ||
c32bde28 | 31155 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31156 | PyObject *resultobj; |
31157 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31158 | size_t arg2 ; | |
31159 | wxMenuItem *result; | |
31160 | PyObject * obj0 = 0 ; | |
31161 | PyObject * obj1 = 0 ; | |
31162 | char *kwnames[] = { | |
31163 | (char *) "self",(char *) "position", NULL | |
31164 | }; | |
31165 | ||
31166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
31167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31169 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31170 | if (PyErr_Occurred()) SWIG_fail; |
31171 | { | |
31172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31173 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
31174 | ||
31175 | wxPyEndAllowThreads(__tstate); | |
31176 | if (PyErr_Occurred()) SWIG_fail; | |
31177 | } | |
31178 | { | |
412d302d | 31179 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31180 | } |
31181 | return resultobj; | |
31182 | fail: | |
31183 | return NULL; | |
31184 | } | |
31185 | ||
31186 | ||
c32bde28 | 31187 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31188 | PyObject *resultobj; |
31189 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31190 | int arg2 ; | |
31191 | bool arg3 ; | |
31192 | PyObject * obj0 = 0 ; | |
31193 | PyObject * obj1 = 0 ; | |
31194 | PyObject * obj2 = 0 ; | |
31195 | char *kwnames[] = { | |
31196 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31197 | }; | |
31198 | ||
31199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31202 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31203 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31204 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31205 | if (PyErr_Occurred()) SWIG_fail; |
31206 | { | |
31207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31208 | (arg1)->Enable(arg2,arg3); | |
31209 | ||
31210 | wxPyEndAllowThreads(__tstate); | |
31211 | if (PyErr_Occurred()) SWIG_fail; | |
31212 | } | |
31213 | Py_INCREF(Py_None); resultobj = Py_None; | |
31214 | return resultobj; | |
31215 | fail: | |
31216 | return NULL; | |
31217 | } | |
31218 | ||
31219 | ||
c32bde28 | 31220 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31221 | PyObject *resultobj; |
31222 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31223 | int arg2 ; | |
31224 | bool result; | |
31225 | PyObject * obj0 = 0 ; | |
31226 | PyObject * obj1 = 0 ; | |
31227 | char *kwnames[] = { | |
31228 | (char *) "self",(char *) "id", NULL | |
31229 | }; | |
31230 | ||
31231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31234 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31235 | if (PyErr_Occurred()) SWIG_fail; |
31236 | { | |
31237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31238 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
31239 | ||
31240 | wxPyEndAllowThreads(__tstate); | |
31241 | if (PyErr_Occurred()) SWIG_fail; | |
31242 | } | |
31243 | { | |
31244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31245 | } | |
31246 | return resultobj; | |
31247 | fail: | |
31248 | return NULL; | |
31249 | } | |
31250 | ||
31251 | ||
c32bde28 | 31252 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31253 | PyObject *resultobj; |
31254 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31255 | int arg2 ; | |
31256 | bool arg3 ; | |
31257 | PyObject * obj0 = 0 ; | |
31258 | PyObject * obj1 = 0 ; | |
31259 | PyObject * obj2 = 0 ; | |
31260 | char *kwnames[] = { | |
31261 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31262 | }; | |
31263 | ||
31264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31267 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31268 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31269 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31270 | if (PyErr_Occurred()) SWIG_fail; |
31271 | { | |
31272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31273 | (arg1)->Check(arg2,arg3); | |
31274 | ||
31275 | wxPyEndAllowThreads(__tstate); | |
31276 | if (PyErr_Occurred()) SWIG_fail; | |
31277 | } | |
31278 | Py_INCREF(Py_None); resultobj = Py_None; | |
31279 | return resultobj; | |
31280 | fail: | |
31281 | return NULL; | |
31282 | } | |
31283 | ||
31284 | ||
c32bde28 | 31285 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31286 | PyObject *resultobj; |
31287 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31288 | int arg2 ; | |
31289 | bool result; | |
31290 | PyObject * obj0 = 0 ; | |
31291 | PyObject * obj1 = 0 ; | |
31292 | char *kwnames[] = { | |
31293 | (char *) "self",(char *) "id", NULL | |
31294 | }; | |
31295 | ||
31296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31299 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31300 | if (PyErr_Occurred()) SWIG_fail; |
31301 | { | |
31302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31303 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
31304 | ||
31305 | wxPyEndAllowThreads(__tstate); | |
31306 | if (PyErr_Occurred()) SWIG_fail; | |
31307 | } | |
31308 | { | |
31309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31310 | } | |
31311 | return resultobj; | |
31312 | fail: | |
31313 | return NULL; | |
31314 | } | |
31315 | ||
31316 | ||
c32bde28 | 31317 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31318 | PyObject *resultobj; |
31319 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31320 | int arg2 ; | |
31321 | wxString *arg3 = 0 ; | |
ae8162c8 | 31322 | bool temp3 = false ; |
d55e5bfc RD |
31323 | PyObject * obj0 = 0 ; |
31324 | PyObject * obj1 = 0 ; | |
31325 | PyObject * obj2 = 0 ; | |
31326 | char *kwnames[] = { | |
31327 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31328 | }; | |
31329 | ||
31330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31333 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31334 | if (PyErr_Occurred()) SWIG_fail; |
31335 | { | |
31336 | arg3 = wxString_in_helper(obj2); | |
31337 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31338 | temp3 = true; |
d55e5bfc RD |
31339 | } |
31340 | { | |
31341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31342 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31343 | ||
31344 | wxPyEndAllowThreads(__tstate); | |
31345 | if (PyErr_Occurred()) SWIG_fail; | |
31346 | } | |
31347 | Py_INCREF(Py_None); resultobj = Py_None; | |
31348 | { | |
31349 | if (temp3) | |
31350 | delete arg3; | |
31351 | } | |
31352 | return resultobj; | |
31353 | fail: | |
31354 | { | |
31355 | if (temp3) | |
31356 | delete arg3; | |
31357 | } | |
31358 | return NULL; | |
31359 | } | |
31360 | ||
31361 | ||
c32bde28 | 31362 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31363 | PyObject *resultobj; |
31364 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31365 | int arg2 ; | |
31366 | wxString result; | |
31367 | PyObject * obj0 = 0 ; | |
31368 | PyObject * obj1 = 0 ; | |
31369 | char *kwnames[] = { | |
31370 | (char *) "self",(char *) "id", NULL | |
31371 | }; | |
31372 | ||
31373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31376 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31377 | if (PyErr_Occurred()) SWIG_fail; |
31378 | { | |
31379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31380 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31381 | ||
31382 | wxPyEndAllowThreads(__tstate); | |
31383 | if (PyErr_Occurred()) SWIG_fail; | |
31384 | } | |
31385 | { | |
31386 | #if wxUSE_UNICODE | |
31387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31388 | #else | |
31389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31390 | #endif | |
31391 | } | |
31392 | return resultobj; | |
31393 | fail: | |
31394 | return NULL; | |
31395 | } | |
31396 | ||
31397 | ||
c32bde28 | 31398 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31399 | PyObject *resultobj; |
31400 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31401 | int arg2 ; | |
31402 | wxString *arg3 = 0 ; | |
ae8162c8 | 31403 | bool temp3 = false ; |
d55e5bfc RD |
31404 | PyObject * obj0 = 0 ; |
31405 | PyObject * obj1 = 0 ; | |
31406 | PyObject * obj2 = 0 ; | |
31407 | char *kwnames[] = { | |
31408 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31409 | }; | |
31410 | ||
31411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31414 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31415 | if (PyErr_Occurred()) SWIG_fail; |
31416 | { | |
31417 | arg3 = wxString_in_helper(obj2); | |
31418 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31419 | temp3 = true; |
d55e5bfc RD |
31420 | } |
31421 | { | |
31422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31423 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31424 | ||
31425 | wxPyEndAllowThreads(__tstate); | |
31426 | if (PyErr_Occurred()) SWIG_fail; | |
31427 | } | |
31428 | Py_INCREF(Py_None); resultobj = Py_None; | |
31429 | { | |
31430 | if (temp3) | |
31431 | delete arg3; | |
31432 | } | |
31433 | return resultobj; | |
31434 | fail: | |
31435 | { | |
31436 | if (temp3) | |
31437 | delete arg3; | |
31438 | } | |
31439 | return NULL; | |
31440 | } | |
31441 | ||
31442 | ||
c32bde28 | 31443 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31444 | PyObject *resultobj; |
31445 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31446 | int arg2 ; | |
31447 | wxString result; | |
31448 | PyObject * obj0 = 0 ; | |
31449 | PyObject * obj1 = 0 ; | |
31450 | char *kwnames[] = { | |
31451 | (char *) "self",(char *) "id", NULL | |
31452 | }; | |
31453 | ||
31454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31457 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31458 | if (PyErr_Occurred()) SWIG_fail; |
31459 | { | |
31460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31461 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31462 | ||
31463 | wxPyEndAllowThreads(__tstate); | |
31464 | if (PyErr_Occurred()) SWIG_fail; | |
31465 | } | |
31466 | { | |
31467 | #if wxUSE_UNICODE | |
31468 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31469 | #else | |
31470 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31471 | #endif | |
31472 | } | |
31473 | return resultobj; | |
31474 | fail: | |
31475 | return NULL; | |
31476 | } | |
31477 | ||
31478 | ||
c32bde28 | 31479 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31480 | PyObject *resultobj; |
31481 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31482 | wxString *arg2 = 0 ; | |
ae8162c8 | 31483 | bool temp2 = false ; |
d55e5bfc RD |
31484 | PyObject * obj0 = 0 ; |
31485 | PyObject * obj1 = 0 ; | |
31486 | char *kwnames[] = { | |
31487 | (char *) "self",(char *) "title", NULL | |
31488 | }; | |
31489 | ||
31490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31493 | { | |
31494 | arg2 = wxString_in_helper(obj1); | |
31495 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31496 | temp2 = true; |
d55e5bfc RD |
31497 | } |
31498 | { | |
31499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31500 | (arg1)->SetTitle((wxString const &)*arg2); | |
31501 | ||
31502 | wxPyEndAllowThreads(__tstate); | |
31503 | if (PyErr_Occurred()) SWIG_fail; | |
31504 | } | |
31505 | Py_INCREF(Py_None); resultobj = Py_None; | |
31506 | { | |
31507 | if (temp2) | |
31508 | delete arg2; | |
31509 | } | |
31510 | return resultobj; | |
31511 | fail: | |
31512 | { | |
31513 | if (temp2) | |
31514 | delete arg2; | |
31515 | } | |
31516 | return NULL; | |
31517 | } | |
31518 | ||
31519 | ||
c32bde28 | 31520 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31521 | PyObject *resultobj; |
31522 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31523 | wxString result; | |
31524 | PyObject * obj0 = 0 ; | |
31525 | char *kwnames[] = { | |
31526 | (char *) "self", NULL | |
31527 | }; | |
31528 | ||
31529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31532 | { | |
31533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31534 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31535 | ||
31536 | wxPyEndAllowThreads(__tstate); | |
31537 | if (PyErr_Occurred()) SWIG_fail; | |
31538 | } | |
31539 | { | |
31540 | #if wxUSE_UNICODE | |
31541 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31542 | #else | |
31543 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31544 | #endif | |
31545 | } | |
31546 | return resultobj; | |
31547 | fail: | |
31548 | return NULL; | |
31549 | } | |
31550 | ||
31551 | ||
c32bde28 | 31552 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31553 | PyObject *resultobj; |
31554 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31555 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31556 | PyObject * obj0 = 0 ; | |
31557 | PyObject * obj1 = 0 ; | |
31558 | char *kwnames[] = { | |
31559 | (char *) "self",(char *) "handler", NULL | |
31560 | }; | |
31561 | ||
31562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31567 | { | |
31568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31569 | (arg1)->SetEventHandler(arg2); | |
31570 | ||
31571 | wxPyEndAllowThreads(__tstate); | |
31572 | if (PyErr_Occurred()) SWIG_fail; | |
31573 | } | |
31574 | Py_INCREF(Py_None); resultobj = Py_None; | |
31575 | return resultobj; | |
31576 | fail: | |
31577 | return NULL; | |
31578 | } | |
31579 | ||
31580 | ||
c32bde28 | 31581 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31582 | PyObject *resultobj; |
31583 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31584 | wxEvtHandler *result; | |
31585 | PyObject * obj0 = 0 ; | |
31586 | char *kwnames[] = { | |
31587 | (char *) "self", NULL | |
31588 | }; | |
31589 | ||
31590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31593 | { | |
31594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31595 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31596 | ||
31597 | wxPyEndAllowThreads(__tstate); | |
31598 | if (PyErr_Occurred()) SWIG_fail; | |
31599 | } | |
31600 | { | |
412d302d | 31601 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31602 | } |
31603 | return resultobj; | |
31604 | fail: | |
31605 | return NULL; | |
31606 | } | |
31607 | ||
31608 | ||
c32bde28 | 31609 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31610 | PyObject *resultobj; |
31611 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31612 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31613 | PyObject * obj0 = 0 ; | |
31614 | PyObject * obj1 = 0 ; | |
31615 | char *kwnames[] = { | |
31616 | (char *) "self",(char *) "win", NULL | |
31617 | }; | |
31618 | ||
31619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31624 | { | |
31625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31626 | (arg1)->SetInvokingWindow(arg2); | |
31627 | ||
31628 | wxPyEndAllowThreads(__tstate); | |
31629 | if (PyErr_Occurred()) SWIG_fail; | |
31630 | } | |
31631 | Py_INCREF(Py_None); resultobj = Py_None; | |
31632 | return resultobj; | |
31633 | fail: | |
31634 | return NULL; | |
31635 | } | |
31636 | ||
31637 | ||
c32bde28 | 31638 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31639 | PyObject *resultobj; |
31640 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31641 | wxWindow *result; | |
31642 | PyObject * obj0 = 0 ; | |
31643 | char *kwnames[] = { | |
31644 | (char *) "self", NULL | |
31645 | }; | |
31646 | ||
31647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31650 | { | |
31651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31652 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31653 | ||
31654 | wxPyEndAllowThreads(__tstate); | |
31655 | if (PyErr_Occurred()) SWIG_fail; | |
31656 | } | |
31657 | { | |
412d302d | 31658 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31659 | } |
31660 | return resultobj; | |
31661 | fail: | |
31662 | return NULL; | |
31663 | } | |
31664 | ||
31665 | ||
c32bde28 | 31666 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31667 | PyObject *resultobj; |
31668 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31669 | long result; | |
31670 | PyObject * obj0 = 0 ; | |
31671 | char *kwnames[] = { | |
31672 | (char *) "self", NULL | |
31673 | }; | |
31674 | ||
31675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31678 | { | |
31679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31680 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31681 | ||
31682 | wxPyEndAllowThreads(__tstate); | |
31683 | if (PyErr_Occurred()) SWIG_fail; | |
31684 | } | |
c32bde28 | 31685 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31686 | return resultobj; |
31687 | fail: | |
31688 | return NULL; | |
31689 | } | |
31690 | ||
31691 | ||
c32bde28 | 31692 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31693 | PyObject *resultobj; |
31694 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31695 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31696 | PyObject * obj0 = 0 ; | |
31697 | PyObject * obj1 = 0 ; | |
31698 | char *kwnames[] = { | |
31699 | (char *) "self",(char *) "source", NULL | |
31700 | }; | |
31701 | ||
31702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31705 | if (obj1) { | |
31706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31708 | } | |
31709 | { | |
31710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31711 | (arg1)->UpdateUI(arg2); | |
31712 | ||
31713 | wxPyEndAllowThreads(__tstate); | |
31714 | if (PyErr_Occurred()) SWIG_fail; | |
31715 | } | |
31716 | Py_INCREF(Py_None); resultobj = Py_None; | |
31717 | return resultobj; | |
31718 | fail: | |
31719 | return NULL; | |
31720 | } | |
31721 | ||
31722 | ||
c32bde28 | 31723 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31724 | PyObject *resultobj; |
31725 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31726 | wxMenuBar *result; | |
31727 | PyObject * obj0 = 0 ; | |
31728 | char *kwnames[] = { | |
31729 | (char *) "self", NULL | |
31730 | }; | |
31731 | ||
31732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31735 | { | |
31736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31737 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31738 | ||
31739 | wxPyEndAllowThreads(__tstate); | |
31740 | if (PyErr_Occurred()) SWIG_fail; | |
31741 | } | |
31742 | { | |
412d302d | 31743 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31744 | } |
31745 | return resultobj; | |
31746 | fail: | |
31747 | return NULL; | |
31748 | } | |
31749 | ||
31750 | ||
c32bde28 | 31751 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31752 | PyObject *resultobj; |
31753 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31754 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31755 | PyObject * obj0 = 0 ; | |
31756 | PyObject * obj1 = 0 ; | |
31757 | char *kwnames[] = { | |
31758 | (char *) "self",(char *) "menubar", NULL | |
31759 | }; | |
31760 | ||
31761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31766 | { | |
31767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31768 | (arg1)->Attach(arg2); | |
31769 | ||
31770 | wxPyEndAllowThreads(__tstate); | |
31771 | if (PyErr_Occurred()) SWIG_fail; | |
31772 | } | |
31773 | Py_INCREF(Py_None); resultobj = Py_None; | |
31774 | return resultobj; | |
31775 | fail: | |
31776 | return NULL; | |
31777 | } | |
31778 | ||
31779 | ||
c32bde28 | 31780 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31781 | PyObject *resultobj; |
31782 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31783 | PyObject * obj0 = 0 ; | |
31784 | char *kwnames[] = { | |
31785 | (char *) "self", NULL | |
31786 | }; | |
31787 | ||
31788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31791 | { | |
31792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31793 | (arg1)->Detach(); | |
31794 | ||
31795 | wxPyEndAllowThreads(__tstate); | |
31796 | if (PyErr_Occurred()) SWIG_fail; | |
31797 | } | |
31798 | Py_INCREF(Py_None); resultobj = Py_None; | |
31799 | return resultobj; | |
31800 | fail: | |
31801 | return NULL; | |
31802 | } | |
31803 | ||
31804 | ||
c32bde28 | 31805 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31806 | PyObject *resultobj; |
31807 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31808 | bool result; | |
31809 | PyObject * obj0 = 0 ; | |
31810 | char *kwnames[] = { | |
31811 | (char *) "self", NULL | |
31812 | }; | |
31813 | ||
31814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31817 | { | |
31818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31819 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31820 | ||
31821 | wxPyEndAllowThreads(__tstate); | |
31822 | if (PyErr_Occurred()) SWIG_fail; | |
31823 | } | |
31824 | { | |
31825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31826 | } | |
31827 | return resultobj; | |
31828 | fail: | |
31829 | return NULL; | |
31830 | } | |
31831 | ||
31832 | ||
c32bde28 | 31833 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31834 | PyObject *resultobj; |
31835 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31836 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31837 | PyObject * obj0 = 0 ; | |
31838 | PyObject * obj1 = 0 ; | |
31839 | char *kwnames[] = { | |
31840 | (char *) "self",(char *) "parent", NULL | |
31841 | }; | |
31842 | ||
31843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31848 | { | |
31849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31850 | (arg1)->SetParent(arg2); | |
31851 | ||
31852 | wxPyEndAllowThreads(__tstate); | |
31853 | if (PyErr_Occurred()) SWIG_fail; | |
31854 | } | |
31855 | Py_INCREF(Py_None); resultobj = Py_None; | |
31856 | return resultobj; | |
31857 | fail: | |
31858 | return NULL; | |
31859 | } | |
31860 | ||
31861 | ||
c32bde28 | 31862 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31863 | PyObject *resultobj; |
31864 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31865 | wxMenu *result; | |
31866 | PyObject * obj0 = 0 ; | |
31867 | char *kwnames[] = { | |
31868 | (char *) "self", NULL | |
31869 | }; | |
31870 | ||
31871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31874 | { | |
31875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31876 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31877 | ||
31878 | wxPyEndAllowThreads(__tstate); | |
31879 | if (PyErr_Occurred()) SWIG_fail; | |
31880 | } | |
31881 | { | |
412d302d | 31882 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31883 | } |
31884 | return resultobj; | |
31885 | fail: | |
31886 | return NULL; | |
31887 | } | |
31888 | ||
31889 | ||
c32bde28 | 31890 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31891 | PyObject *obj; |
31892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31893 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31894 | Py_INCREF(obj); | |
31895 | return Py_BuildValue((char *)""); | |
31896 | } | |
c32bde28 | 31897 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31898 | PyObject *resultobj; |
31899 | long arg1 = (long) 0 ; | |
31900 | wxMenuBar *result; | |
31901 | PyObject * obj0 = 0 ; | |
31902 | char *kwnames[] = { | |
31903 | (char *) "style", NULL | |
31904 | }; | |
31905 | ||
31906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31907 | if (obj0) { | |
c32bde28 | 31908 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31909 | if (PyErr_Occurred()) SWIG_fail; |
31910 | } | |
31911 | { | |
0439c23b | 31912 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31914 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31915 | ||
31916 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31917 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31918 | } |
b0f7404b | 31919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31920 | return resultobj; |
31921 | fail: | |
31922 | return NULL; | |
31923 | } | |
31924 | ||
31925 | ||
c32bde28 | 31926 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31927 | PyObject *resultobj; |
31928 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31929 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31930 | wxString *arg3 = 0 ; | |
31931 | bool result; | |
ae8162c8 | 31932 | bool temp3 = false ; |
d55e5bfc RD |
31933 | PyObject * obj0 = 0 ; |
31934 | PyObject * obj1 = 0 ; | |
31935 | PyObject * obj2 = 0 ; | |
31936 | char *kwnames[] = { | |
31937 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31938 | }; | |
31939 | ||
31940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31945 | { | |
31946 | arg3 = wxString_in_helper(obj2); | |
31947 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31948 | temp3 = true; |
d55e5bfc RD |
31949 | } |
31950 | { | |
31951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31952 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31953 | ||
31954 | wxPyEndAllowThreads(__tstate); | |
31955 | if (PyErr_Occurred()) SWIG_fail; | |
31956 | } | |
31957 | { | |
31958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31959 | } | |
31960 | { | |
31961 | if (temp3) | |
31962 | delete arg3; | |
31963 | } | |
31964 | return resultobj; | |
31965 | fail: | |
31966 | { | |
31967 | if (temp3) | |
31968 | delete arg3; | |
31969 | } | |
31970 | return NULL; | |
31971 | } | |
31972 | ||
31973 | ||
c32bde28 | 31974 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31975 | PyObject *resultobj; |
31976 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31977 | size_t arg2 ; | |
31978 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31979 | wxString *arg4 = 0 ; | |
31980 | bool result; | |
ae8162c8 | 31981 | bool temp4 = false ; |
d55e5bfc RD |
31982 | PyObject * obj0 = 0 ; |
31983 | PyObject * obj1 = 0 ; | |
31984 | PyObject * obj2 = 0 ; | |
31985 | PyObject * obj3 = 0 ; | |
31986 | char *kwnames[] = { | |
31987 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31988 | }; | |
31989 | ||
31990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31993 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31994 | if (PyErr_Occurred()) SWIG_fail; |
31995 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31997 | { | |
31998 | arg4 = wxString_in_helper(obj3); | |
31999 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32000 | temp4 = true; |
d55e5bfc RD |
32001 | } |
32002 | { | |
32003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32004 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
32005 | ||
32006 | wxPyEndAllowThreads(__tstate); | |
32007 | if (PyErr_Occurred()) SWIG_fail; | |
32008 | } | |
32009 | { | |
32010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32011 | } | |
32012 | { | |
32013 | if (temp4) | |
32014 | delete arg4; | |
32015 | } | |
32016 | return resultobj; | |
32017 | fail: | |
32018 | { | |
32019 | if (temp4) | |
32020 | delete arg4; | |
32021 | } | |
32022 | return NULL; | |
32023 | } | |
32024 | ||
32025 | ||
c32bde28 | 32026 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32027 | PyObject *resultobj; |
32028 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32029 | size_t result; | |
32030 | PyObject * obj0 = 0 ; | |
32031 | char *kwnames[] = { | |
32032 | (char *) "self", NULL | |
32033 | }; | |
32034 | ||
32035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
32036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32038 | { | |
32039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32040 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
32041 | ||
32042 | wxPyEndAllowThreads(__tstate); | |
32043 | if (PyErr_Occurred()) SWIG_fail; | |
32044 | } | |
c32bde28 | 32045 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
32046 | return resultobj; |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
c32bde28 | 32052 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32053 | PyObject *resultobj; |
32054 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32055 | size_t arg2 ; | |
32056 | wxMenu *result; | |
32057 | PyObject * obj0 = 0 ; | |
32058 | PyObject * obj1 = 0 ; | |
32059 | char *kwnames[] = { | |
32060 | (char *) "self",(char *) "pos", NULL | |
32061 | }; | |
32062 | ||
32063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32066 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32067 | if (PyErr_Occurred()) SWIG_fail; |
32068 | { | |
32069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32070 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
32071 | ||
32072 | wxPyEndAllowThreads(__tstate); | |
32073 | if (PyErr_Occurred()) SWIG_fail; | |
32074 | } | |
32075 | { | |
412d302d | 32076 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32077 | } |
32078 | return resultobj; | |
32079 | fail: | |
32080 | return NULL; | |
32081 | } | |
32082 | ||
32083 | ||
c32bde28 | 32084 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32085 | PyObject *resultobj; |
32086 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32087 | size_t arg2 ; | |
32088 | wxMenu *arg3 = (wxMenu *) 0 ; | |
32089 | wxString *arg4 = 0 ; | |
32090 | wxMenu *result; | |
ae8162c8 | 32091 | bool temp4 = false ; |
d55e5bfc RD |
32092 | PyObject * obj0 = 0 ; |
32093 | PyObject * obj1 = 0 ; | |
32094 | PyObject * obj2 = 0 ; | |
32095 | PyObject * obj3 = 0 ; | |
32096 | char *kwnames[] = { | |
32097 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
32098 | }; | |
32099 | ||
32100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32103 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32104 | if (PyErr_Occurred()) SWIG_fail; |
32105 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
32106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32107 | { | |
32108 | arg4 = wxString_in_helper(obj3); | |
32109 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32110 | temp4 = true; |
d55e5bfc RD |
32111 | } |
32112 | { | |
32113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32114 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
32115 | ||
32116 | wxPyEndAllowThreads(__tstate); | |
32117 | if (PyErr_Occurred()) SWIG_fail; | |
32118 | } | |
32119 | { | |
412d302d | 32120 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32121 | } |
32122 | { | |
32123 | if (temp4) | |
32124 | delete arg4; | |
32125 | } | |
32126 | return resultobj; | |
32127 | fail: | |
32128 | { | |
32129 | if (temp4) | |
32130 | delete arg4; | |
32131 | } | |
32132 | return NULL; | |
32133 | } | |
32134 | ||
32135 | ||
c32bde28 | 32136 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32137 | PyObject *resultobj; |
32138 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32139 | size_t arg2 ; | |
32140 | wxMenu *result; | |
32141 | PyObject * obj0 = 0 ; | |
32142 | PyObject * obj1 = 0 ; | |
32143 | char *kwnames[] = { | |
32144 | (char *) "self",(char *) "pos", NULL | |
32145 | }; | |
32146 | ||
32147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
32148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32150 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32151 | if (PyErr_Occurred()) SWIG_fail; |
32152 | { | |
32153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32154 | result = (wxMenu *)(arg1)->Remove(arg2); | |
32155 | ||
32156 | wxPyEndAllowThreads(__tstate); | |
32157 | if (PyErr_Occurred()) SWIG_fail; | |
32158 | } | |
32159 | { | |
412d302d | 32160 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32161 | } |
32162 | return resultobj; | |
32163 | fail: | |
32164 | return NULL; | |
32165 | } | |
32166 | ||
32167 | ||
c32bde28 | 32168 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32169 | PyObject *resultobj; |
32170 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32171 | size_t arg2 ; | |
32172 | bool arg3 ; | |
32173 | PyObject * obj0 = 0 ; | |
32174 | PyObject * obj1 = 0 ; | |
32175 | PyObject * obj2 = 0 ; | |
32176 | char *kwnames[] = { | |
32177 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
32178 | }; | |
32179 | ||
32180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32183 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 32184 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32185 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32186 | if (PyErr_Occurred()) SWIG_fail; |
32187 | { | |
32188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32189 | (arg1)->EnableTop(arg2,arg3); | |
32190 | ||
32191 | wxPyEndAllowThreads(__tstate); | |
32192 | if (PyErr_Occurred()) SWIG_fail; | |
32193 | } | |
32194 | Py_INCREF(Py_None); resultobj = Py_None; | |
32195 | return resultobj; | |
32196 | fail: | |
32197 | return NULL; | |
32198 | } | |
32199 | ||
32200 | ||
c32bde28 | 32201 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32202 | PyObject *resultobj; |
32203 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32204 | size_t arg2 ; | |
32205 | bool result; | |
32206 | PyObject * obj0 = 0 ; | |
32207 | PyObject * obj1 = 0 ; | |
32208 | char *kwnames[] = { | |
32209 | (char *) "self",(char *) "pos", NULL | |
32210 | }; | |
32211 | ||
32212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
32213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32215 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32216 | if (PyErr_Occurred()) SWIG_fail; |
32217 | { | |
32218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32219 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
32220 | ||
32221 | wxPyEndAllowThreads(__tstate); | |
32222 | if (PyErr_Occurred()) SWIG_fail; | |
32223 | } | |
32224 | { | |
32225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32226 | } | |
32227 | return resultobj; | |
32228 | fail: | |
32229 | return NULL; | |
32230 | } | |
32231 | ||
32232 | ||
c32bde28 | 32233 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32234 | PyObject *resultobj; |
32235 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32236 | size_t arg2 ; | |
32237 | wxString *arg3 = 0 ; | |
ae8162c8 | 32238 | bool temp3 = false ; |
d55e5bfc RD |
32239 | PyObject * obj0 = 0 ; |
32240 | PyObject * obj1 = 0 ; | |
32241 | PyObject * obj2 = 0 ; | |
32242 | char *kwnames[] = { | |
32243 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
32244 | }; | |
32245 | ||
32246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32249 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32250 | if (PyErr_Occurred()) SWIG_fail; |
32251 | { | |
32252 | arg3 = wxString_in_helper(obj2); | |
32253 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32254 | temp3 = true; |
d55e5bfc RD |
32255 | } |
32256 | { | |
32257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32258 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
32259 | ||
32260 | wxPyEndAllowThreads(__tstate); | |
32261 | if (PyErr_Occurred()) SWIG_fail; | |
32262 | } | |
32263 | Py_INCREF(Py_None); resultobj = Py_None; | |
32264 | { | |
32265 | if (temp3) | |
32266 | delete arg3; | |
32267 | } | |
32268 | return resultobj; | |
32269 | fail: | |
32270 | { | |
32271 | if (temp3) | |
32272 | delete arg3; | |
32273 | } | |
32274 | return NULL; | |
32275 | } | |
32276 | ||
32277 | ||
c32bde28 | 32278 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32279 | PyObject *resultobj; |
32280 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32281 | size_t arg2 ; | |
32282 | wxString result; | |
32283 | PyObject * obj0 = 0 ; | |
32284 | PyObject * obj1 = 0 ; | |
32285 | char *kwnames[] = { | |
32286 | (char *) "self",(char *) "pos", NULL | |
32287 | }; | |
32288 | ||
32289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
32290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32292 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32293 | if (PyErr_Occurred()) SWIG_fail; |
32294 | { | |
32295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32296 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
32297 | ||
32298 | wxPyEndAllowThreads(__tstate); | |
32299 | if (PyErr_Occurred()) SWIG_fail; | |
32300 | } | |
32301 | { | |
32302 | #if wxUSE_UNICODE | |
32303 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32304 | #else | |
32305 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32306 | #endif | |
32307 | } | |
32308 | return resultobj; | |
32309 | fail: | |
32310 | return NULL; | |
32311 | } | |
32312 | ||
32313 | ||
c32bde28 | 32314 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32315 | PyObject *resultobj; |
32316 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32317 | wxString *arg2 = 0 ; | |
32318 | wxString *arg3 = 0 ; | |
32319 | int result; | |
ae8162c8 RD |
32320 | bool temp2 = false ; |
32321 | bool temp3 = false ; | |
d55e5bfc RD |
32322 | PyObject * obj0 = 0 ; |
32323 | PyObject * obj1 = 0 ; | |
32324 | PyObject * obj2 = 0 ; | |
32325 | char *kwnames[] = { | |
32326 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
32327 | }; | |
32328 | ||
32329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32332 | { | |
32333 | arg2 = wxString_in_helper(obj1); | |
32334 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32335 | temp2 = true; |
d55e5bfc RD |
32336 | } |
32337 | { | |
32338 | arg3 = wxString_in_helper(obj2); | |
32339 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32340 | temp3 = true; |
d55e5bfc RD |
32341 | } |
32342 | { | |
32343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32344 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
32345 | ||
32346 | wxPyEndAllowThreads(__tstate); | |
32347 | if (PyErr_Occurred()) SWIG_fail; | |
32348 | } | |
c32bde28 | 32349 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32350 | { |
32351 | if (temp2) | |
32352 | delete arg2; | |
32353 | } | |
32354 | { | |
32355 | if (temp3) | |
32356 | delete arg3; | |
32357 | } | |
32358 | return resultobj; | |
32359 | fail: | |
32360 | { | |
32361 | if (temp2) | |
32362 | delete arg2; | |
32363 | } | |
32364 | { | |
32365 | if (temp3) | |
32366 | delete arg3; | |
32367 | } | |
32368 | return NULL; | |
32369 | } | |
32370 | ||
32371 | ||
c32bde28 | 32372 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32373 | PyObject *resultobj; |
32374 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32375 | int arg2 ; | |
32376 | wxMenuItem *result; | |
32377 | PyObject * obj0 = 0 ; | |
32378 | PyObject * obj1 = 0 ; | |
32379 | char *kwnames[] = { | |
32380 | (char *) "self",(char *) "id", NULL | |
32381 | }; | |
32382 | ||
32383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32386 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32387 | if (PyErr_Occurred()) SWIG_fail; |
32388 | { | |
32389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32390 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32391 | ||
32392 | wxPyEndAllowThreads(__tstate); | |
32393 | if (PyErr_Occurred()) SWIG_fail; | |
32394 | } | |
32395 | { | |
412d302d | 32396 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32397 | } |
32398 | return resultobj; | |
32399 | fail: | |
32400 | return NULL; | |
32401 | } | |
32402 | ||
32403 | ||
c32bde28 | 32404 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32405 | PyObject *resultobj; |
32406 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32407 | wxString *arg2 = 0 ; | |
32408 | int result; | |
ae8162c8 | 32409 | bool temp2 = false ; |
d55e5bfc RD |
32410 | PyObject * obj0 = 0 ; |
32411 | PyObject * obj1 = 0 ; | |
32412 | char *kwnames[] = { | |
32413 | (char *) "self",(char *) "title", NULL | |
32414 | }; | |
32415 | ||
32416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32419 | { | |
32420 | arg2 = wxString_in_helper(obj1); | |
32421 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32422 | temp2 = true; |
d55e5bfc RD |
32423 | } |
32424 | { | |
32425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32426 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32427 | ||
32428 | wxPyEndAllowThreads(__tstate); | |
32429 | if (PyErr_Occurred()) SWIG_fail; | |
32430 | } | |
c32bde28 | 32431 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32432 | { |
32433 | if (temp2) | |
32434 | delete arg2; | |
32435 | } | |
32436 | return resultobj; | |
32437 | fail: | |
32438 | { | |
32439 | if (temp2) | |
32440 | delete arg2; | |
32441 | } | |
32442 | return NULL; | |
32443 | } | |
32444 | ||
32445 | ||
c32bde28 | 32446 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32447 | PyObject *resultobj; |
32448 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32449 | int arg2 ; | |
32450 | bool arg3 ; | |
32451 | PyObject * obj0 = 0 ; | |
32452 | PyObject * obj1 = 0 ; | |
32453 | PyObject * obj2 = 0 ; | |
32454 | char *kwnames[] = { | |
32455 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32456 | }; | |
32457 | ||
32458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32461 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32462 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32463 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32464 | if (PyErr_Occurred()) SWIG_fail; |
32465 | { | |
32466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32467 | (arg1)->Enable(arg2,arg3); | |
32468 | ||
32469 | wxPyEndAllowThreads(__tstate); | |
32470 | if (PyErr_Occurred()) SWIG_fail; | |
32471 | } | |
32472 | Py_INCREF(Py_None); resultobj = Py_None; | |
32473 | return resultobj; | |
32474 | fail: | |
32475 | return NULL; | |
32476 | } | |
32477 | ||
32478 | ||
c32bde28 | 32479 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32480 | PyObject *resultobj; |
32481 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32482 | int arg2 ; | |
32483 | bool arg3 ; | |
32484 | PyObject * obj0 = 0 ; | |
32485 | PyObject * obj1 = 0 ; | |
32486 | PyObject * obj2 = 0 ; | |
32487 | char *kwnames[] = { | |
32488 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32489 | }; | |
32490 | ||
32491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32494 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32495 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32496 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32497 | if (PyErr_Occurred()) SWIG_fail; |
32498 | { | |
32499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32500 | (arg1)->Check(arg2,arg3); | |
32501 | ||
32502 | wxPyEndAllowThreads(__tstate); | |
32503 | if (PyErr_Occurred()) SWIG_fail; | |
32504 | } | |
32505 | Py_INCREF(Py_None); resultobj = Py_None; | |
32506 | return resultobj; | |
32507 | fail: | |
32508 | return NULL; | |
32509 | } | |
32510 | ||
32511 | ||
c32bde28 | 32512 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32513 | PyObject *resultobj; |
32514 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32515 | int arg2 ; | |
32516 | bool result; | |
32517 | PyObject * obj0 = 0 ; | |
32518 | PyObject * obj1 = 0 ; | |
32519 | char *kwnames[] = { | |
32520 | (char *) "self",(char *) "id", NULL | |
32521 | }; | |
32522 | ||
32523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32526 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32527 | if (PyErr_Occurred()) SWIG_fail; |
32528 | { | |
32529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32530 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32531 | ||
32532 | wxPyEndAllowThreads(__tstate); | |
32533 | if (PyErr_Occurred()) SWIG_fail; | |
32534 | } | |
32535 | { | |
32536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32537 | } | |
32538 | return resultobj; | |
32539 | fail: | |
32540 | return NULL; | |
32541 | } | |
32542 | ||
32543 | ||
c32bde28 | 32544 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32545 | PyObject *resultobj; |
32546 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32547 | int arg2 ; | |
32548 | bool result; | |
32549 | PyObject * obj0 = 0 ; | |
32550 | PyObject * obj1 = 0 ; | |
32551 | char *kwnames[] = { | |
32552 | (char *) "self",(char *) "id", NULL | |
32553 | }; | |
32554 | ||
32555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32558 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32559 | if (PyErr_Occurred()) SWIG_fail; |
32560 | { | |
32561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32562 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32563 | ||
32564 | wxPyEndAllowThreads(__tstate); | |
32565 | if (PyErr_Occurred()) SWIG_fail; | |
32566 | } | |
32567 | { | |
32568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32569 | } | |
32570 | return resultobj; | |
32571 | fail: | |
32572 | return NULL; | |
32573 | } | |
32574 | ||
32575 | ||
c32bde28 | 32576 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32577 | PyObject *resultobj; |
32578 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32579 | int arg2 ; | |
32580 | wxString *arg3 = 0 ; | |
ae8162c8 | 32581 | bool temp3 = false ; |
d55e5bfc RD |
32582 | PyObject * obj0 = 0 ; |
32583 | PyObject * obj1 = 0 ; | |
32584 | PyObject * obj2 = 0 ; | |
32585 | char *kwnames[] = { | |
32586 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32587 | }; | |
32588 | ||
32589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32592 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32593 | if (PyErr_Occurred()) SWIG_fail; |
32594 | { | |
32595 | arg3 = wxString_in_helper(obj2); | |
32596 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32597 | temp3 = true; |
d55e5bfc RD |
32598 | } |
32599 | { | |
32600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32601 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32602 | ||
32603 | wxPyEndAllowThreads(__tstate); | |
32604 | if (PyErr_Occurred()) SWIG_fail; | |
32605 | } | |
32606 | Py_INCREF(Py_None); resultobj = Py_None; | |
32607 | { | |
32608 | if (temp3) | |
32609 | delete arg3; | |
32610 | } | |
32611 | return resultobj; | |
32612 | fail: | |
32613 | { | |
32614 | if (temp3) | |
32615 | delete arg3; | |
32616 | } | |
32617 | return NULL; | |
32618 | } | |
32619 | ||
32620 | ||
c32bde28 | 32621 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32622 | PyObject *resultobj; |
32623 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32624 | int arg2 ; | |
32625 | wxString result; | |
32626 | PyObject * obj0 = 0 ; | |
32627 | PyObject * obj1 = 0 ; | |
32628 | char *kwnames[] = { | |
32629 | (char *) "self",(char *) "id", NULL | |
32630 | }; | |
32631 | ||
32632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32635 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32636 | if (PyErr_Occurred()) SWIG_fail; |
32637 | { | |
32638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32639 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32640 | ||
32641 | wxPyEndAllowThreads(__tstate); | |
32642 | if (PyErr_Occurred()) SWIG_fail; | |
32643 | } | |
32644 | { | |
32645 | #if wxUSE_UNICODE | |
32646 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32647 | #else | |
32648 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32649 | #endif | |
32650 | } | |
32651 | return resultobj; | |
32652 | fail: | |
32653 | return NULL; | |
32654 | } | |
32655 | ||
32656 | ||
c32bde28 | 32657 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32658 | PyObject *resultobj; |
32659 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32660 | int arg2 ; | |
32661 | wxString *arg3 = 0 ; | |
ae8162c8 | 32662 | bool temp3 = false ; |
d55e5bfc RD |
32663 | PyObject * obj0 = 0 ; |
32664 | PyObject * obj1 = 0 ; | |
32665 | PyObject * obj2 = 0 ; | |
32666 | char *kwnames[] = { | |
32667 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32668 | }; | |
32669 | ||
32670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32673 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32674 | if (PyErr_Occurred()) SWIG_fail; |
32675 | { | |
32676 | arg3 = wxString_in_helper(obj2); | |
32677 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32678 | temp3 = true; |
d55e5bfc RD |
32679 | } |
32680 | { | |
32681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32682 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32683 | ||
32684 | wxPyEndAllowThreads(__tstate); | |
32685 | if (PyErr_Occurred()) SWIG_fail; | |
32686 | } | |
32687 | Py_INCREF(Py_None); resultobj = Py_None; | |
32688 | { | |
32689 | if (temp3) | |
32690 | delete arg3; | |
32691 | } | |
32692 | return resultobj; | |
32693 | fail: | |
32694 | { | |
32695 | if (temp3) | |
32696 | delete arg3; | |
32697 | } | |
32698 | return NULL; | |
32699 | } | |
32700 | ||
32701 | ||
c32bde28 | 32702 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32703 | PyObject *resultobj; |
32704 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32705 | int arg2 ; | |
32706 | wxString result; | |
32707 | PyObject * obj0 = 0 ; | |
32708 | PyObject * obj1 = 0 ; | |
32709 | char *kwnames[] = { | |
32710 | (char *) "self",(char *) "id", NULL | |
32711 | }; | |
32712 | ||
32713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32716 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32717 | if (PyErr_Occurred()) SWIG_fail; |
32718 | { | |
32719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32720 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32721 | ||
32722 | wxPyEndAllowThreads(__tstate); | |
32723 | if (PyErr_Occurred()) SWIG_fail; | |
32724 | } | |
32725 | { | |
32726 | #if wxUSE_UNICODE | |
32727 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32728 | #else | |
32729 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32730 | #endif | |
32731 | } | |
32732 | return resultobj; | |
32733 | fail: | |
32734 | return NULL; | |
32735 | } | |
32736 | ||
32737 | ||
c32bde28 | 32738 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32739 | PyObject *resultobj; |
32740 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32741 | wxFrame *result; | |
32742 | PyObject * obj0 = 0 ; | |
32743 | char *kwnames[] = { | |
32744 | (char *) "self", NULL | |
32745 | }; | |
32746 | ||
32747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32750 | { | |
32751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32752 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32753 | ||
32754 | wxPyEndAllowThreads(__tstate); | |
32755 | if (PyErr_Occurred()) SWIG_fail; | |
32756 | } | |
32757 | { | |
412d302d | 32758 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32759 | } |
32760 | return resultobj; | |
32761 | fail: | |
32762 | return NULL; | |
32763 | } | |
32764 | ||
32765 | ||
c32bde28 | 32766 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32767 | PyObject *resultobj; |
32768 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32769 | bool result; | |
32770 | PyObject * obj0 = 0 ; | |
32771 | char *kwnames[] = { | |
32772 | (char *) "self", NULL | |
32773 | }; | |
32774 | ||
32775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32778 | { | |
32779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32780 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32781 | ||
32782 | wxPyEndAllowThreads(__tstate); | |
32783 | if (PyErr_Occurred()) SWIG_fail; | |
32784 | } | |
32785 | { | |
32786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32787 | } | |
32788 | return resultobj; | |
32789 | fail: | |
32790 | return NULL; | |
32791 | } | |
32792 | ||
32793 | ||
c32bde28 | 32794 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32795 | PyObject *resultobj; |
32796 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32797 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32798 | PyObject * obj0 = 0 ; | |
32799 | PyObject * obj1 = 0 ; | |
32800 | char *kwnames[] = { | |
32801 | (char *) "self",(char *) "frame", NULL | |
32802 | }; | |
32803 | ||
32804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32807 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32809 | { | |
32810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32811 | (arg1)->Attach(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_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32824 | PyObject *resultobj; |
32825 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32826 | PyObject * obj0 = 0 ; | |
32827 | char *kwnames[] = { | |
32828 | (char *) "self", NULL | |
32829 | }; | |
32830 | ||
32831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32834 | { | |
32835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32836 | (arg1)->Detach(); | |
32837 | ||
32838 | wxPyEndAllowThreads(__tstate); | |
32839 | if (PyErr_Occurred()) SWIG_fail; | |
32840 | } | |
32841 | Py_INCREF(Py_None); resultobj = Py_None; | |
32842 | return resultobj; | |
32843 | fail: | |
32844 | return NULL; | |
32845 | } | |
32846 | ||
32847 | ||
c32bde28 | 32848 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32849 | PyObject *obj; |
32850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32851 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32852 | Py_INCREF(obj); | |
32853 | return Py_BuildValue((char *)""); | |
32854 | } | |
c32bde28 | 32855 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32856 | PyObject *resultobj; |
32857 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32858 | int arg2 = (int) wxID_ANY ; | |
32859 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32860 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32861 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32862 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32863 | int arg5 = (int) wxITEM_NORMAL ; | |
32864 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32865 | wxMenuItem *result; | |
ae8162c8 RD |
32866 | bool temp3 = false ; |
32867 | bool temp4 = false ; | |
d55e5bfc RD |
32868 | PyObject * obj0 = 0 ; |
32869 | PyObject * obj1 = 0 ; | |
32870 | PyObject * obj2 = 0 ; | |
32871 | PyObject * obj3 = 0 ; | |
32872 | PyObject * obj4 = 0 ; | |
32873 | PyObject * obj5 = 0 ; | |
32874 | char *kwnames[] = { | |
32875 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32876 | }; | |
32877 | ||
32878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32879 | if (obj0) { | |
32880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32882 | } | |
32883 | if (obj1) { | |
c32bde28 | 32884 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32885 | if (PyErr_Occurred()) SWIG_fail; |
32886 | } | |
32887 | if (obj2) { | |
32888 | { | |
32889 | arg3 = wxString_in_helper(obj2); | |
32890 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32891 | temp3 = true; |
d55e5bfc RD |
32892 | } |
32893 | } | |
32894 | if (obj3) { | |
32895 | { | |
32896 | arg4 = wxString_in_helper(obj3); | |
32897 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32898 | temp4 = true; |
d55e5bfc RD |
32899 | } |
32900 | } | |
32901 | if (obj4) { | |
c32bde28 | 32902 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32903 | if (PyErr_Occurred()) SWIG_fail; |
32904 | } | |
32905 | if (obj5) { | |
32906 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32908 | } | |
32909 | { | |
32910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32911 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32912 | ||
32913 | wxPyEndAllowThreads(__tstate); | |
32914 | if (PyErr_Occurred()) SWIG_fail; | |
32915 | } | |
32916 | { | |
412d302d | 32917 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32918 | } |
32919 | { | |
32920 | if (temp3) | |
32921 | delete arg3; | |
32922 | } | |
32923 | { | |
32924 | if (temp4) | |
32925 | delete arg4; | |
32926 | } | |
32927 | return resultobj; | |
32928 | fail: | |
32929 | { | |
32930 | if (temp3) | |
32931 | delete arg3; | |
32932 | } | |
32933 | { | |
32934 | if (temp4) | |
32935 | delete arg4; | |
32936 | } | |
32937 | return NULL; | |
32938 | } | |
32939 | ||
32940 | ||
c32bde28 | 32941 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32942 | PyObject *resultobj; |
32943 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32944 | wxMenu *result; | |
32945 | PyObject * obj0 = 0 ; | |
32946 | char *kwnames[] = { | |
32947 | (char *) "self", NULL | |
32948 | }; | |
32949 | ||
32950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32953 | { | |
32954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32955 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32956 | ||
32957 | wxPyEndAllowThreads(__tstate); | |
32958 | if (PyErr_Occurred()) SWIG_fail; | |
32959 | } | |
32960 | { | |
412d302d | 32961 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32962 | } |
32963 | return resultobj; | |
32964 | fail: | |
32965 | return NULL; | |
32966 | } | |
32967 | ||
32968 | ||
c32bde28 | 32969 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32970 | PyObject *resultobj; |
32971 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32972 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32973 | PyObject * obj0 = 0 ; | |
32974 | PyObject * obj1 = 0 ; | |
32975 | char *kwnames[] = { | |
32976 | (char *) "self",(char *) "menu", NULL | |
32977 | }; | |
32978 | ||
32979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32984 | { | |
32985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32986 | (arg1)->SetMenu(arg2); | |
32987 | ||
32988 | wxPyEndAllowThreads(__tstate); | |
32989 | if (PyErr_Occurred()) SWIG_fail; | |
32990 | } | |
32991 | Py_INCREF(Py_None); resultobj = Py_None; | |
32992 | return resultobj; | |
32993 | fail: | |
32994 | return NULL; | |
32995 | } | |
32996 | ||
32997 | ||
c32bde28 | 32998 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32999 | PyObject *resultobj; |
33000 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33001 | int arg2 ; | |
33002 | PyObject * obj0 = 0 ; | |
33003 | PyObject * obj1 = 0 ; | |
33004 | char *kwnames[] = { | |
33005 | (char *) "self",(char *) "id", NULL | |
33006 | }; | |
33007 | ||
33008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
33009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33011 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33012 | if (PyErr_Occurred()) SWIG_fail; |
33013 | { | |
33014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33015 | (arg1)->SetId(arg2); | |
33016 | ||
33017 | wxPyEndAllowThreads(__tstate); | |
33018 | if (PyErr_Occurred()) SWIG_fail; | |
33019 | } | |
33020 | Py_INCREF(Py_None); resultobj = Py_None; | |
33021 | return resultobj; | |
33022 | fail: | |
33023 | return NULL; | |
33024 | } | |
33025 | ||
33026 | ||
c32bde28 | 33027 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33028 | PyObject *resultobj; |
33029 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33030 | int result; | |
33031 | PyObject * obj0 = 0 ; | |
33032 | char *kwnames[] = { | |
33033 | (char *) "self", NULL | |
33034 | }; | |
33035 | ||
33036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
33037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33039 | { | |
33040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33041 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
33042 | ||
33043 | wxPyEndAllowThreads(__tstate); | |
33044 | if (PyErr_Occurred()) SWIG_fail; | |
33045 | } | |
c32bde28 | 33046 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33047 | return resultobj; |
33048 | fail: | |
33049 | return NULL; | |
33050 | } | |
33051 | ||
33052 | ||
c32bde28 | 33053 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33054 | PyObject *resultobj; |
33055 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33056 | bool result; | |
33057 | PyObject * obj0 = 0 ; | |
33058 | char *kwnames[] = { | |
33059 | (char *) "self", NULL | |
33060 | }; | |
33061 | ||
33062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
33063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33065 | { | |
33066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33067 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
33068 | ||
33069 | wxPyEndAllowThreads(__tstate); | |
33070 | if (PyErr_Occurred()) SWIG_fail; | |
33071 | } | |
33072 | { | |
33073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33074 | } | |
33075 | return resultobj; | |
33076 | fail: | |
33077 | return NULL; | |
33078 | } | |
33079 | ||
33080 | ||
c32bde28 | 33081 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33082 | PyObject *resultobj; |
33083 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33084 | wxString *arg2 = 0 ; | |
ae8162c8 | 33085 | bool temp2 = false ; |
d55e5bfc RD |
33086 | PyObject * obj0 = 0 ; |
33087 | PyObject * obj1 = 0 ; | |
33088 | char *kwnames[] = { | |
33089 | (char *) "self",(char *) "str", NULL | |
33090 | }; | |
33091 | ||
33092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
33093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33095 | { | |
33096 | arg2 = wxString_in_helper(obj1); | |
33097 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33098 | temp2 = true; |
d55e5bfc RD |
33099 | } |
33100 | { | |
33101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33102 | (arg1)->SetText((wxString const &)*arg2); | |
33103 | ||
33104 | wxPyEndAllowThreads(__tstate); | |
33105 | if (PyErr_Occurred()) SWIG_fail; | |
33106 | } | |
33107 | Py_INCREF(Py_None); resultobj = Py_None; | |
33108 | { | |
33109 | if (temp2) | |
33110 | delete arg2; | |
33111 | } | |
33112 | return resultobj; | |
33113 | fail: | |
33114 | { | |
33115 | if (temp2) | |
33116 | delete arg2; | |
33117 | } | |
33118 | return NULL; | |
33119 | } | |
33120 | ||
33121 | ||
c32bde28 | 33122 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33123 | PyObject *resultobj; |
33124 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33125 | wxString result; | |
33126 | PyObject * obj0 = 0 ; | |
33127 | char *kwnames[] = { | |
33128 | (char *) "self", NULL | |
33129 | }; | |
33130 | ||
33131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
33132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33134 | { | |
33135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33136 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
33137 | ||
33138 | wxPyEndAllowThreads(__tstate); | |
33139 | if (PyErr_Occurred()) SWIG_fail; | |
33140 | } | |
33141 | { | |
33142 | #if wxUSE_UNICODE | |
33143 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33144 | #else | |
33145 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33146 | #endif | |
33147 | } | |
33148 | return resultobj; | |
33149 | fail: | |
33150 | return NULL; | |
33151 | } | |
33152 | ||
33153 | ||
c32bde28 | 33154 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33155 | PyObject *resultobj; |
33156 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33157 | wxString *result; | |
33158 | PyObject * obj0 = 0 ; | |
33159 | char *kwnames[] = { | |
33160 | (char *) "self", NULL | |
33161 | }; | |
33162 | ||
33163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
33164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33166 | { | |
33167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33168 | { | |
33169 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
33170 | result = (wxString *) &_result_ref; | |
33171 | } | |
33172 | ||
33173 | wxPyEndAllowThreads(__tstate); | |
33174 | if (PyErr_Occurred()) SWIG_fail; | |
33175 | } | |
33176 | { | |
33177 | #if wxUSE_UNICODE | |
33178 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33179 | #else | |
33180 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33181 | #endif | |
33182 | } | |
33183 | return resultobj; | |
33184 | fail: | |
33185 | return NULL; | |
33186 | } | |
33187 | ||
33188 | ||
c32bde28 | 33189 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33190 | PyObject *resultobj; |
33191 | wxString *arg1 = 0 ; | |
33192 | wxString result; | |
ae8162c8 | 33193 | bool temp1 = false ; |
d55e5bfc RD |
33194 | PyObject * obj0 = 0 ; |
33195 | char *kwnames[] = { | |
33196 | (char *) "text", NULL | |
33197 | }; | |
33198 | ||
33199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
33200 | { | |
33201 | arg1 = wxString_in_helper(obj0); | |
33202 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 33203 | temp1 = true; |
d55e5bfc RD |
33204 | } |
33205 | { | |
33206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33207 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
33208 | ||
33209 | wxPyEndAllowThreads(__tstate); | |
33210 | if (PyErr_Occurred()) SWIG_fail; | |
33211 | } | |
33212 | { | |
33213 | #if wxUSE_UNICODE | |
33214 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33215 | #else | |
33216 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33217 | #endif | |
33218 | } | |
33219 | { | |
33220 | if (temp1) | |
33221 | delete arg1; | |
33222 | } | |
33223 | return resultobj; | |
33224 | fail: | |
33225 | { | |
33226 | if (temp1) | |
33227 | delete arg1; | |
33228 | } | |
33229 | return NULL; | |
33230 | } | |
33231 | ||
33232 | ||
c32bde28 | 33233 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33234 | PyObject *resultobj; |
33235 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33236 | int result; | |
33237 | PyObject * obj0 = 0 ; | |
33238 | char *kwnames[] = { | |
33239 | (char *) "self", NULL | |
33240 | }; | |
33241 | ||
33242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
33243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33245 | { | |
33246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33247 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
33248 | ||
33249 | wxPyEndAllowThreads(__tstate); | |
33250 | if (PyErr_Occurred()) SWIG_fail; | |
33251 | } | |
c32bde28 | 33252 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33253 | return resultobj; |
33254 | fail: | |
33255 | return NULL; | |
33256 | } | |
33257 | ||
33258 | ||
c32bde28 | 33259 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33260 | PyObject *resultobj; |
33261 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33262 | int arg2 ; | |
33263 | PyObject * obj0 = 0 ; | |
33264 | PyObject * obj1 = 0 ; | |
33265 | char *kwnames[] = { | |
33266 | (char *) "self",(char *) "kind", NULL | |
33267 | }; | |
33268 | ||
33269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
33270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33272 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33273 | if (PyErr_Occurred()) SWIG_fail; |
33274 | { | |
33275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33276 | (arg1)->SetKind((wxItemKind )arg2); | |
33277 | ||
33278 | wxPyEndAllowThreads(__tstate); | |
33279 | if (PyErr_Occurred()) SWIG_fail; | |
33280 | } | |
33281 | Py_INCREF(Py_None); resultobj = Py_None; | |
33282 | return resultobj; | |
33283 | fail: | |
33284 | return NULL; | |
33285 | } | |
33286 | ||
33287 | ||
c32bde28 | 33288 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33289 | PyObject *resultobj; |
33290 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33291 | bool arg2 ; | |
33292 | PyObject * obj0 = 0 ; | |
33293 | PyObject * obj1 = 0 ; | |
33294 | char *kwnames[] = { | |
33295 | (char *) "self",(char *) "checkable", NULL | |
33296 | }; | |
33297 | ||
33298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
33299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33301 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33302 | if (PyErr_Occurred()) SWIG_fail; |
33303 | { | |
33304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33305 | (arg1)->SetCheckable(arg2); | |
33306 | ||
33307 | wxPyEndAllowThreads(__tstate); | |
33308 | if (PyErr_Occurred()) SWIG_fail; | |
33309 | } | |
33310 | Py_INCREF(Py_None); resultobj = Py_None; | |
33311 | return resultobj; | |
33312 | fail: | |
33313 | return NULL; | |
33314 | } | |
33315 | ||
33316 | ||
c32bde28 | 33317 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33318 | PyObject *resultobj; |
33319 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33320 | bool result; | |
33321 | PyObject * obj0 = 0 ; | |
33322 | char *kwnames[] = { | |
33323 | (char *) "self", NULL | |
33324 | }; | |
33325 | ||
33326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
33327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33329 | { | |
33330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33331 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
33332 | ||
33333 | wxPyEndAllowThreads(__tstate); | |
33334 | if (PyErr_Occurred()) SWIG_fail; | |
33335 | } | |
33336 | { | |
33337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33338 | } | |
33339 | return resultobj; | |
33340 | fail: | |
33341 | return NULL; | |
33342 | } | |
33343 | ||
33344 | ||
c32bde28 | 33345 | static PyObject *_wrap_MenuItem_IsSubMenu(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_IsSubMenu",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)->IsSubMenu(); | |
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_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33374 | PyObject *resultobj; |
33375 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33376 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33377 | PyObject * obj0 = 0 ; | |
33378 | PyObject * obj1 = 0 ; | |
33379 | char *kwnames[] = { | |
33380 | (char *) "self",(char *) "menu", NULL | |
33381 | }; | |
33382 | ||
33383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33388 | { | |
33389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33390 | (arg1)->SetSubMenu(arg2); | |
33391 | ||
33392 | wxPyEndAllowThreads(__tstate); | |
33393 | if (PyErr_Occurred()) SWIG_fail; | |
33394 | } | |
33395 | Py_INCREF(Py_None); resultobj = Py_None; | |
33396 | return resultobj; | |
33397 | fail: | |
33398 | return NULL; | |
33399 | } | |
33400 | ||
33401 | ||
c32bde28 | 33402 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33403 | PyObject *resultobj; |
33404 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33405 | wxMenu *result; | |
33406 | PyObject * obj0 = 0 ; | |
33407 | char *kwnames[] = { | |
33408 | (char *) "self", NULL | |
33409 | }; | |
33410 | ||
33411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33414 | { | |
33415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33416 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33417 | ||
33418 | wxPyEndAllowThreads(__tstate); | |
33419 | if (PyErr_Occurred()) SWIG_fail; | |
33420 | } | |
33421 | { | |
412d302d | 33422 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33423 | } |
33424 | return resultobj; | |
33425 | fail: | |
33426 | return NULL; | |
33427 | } | |
33428 | ||
33429 | ||
c32bde28 | 33430 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33431 | PyObject *resultobj; |
33432 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33433 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33434 | PyObject * obj0 = 0 ; |
33435 | PyObject * obj1 = 0 ; | |
33436 | char *kwnames[] = { | |
33437 | (char *) "self",(char *) "enable", NULL | |
33438 | }; | |
33439 | ||
33440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33443 | if (obj1) { | |
c32bde28 | 33444 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33445 | if (PyErr_Occurred()) SWIG_fail; |
33446 | } | |
33447 | { | |
33448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33449 | (arg1)->Enable(arg2); | |
33450 | ||
33451 | wxPyEndAllowThreads(__tstate); | |
33452 | if (PyErr_Occurred()) SWIG_fail; | |
33453 | } | |
33454 | Py_INCREF(Py_None); resultobj = Py_None; | |
33455 | return resultobj; | |
33456 | fail: | |
33457 | return NULL; | |
33458 | } | |
33459 | ||
33460 | ||
c32bde28 | 33461 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33462 | PyObject *resultobj; |
33463 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33464 | bool result; | |
33465 | PyObject * obj0 = 0 ; | |
33466 | char *kwnames[] = { | |
33467 | (char *) "self", NULL | |
33468 | }; | |
33469 | ||
33470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33473 | { | |
33474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33475 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33476 | ||
33477 | wxPyEndAllowThreads(__tstate); | |
33478 | if (PyErr_Occurred()) SWIG_fail; | |
33479 | } | |
33480 | { | |
33481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33482 | } | |
33483 | return resultobj; | |
33484 | fail: | |
33485 | return NULL; | |
33486 | } | |
33487 | ||
33488 | ||
c32bde28 | 33489 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33490 | PyObject *resultobj; |
33491 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33492 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33493 | PyObject * obj0 = 0 ; |
33494 | PyObject * obj1 = 0 ; | |
33495 | char *kwnames[] = { | |
33496 | (char *) "self",(char *) "check", NULL | |
33497 | }; | |
33498 | ||
33499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33502 | if (obj1) { | |
c32bde28 | 33503 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33504 | if (PyErr_Occurred()) SWIG_fail; |
33505 | } | |
33506 | { | |
33507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33508 | (arg1)->Check(arg2); | |
33509 | ||
33510 | wxPyEndAllowThreads(__tstate); | |
33511 | if (PyErr_Occurred()) SWIG_fail; | |
33512 | } | |
33513 | Py_INCREF(Py_None); resultobj = Py_None; | |
33514 | return resultobj; | |
33515 | fail: | |
33516 | return NULL; | |
33517 | } | |
33518 | ||
33519 | ||
c32bde28 | 33520 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33521 | PyObject *resultobj; |
33522 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33523 | bool result; | |
33524 | PyObject * obj0 = 0 ; | |
33525 | char *kwnames[] = { | |
33526 | (char *) "self", NULL | |
33527 | }; | |
33528 | ||
33529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33532 | { | |
33533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33534 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33535 | ||
33536 | wxPyEndAllowThreads(__tstate); | |
33537 | if (PyErr_Occurred()) SWIG_fail; | |
33538 | } | |
33539 | { | |
33540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33541 | } | |
33542 | return resultobj; | |
33543 | fail: | |
33544 | return NULL; | |
33545 | } | |
33546 | ||
33547 | ||
c32bde28 | 33548 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33549 | PyObject *resultobj; |
33550 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33551 | PyObject * obj0 = 0 ; | |
33552 | char *kwnames[] = { | |
33553 | (char *) "self", NULL | |
33554 | }; | |
33555 | ||
33556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33559 | { | |
33560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33561 | (arg1)->Toggle(); | |
33562 | ||
33563 | wxPyEndAllowThreads(__tstate); | |
33564 | if (PyErr_Occurred()) SWIG_fail; | |
33565 | } | |
33566 | Py_INCREF(Py_None); resultobj = Py_None; | |
33567 | return resultobj; | |
33568 | fail: | |
33569 | return NULL; | |
33570 | } | |
33571 | ||
33572 | ||
c32bde28 | 33573 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33574 | PyObject *resultobj; |
33575 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33576 | wxString *arg2 = 0 ; | |
ae8162c8 | 33577 | bool temp2 = false ; |
d55e5bfc RD |
33578 | PyObject * obj0 = 0 ; |
33579 | PyObject * obj1 = 0 ; | |
33580 | char *kwnames[] = { | |
33581 | (char *) "self",(char *) "str", NULL | |
33582 | }; | |
33583 | ||
33584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33587 | { | |
33588 | arg2 = wxString_in_helper(obj1); | |
33589 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33590 | temp2 = true; |
d55e5bfc RD |
33591 | } |
33592 | { | |
33593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33594 | (arg1)->SetHelp((wxString const &)*arg2); | |
33595 | ||
33596 | wxPyEndAllowThreads(__tstate); | |
33597 | if (PyErr_Occurred()) SWIG_fail; | |
33598 | } | |
33599 | Py_INCREF(Py_None); resultobj = Py_None; | |
33600 | { | |
33601 | if (temp2) | |
33602 | delete arg2; | |
33603 | } | |
33604 | return resultobj; | |
33605 | fail: | |
33606 | { | |
33607 | if (temp2) | |
33608 | delete arg2; | |
33609 | } | |
33610 | return NULL; | |
33611 | } | |
33612 | ||
33613 | ||
c32bde28 | 33614 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33615 | PyObject *resultobj; |
33616 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33617 | wxString *result; | |
33618 | PyObject * obj0 = 0 ; | |
33619 | char *kwnames[] = { | |
33620 | (char *) "self", NULL | |
33621 | }; | |
33622 | ||
33623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33626 | { | |
33627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33628 | { | |
33629 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33630 | result = (wxString *) &_result_ref; | |
33631 | } | |
33632 | ||
33633 | wxPyEndAllowThreads(__tstate); | |
33634 | if (PyErr_Occurred()) SWIG_fail; | |
33635 | } | |
33636 | { | |
33637 | #if wxUSE_UNICODE | |
33638 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33639 | #else | |
33640 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33641 | #endif | |
33642 | } | |
33643 | return resultobj; | |
33644 | fail: | |
33645 | return NULL; | |
33646 | } | |
33647 | ||
33648 | ||
c32bde28 | 33649 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33650 | PyObject *resultobj; |
33651 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33652 | wxAcceleratorEntry *result; | |
33653 | PyObject * obj0 = 0 ; | |
33654 | char *kwnames[] = { | |
33655 | (char *) "self", NULL | |
33656 | }; | |
33657 | ||
33658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33661 | { | |
33662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33663 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33664 | ||
33665 | wxPyEndAllowThreads(__tstate); | |
33666 | if (PyErr_Occurred()) SWIG_fail; | |
33667 | } | |
33668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33669 | return resultobj; | |
33670 | fail: | |
33671 | return NULL; | |
33672 | } | |
33673 | ||
33674 | ||
c32bde28 | 33675 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33676 | PyObject *resultobj; |
33677 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33678 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33679 | PyObject * obj0 = 0 ; | |
33680 | PyObject * obj1 = 0 ; | |
33681 | char *kwnames[] = { | |
33682 | (char *) "self",(char *) "accel", NULL | |
33683 | }; | |
33684 | ||
33685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33690 | { | |
33691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33692 | (arg1)->SetAccel(arg2); | |
33693 | ||
33694 | wxPyEndAllowThreads(__tstate); | |
33695 | if (PyErr_Occurred()) SWIG_fail; | |
33696 | } | |
33697 | Py_INCREF(Py_None); resultobj = Py_None; | |
33698 | return resultobj; | |
33699 | fail: | |
33700 | return NULL; | |
33701 | } | |
33702 | ||
33703 | ||
c32bde28 | 33704 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33705 | PyObject *resultobj; |
33706 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33707 | wxFont *arg2 = 0 ; | |
33708 | PyObject * obj0 = 0 ; | |
33709 | PyObject * obj1 = 0 ; | |
33710 | char *kwnames[] = { | |
33711 | (char *) "self",(char *) "font", NULL | |
33712 | }; | |
33713 | ||
33714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
33715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
33718 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33719 | SWIG_fail; | |
33720 | if (arg2 == NULL) { | |
33721 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33722 | SWIG_fail; | |
33723 | } | |
33724 | { | |
33725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33726 | (arg1)->SetFont((wxFont const &)*arg2); | |
33727 | ||
33728 | wxPyEndAllowThreads(__tstate); | |
33729 | if (PyErr_Occurred()) SWIG_fail; | |
33730 | } | |
33731 | Py_INCREF(Py_None); resultobj = Py_None; | |
33732 | return resultobj; | |
33733 | fail: | |
33734 | return NULL; | |
33735 | } | |
33736 | ||
33737 | ||
c32bde28 | 33738 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33739 | PyObject *resultobj; |
33740 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33741 | wxFont result; | |
33742 | PyObject * obj0 = 0 ; | |
33743 | char *kwnames[] = { | |
33744 | (char *) "self", NULL | |
33745 | }; | |
33746 | ||
33747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
33748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33750 | { | |
33751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33752 | result = (arg1)->GetFont(); | |
33753 | ||
33754 | wxPyEndAllowThreads(__tstate); | |
33755 | if (PyErr_Occurred()) SWIG_fail; | |
33756 | } | |
33757 | { | |
33758 | wxFont * resultptr; | |
33759 | resultptr = new wxFont((wxFont &) result); | |
33760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
33761 | } | |
33762 | return resultobj; | |
33763 | fail: | |
33764 | return NULL; | |
33765 | } | |
33766 | ||
33767 | ||
c32bde28 | 33768 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33769 | PyObject *resultobj; |
33770 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33771 | wxColour *arg2 = 0 ; | |
33772 | wxColour temp2 ; | |
33773 | PyObject * obj0 = 0 ; | |
33774 | PyObject * obj1 = 0 ; | |
33775 | char *kwnames[] = { | |
33776 | (char *) "self",(char *) "colText", NULL | |
33777 | }; | |
33778 | ||
33779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
33780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33782 | { | |
33783 | arg2 = &temp2; | |
33784 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33785 | } | |
33786 | { | |
33787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33788 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
33789 | ||
33790 | wxPyEndAllowThreads(__tstate); | |
33791 | if (PyErr_Occurred()) SWIG_fail; | |
33792 | } | |
33793 | Py_INCREF(Py_None); resultobj = Py_None; | |
33794 | return resultobj; | |
33795 | fail: | |
33796 | return NULL; | |
33797 | } | |
33798 | ||
33799 | ||
c32bde28 | 33800 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33801 | PyObject *resultobj; |
33802 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33803 | wxColour result; | |
33804 | PyObject * obj0 = 0 ; | |
33805 | char *kwnames[] = { | |
33806 | (char *) "self", NULL | |
33807 | }; | |
33808 | ||
33809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
33810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33812 | { | |
33813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33814 | result = (arg1)->GetTextColour(); | |
33815 | ||
33816 | wxPyEndAllowThreads(__tstate); | |
33817 | if (PyErr_Occurred()) SWIG_fail; | |
33818 | } | |
33819 | { | |
33820 | wxColour * resultptr; | |
33821 | resultptr = new wxColour((wxColour &) result); | |
33822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33823 | } | |
33824 | return resultobj; | |
33825 | fail: | |
33826 | return NULL; | |
33827 | } | |
33828 | ||
33829 | ||
c32bde28 | 33830 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33831 | PyObject *resultobj; |
33832 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33833 | wxColour *arg2 = 0 ; | |
33834 | wxColour temp2 ; | |
33835 | PyObject * obj0 = 0 ; | |
33836 | PyObject * obj1 = 0 ; | |
33837 | char *kwnames[] = { | |
33838 | (char *) "self",(char *) "colBack", NULL | |
33839 | }; | |
33840 | ||
33841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
33842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33844 | { | |
33845 | arg2 = &temp2; | |
33846 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33847 | } | |
33848 | { | |
33849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33850 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
33851 | ||
33852 | wxPyEndAllowThreads(__tstate); | |
33853 | if (PyErr_Occurred()) SWIG_fail; | |
33854 | } | |
33855 | Py_INCREF(Py_None); resultobj = Py_None; | |
33856 | return resultobj; | |
33857 | fail: | |
33858 | return NULL; | |
33859 | } | |
33860 | ||
33861 | ||
c32bde28 | 33862 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33863 | PyObject *resultobj; |
33864 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33865 | wxColour result; | |
33866 | PyObject * obj0 = 0 ; | |
33867 | char *kwnames[] = { | |
33868 | (char *) "self", NULL | |
33869 | }; | |
33870 | ||
33871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
33872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33874 | { | |
33875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33876 | result = (arg1)->GetBackgroundColour(); | |
33877 | ||
33878 | wxPyEndAllowThreads(__tstate); | |
33879 | if (PyErr_Occurred()) SWIG_fail; | |
33880 | } | |
33881 | { | |
33882 | wxColour * resultptr; | |
33883 | resultptr = new wxColour((wxColour &) result); | |
33884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33885 | } | |
33886 | return resultobj; | |
33887 | fail: | |
33888 | return NULL; | |
33889 | } | |
33890 | ||
33891 | ||
c32bde28 | 33892 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33893 | PyObject *resultobj; |
33894 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33895 | wxBitmap *arg2 = 0 ; | |
33896 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
33897 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
33898 | PyObject * obj0 = 0 ; | |
33899 | PyObject * obj1 = 0 ; | |
33900 | PyObject * obj2 = 0 ; | |
33901 | char *kwnames[] = { | |
33902 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
33903 | }; | |
33904 | ||
33905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33908 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33909 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33910 | SWIG_fail; | |
33911 | if (arg2 == NULL) { | |
33912 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33913 | SWIG_fail; | |
33914 | } | |
33915 | if (obj2) { | |
33916 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
33917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33918 | SWIG_fail; | |
33919 | if (arg3 == NULL) { | |
33920 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33921 | SWIG_fail; | |
33922 | } | |
33923 | } | |
33924 | { | |
33925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33926 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
33927 | ||
33928 | wxPyEndAllowThreads(__tstate); | |
33929 | if (PyErr_Occurred()) SWIG_fail; | |
33930 | } | |
33931 | Py_INCREF(Py_None); resultobj = Py_None; | |
33932 | return resultobj; | |
33933 | fail: | |
33934 | return NULL; | |
33935 | } | |
33936 | ||
33937 | ||
c32bde28 | 33938 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33939 | PyObject *resultobj; |
33940 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33941 | wxBitmap *arg2 = 0 ; | |
33942 | PyObject * obj0 = 0 ; | |
33943 | PyObject * obj1 = 0 ; | |
33944 | char *kwnames[] = { | |
33945 | (char *) "self",(char *) "bmpDisabled", NULL | |
33946 | }; | |
33947 | ||
33948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33953 | SWIG_fail; | |
33954 | if (arg2 == NULL) { | |
33955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33956 | SWIG_fail; | |
33957 | } | |
33958 | { | |
33959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33960 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
33961 | ||
33962 | wxPyEndAllowThreads(__tstate); | |
33963 | if (PyErr_Occurred()) SWIG_fail; | |
33964 | } | |
33965 | Py_INCREF(Py_None); resultobj = Py_None; | |
33966 | return resultobj; | |
33967 | fail: | |
33968 | return NULL; | |
33969 | } | |
33970 | ||
33971 | ||
c32bde28 | 33972 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33973 | PyObject *resultobj; |
33974 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33975 | wxBitmap *result; | |
33976 | PyObject * obj0 = 0 ; | |
33977 | char *kwnames[] = { | |
33978 | (char *) "self", NULL | |
33979 | }; | |
33980 | ||
33981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
33982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33984 | { | |
33985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33986 | { | |
33987 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
33988 | result = (wxBitmap *) &_result_ref; | |
33989 | } | |
33990 | ||
33991 | wxPyEndAllowThreads(__tstate); | |
33992 | if (PyErr_Occurred()) SWIG_fail; | |
33993 | } | |
33994 | { | |
33995 | wxBitmap* resultptr = new wxBitmap(*result); | |
33996 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33997 | } | |
33998 | return resultobj; | |
33999 | fail: | |
34000 | return NULL; | |
34001 | } | |
34002 | ||
34003 | ||
c32bde28 | 34004 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34005 | PyObject *resultobj; |
34006 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34007 | int arg2 ; | |
34008 | PyObject * obj0 = 0 ; | |
34009 | PyObject * obj1 = 0 ; | |
34010 | char *kwnames[] = { | |
34011 | (char *) "self",(char *) "nWidth", NULL | |
34012 | }; | |
34013 | ||
34014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
34015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34017 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34018 | if (PyErr_Occurred()) SWIG_fail; |
34019 | { | |
34020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34021 | (arg1)->SetMarginWidth(arg2); | |
34022 | ||
34023 | wxPyEndAllowThreads(__tstate); | |
34024 | if (PyErr_Occurred()) SWIG_fail; | |
34025 | } | |
34026 | Py_INCREF(Py_None); resultobj = Py_None; | |
34027 | return resultobj; | |
34028 | fail: | |
34029 | return NULL; | |
34030 | } | |
34031 | ||
34032 | ||
c32bde28 | 34033 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34034 | PyObject *resultobj; |
34035 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34036 | int result; | |
34037 | PyObject * obj0 = 0 ; | |
34038 | char *kwnames[] = { | |
34039 | (char *) "self", NULL | |
34040 | }; | |
34041 | ||
34042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
34043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34045 | { | |
34046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34047 | result = (int)(arg1)->GetMarginWidth(); | |
34048 | ||
34049 | wxPyEndAllowThreads(__tstate); | |
34050 | if (PyErr_Occurred()) SWIG_fail; | |
34051 | } | |
c32bde28 | 34052 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34053 | return resultobj; |
34054 | fail: | |
34055 | return NULL; | |
34056 | } | |
34057 | ||
34058 | ||
c32bde28 | 34059 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34060 | PyObject *resultobj; |
34061 | int result; | |
34062 | char *kwnames[] = { | |
34063 | NULL | |
34064 | }; | |
34065 | ||
34066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
34067 | { | |
34068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34069 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
34070 | ||
34071 | wxPyEndAllowThreads(__tstate); | |
34072 | if (PyErr_Occurred()) SWIG_fail; | |
34073 | } | |
c32bde28 | 34074 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34075 | return resultobj; |
34076 | fail: | |
34077 | return NULL; | |
34078 | } | |
34079 | ||
34080 | ||
c32bde28 | 34081 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34082 | PyObject *resultobj; |
34083 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34084 | bool result; | |
34085 | PyObject * obj0 = 0 ; | |
34086 | char *kwnames[] = { | |
34087 | (char *) "self", NULL | |
34088 | }; | |
34089 | ||
34090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
34091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34093 | { | |
34094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34095 | result = (bool)(arg1)->IsOwnerDrawn(); | |
34096 | ||
34097 | wxPyEndAllowThreads(__tstate); | |
34098 | if (PyErr_Occurred()) SWIG_fail; | |
34099 | } | |
34100 | { | |
34101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34102 | } | |
34103 | return resultobj; | |
34104 | fail: | |
34105 | return NULL; | |
34106 | } | |
34107 | ||
34108 | ||
c32bde28 | 34109 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34110 | PyObject *resultobj; |
34111 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 34112 | bool arg2 = (bool) true ; |
d55e5bfc RD |
34113 | PyObject * obj0 = 0 ; |
34114 | PyObject * obj1 = 0 ; | |
34115 | char *kwnames[] = { | |
34116 | (char *) "self",(char *) "ownerDrawn", NULL | |
34117 | }; | |
34118 | ||
34119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
34120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34122 | if (obj1) { | |
c32bde28 | 34123 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
34124 | if (PyErr_Occurred()) SWIG_fail; |
34125 | } | |
34126 | { | |
34127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34128 | (arg1)->SetOwnerDrawn(arg2); | |
34129 | ||
34130 | wxPyEndAllowThreads(__tstate); | |
34131 | if (PyErr_Occurred()) SWIG_fail; | |
34132 | } | |
34133 | Py_INCREF(Py_None); resultobj = Py_None; | |
34134 | return resultobj; | |
34135 | fail: | |
34136 | return NULL; | |
34137 | } | |
34138 | ||
34139 | ||
c32bde28 | 34140 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34141 | PyObject *resultobj; |
34142 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34143 | PyObject * obj0 = 0 ; | |
34144 | char *kwnames[] = { | |
34145 | (char *) "self", NULL | |
34146 | }; | |
34147 | ||
34148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
34149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34151 | { | |
34152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34153 | (arg1)->ResetOwnerDrawn(); | |
34154 | ||
34155 | wxPyEndAllowThreads(__tstate); | |
34156 | if (PyErr_Occurred()) SWIG_fail; | |
34157 | } | |
34158 | Py_INCREF(Py_None); resultobj = Py_None; | |
34159 | return resultobj; | |
34160 | fail: | |
34161 | return NULL; | |
34162 | } | |
34163 | ||
34164 | ||
c32bde28 | 34165 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34166 | PyObject *resultobj; |
34167 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34168 | wxBitmap *arg2 = 0 ; | |
34169 | PyObject * obj0 = 0 ; | |
34170 | PyObject * obj1 = 0 ; | |
34171 | char *kwnames[] = { | |
34172 | (char *) "self",(char *) "bitmap", NULL | |
34173 | }; | |
34174 | ||
34175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
34176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34178 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
34179 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34180 | SWIG_fail; | |
34181 | if (arg2 == NULL) { | |
34182 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34183 | SWIG_fail; | |
34184 | } | |
34185 | { | |
34186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34187 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
34188 | ||
34189 | wxPyEndAllowThreads(__tstate); | |
34190 | if (PyErr_Occurred()) SWIG_fail; | |
34191 | } | |
34192 | Py_INCREF(Py_None); resultobj = Py_None; | |
34193 | return resultobj; | |
34194 | fail: | |
34195 | return NULL; | |
34196 | } | |
34197 | ||
34198 | ||
c32bde28 | 34199 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34200 | PyObject *resultobj; |
34201 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
34202 | wxBitmap *result; | |
34203 | PyObject * obj0 = 0 ; | |
34204 | char *kwnames[] = { | |
34205 | (char *) "self", NULL | |
34206 | }; | |
34207 | ||
34208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
34209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
34210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34211 | { | |
34212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34213 | { | |
34214 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
34215 | result = (wxBitmap *) &_result_ref; | |
34216 | } | |
34217 | ||
34218 | wxPyEndAllowThreads(__tstate); | |
34219 | if (PyErr_Occurred()) SWIG_fail; | |
34220 | } | |
34221 | { | |
34222 | wxBitmap* resultptr = new wxBitmap(*result); | |
34223 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
34224 | } | |
34225 | return resultobj; | |
34226 | fail: | |
34227 | return NULL; | |
34228 | } | |
34229 | ||
34230 | ||
c32bde28 | 34231 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34232 | PyObject *obj; |
34233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34234 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
34235 | Py_INCREF(obj); | |
34236 | return Py_BuildValue((char *)""); | |
34237 | } | |
c32bde28 | 34238 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
34239 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
34240 | return 1; | |
34241 | } | |
34242 | ||
34243 | ||
34244 | static PyObject *_wrap_ControlNameStr_get() { | |
34245 | PyObject *pyobj; | |
34246 | ||
34247 | { | |
34248 | #if wxUSE_UNICODE | |
34249 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
34250 | #else | |
34251 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
34252 | #endif | |
34253 | } | |
34254 | return pyobj; | |
34255 | } | |
34256 | ||
34257 | ||
c32bde28 | 34258 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34259 | PyObject *resultobj; |
34260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 34261 | int arg2 = (int) -1 ; |
d55e5bfc RD |
34262 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
34263 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
34264 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
34265 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
34266 | long arg5 = (long) 0 ; | |
34267 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
34268 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
34269 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
34270 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
34271 | wxControl *result; | |
34272 | wxPoint temp3 ; | |
34273 | wxSize temp4 ; | |
ae8162c8 | 34274 | bool temp7 = false ; |
d55e5bfc RD |
34275 | PyObject * obj0 = 0 ; |
34276 | PyObject * obj1 = 0 ; | |
34277 | PyObject * obj2 = 0 ; | |
34278 | PyObject * obj3 = 0 ; | |
34279 | PyObject * obj4 = 0 ; | |
34280 | PyObject * obj5 = 0 ; | |
34281 | PyObject * obj6 = 0 ; | |
34282 | char *kwnames[] = { | |
34283 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34284 | }; | |
34285 | ||
248ed943 | 34286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
34287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
34288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34289 | if (obj1) { |
c32bde28 | 34290 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
34291 | if (PyErr_Occurred()) SWIG_fail; |
34292 | } | |
d55e5bfc RD |
34293 | if (obj2) { |
34294 | { | |
34295 | arg3 = &temp3; | |
34296 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34297 | } | |
34298 | } | |
34299 | if (obj3) { | |
34300 | { | |
34301 | arg4 = &temp4; | |
34302 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34303 | } | |
34304 | } | |
34305 | if (obj4) { | |
c32bde28 | 34306 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
34307 | if (PyErr_Occurred()) SWIG_fail; |
34308 | } | |
34309 | if (obj5) { | |
34310 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
34311 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34312 | SWIG_fail; | |
34313 | if (arg6 == NULL) { | |
34314 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34315 | SWIG_fail; | |
34316 | } | |
34317 | } | |
34318 | if (obj6) { | |
34319 | { | |
34320 | arg7 = wxString_in_helper(obj6); | |
34321 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 34322 | temp7 = true; |
d55e5bfc RD |
34323 | } |
34324 | } | |
34325 | { | |
0439c23b | 34326 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34328 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
34329 | ||
34330 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34331 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34332 | } |
b0f7404b | 34333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34334 | { |
34335 | if (temp7) | |
34336 | delete arg7; | |
34337 | } | |
34338 | return resultobj; | |
34339 | fail: | |
34340 | { | |
34341 | if (temp7) | |
34342 | delete arg7; | |
34343 | } | |
34344 | return NULL; | |
34345 | } | |
34346 | ||
34347 | ||
c32bde28 | 34348 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34349 | PyObject *resultobj; |
34350 | wxControl *result; | |
34351 | char *kwnames[] = { | |
34352 | NULL | |
34353 | }; | |
34354 | ||
34355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
34356 | { | |
0439c23b | 34357 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34359 | result = (wxControl *)new wxControl(); | |
34360 | ||
34361 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34362 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34363 | } |
b0f7404b | 34364 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34365 | return resultobj; |
34366 | fail: | |
34367 | return NULL; | |
34368 | } | |
34369 | ||
34370 | ||
c32bde28 | 34371 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34372 | PyObject *resultobj; |
34373 | wxControl *arg1 = (wxControl *) 0 ; | |
34374 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 34375 | int arg3 = (int) -1 ; |
d55e5bfc RD |
34376 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
34377 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34378 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34379 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34380 | long arg6 = (long) 0 ; | |
34381 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34382 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34383 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
34384 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34385 | bool result; | |
34386 | wxPoint temp4 ; | |
34387 | wxSize temp5 ; | |
ae8162c8 | 34388 | bool temp8 = false ; |
d55e5bfc RD |
34389 | PyObject * obj0 = 0 ; |
34390 | PyObject * obj1 = 0 ; | |
34391 | PyObject * obj2 = 0 ; | |
34392 | PyObject * obj3 = 0 ; | |
34393 | PyObject * obj4 = 0 ; | |
34394 | PyObject * obj5 = 0 ; | |
34395 | PyObject * obj6 = 0 ; | |
34396 | PyObject * obj7 = 0 ; | |
34397 | char *kwnames[] = { | |
34398 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34399 | }; | |
34400 | ||
248ed943 | 34401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
34402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
34403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34406 | if (obj2) { |
c32bde28 | 34407 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
34408 | if (PyErr_Occurred()) SWIG_fail; |
34409 | } | |
d55e5bfc RD |
34410 | if (obj3) { |
34411 | { | |
34412 | arg4 = &temp4; | |
34413 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34414 | } | |
34415 | } | |
34416 | if (obj4) { | |
34417 | { | |
34418 | arg5 = &temp5; | |
34419 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34420 | } | |
34421 | } | |
34422 | if (obj5) { | |
c32bde28 | 34423 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
34424 | if (PyErr_Occurred()) SWIG_fail; |
34425 | } | |
34426 | if (obj6) { | |
34427 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
34428 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34429 | SWIG_fail; | |
34430 | if (arg7 == NULL) { | |
34431 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34432 | SWIG_fail; | |
34433 | } | |
34434 | } | |
34435 | if (obj7) { | |
34436 | { | |
34437 | arg8 = wxString_in_helper(obj7); | |
34438 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 34439 | temp8 = true; |
d55e5bfc RD |
34440 | } |
34441 | } | |
34442 | { | |
34443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34444 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34445 | ||
34446 | wxPyEndAllowThreads(__tstate); | |
34447 | if (PyErr_Occurred()) SWIG_fail; | |
34448 | } | |
34449 | { | |
34450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34451 | } | |
34452 | { | |
34453 | if (temp8) | |
34454 | delete arg8; | |
34455 | } | |
34456 | return resultobj; | |
34457 | fail: | |
34458 | { | |
34459 | if (temp8) | |
34460 | delete arg8; | |
34461 | } | |
34462 | return NULL; | |
34463 | } | |
34464 | ||
34465 | ||
c32bde28 | 34466 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34467 | PyObject *resultobj; |
34468 | wxControl *arg1 = (wxControl *) 0 ; | |
34469 | wxCommandEvent *arg2 = 0 ; | |
34470 | PyObject * obj0 = 0 ; | |
34471 | PyObject * obj1 = 0 ; | |
34472 | char *kwnames[] = { | |
34473 | (char *) "self",(char *) "event", NULL | |
34474 | }; | |
34475 | ||
34476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
34477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
34480 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34481 | SWIG_fail; | |
34482 | if (arg2 == NULL) { | |
34483 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34484 | SWIG_fail; | |
34485 | } | |
34486 | { | |
34487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34488 | (arg1)->Command(*arg2); | |
34489 | ||
34490 | wxPyEndAllowThreads(__tstate); | |
34491 | if (PyErr_Occurred()) SWIG_fail; | |
34492 | } | |
34493 | Py_INCREF(Py_None); resultobj = Py_None; | |
34494 | return resultobj; | |
34495 | fail: | |
34496 | return NULL; | |
34497 | } | |
34498 | ||
34499 | ||
c32bde28 | 34500 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34501 | PyObject *resultobj; |
34502 | wxControl *arg1 = (wxControl *) 0 ; | |
34503 | wxString result; | |
34504 | PyObject * obj0 = 0 ; | |
34505 | char *kwnames[] = { | |
34506 | (char *) "self", NULL | |
34507 | }; | |
34508 | ||
34509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
34510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34512 | { | |
34513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34514 | result = (arg1)->GetLabel(); | |
34515 | ||
34516 | wxPyEndAllowThreads(__tstate); | |
34517 | if (PyErr_Occurred()) SWIG_fail; | |
34518 | } | |
34519 | { | |
34520 | #if wxUSE_UNICODE | |
34521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34522 | #else | |
34523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34524 | #endif | |
34525 | } | |
34526 | return resultobj; | |
34527 | fail: | |
34528 | return NULL; | |
34529 | } | |
34530 | ||
34531 | ||
c32bde28 | 34532 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34533 | PyObject *resultobj; |
34534 | wxControl *arg1 = (wxControl *) 0 ; | |
34535 | wxString *arg2 = 0 ; | |
ae8162c8 | 34536 | bool temp2 = false ; |
d55e5bfc RD |
34537 | PyObject * obj0 = 0 ; |
34538 | PyObject * obj1 = 0 ; | |
34539 | char *kwnames[] = { | |
34540 | (char *) "self",(char *) "label", NULL | |
34541 | }; | |
34542 | ||
34543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
34544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34546 | { | |
34547 | arg2 = wxString_in_helper(obj1); | |
34548 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34549 | temp2 = true; |
d55e5bfc RD |
34550 | } |
34551 | { | |
34552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34553 | (arg1)->SetLabel((wxString const &)*arg2); | |
34554 | ||
34555 | wxPyEndAllowThreads(__tstate); | |
34556 | if (PyErr_Occurred()) SWIG_fail; | |
34557 | } | |
34558 | Py_INCREF(Py_None); resultobj = Py_None; | |
34559 | { | |
34560 | if (temp2) | |
34561 | delete arg2; | |
34562 | } | |
34563 | return resultobj; | |
34564 | fail: | |
34565 | { | |
34566 | if (temp2) | |
34567 | delete arg2; | |
34568 | } | |
34569 | return NULL; | |
34570 | } | |
34571 | ||
34572 | ||
c32bde28 | 34573 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34574 | PyObject *resultobj; |
34575 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
34576 | wxVisualAttributes result; | |
34577 | PyObject * obj0 = 0 ; | |
34578 | char *kwnames[] = { | |
34579 | (char *) "variant", NULL | |
34580 | }; | |
34581 | ||
34582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
34583 | if (obj0) { | |
c32bde28 | 34584 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
34585 | if (PyErr_Occurred()) SWIG_fail; |
34586 | } | |
34587 | { | |
a001823c | 34588 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34590 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
34591 | ||
34592 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34593 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34594 | } |
34595 | { | |
34596 | wxVisualAttributes * resultptr; | |
34597 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
34598 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
34599 | } | |
34600 | return resultobj; | |
34601 | fail: | |
34602 | return NULL; | |
34603 | } | |
34604 | ||
34605 | ||
c32bde28 | 34606 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34607 | PyObject *obj; |
34608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34609 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
34610 | Py_INCREF(obj); | |
34611 | return Py_BuildValue((char *)""); | |
34612 | } | |
c32bde28 | 34613 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34614 | PyObject *resultobj; |
34615 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34616 | wxString *arg2 = 0 ; | |
34617 | PyObject *arg3 = (PyObject *) NULL ; | |
34618 | int result; | |
ae8162c8 | 34619 | bool temp2 = false ; |
d55e5bfc RD |
34620 | PyObject * obj0 = 0 ; |
34621 | PyObject * obj1 = 0 ; | |
34622 | PyObject * obj2 = 0 ; | |
34623 | char *kwnames[] = { | |
34624 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
34625 | }; | |
34626 | ||
34627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34630 | { | |
34631 | arg2 = wxString_in_helper(obj1); | |
34632 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34633 | temp2 = true; |
d55e5bfc RD |
34634 | } |
34635 | if (obj2) { | |
34636 | arg3 = obj2; | |
34637 | } | |
34638 | { | |
34639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34640 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
34641 | ||
34642 | wxPyEndAllowThreads(__tstate); | |
34643 | if (PyErr_Occurred()) SWIG_fail; | |
34644 | } | |
c32bde28 | 34645 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34646 | { |
34647 | if (temp2) | |
34648 | delete arg2; | |
34649 | } | |
34650 | return resultobj; | |
34651 | fail: | |
34652 | { | |
34653 | if (temp2) | |
34654 | delete arg2; | |
34655 | } | |
34656 | return NULL; | |
34657 | } | |
34658 | ||
34659 | ||
c32bde28 | 34660 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34661 | PyObject *resultobj; |
34662 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34663 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 34664 | bool temp2 = false ; |
d55e5bfc RD |
34665 | PyObject * obj0 = 0 ; |
34666 | PyObject * obj1 = 0 ; | |
34667 | char *kwnames[] = { | |
34668 | (char *) "self",(char *) "strings", NULL | |
34669 | }; | |
34670 | ||
34671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
34672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34674 | { | |
34675 | if (! PySequence_Check(obj1)) { | |
34676 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
34677 | SWIG_fail; | |
34678 | } | |
34679 | arg2 = new wxArrayString; | |
ae8162c8 | 34680 | temp2 = true; |
d55e5bfc RD |
34681 | int i, len=PySequence_Length(obj1); |
34682 | for (i=0; i<len; i++) { | |
34683 | PyObject* item = PySequence_GetItem(obj1, i); | |
34684 | #if wxUSE_UNICODE | |
34685 | PyObject* str = PyObject_Unicode(item); | |
34686 | #else | |
34687 | PyObject* str = PyObject_Str(item); | |
34688 | #endif | |
34689 | if (PyErr_Occurred()) SWIG_fail; | |
34690 | arg2->Add(Py2wxString(str)); | |
34691 | Py_DECREF(item); | |
34692 | Py_DECREF(str); | |
34693 | } | |
34694 | } | |
34695 | { | |
34696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34697 | (arg1)->Append((wxArrayString const &)*arg2); | |
34698 | ||
34699 | wxPyEndAllowThreads(__tstate); | |
34700 | if (PyErr_Occurred()) SWIG_fail; | |
34701 | } | |
34702 | Py_INCREF(Py_None); resultobj = Py_None; | |
34703 | { | |
34704 | if (temp2) delete arg2; | |
34705 | } | |
34706 | return resultobj; | |
34707 | fail: | |
34708 | { | |
34709 | if (temp2) delete arg2; | |
34710 | } | |
34711 | return NULL; | |
34712 | } | |
34713 | ||
34714 | ||
c32bde28 | 34715 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34716 | PyObject *resultobj; |
34717 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34718 | wxString *arg2 = 0 ; | |
34719 | int arg3 ; | |
34720 | PyObject *arg4 = (PyObject *) NULL ; | |
34721 | int result; | |
ae8162c8 | 34722 | bool temp2 = false ; |
d55e5bfc RD |
34723 | PyObject * obj0 = 0 ; |
34724 | PyObject * obj1 = 0 ; | |
34725 | PyObject * obj2 = 0 ; | |
34726 | PyObject * obj3 = 0 ; | |
34727 | char *kwnames[] = { | |
34728 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
34729 | }; | |
34730 | ||
34731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34734 | { | |
34735 | arg2 = wxString_in_helper(obj1); | |
34736 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34737 | temp2 = true; |
d55e5bfc | 34738 | } |
c32bde28 | 34739 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34740 | if (PyErr_Occurred()) SWIG_fail; |
34741 | if (obj3) { | |
34742 | arg4 = obj3; | |
34743 | } | |
34744 | { | |
34745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34746 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
34747 | ||
34748 | wxPyEndAllowThreads(__tstate); | |
34749 | if (PyErr_Occurred()) SWIG_fail; | |
34750 | } | |
c32bde28 | 34751 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34752 | { |
34753 | if (temp2) | |
34754 | delete arg2; | |
34755 | } | |
34756 | return resultobj; | |
34757 | fail: | |
34758 | { | |
34759 | if (temp2) | |
34760 | delete arg2; | |
34761 | } | |
34762 | return NULL; | |
34763 | } | |
34764 | ||
34765 | ||
c32bde28 | 34766 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34767 | PyObject *resultobj; |
34768 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34769 | PyObject * obj0 = 0 ; | |
34770 | char *kwnames[] = { | |
34771 | (char *) "self", NULL | |
34772 | }; | |
34773 | ||
34774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
34775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34777 | { | |
34778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34779 | (arg1)->Clear(); | |
34780 | ||
34781 | wxPyEndAllowThreads(__tstate); | |
34782 | if (PyErr_Occurred()) SWIG_fail; | |
34783 | } | |
34784 | Py_INCREF(Py_None); resultobj = Py_None; | |
34785 | return resultobj; | |
34786 | fail: | |
34787 | return NULL; | |
34788 | } | |
34789 | ||
34790 | ||
c32bde28 | 34791 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34792 | PyObject *resultobj; |
34793 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34794 | int arg2 ; | |
34795 | PyObject * obj0 = 0 ; | |
34796 | PyObject * obj1 = 0 ; | |
34797 | char *kwnames[] = { | |
34798 | (char *) "self",(char *) "n", NULL | |
34799 | }; | |
34800 | ||
34801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
34802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34804 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34805 | if (PyErr_Occurred()) SWIG_fail; |
34806 | { | |
34807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34808 | (arg1)->Delete(arg2); | |
34809 | ||
34810 | wxPyEndAllowThreads(__tstate); | |
34811 | if (PyErr_Occurred()) SWIG_fail; | |
34812 | } | |
34813 | Py_INCREF(Py_None); resultobj = Py_None; | |
34814 | return resultobj; | |
34815 | fail: | |
34816 | return NULL; | |
34817 | } | |
34818 | ||
34819 | ||
c32bde28 | 34820 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34821 | PyObject *resultobj; |
34822 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34823 | int result; | |
34824 | PyObject * obj0 = 0 ; | |
34825 | char *kwnames[] = { | |
34826 | (char *) "self", NULL | |
34827 | }; | |
34828 | ||
34829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34832 | { | |
34833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34834 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34835 | ||
34836 | wxPyEndAllowThreads(__tstate); | |
34837 | if (PyErr_Occurred()) SWIG_fail; | |
34838 | } | |
c32bde28 | 34839 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34840 | return resultobj; |
34841 | fail: | |
34842 | return NULL; | |
34843 | } | |
34844 | ||
34845 | ||
c32bde28 | 34846 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34847 | PyObject *resultobj; |
34848 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34849 | bool result; | |
34850 | PyObject * obj0 = 0 ; | |
34851 | char *kwnames[] = { | |
34852 | (char *) "self", NULL | |
34853 | }; | |
34854 | ||
34855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34858 | { | |
34859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34860 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34861 | ||
34862 | wxPyEndAllowThreads(__tstate); | |
34863 | if (PyErr_Occurred()) SWIG_fail; | |
34864 | } | |
34865 | { | |
34866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34867 | } | |
34868 | return resultobj; | |
34869 | fail: | |
34870 | return NULL; | |
34871 | } | |
34872 | ||
34873 | ||
c32bde28 | 34874 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34875 | PyObject *resultobj; |
34876 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34877 | int arg2 ; | |
34878 | wxString result; | |
34879 | PyObject * obj0 = 0 ; | |
34880 | PyObject * obj1 = 0 ; | |
34881 | char *kwnames[] = { | |
34882 | (char *) "self",(char *) "n", NULL | |
34883 | }; | |
34884 | ||
34885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34888 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34889 | if (PyErr_Occurred()) SWIG_fail; |
34890 | { | |
34891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34892 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34893 | ||
34894 | wxPyEndAllowThreads(__tstate); | |
34895 | if (PyErr_Occurred()) SWIG_fail; | |
34896 | } | |
34897 | { | |
34898 | #if wxUSE_UNICODE | |
34899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34900 | #else | |
34901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34902 | #endif | |
34903 | } | |
34904 | return resultobj; | |
34905 | fail: | |
34906 | return NULL; | |
34907 | } | |
34908 | ||
34909 | ||
c32bde28 | 34910 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34911 | PyObject *resultobj; |
34912 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34913 | wxArrayString result; | |
34914 | PyObject * obj0 = 0 ; | |
34915 | char *kwnames[] = { | |
34916 | (char *) "self", NULL | |
34917 | }; | |
34918 | ||
34919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34922 | { | |
34923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34924 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34925 | ||
34926 | wxPyEndAllowThreads(__tstate); | |
34927 | if (PyErr_Occurred()) SWIG_fail; | |
34928 | } | |
34929 | { | |
34930 | resultobj = wxArrayString2PyList_helper(result); | |
34931 | } | |
34932 | return resultobj; | |
34933 | fail: | |
34934 | return NULL; | |
34935 | } | |
34936 | ||
34937 | ||
c32bde28 | 34938 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34939 | PyObject *resultobj; |
34940 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34941 | int arg2 ; | |
34942 | wxString *arg3 = 0 ; | |
ae8162c8 | 34943 | bool temp3 = false ; |
d55e5bfc RD |
34944 | PyObject * obj0 = 0 ; |
34945 | PyObject * obj1 = 0 ; | |
34946 | PyObject * obj2 = 0 ; | |
34947 | char *kwnames[] = { | |
34948 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34949 | }; | |
34950 | ||
34951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34954 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34955 | if (PyErr_Occurred()) SWIG_fail; |
34956 | { | |
34957 | arg3 = wxString_in_helper(obj2); | |
34958 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34959 | temp3 = true; |
d55e5bfc RD |
34960 | } |
34961 | { | |
34962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34963 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34964 | ||
34965 | wxPyEndAllowThreads(__tstate); | |
34966 | if (PyErr_Occurred()) SWIG_fail; | |
34967 | } | |
34968 | Py_INCREF(Py_None); resultobj = Py_None; | |
34969 | { | |
34970 | if (temp3) | |
34971 | delete arg3; | |
34972 | } | |
34973 | return resultobj; | |
34974 | fail: | |
34975 | { | |
34976 | if (temp3) | |
34977 | delete arg3; | |
34978 | } | |
34979 | return NULL; | |
34980 | } | |
34981 | ||
34982 | ||
c32bde28 | 34983 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34984 | PyObject *resultobj; |
34985 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34986 | wxString *arg2 = 0 ; | |
34987 | int result; | |
ae8162c8 | 34988 | bool temp2 = false ; |
d55e5bfc RD |
34989 | PyObject * obj0 = 0 ; |
34990 | PyObject * obj1 = 0 ; | |
34991 | char *kwnames[] = { | |
34992 | (char *) "self",(char *) "s", NULL | |
34993 | }; | |
34994 | ||
34995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34998 | { | |
34999 | arg2 = wxString_in_helper(obj1); | |
35000 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 35001 | temp2 = true; |
d55e5bfc RD |
35002 | } |
35003 | { | |
35004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35005 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
35006 | ||
35007 | wxPyEndAllowThreads(__tstate); | |
35008 | if (PyErr_Occurred()) SWIG_fail; | |
35009 | } | |
c32bde28 | 35010 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35011 | { |
35012 | if (temp2) | |
35013 | delete arg2; | |
35014 | } | |
35015 | return resultobj; | |
35016 | fail: | |
35017 | { | |
35018 | if (temp2) | |
35019 | delete arg2; | |
35020 | } | |
35021 | return NULL; | |
35022 | } | |
35023 | ||
35024 | ||
c32bde28 | 35025 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35026 | PyObject *resultobj; |
35027 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
35028 | int arg2 ; | |
35029 | PyObject * obj0 = 0 ; | |
35030 | PyObject * obj1 = 0 ; | |
35031 | char *kwnames[] = { | |
35032 | (char *) "self",(char *) "n", NULL | |
35033 | }; | |
35034 | ||
35035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
35036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
35037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35038 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35039 | if (PyErr_Occurred()) SWIG_fail; |
35040 | { | |
35041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35042 | (arg1)->Select(arg2); | |
35043 | ||
35044 | wxPyEndAllowThreads(__tstate); | |
35045 | if (PyErr_Occurred()) SWIG_fail; | |
35046 | } | |
35047 | Py_INCREF(Py_None); resultobj = Py_None; | |
35048 | return resultobj; | |
35049 | fail: | |
35050 | return NULL; | |
35051 | } | |
35052 | ||
35053 | ||
c32bde28 | 35054 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35055 | PyObject *resultobj; |
35056 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
35057 | int result; | |
35058 | PyObject * obj0 = 0 ; | |
35059 | char *kwnames[] = { | |
35060 | (char *) "self", NULL | |
35061 | }; | |
35062 | ||
35063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
35064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
35065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35066 | { | |
35067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35068 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
35069 | ||
35070 | wxPyEndAllowThreads(__tstate); | |
35071 | if (PyErr_Occurred()) SWIG_fail; | |
35072 | } | |
c32bde28 | 35073 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35074 | return resultobj; |
35075 | fail: | |
35076 | return NULL; | |
35077 | } | |
35078 | ||
35079 | ||
c32bde28 | 35080 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35081 | PyObject *resultobj; |
35082 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
35083 | wxString result; | |
35084 | PyObject * obj0 = 0 ; | |
35085 | char *kwnames[] = { | |
35086 | (char *) "self", NULL | |
35087 | }; | |
35088 | ||
35089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
35090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
35091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35092 | { | |
35093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35094 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
35095 | ||
35096 | wxPyEndAllowThreads(__tstate); | |
35097 | if (PyErr_Occurred()) SWIG_fail; | |
35098 | } | |
35099 | { | |
35100 | #if wxUSE_UNICODE | |
35101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
35102 | #else | |
35103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
35104 | #endif | |
35105 | } | |
35106 | return resultobj; | |
35107 | fail: | |
35108 | return NULL; | |
35109 | } | |
35110 | ||
35111 | ||
c32bde28 | 35112 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35113 | PyObject *resultobj; |
35114 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
35115 | int arg2 ; | |
35116 | PyObject *result; | |
35117 | PyObject * obj0 = 0 ; | |
35118 | PyObject * obj1 = 0 ; | |
35119 | char *kwnames[] = { | |
35120 | (char *) "self",(char *) "n", NULL | |
35121 | }; | |
35122 | ||
35123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
35124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
35125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35126 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35127 | if (PyErr_Occurred()) SWIG_fail; |
35128 | { | |
35129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35130 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
35131 | ||
35132 | wxPyEndAllowThreads(__tstate); | |
35133 | if (PyErr_Occurred()) SWIG_fail; | |
35134 | } | |
35135 | resultobj = result; | |
35136 | return resultobj; | |
35137 | fail: | |
35138 | return NULL; | |
35139 | } | |
35140 | ||
35141 | ||
c32bde28 | 35142 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35143 | PyObject *resultobj; |
35144 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
35145 | int arg2 ; | |
35146 | PyObject *arg3 = (PyObject *) 0 ; | |
35147 | PyObject * obj0 = 0 ; | |
35148 | PyObject * obj1 = 0 ; | |
35149 | PyObject * obj2 = 0 ; | |
35150 | char *kwnames[] = { | |
35151 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
35152 | }; | |
35153 | ||
35154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
35156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35157 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35158 | if (PyErr_Occurred()) SWIG_fail; |
35159 | arg3 = obj2; | |
35160 | { | |
35161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35162 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
35163 | ||
35164 | wxPyEndAllowThreads(__tstate); | |
35165 | if (PyErr_Occurred()) SWIG_fail; | |
35166 | } | |
35167 | Py_INCREF(Py_None); resultobj = Py_None; | |
35168 | return resultobj; | |
35169 | fail: | |
35170 | return NULL; | |
35171 | } | |
35172 | ||
35173 | ||
c32bde28 | 35174 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35175 | PyObject *obj; |
35176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35177 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
35178 | Py_INCREF(obj); | |
35179 | return Py_BuildValue((char *)""); | |
35180 | } | |
c32bde28 | 35181 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35182 | PyObject *obj; |
35183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35184 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
35185 | Py_INCREF(obj); | |
35186 | return Py_BuildValue((char *)""); | |
35187 | } | |
c32bde28 | 35188 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35189 | PyObject *resultobj; |
35190 | wxSizerItem *result; | |
35191 | char *kwnames[] = { | |
35192 | NULL | |
35193 | }; | |
35194 | ||
35195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
35196 | { | |
35197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35198 | result = (wxSizerItem *)new wxSizerItem(); | |
35199 | ||
35200 | wxPyEndAllowThreads(__tstate); | |
35201 | if (PyErr_Occurred()) SWIG_fail; | |
35202 | } | |
35203 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35204 | return resultobj; | |
35205 | fail: | |
35206 | return NULL; | |
35207 | } | |
35208 | ||
35209 | ||
c32bde28 | 35210 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 35211 | PyObject *resultobj; |
248ed943 | 35212 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
35213 | int arg2 ; |
35214 | int arg3 ; | |
35215 | int arg4 ; | |
248ed943 | 35216 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
35217 | wxSizerItem *result; |
35218 | PyObject * obj0 = 0 ; | |
35219 | PyObject * obj1 = 0 ; | |
35220 | PyObject * obj2 = 0 ; | |
35221 | PyObject * obj3 = 0 ; | |
35222 | PyObject * obj4 = 0 ; | |
d55e5bfc | 35223 | char *kwnames[] = { |
248ed943 | 35224 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
35225 | }; |
35226 | ||
248ed943 RD |
35227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
35228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
35229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35230 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35231 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35232 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35233 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35234 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35235 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
35236 | if (obj4) { |
35237 | arg5 = obj4; | |
35238 | } | |
d55e5bfc RD |
35239 | { |
35240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35241 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35242 | |
35243 | wxPyEndAllowThreads(__tstate); | |
35244 | if (PyErr_Occurred()) SWIG_fail; | |
35245 | } | |
35246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35247 | return resultobj; | |
35248 | fail: | |
35249 | return NULL; | |
35250 | } | |
35251 | ||
35252 | ||
c32bde28 | 35253 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 35254 | PyObject *resultobj; |
248ed943 | 35255 | int arg1 ; |
d55e5bfc RD |
35256 | int arg2 ; |
35257 | int arg3 ; | |
35258 | int arg4 ; | |
248ed943 RD |
35259 | int arg5 ; |
35260 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
35261 | wxSizerItem *result; |
35262 | PyObject * obj0 = 0 ; | |
35263 | PyObject * obj1 = 0 ; | |
35264 | PyObject * obj2 = 0 ; | |
35265 | PyObject * obj3 = 0 ; | |
35266 | PyObject * obj4 = 0 ; | |
248ed943 | 35267 | PyObject * obj5 = 0 ; |
d55e5bfc | 35268 | char *kwnames[] = { |
248ed943 | 35269 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
35270 | }; |
35271 | ||
248ed943 | 35272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c32bde28 | 35273 | arg1 = (int)SWIG_As_int(obj0); |
248ed943 | 35274 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35275 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35276 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35277 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35278 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35279 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35280 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35281 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
35282 | if (PyErr_Occurred()) SWIG_fail; |
35283 | if (obj5) { | |
35284 | arg6 = obj5; | |
35285 | } | |
d55e5bfc RD |
35286 | { |
35287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35288 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
35289 | |
35290 | wxPyEndAllowThreads(__tstate); | |
35291 | if (PyErr_Occurred()) SWIG_fail; | |
35292 | } | |
35293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35294 | return resultobj; | |
35295 | fail: | |
35296 | return NULL; | |
35297 | } | |
35298 | ||
35299 | ||
c32bde28 | 35300 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35301 | PyObject *resultobj; |
35302 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35303 | int arg2 ; | |
35304 | int arg3 ; | |
35305 | int arg4 ; | |
248ed943 | 35306 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
35307 | wxSizerItem *result; |
35308 | PyObject * obj0 = 0 ; | |
35309 | PyObject * obj1 = 0 ; | |
35310 | PyObject * obj2 = 0 ; | |
35311 | PyObject * obj3 = 0 ; | |
35312 | PyObject * obj4 = 0 ; | |
35313 | char *kwnames[] = { | |
35314 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35315 | }; | |
35316 | ||
248ed943 | 35317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
35318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35320 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35321 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35322 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35323 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35324 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35325 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
35326 | if (obj4) { |
35327 | arg5 = obj4; | |
35328 | } | |
d55e5bfc RD |
35329 | { |
35330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35331 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35332 | |
35333 | wxPyEndAllowThreads(__tstate); | |
35334 | if (PyErr_Occurred()) SWIG_fail; | |
35335 | } | |
35336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35337 | return resultobj; | |
35338 | fail: | |
35339 | return NULL; | |
35340 | } | |
35341 | ||
35342 | ||
c32bde28 | 35343 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35344 | PyObject *resultobj; |
35345 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35346 | PyObject * obj0 = 0 ; | |
35347 | char *kwnames[] = { | |
35348 | (char *) "self", NULL | |
35349 | }; | |
35350 | ||
35351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
35352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35354 | { | |
35355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35356 | (arg1)->DeleteWindows(); | |
35357 | ||
35358 | wxPyEndAllowThreads(__tstate); | |
35359 | if (PyErr_Occurred()) SWIG_fail; | |
35360 | } | |
35361 | Py_INCREF(Py_None); resultobj = Py_None; | |
35362 | return resultobj; | |
35363 | fail: | |
35364 | return NULL; | |
35365 | } | |
35366 | ||
35367 | ||
c32bde28 | 35368 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35369 | PyObject *resultobj; |
35370 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35371 | PyObject * obj0 = 0 ; | |
35372 | char *kwnames[] = { | |
35373 | (char *) "self", NULL | |
35374 | }; | |
35375 | ||
35376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
35377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35379 | { | |
35380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35381 | (arg1)->DetachSizer(); | |
35382 | ||
35383 | wxPyEndAllowThreads(__tstate); | |
35384 | if (PyErr_Occurred()) SWIG_fail; | |
35385 | } | |
35386 | Py_INCREF(Py_None); resultobj = Py_None; | |
35387 | return resultobj; | |
35388 | fail: | |
35389 | return NULL; | |
35390 | } | |
35391 | ||
35392 | ||
c32bde28 | 35393 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35394 | PyObject *resultobj; |
35395 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35396 | wxSize result; | |
35397 | PyObject * obj0 = 0 ; | |
35398 | char *kwnames[] = { | |
35399 | (char *) "self", NULL | |
35400 | }; | |
35401 | ||
35402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
35403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35405 | { | |
35406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35407 | result = (arg1)->GetSize(); | |
35408 | ||
35409 | wxPyEndAllowThreads(__tstate); | |
35410 | if (PyErr_Occurred()) SWIG_fail; | |
35411 | } | |
35412 | { | |
35413 | wxSize * resultptr; | |
35414 | resultptr = new wxSize((wxSize &) result); | |
35415 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35416 | } | |
35417 | return resultobj; | |
35418 | fail: | |
35419 | return NULL; | |
35420 | } | |
35421 | ||
35422 | ||
c32bde28 | 35423 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35424 | PyObject *resultobj; |
35425 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35426 | wxSize result; | |
35427 | PyObject * obj0 = 0 ; | |
35428 | char *kwnames[] = { | |
35429 | (char *) "self", NULL | |
35430 | }; | |
35431 | ||
35432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
35433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35435 | { | |
35436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35437 | result = (arg1)->CalcMin(); | |
35438 | ||
35439 | wxPyEndAllowThreads(__tstate); | |
35440 | if (PyErr_Occurred()) SWIG_fail; | |
35441 | } | |
35442 | { | |
35443 | wxSize * resultptr; | |
35444 | resultptr = new wxSize((wxSize &) result); | |
35445 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35446 | } | |
35447 | return resultobj; | |
35448 | fail: | |
35449 | return NULL; | |
35450 | } | |
35451 | ||
35452 | ||
c32bde28 | 35453 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35454 | PyObject *resultobj; |
35455 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35456 | wxPoint arg2 ; | |
35457 | wxSize arg3 ; | |
35458 | wxPoint *argp2 ; | |
35459 | wxSize *argp3 ; | |
35460 | PyObject * obj0 = 0 ; | |
35461 | PyObject * obj1 = 0 ; | |
35462 | PyObject * obj2 = 0 ; | |
35463 | char *kwnames[] = { | |
35464 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
35465 | }; | |
35466 | ||
35467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35470 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
35471 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35472 | arg2 = *argp2; | |
35473 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
35474 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35475 | arg3 = *argp3; | |
35476 | { | |
35477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35478 | (arg1)->SetDimension(arg2,arg3); | |
35479 | ||
35480 | wxPyEndAllowThreads(__tstate); | |
35481 | if (PyErr_Occurred()) SWIG_fail; | |
35482 | } | |
35483 | Py_INCREF(Py_None); resultobj = Py_None; | |
35484 | return resultobj; | |
35485 | fail: | |
35486 | return NULL; | |
35487 | } | |
35488 | ||
35489 | ||
c32bde28 | 35490 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35491 | PyObject *resultobj; |
35492 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35493 | wxSize result; | |
35494 | PyObject * obj0 = 0 ; | |
35495 | char *kwnames[] = { | |
35496 | (char *) "self", NULL | |
35497 | }; | |
35498 | ||
35499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
35500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35502 | { | |
35503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35504 | result = (arg1)->GetMinSize(); | |
35505 | ||
35506 | wxPyEndAllowThreads(__tstate); | |
35507 | if (PyErr_Occurred()) SWIG_fail; | |
35508 | } | |
35509 | { | |
35510 | wxSize * resultptr; | |
35511 | resultptr = new wxSize((wxSize &) result); | |
35512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35513 | } | |
35514 | return resultobj; | |
35515 | fail: | |
35516 | return NULL; | |
35517 | } | |
35518 | ||
35519 | ||
c32bde28 | 35520 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
35521 | PyObject *resultobj; |
35522 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35523 | wxSize result; | |
35524 | PyObject * obj0 = 0 ; | |
35525 | char *kwnames[] = { | |
35526 | (char *) "self", NULL | |
35527 | }; | |
35528 | ||
35529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
35530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35532 | { | |
35533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35534 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
35535 | ||
35536 | wxPyEndAllowThreads(__tstate); | |
35537 | if (PyErr_Occurred()) SWIG_fail; | |
35538 | } | |
35539 | { | |
35540 | wxSize * resultptr; | |
35541 | resultptr = new wxSize((wxSize &) result); | |
35542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35543 | } | |
35544 | return resultobj; | |
35545 | fail: | |
35546 | return NULL; | |
35547 | } | |
35548 | ||
35549 | ||
c32bde28 | 35550 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35551 | PyObject *resultobj; |
35552 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35553 | int arg2 ; | |
35554 | int arg3 ; | |
35555 | PyObject * obj0 = 0 ; | |
35556 | PyObject * obj1 = 0 ; | |
35557 | PyObject * obj2 = 0 ; | |
35558 | char *kwnames[] = { | |
35559 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35560 | }; | |
35561 | ||
35562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35565 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35566 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35567 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35568 | if (PyErr_Occurred()) SWIG_fail; |
35569 | { | |
35570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35571 | (arg1)->SetInitSize(arg2,arg3); | |
35572 | ||
35573 | wxPyEndAllowThreads(__tstate); | |
35574 | if (PyErr_Occurred()) SWIG_fail; | |
35575 | } | |
35576 | Py_INCREF(Py_None); resultobj = Py_None; | |
35577 | return resultobj; | |
35578 | fail: | |
35579 | return NULL; | |
35580 | } | |
35581 | ||
35582 | ||
c32bde28 | 35583 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35584 | PyObject *resultobj; |
35585 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35586 | int arg2 ; | |
35587 | int arg3 ; | |
35588 | PyObject * obj0 = 0 ; | |
35589 | PyObject * obj1 = 0 ; | |
35590 | PyObject * obj2 = 0 ; | |
35591 | char *kwnames[] = { | |
35592 | (char *) "self",(char *) "width",(char *) "height", NULL | |
35593 | }; | |
35594 | ||
35595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35598 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35599 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35600 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35601 | if (PyErr_Occurred()) SWIG_fail; |
35602 | { | |
35603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35604 | (arg1)->SetRatio(arg2,arg3); | |
35605 | ||
35606 | wxPyEndAllowThreads(__tstate); | |
35607 | if (PyErr_Occurred()) SWIG_fail; | |
35608 | } | |
35609 | Py_INCREF(Py_None); resultobj = Py_None; | |
35610 | return resultobj; | |
35611 | fail: | |
35612 | return NULL; | |
35613 | } | |
35614 | ||
35615 | ||
c32bde28 | 35616 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35617 | PyObject *resultobj; |
35618 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35619 | wxSize arg2 ; | |
35620 | wxSize *argp2 ; | |
35621 | PyObject * obj0 = 0 ; | |
35622 | PyObject * obj1 = 0 ; | |
35623 | char *kwnames[] = { | |
35624 | (char *) "self",(char *) "size", NULL | |
35625 | }; | |
35626 | ||
35627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
35628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35630 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
35631 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35632 | arg2 = *argp2; | |
35633 | { | |
35634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35635 | (arg1)->SetRatio(arg2); | |
35636 | ||
35637 | wxPyEndAllowThreads(__tstate); | |
35638 | if (PyErr_Occurred()) SWIG_fail; | |
35639 | } | |
35640 | Py_INCREF(Py_None); resultobj = Py_None; | |
35641 | return resultobj; | |
35642 | fail: | |
35643 | return NULL; | |
35644 | } | |
35645 | ||
35646 | ||
c32bde28 | 35647 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35648 | PyObject *resultobj; |
35649 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35650 | float arg2 ; | |
35651 | PyObject * obj0 = 0 ; | |
35652 | PyObject * obj1 = 0 ; | |
35653 | char *kwnames[] = { | |
35654 | (char *) "self",(char *) "ratio", NULL | |
35655 | }; | |
35656 | ||
35657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
35658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35660 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
35661 | if (PyErr_Occurred()) SWIG_fail; |
35662 | { | |
35663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35664 | (arg1)->SetRatio(arg2); | |
35665 | ||
35666 | wxPyEndAllowThreads(__tstate); | |
35667 | if (PyErr_Occurred()) SWIG_fail; | |
35668 | } | |
35669 | Py_INCREF(Py_None); resultobj = Py_None; | |
35670 | return resultobj; | |
35671 | fail: | |
35672 | return NULL; | |
35673 | } | |
35674 | ||
35675 | ||
c32bde28 | 35676 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35677 | PyObject *resultobj; |
35678 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35679 | float result; | |
35680 | PyObject * obj0 = 0 ; | |
35681 | char *kwnames[] = { | |
35682 | (char *) "self", NULL | |
35683 | }; | |
35684 | ||
35685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
35686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35688 | { | |
35689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35690 | result = (float)(arg1)->GetRatio(); | |
35691 | ||
35692 | wxPyEndAllowThreads(__tstate); | |
35693 | if (PyErr_Occurred()) SWIG_fail; | |
35694 | } | |
c32bde28 | 35695 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
35696 | return resultobj; |
35697 | fail: | |
35698 | return NULL; | |
35699 | } | |
35700 | ||
35701 | ||
c1cb24a4 RD |
35702 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
35703 | PyObject *resultobj; | |
35704 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35705 | wxRect result; | |
35706 | PyObject * obj0 = 0 ; | |
35707 | char *kwnames[] = { | |
35708 | (char *) "self", NULL | |
35709 | }; | |
35710 | ||
35711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
35712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35714 | { | |
35715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35716 | result = (arg1)->GetRect(); | |
35717 | ||
35718 | wxPyEndAllowThreads(__tstate); | |
35719 | if (PyErr_Occurred()) SWIG_fail; | |
35720 | } | |
35721 | { | |
35722 | wxRect * resultptr; | |
35723 | resultptr = new wxRect((wxRect &) result); | |
35724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
35725 | } | |
35726 | return resultobj; | |
35727 | fail: | |
35728 | return NULL; | |
35729 | } | |
35730 | ||
35731 | ||
c32bde28 | 35732 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35733 | PyObject *resultobj; |
35734 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35735 | bool result; | |
35736 | PyObject * obj0 = 0 ; | |
35737 | char *kwnames[] = { | |
35738 | (char *) "self", NULL | |
35739 | }; | |
35740 | ||
35741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
35742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35744 | { | |
35745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35746 | result = (bool)(arg1)->IsWindow(); | |
35747 | ||
35748 | wxPyEndAllowThreads(__tstate); | |
35749 | if (PyErr_Occurred()) SWIG_fail; | |
35750 | } | |
35751 | { | |
35752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35753 | } | |
35754 | return resultobj; | |
35755 | fail: | |
35756 | return NULL; | |
35757 | } | |
35758 | ||
35759 | ||
c32bde28 | 35760 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35761 | PyObject *resultobj; |
35762 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35763 | bool result; | |
35764 | PyObject * obj0 = 0 ; | |
35765 | char *kwnames[] = { | |
35766 | (char *) "self", NULL | |
35767 | }; | |
35768 | ||
35769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
35770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35772 | { | |
35773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35774 | result = (bool)(arg1)->IsSizer(); | |
35775 | ||
35776 | wxPyEndAllowThreads(__tstate); | |
35777 | if (PyErr_Occurred()) SWIG_fail; | |
35778 | } | |
35779 | { | |
35780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35781 | } | |
35782 | return resultobj; | |
35783 | fail: | |
35784 | return NULL; | |
35785 | } | |
35786 | ||
35787 | ||
c32bde28 | 35788 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35789 | PyObject *resultobj; |
35790 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35791 | bool result; | |
35792 | PyObject * obj0 = 0 ; | |
35793 | char *kwnames[] = { | |
35794 | (char *) "self", NULL | |
35795 | }; | |
35796 | ||
35797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
35798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35800 | { | |
35801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35802 | result = (bool)(arg1)->IsSpacer(); | |
35803 | ||
35804 | wxPyEndAllowThreads(__tstate); | |
35805 | if (PyErr_Occurred()) SWIG_fail; | |
35806 | } | |
35807 | { | |
35808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35809 | } | |
35810 | return resultobj; | |
35811 | fail: | |
35812 | return NULL; | |
35813 | } | |
35814 | ||
35815 | ||
c32bde28 | 35816 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35817 | PyObject *resultobj; |
35818 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35819 | int arg2 ; | |
35820 | PyObject * obj0 = 0 ; | |
35821 | PyObject * obj1 = 0 ; | |
35822 | char *kwnames[] = { | |
35823 | (char *) "self",(char *) "proportion", NULL | |
35824 | }; | |
35825 | ||
35826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
35827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35829 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35830 | if (PyErr_Occurred()) SWIG_fail; |
35831 | { | |
35832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35833 | (arg1)->SetProportion(arg2); | |
35834 | ||
35835 | wxPyEndAllowThreads(__tstate); | |
35836 | if (PyErr_Occurred()) SWIG_fail; | |
35837 | } | |
35838 | Py_INCREF(Py_None); resultobj = Py_None; | |
35839 | return resultobj; | |
35840 | fail: | |
35841 | return NULL; | |
35842 | } | |
35843 | ||
35844 | ||
c32bde28 | 35845 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35846 | PyObject *resultobj; |
35847 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35848 | int result; | |
35849 | PyObject * obj0 = 0 ; | |
35850 | char *kwnames[] = { | |
35851 | (char *) "self", NULL | |
35852 | }; | |
35853 | ||
35854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35857 | { | |
35858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35859 | result = (int)(arg1)->GetProportion(); | |
35860 | ||
35861 | wxPyEndAllowThreads(__tstate); | |
35862 | if (PyErr_Occurred()) SWIG_fail; | |
35863 | } | |
c32bde28 | 35864 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35865 | return resultobj; |
35866 | fail: | |
35867 | return NULL; | |
35868 | } | |
35869 | ||
35870 | ||
c32bde28 | 35871 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35872 | PyObject *resultobj; |
35873 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35874 | int arg2 ; | |
35875 | PyObject * obj0 = 0 ; | |
35876 | PyObject * obj1 = 0 ; | |
35877 | char *kwnames[] = { | |
35878 | (char *) "self",(char *) "flag", NULL | |
35879 | }; | |
35880 | ||
35881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35884 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35885 | if (PyErr_Occurred()) SWIG_fail; |
35886 | { | |
35887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35888 | (arg1)->SetFlag(arg2); | |
35889 | ||
35890 | wxPyEndAllowThreads(__tstate); | |
35891 | if (PyErr_Occurred()) SWIG_fail; | |
35892 | } | |
35893 | Py_INCREF(Py_None); resultobj = Py_None; | |
35894 | return resultobj; | |
35895 | fail: | |
35896 | return NULL; | |
35897 | } | |
35898 | ||
35899 | ||
c32bde28 | 35900 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35901 | PyObject *resultobj; |
35902 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35903 | int result; | |
35904 | PyObject * obj0 = 0 ; | |
35905 | char *kwnames[] = { | |
35906 | (char *) "self", NULL | |
35907 | }; | |
35908 | ||
35909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35912 | { | |
35913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35914 | result = (int)(arg1)->GetFlag(); | |
35915 | ||
35916 | wxPyEndAllowThreads(__tstate); | |
35917 | if (PyErr_Occurred()) SWIG_fail; | |
35918 | } | |
c32bde28 | 35919 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35920 | return resultobj; |
35921 | fail: | |
35922 | return NULL; | |
35923 | } | |
35924 | ||
35925 | ||
c32bde28 | 35926 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35927 | PyObject *resultobj; |
35928 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35929 | int arg2 ; | |
35930 | PyObject * obj0 = 0 ; | |
35931 | PyObject * obj1 = 0 ; | |
35932 | char *kwnames[] = { | |
35933 | (char *) "self",(char *) "border", NULL | |
35934 | }; | |
35935 | ||
35936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35939 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35940 | if (PyErr_Occurred()) SWIG_fail; |
35941 | { | |
35942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35943 | (arg1)->SetBorder(arg2); | |
35944 | ||
35945 | wxPyEndAllowThreads(__tstate); | |
35946 | if (PyErr_Occurred()) SWIG_fail; | |
35947 | } | |
35948 | Py_INCREF(Py_None); resultobj = Py_None; | |
35949 | return resultobj; | |
35950 | fail: | |
35951 | return NULL; | |
35952 | } | |
35953 | ||
35954 | ||
c32bde28 | 35955 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35956 | PyObject *resultobj; |
35957 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35958 | int result; | |
35959 | PyObject * obj0 = 0 ; | |
35960 | char *kwnames[] = { | |
35961 | (char *) "self", NULL | |
35962 | }; | |
35963 | ||
35964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35967 | { | |
35968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35969 | result = (int)(arg1)->GetBorder(); | |
35970 | ||
35971 | wxPyEndAllowThreads(__tstate); | |
35972 | if (PyErr_Occurred()) SWIG_fail; | |
35973 | } | |
c32bde28 | 35974 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35975 | return resultobj; |
35976 | fail: | |
35977 | return NULL; | |
35978 | } | |
35979 | ||
35980 | ||
c32bde28 | 35981 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35982 | PyObject *resultobj; |
35983 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35984 | wxWindow *result; | |
35985 | PyObject * obj0 = 0 ; | |
35986 | char *kwnames[] = { | |
35987 | (char *) "self", NULL | |
35988 | }; | |
35989 | ||
35990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35993 | { | |
35994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35995 | result = (wxWindow *)(arg1)->GetWindow(); | |
35996 | ||
35997 | wxPyEndAllowThreads(__tstate); | |
35998 | if (PyErr_Occurred()) SWIG_fail; | |
35999 | } | |
36000 | { | |
412d302d | 36001 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
36002 | } |
36003 | return resultobj; | |
36004 | fail: | |
36005 | return NULL; | |
36006 | } | |
36007 | ||
36008 | ||
c32bde28 | 36009 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36010 | PyObject *resultobj; |
36011 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36012 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36013 | PyObject * obj0 = 0 ; | |
36014 | PyObject * obj1 = 0 ; | |
36015 | char *kwnames[] = { | |
36016 | (char *) "self",(char *) "window", NULL | |
36017 | }; | |
36018 | ||
36019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
36020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36024 | { | |
36025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36026 | (arg1)->SetWindow(arg2); | |
36027 | ||
36028 | wxPyEndAllowThreads(__tstate); | |
36029 | if (PyErr_Occurred()) SWIG_fail; | |
36030 | } | |
36031 | Py_INCREF(Py_None); resultobj = Py_None; | |
36032 | return resultobj; | |
36033 | fail: | |
36034 | return NULL; | |
36035 | } | |
36036 | ||
36037 | ||
c32bde28 | 36038 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36039 | PyObject *resultobj; |
36040 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36041 | wxSizer *result; | |
36042 | PyObject * obj0 = 0 ; | |
36043 | char *kwnames[] = { | |
36044 | (char *) "self", NULL | |
36045 | }; | |
36046 | ||
36047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",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 = (wxSizer *)(arg1)->GetSizer(); | |
36053 | ||
36054 | wxPyEndAllowThreads(__tstate); | |
36055 | if (PyErr_Occurred()) SWIG_fail; | |
36056 | } | |
36057 | { | |
412d302d | 36058 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
36059 | } |
36060 | return resultobj; | |
36061 | fail: | |
36062 | return NULL; | |
36063 | } | |
36064 | ||
36065 | ||
c32bde28 | 36066 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36067 | PyObject *resultobj; |
36068 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36069 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36070 | PyObject * obj0 = 0 ; | |
36071 | PyObject * obj1 = 0 ; | |
36072 | char *kwnames[] = { | |
36073 | (char *) "self",(char *) "sizer", NULL | |
36074 | }; | |
36075 | ||
36076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
36077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
36080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36081 | { | |
36082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36083 | (arg1)->SetSizer(arg2); | |
36084 | ||
36085 | wxPyEndAllowThreads(__tstate); | |
36086 | if (PyErr_Occurred()) SWIG_fail; | |
36087 | } | |
36088 | Py_INCREF(Py_None); resultobj = Py_None; | |
36089 | return resultobj; | |
36090 | fail: | |
36091 | return NULL; | |
36092 | } | |
36093 | ||
36094 | ||
c32bde28 | 36095 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36096 | PyObject *resultobj; |
36097 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36098 | wxSize *result; | |
36099 | PyObject * obj0 = 0 ; | |
36100 | char *kwnames[] = { | |
36101 | (char *) "self", NULL | |
36102 | }; | |
36103 | ||
36104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
36105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36107 | { | |
36108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36109 | { | |
36110 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
36111 | result = (wxSize *) &_result_ref; | |
36112 | } | |
36113 | ||
36114 | wxPyEndAllowThreads(__tstate); | |
36115 | if (PyErr_Occurred()) SWIG_fail; | |
36116 | } | |
36117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
36118 | return resultobj; | |
36119 | fail: | |
36120 | return NULL; | |
36121 | } | |
36122 | ||
36123 | ||
c32bde28 | 36124 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36125 | PyObject *resultobj; |
36126 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36127 | wxSize *arg2 = 0 ; | |
36128 | wxSize temp2 ; | |
36129 | PyObject * obj0 = 0 ; | |
36130 | PyObject * obj1 = 0 ; | |
36131 | char *kwnames[] = { | |
36132 | (char *) "self",(char *) "size", NULL | |
36133 | }; | |
36134 | ||
36135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
36136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36138 | { | |
36139 | arg2 = &temp2; | |
36140 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36141 | } | |
36142 | { | |
36143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36144 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
36145 | ||
36146 | wxPyEndAllowThreads(__tstate); | |
36147 | if (PyErr_Occurred()) SWIG_fail; | |
36148 | } | |
36149 | Py_INCREF(Py_None); resultobj = Py_None; | |
36150 | return resultobj; | |
36151 | fail: | |
36152 | return NULL; | |
36153 | } | |
36154 | ||
36155 | ||
c32bde28 | 36156 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36157 | PyObject *resultobj; |
36158 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36159 | bool arg2 ; | |
36160 | PyObject * obj0 = 0 ; | |
36161 | PyObject * obj1 = 0 ; | |
36162 | char *kwnames[] = { | |
36163 | (char *) "self",(char *) "show", NULL | |
36164 | }; | |
36165 | ||
36166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
36167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36169 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36170 | if (PyErr_Occurred()) SWIG_fail; |
36171 | { | |
36172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36173 | (arg1)->Show(arg2); | |
36174 | ||
36175 | wxPyEndAllowThreads(__tstate); | |
36176 | if (PyErr_Occurred()) SWIG_fail; | |
36177 | } | |
36178 | Py_INCREF(Py_None); resultobj = Py_None; | |
36179 | return resultobj; | |
36180 | fail: | |
36181 | return NULL; | |
36182 | } | |
36183 | ||
36184 | ||
c32bde28 | 36185 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36186 | PyObject *resultobj; |
36187 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36188 | bool result; | |
36189 | PyObject * obj0 = 0 ; | |
36190 | char *kwnames[] = { | |
36191 | (char *) "self", NULL | |
36192 | }; | |
36193 | ||
36194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
36195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36197 | { | |
36198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36199 | result = (bool)(arg1)->IsShown(); | |
36200 | ||
36201 | wxPyEndAllowThreads(__tstate); | |
36202 | if (PyErr_Occurred()) SWIG_fail; | |
36203 | } | |
36204 | { | |
36205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36206 | } | |
36207 | return resultobj; | |
36208 | fail: | |
36209 | return NULL; | |
36210 | } | |
36211 | ||
36212 | ||
c32bde28 | 36213 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36214 | PyObject *resultobj; |
36215 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36216 | wxPoint result; | |
36217 | PyObject * obj0 = 0 ; | |
36218 | char *kwnames[] = { | |
36219 | (char *) "self", NULL | |
36220 | }; | |
36221 | ||
36222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
36223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36225 | { | |
36226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36227 | result = (arg1)->GetPosition(); | |
36228 | ||
36229 | wxPyEndAllowThreads(__tstate); | |
36230 | if (PyErr_Occurred()) SWIG_fail; | |
36231 | } | |
36232 | { | |
36233 | wxPoint * resultptr; | |
36234 | resultptr = new wxPoint((wxPoint &) result); | |
36235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36236 | } | |
36237 | return resultobj; | |
36238 | fail: | |
36239 | return NULL; | |
36240 | } | |
36241 | ||
36242 | ||
c32bde28 | 36243 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36244 | PyObject *resultobj; |
36245 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36246 | PyObject *result; | |
36247 | PyObject * obj0 = 0 ; | |
36248 | char *kwnames[] = { | |
36249 | (char *) "self", NULL | |
36250 | }; | |
36251 | ||
36252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
36253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36255 | { | |
36256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36257 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
36258 | ||
36259 | wxPyEndAllowThreads(__tstate); | |
36260 | if (PyErr_Occurred()) SWIG_fail; | |
36261 | } | |
36262 | resultobj = result; | |
36263 | return resultobj; | |
36264 | fail: | |
36265 | return NULL; | |
36266 | } | |
36267 | ||
36268 | ||
c32bde28 | 36269 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36270 | PyObject *obj; |
36271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36272 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
36273 | Py_INCREF(obj); | |
36274 | return Py_BuildValue((char *)""); | |
36275 | } | |
c32bde28 | 36276 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36277 | PyObject *resultobj; |
36278 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36279 | PyObject *arg2 = (PyObject *) 0 ; | |
36280 | PyObject * obj0 = 0 ; | |
36281 | PyObject * obj1 = 0 ; | |
36282 | char *kwnames[] = { | |
36283 | (char *) "self",(char *) "_self", NULL | |
36284 | }; | |
36285 | ||
36286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
36287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36289 | arg2 = obj1; | |
36290 | { | |
36291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36292 | wxSizer__setOORInfo(arg1,arg2); | |
36293 | ||
36294 | wxPyEndAllowThreads(__tstate); | |
36295 | if (PyErr_Occurred()) SWIG_fail; | |
36296 | } | |
36297 | Py_INCREF(Py_None); resultobj = Py_None; | |
36298 | return resultobj; | |
36299 | fail: | |
36300 | return NULL; | |
36301 | } | |
36302 | ||
36303 | ||
c32bde28 | 36304 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36305 | PyObject *resultobj; |
36306 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36307 | PyObject *arg2 = (PyObject *) 0 ; | |
36308 | int arg3 = (int) 0 ; | |
36309 | int arg4 = (int) 0 ; | |
36310 | int arg5 = (int) 0 ; | |
36311 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 36312 | wxSizerItem *result; |
d55e5bfc RD |
36313 | PyObject * obj0 = 0 ; |
36314 | PyObject * obj1 = 0 ; | |
36315 | PyObject * obj2 = 0 ; | |
36316 | PyObject * obj3 = 0 ; | |
36317 | PyObject * obj4 = 0 ; | |
36318 | PyObject * obj5 = 0 ; | |
36319 | char *kwnames[] = { | |
36320 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36321 | }; | |
36322 | ||
36323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36326 | arg2 = obj1; | |
36327 | if (obj2) { | |
c32bde28 | 36328 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36329 | if (PyErr_Occurred()) SWIG_fail; |
36330 | } | |
36331 | if (obj3) { | |
c32bde28 | 36332 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36333 | if (PyErr_Occurred()) SWIG_fail; |
36334 | } | |
36335 | if (obj4) { | |
c32bde28 | 36336 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36337 | if (PyErr_Occurred()) SWIG_fail; |
36338 | } | |
36339 | if (obj5) { | |
36340 | arg6 = obj5; | |
36341 | } | |
36342 | { | |
36343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36344 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
36345 | |
36346 | wxPyEndAllowThreads(__tstate); | |
36347 | if (PyErr_Occurred()) SWIG_fail; | |
36348 | } | |
c1cb24a4 | 36349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36350 | return resultobj; |
36351 | fail: | |
36352 | return NULL; | |
36353 | } | |
36354 | ||
36355 | ||
c32bde28 | 36356 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36357 | PyObject *resultobj; |
36358 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36359 | int arg2 ; | |
36360 | PyObject *arg3 = (PyObject *) 0 ; | |
36361 | int arg4 = (int) 0 ; | |
36362 | int arg5 = (int) 0 ; | |
36363 | int arg6 = (int) 0 ; | |
36364 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 36365 | wxSizerItem *result; |
d55e5bfc RD |
36366 | PyObject * obj0 = 0 ; |
36367 | PyObject * obj1 = 0 ; | |
36368 | PyObject * obj2 = 0 ; | |
36369 | PyObject * obj3 = 0 ; | |
36370 | PyObject * obj4 = 0 ; | |
36371 | PyObject * obj5 = 0 ; | |
36372 | PyObject * obj6 = 0 ; | |
36373 | char *kwnames[] = { | |
36374 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36375 | }; | |
36376 | ||
36377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36380 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36381 | if (PyErr_Occurred()) SWIG_fail; |
36382 | arg3 = obj2; | |
36383 | if (obj3) { | |
c32bde28 | 36384 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36385 | if (PyErr_Occurred()) SWIG_fail; |
36386 | } | |
36387 | if (obj4) { | |
c32bde28 | 36388 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36389 | if (PyErr_Occurred()) SWIG_fail; |
36390 | } | |
36391 | if (obj5) { | |
c32bde28 | 36392 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
36393 | if (PyErr_Occurred()) SWIG_fail; |
36394 | } | |
36395 | if (obj6) { | |
36396 | arg7 = obj6; | |
36397 | } | |
36398 | { | |
36399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36400 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
36401 | |
36402 | wxPyEndAllowThreads(__tstate); | |
36403 | if (PyErr_Occurred()) SWIG_fail; | |
36404 | } | |
c1cb24a4 | 36405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36406 | return resultobj; |
36407 | fail: | |
36408 | return NULL; | |
36409 | } | |
36410 | ||
36411 | ||
c32bde28 | 36412 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36413 | PyObject *resultobj; |
36414 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36415 | PyObject *arg2 = (PyObject *) 0 ; | |
36416 | int arg3 = (int) 0 ; | |
36417 | int arg4 = (int) 0 ; | |
36418 | int arg5 = (int) 0 ; | |
36419 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 36420 | wxSizerItem *result; |
d55e5bfc RD |
36421 | PyObject * obj0 = 0 ; |
36422 | PyObject * obj1 = 0 ; | |
36423 | PyObject * obj2 = 0 ; | |
36424 | PyObject * obj3 = 0 ; | |
36425 | PyObject * obj4 = 0 ; | |
36426 | PyObject * obj5 = 0 ; | |
36427 | char *kwnames[] = { | |
36428 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36429 | }; | |
36430 | ||
36431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36434 | arg2 = obj1; | |
36435 | if (obj2) { | |
c32bde28 | 36436 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36437 | if (PyErr_Occurred()) SWIG_fail; |
36438 | } | |
36439 | if (obj3) { | |
c32bde28 | 36440 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36441 | if (PyErr_Occurred()) SWIG_fail; |
36442 | } | |
36443 | if (obj4) { | |
c32bde28 | 36444 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36445 | if (PyErr_Occurred()) SWIG_fail; |
36446 | } | |
36447 | if (obj5) { | |
36448 | arg6 = obj5; | |
36449 | } | |
36450 | { | |
36451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36452 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
36453 | |
36454 | wxPyEndAllowThreads(__tstate); | |
36455 | if (PyErr_Occurred()) SWIG_fail; | |
36456 | } | |
c1cb24a4 | 36457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36458 | return resultobj; |
36459 | fail: | |
36460 | return NULL; | |
36461 | } | |
36462 | ||
36463 | ||
c32bde28 | 36464 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36465 | PyObject *resultobj; |
36466 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36467 | PyObject *arg2 = (PyObject *) 0 ; | |
36468 | bool result; | |
36469 | PyObject * obj0 = 0 ; | |
36470 | PyObject * obj1 = 0 ; | |
36471 | char *kwnames[] = { | |
36472 | (char *) "self",(char *) "item", NULL | |
36473 | }; | |
36474 | ||
36475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
36476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36478 | arg2 = obj1; | |
36479 | { | |
36480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36481 | result = (bool)wxSizer_Remove(arg1,arg2); | |
36482 | ||
36483 | wxPyEndAllowThreads(__tstate); | |
36484 | if (PyErr_Occurred()) SWIG_fail; | |
36485 | } | |
36486 | { | |
36487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36488 | } | |
36489 | return resultobj; | |
36490 | fail: | |
36491 | return NULL; | |
36492 | } | |
36493 | ||
36494 | ||
c32bde28 | 36495 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
36496 | PyObject *resultobj; |
36497 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36498 | PyObject *arg2 = (PyObject *) 0 ; | |
36499 | bool result; | |
36500 | PyObject * obj0 = 0 ; | |
36501 | PyObject * obj1 = 0 ; | |
36502 | char *kwnames[] = { | |
36503 | (char *) "self",(char *) "item", NULL | |
36504 | }; | |
36505 | ||
36506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
36507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36509 | arg2 = obj1; | |
36510 | { | |
36511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36512 | result = (bool)wxSizer_Detach(arg1,arg2); | |
36513 | ||
36514 | wxPyEndAllowThreads(__tstate); | |
36515 | if (PyErr_Occurred()) SWIG_fail; | |
36516 | } | |
36517 | { | |
36518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36519 | } | |
36520 | return resultobj; | |
36521 | fail: | |
36522 | return NULL; | |
36523 | } | |
36524 | ||
36525 | ||
c1cb24a4 RD |
36526 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
36527 | PyObject *resultobj; | |
36528 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36529 | PyObject *arg2 = (PyObject *) 0 ; | |
36530 | wxSizerItem *result; | |
36531 | PyObject * obj0 = 0 ; | |
36532 | PyObject * obj1 = 0 ; | |
36533 | char *kwnames[] = { | |
36534 | (char *) "self",(char *) "item", NULL | |
36535 | }; | |
36536 | ||
36537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
36538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36540 | arg2 = obj1; | |
36541 | { | |
36542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36543 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
36544 | ||
36545 | wxPyEndAllowThreads(__tstate); | |
36546 | if (PyErr_Occurred()) SWIG_fail; | |
36547 | } | |
36548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
36549 | return resultobj; | |
36550 | fail: | |
36551 | return NULL; | |
36552 | } | |
36553 | ||
36554 | ||
c32bde28 | 36555 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36556 | PyObject *resultobj; |
36557 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36558 | PyObject *arg2 = (PyObject *) 0 ; | |
36559 | wxSize *arg3 = 0 ; | |
36560 | wxSize temp3 ; | |
36561 | PyObject * obj0 = 0 ; | |
36562 | PyObject * obj1 = 0 ; | |
36563 | PyObject * obj2 = 0 ; | |
36564 | char *kwnames[] = { | |
36565 | (char *) "self",(char *) "item",(char *) "size", NULL | |
36566 | }; | |
36567 | ||
36568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36571 | arg2 = obj1; | |
36572 | { | |
36573 | arg3 = &temp3; | |
36574 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36575 | } | |
36576 | { | |
36577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36578 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
36579 | ||
36580 | wxPyEndAllowThreads(__tstate); | |
36581 | if (PyErr_Occurred()) SWIG_fail; | |
36582 | } | |
36583 | Py_INCREF(Py_None); resultobj = Py_None; | |
36584 | return resultobj; | |
36585 | fail: | |
36586 | return NULL; | |
36587 | } | |
36588 | ||
36589 | ||
c32bde28 | 36590 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36591 | PyObject *resultobj; |
36592 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36593 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36594 | wxSizerItem *result; |
d55e5bfc RD |
36595 | PyObject * obj0 = 0 ; |
36596 | PyObject * obj1 = 0 ; | |
36597 | char *kwnames[] = { | |
36598 | (char *) "self",(char *) "item", NULL | |
36599 | }; | |
36600 | ||
36601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36604 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36606 | { | |
36607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36608 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
36609 | |
36610 | wxPyEndAllowThreads(__tstate); | |
36611 | if (PyErr_Occurred()) SWIG_fail; | |
36612 | } | |
c1cb24a4 | 36613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36614 | return resultobj; |
36615 | fail: | |
36616 | return NULL; | |
36617 | } | |
36618 | ||
36619 | ||
c32bde28 | 36620 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36621 | PyObject *resultobj; |
36622 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36623 | size_t arg2 ; | |
36624 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36625 | wxSizerItem *result; |
d55e5bfc RD |
36626 | PyObject * obj0 = 0 ; |
36627 | PyObject * obj1 = 0 ; | |
36628 | PyObject * obj2 = 0 ; | |
36629 | char *kwnames[] = { | |
36630 | (char *) "self",(char *) "index",(char *) "item", NULL | |
36631 | }; | |
36632 | ||
36633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36636 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36637 | if (PyErr_Occurred()) SWIG_fail; |
36638 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
36639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36640 | { | |
36641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36642 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d55e5bfc RD |
36643 | |
36644 | wxPyEndAllowThreads(__tstate); | |
36645 | if (PyErr_Occurred()) SWIG_fail; | |
36646 | } | |
c1cb24a4 | 36647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36648 | return resultobj; |
36649 | fail: | |
36650 | return NULL; | |
36651 | } | |
36652 | ||
36653 | ||
c32bde28 | 36654 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36655 | PyObject *resultobj; |
36656 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36657 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36658 | wxSizerItem *result; |
d55e5bfc RD |
36659 | PyObject * obj0 = 0 ; |
36660 | PyObject * obj1 = 0 ; | |
36661 | char *kwnames[] = { | |
36662 | (char *) "self",(char *) "item", NULL | |
36663 | }; | |
36664 | ||
36665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
36666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36670 | { | |
36671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36672 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d55e5bfc RD |
36673 | |
36674 | wxPyEndAllowThreads(__tstate); | |
36675 | if (PyErr_Occurred()) SWIG_fail; | |
36676 | } | |
c1cb24a4 | 36677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36678 | return resultobj; |
36679 | fail: | |
36680 | return NULL; | |
36681 | } | |
36682 | ||
36683 | ||
c32bde28 | 36684 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36685 | PyObject *resultobj; |
36686 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36687 | int arg2 ; | |
36688 | int arg3 ; | |
36689 | int arg4 ; | |
36690 | int arg5 ; | |
36691 | PyObject * obj0 = 0 ; | |
36692 | PyObject * obj1 = 0 ; | |
36693 | PyObject * obj2 = 0 ; | |
36694 | PyObject * obj3 = 0 ; | |
36695 | PyObject * obj4 = 0 ; | |
36696 | char *kwnames[] = { | |
36697 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36698 | }; | |
36699 | ||
36700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36703 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 36704 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36705 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 36706 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36707 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 36708 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36709 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36710 | if (PyErr_Occurred()) SWIG_fail; |
36711 | { | |
36712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36713 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
36714 | ||
36715 | wxPyEndAllowThreads(__tstate); | |
36716 | if (PyErr_Occurred()) SWIG_fail; | |
36717 | } | |
36718 | Py_INCREF(Py_None); resultobj = Py_None; | |
36719 | return resultobj; | |
36720 | fail: | |
36721 | return NULL; | |
36722 | } | |
36723 | ||
36724 | ||
c32bde28 | 36725 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36726 | PyObject *resultobj; |
36727 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36728 | wxSize *arg2 = 0 ; | |
36729 | wxSize temp2 ; | |
36730 | PyObject * obj0 = 0 ; | |
36731 | PyObject * obj1 = 0 ; | |
36732 | char *kwnames[] = { | |
36733 | (char *) "self",(char *) "size", NULL | |
36734 | }; | |
36735 | ||
36736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
36737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36739 | { | |
36740 | arg2 = &temp2; | |
36741 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36742 | } | |
36743 | { | |
36744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36745 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
36746 | ||
36747 | wxPyEndAllowThreads(__tstate); | |
36748 | if (PyErr_Occurred()) SWIG_fail; | |
36749 | } | |
36750 | Py_INCREF(Py_None); resultobj = Py_None; | |
36751 | return resultobj; | |
36752 | fail: | |
36753 | return NULL; | |
36754 | } | |
36755 | ||
36756 | ||
c32bde28 | 36757 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36758 | PyObject *resultobj; |
36759 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36760 | wxSize result; | |
36761 | PyObject * obj0 = 0 ; | |
36762 | char *kwnames[] = { | |
36763 | (char *) "self", NULL | |
36764 | }; | |
36765 | ||
36766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
36767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36769 | { | |
36770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36771 | result = (arg1)->GetSize(); | |
36772 | ||
36773 | wxPyEndAllowThreads(__tstate); | |
36774 | if (PyErr_Occurred()) SWIG_fail; | |
36775 | } | |
36776 | { | |
36777 | wxSize * resultptr; | |
36778 | resultptr = new wxSize((wxSize &) result); | |
36779 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36780 | } | |
36781 | return resultobj; | |
36782 | fail: | |
36783 | return NULL; | |
36784 | } | |
36785 | ||
36786 | ||
c32bde28 | 36787 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36788 | PyObject *resultobj; |
36789 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36790 | wxPoint result; | |
36791 | PyObject * obj0 = 0 ; | |
36792 | char *kwnames[] = { | |
36793 | (char *) "self", NULL | |
36794 | }; | |
36795 | ||
36796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
36797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36799 | { | |
36800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36801 | result = (arg1)->GetPosition(); | |
36802 | ||
36803 | wxPyEndAllowThreads(__tstate); | |
36804 | if (PyErr_Occurred()) SWIG_fail; | |
36805 | } | |
36806 | { | |
36807 | wxPoint * resultptr; | |
36808 | resultptr = new wxPoint((wxPoint &) result); | |
36809 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36810 | } | |
36811 | return resultobj; | |
36812 | fail: | |
36813 | return NULL; | |
36814 | } | |
36815 | ||
36816 | ||
c32bde28 | 36817 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36818 | PyObject *resultobj; |
36819 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36820 | wxSize result; | |
36821 | PyObject * obj0 = 0 ; | |
36822 | char *kwnames[] = { | |
36823 | (char *) "self", NULL | |
36824 | }; | |
36825 | ||
36826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
36827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36829 | { | |
36830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36831 | result = (arg1)->GetMinSize(); | |
36832 | ||
36833 | wxPyEndAllowThreads(__tstate); | |
36834 | if (PyErr_Occurred()) SWIG_fail; | |
36835 | } | |
36836 | { | |
36837 | wxSize * resultptr; | |
36838 | resultptr = new wxSize((wxSize &) result); | |
36839 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36840 | } | |
36841 | return resultobj; | |
36842 | fail: | |
36843 | return NULL; | |
36844 | } | |
36845 | ||
36846 | ||
c32bde28 | 36847 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36848 | PyObject *resultobj; |
36849 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36850 | PyObject * obj0 = 0 ; | |
36851 | char *kwnames[] = { | |
36852 | (char *) "self", NULL | |
36853 | }; | |
36854 | ||
36855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36858 | { | |
36859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36860 | (arg1)->RecalcSizes(); | |
36861 | ||
36862 | wxPyEndAllowThreads(__tstate); | |
36863 | if (PyErr_Occurred()) SWIG_fail; | |
36864 | } | |
36865 | Py_INCREF(Py_None); resultobj = Py_None; | |
36866 | return resultobj; | |
36867 | fail: | |
36868 | return NULL; | |
36869 | } | |
36870 | ||
36871 | ||
c32bde28 | 36872 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36873 | PyObject *resultobj; |
36874 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36875 | wxSize result; | |
36876 | PyObject * obj0 = 0 ; | |
36877 | char *kwnames[] = { | |
36878 | (char *) "self", NULL | |
36879 | }; | |
36880 | ||
36881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36884 | { | |
36885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36886 | result = (arg1)->CalcMin(); | |
36887 | ||
36888 | wxPyEndAllowThreads(__tstate); | |
36889 | if (PyErr_Occurred()) SWIG_fail; | |
36890 | } | |
36891 | { | |
36892 | wxSize * resultptr; | |
36893 | resultptr = new wxSize((wxSize &) result); | |
36894 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36895 | } | |
36896 | return resultobj; | |
36897 | fail: | |
36898 | return NULL; | |
36899 | } | |
36900 | ||
36901 | ||
c32bde28 | 36902 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36903 | PyObject *resultobj; |
36904 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36905 | PyObject * obj0 = 0 ; | |
36906 | char *kwnames[] = { | |
36907 | (char *) "self", NULL | |
36908 | }; | |
36909 | ||
36910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36913 | { | |
36914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36915 | (arg1)->Layout(); | |
36916 | ||
36917 | wxPyEndAllowThreads(__tstate); | |
36918 | if (PyErr_Occurred()) SWIG_fail; | |
36919 | } | |
36920 | Py_INCREF(Py_None); resultobj = Py_None; | |
36921 | return resultobj; | |
36922 | fail: | |
36923 | return NULL; | |
36924 | } | |
36925 | ||
36926 | ||
c32bde28 | 36927 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36928 | PyObject *resultobj; |
36929 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36930 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36931 | wxSize result; | |
36932 | PyObject * obj0 = 0 ; | |
36933 | PyObject * obj1 = 0 ; | |
36934 | char *kwnames[] = { | |
36935 | (char *) "self",(char *) "window", NULL | |
36936 | }; | |
36937 | ||
36938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36941 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36943 | { | |
36944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36945 | result = (arg1)->Fit(arg2); | |
36946 | ||
36947 | wxPyEndAllowThreads(__tstate); | |
36948 | if (PyErr_Occurred()) SWIG_fail; | |
36949 | } | |
36950 | { | |
36951 | wxSize * resultptr; | |
36952 | resultptr = new wxSize((wxSize &) result); | |
36953 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36954 | } | |
36955 | return resultobj; | |
36956 | fail: | |
36957 | return NULL; | |
36958 | } | |
36959 | ||
36960 | ||
c32bde28 | 36961 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36962 | PyObject *resultobj; |
36963 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36964 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36965 | PyObject * obj0 = 0 ; | |
36966 | PyObject * obj1 = 0 ; | |
36967 | char *kwnames[] = { | |
36968 | (char *) "self",(char *) "window", NULL | |
36969 | }; | |
36970 | ||
36971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36974 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36976 | { | |
36977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36978 | (arg1)->FitInside(arg2); | |
36979 | ||
36980 | wxPyEndAllowThreads(__tstate); | |
36981 | if (PyErr_Occurred()) SWIG_fail; | |
36982 | } | |
36983 | Py_INCREF(Py_None); resultobj = Py_None; | |
36984 | return resultobj; | |
36985 | fail: | |
36986 | return NULL; | |
36987 | } | |
36988 | ||
36989 | ||
c32bde28 | 36990 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36991 | PyObject *resultobj; |
36992 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36993 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36994 | PyObject * obj0 = 0 ; | |
36995 | PyObject * obj1 = 0 ; | |
36996 | char *kwnames[] = { | |
36997 | (char *) "self",(char *) "window", NULL | |
36998 | }; | |
36999 | ||
37000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
37001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37005 | { | |
37006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37007 | (arg1)->SetSizeHints(arg2); | |
37008 | ||
37009 | wxPyEndAllowThreads(__tstate); | |
37010 | if (PyErr_Occurred()) SWIG_fail; | |
37011 | } | |
37012 | Py_INCREF(Py_None); resultobj = Py_None; | |
37013 | return resultobj; | |
37014 | fail: | |
37015 | return NULL; | |
37016 | } | |
37017 | ||
37018 | ||
c32bde28 | 37019 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37020 | PyObject *resultobj; |
37021 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37022 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37023 | PyObject * obj0 = 0 ; | |
37024 | PyObject * obj1 = 0 ; | |
37025 | char *kwnames[] = { | |
37026 | (char *) "self",(char *) "window", NULL | |
37027 | }; | |
37028 | ||
37029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
37030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37034 | { | |
37035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37036 | (arg1)->SetVirtualSizeHints(arg2); | |
37037 | ||
37038 | wxPyEndAllowThreads(__tstate); | |
37039 | if (PyErr_Occurred()) SWIG_fail; | |
37040 | } | |
37041 | Py_INCREF(Py_None); resultobj = Py_None; | |
37042 | return resultobj; | |
37043 | fail: | |
37044 | return NULL; | |
37045 | } | |
37046 | ||
37047 | ||
c32bde28 | 37048 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37049 | PyObject *resultobj; |
37050 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 37051 | bool arg2 = (bool) false ; |
d55e5bfc RD |
37052 | PyObject * obj0 = 0 ; |
37053 | PyObject * obj1 = 0 ; | |
37054 | char *kwnames[] = { | |
248ed943 | 37055 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
37056 | }; |
37057 | ||
37058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
37059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37061 | if (obj1) { | |
c32bde28 | 37062 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
37063 | if (PyErr_Occurred()) SWIG_fail; |
37064 | } | |
37065 | { | |
37066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37067 | (arg1)->Clear(arg2); | |
37068 | ||
37069 | wxPyEndAllowThreads(__tstate); | |
37070 | if (PyErr_Occurred()) SWIG_fail; | |
37071 | } | |
37072 | Py_INCREF(Py_None); resultobj = Py_None; | |
37073 | return resultobj; | |
37074 | fail: | |
37075 | return NULL; | |
37076 | } | |
37077 | ||
37078 | ||
c32bde28 | 37079 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37080 | PyObject *resultobj; |
37081 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37082 | PyObject * obj0 = 0 ; | |
37083 | char *kwnames[] = { | |
37084 | (char *) "self", NULL | |
37085 | }; | |
37086 | ||
37087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
37088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37090 | { | |
37091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37092 | (arg1)->DeleteWindows(); | |
37093 | ||
37094 | wxPyEndAllowThreads(__tstate); | |
37095 | if (PyErr_Occurred()) SWIG_fail; | |
37096 | } | |
37097 | Py_INCREF(Py_None); resultobj = Py_None; | |
37098 | return resultobj; | |
37099 | fail: | |
37100 | return NULL; | |
37101 | } | |
37102 | ||
37103 | ||
c32bde28 | 37104 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37105 | PyObject *resultobj; |
37106 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37107 | PyObject *result; | |
37108 | PyObject * obj0 = 0 ; | |
37109 | char *kwnames[] = { | |
37110 | (char *) "self", NULL | |
37111 | }; | |
37112 | ||
37113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
37114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37116 | { | |
37117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37118 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
37119 | ||
37120 | wxPyEndAllowThreads(__tstate); | |
37121 | if (PyErr_Occurred()) SWIG_fail; | |
37122 | } | |
37123 | resultobj = result; | |
37124 | return resultobj; | |
37125 | fail: | |
37126 | return NULL; | |
37127 | } | |
37128 | ||
37129 | ||
c32bde28 | 37130 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37131 | PyObject *resultobj; |
37132 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37133 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
37134 | bool arg3 = (bool) true ; |
37135 | bool arg4 = (bool) false ; | |
7e63a440 | 37136 | bool result; |
d55e5bfc RD |
37137 | PyObject * obj0 = 0 ; |
37138 | PyObject * obj1 = 0 ; | |
37139 | PyObject * obj2 = 0 ; | |
7e63a440 | 37140 | PyObject * obj3 = 0 ; |
d55e5bfc | 37141 | char *kwnames[] = { |
7e63a440 | 37142 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
37143 | }; |
37144 | ||
7e63a440 | 37145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
37146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37148 | arg2 = obj1; | |
37149 | if (obj2) { | |
c32bde28 | 37150 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
37151 | if (PyErr_Occurred()) SWIG_fail; |
37152 | } | |
7e63a440 RD |
37153 | if (obj3) { |
37154 | arg4 = (bool)SWIG_As_bool(obj3); | |
37155 | if (PyErr_Occurred()) SWIG_fail; | |
37156 | } | |
d55e5bfc RD |
37157 | { |
37158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 37159 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
37160 | |
37161 | wxPyEndAllowThreads(__tstate); | |
37162 | if (PyErr_Occurred()) SWIG_fail; | |
37163 | } | |
7e63a440 RD |
37164 | { |
37165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37166 | } | |
d55e5bfc RD |
37167 | return resultobj; |
37168 | fail: | |
37169 | return NULL; | |
37170 | } | |
37171 | ||
37172 | ||
c32bde28 | 37173 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37174 | PyObject *resultobj; |
37175 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37176 | PyObject *arg2 = (PyObject *) 0 ; | |
37177 | bool result; | |
37178 | PyObject * obj0 = 0 ; | |
37179 | PyObject * obj1 = 0 ; | |
37180 | char *kwnames[] = { | |
37181 | (char *) "self",(char *) "item", NULL | |
37182 | }; | |
37183 | ||
37184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
37185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37187 | arg2 = obj1; | |
37188 | { | |
37189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37190 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
37191 | ||
37192 | wxPyEndAllowThreads(__tstate); | |
37193 | if (PyErr_Occurred()) SWIG_fail; | |
37194 | } | |
37195 | { | |
37196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37197 | } | |
37198 | return resultobj; | |
37199 | fail: | |
37200 | return NULL; | |
37201 | } | |
37202 | ||
37203 | ||
c32bde28 | 37204 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37205 | PyObject *resultobj; |
37206 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37207 | bool arg2 ; | |
37208 | PyObject * obj0 = 0 ; | |
37209 | PyObject * obj1 = 0 ; | |
37210 | char *kwnames[] = { | |
37211 | (char *) "self",(char *) "show", NULL | |
37212 | }; | |
37213 | ||
37214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
37215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37217 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
37218 | if (PyErr_Occurred()) SWIG_fail; |
37219 | { | |
37220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37221 | (arg1)->ShowItems(arg2); | |
37222 | ||
37223 | wxPyEndAllowThreads(__tstate); | |
37224 | if (PyErr_Occurred()) SWIG_fail; | |
37225 | } | |
37226 | Py_INCREF(Py_None); resultobj = Py_None; | |
37227 | return resultobj; | |
37228 | fail: | |
37229 | return NULL; | |
37230 | } | |
37231 | ||
37232 | ||
c32bde28 | 37233 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37234 | PyObject *obj; |
37235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37236 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
37237 | Py_INCREF(obj); | |
37238 | return Py_BuildValue((char *)""); | |
37239 | } | |
c32bde28 | 37240 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37241 | PyObject *resultobj; |
37242 | wxPySizer *result; | |
37243 | char *kwnames[] = { | |
37244 | NULL | |
37245 | }; | |
37246 | ||
37247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
37248 | { | |
37249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37250 | result = (wxPySizer *)new wxPySizer(); | |
37251 | ||
37252 | wxPyEndAllowThreads(__tstate); | |
37253 | if (PyErr_Occurred()) SWIG_fail; | |
37254 | } | |
37255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
37256 | return resultobj; | |
37257 | fail: | |
37258 | return NULL; | |
37259 | } | |
37260 | ||
37261 | ||
c32bde28 | 37262 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37263 | PyObject *resultobj; |
37264 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
37265 | PyObject *arg2 = (PyObject *) 0 ; | |
37266 | PyObject *arg3 = (PyObject *) 0 ; | |
37267 | PyObject * obj0 = 0 ; | |
37268 | PyObject * obj1 = 0 ; | |
37269 | PyObject * obj2 = 0 ; | |
37270 | char *kwnames[] = { | |
37271 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
37272 | }; | |
37273 | ||
37274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
37276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37277 | arg2 = obj1; | |
37278 | arg3 = obj2; | |
37279 | { | |
37280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37281 | (arg1)->_setCallbackInfo(arg2,arg3); | |
37282 | ||
37283 | wxPyEndAllowThreads(__tstate); | |
37284 | if (PyErr_Occurred()) SWIG_fail; | |
37285 | } | |
37286 | Py_INCREF(Py_None); resultobj = Py_None; | |
37287 | return resultobj; | |
37288 | fail: | |
37289 | return NULL; | |
37290 | } | |
37291 | ||
37292 | ||
c32bde28 | 37293 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37294 | PyObject *obj; |
37295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37296 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
37297 | Py_INCREF(obj); | |
37298 | return Py_BuildValue((char *)""); | |
37299 | } | |
c32bde28 | 37300 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37301 | PyObject *resultobj; |
37302 | int arg1 = (int) wxHORIZONTAL ; | |
37303 | wxBoxSizer *result; | |
37304 | PyObject * obj0 = 0 ; | |
37305 | char *kwnames[] = { | |
37306 | (char *) "orient", NULL | |
37307 | }; | |
37308 | ||
37309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
37310 | if (obj0) { | |
c32bde28 | 37311 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37312 | if (PyErr_Occurred()) SWIG_fail; |
37313 | } | |
37314 | { | |
37315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37316 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
37317 | ||
37318 | wxPyEndAllowThreads(__tstate); | |
37319 | if (PyErr_Occurred()) SWIG_fail; | |
37320 | } | |
37321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
37322 | return resultobj; | |
37323 | fail: | |
37324 | return NULL; | |
37325 | } | |
37326 | ||
37327 | ||
c32bde28 | 37328 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37329 | PyObject *resultobj; |
37330 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
37331 | int result; | |
37332 | PyObject * obj0 = 0 ; | |
37333 | char *kwnames[] = { | |
37334 | (char *) "self", NULL | |
37335 | }; | |
37336 | ||
37337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
37338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
37339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37340 | { | |
37341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37342 | result = (int)(arg1)->GetOrientation(); | |
37343 | ||
37344 | wxPyEndAllowThreads(__tstate); | |
37345 | if (PyErr_Occurred()) SWIG_fail; | |
37346 | } | |
c32bde28 | 37347 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37348 | return resultobj; |
37349 | fail: | |
37350 | return NULL; | |
37351 | } | |
37352 | ||
37353 | ||
c32bde28 | 37354 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37355 | PyObject *resultobj; |
37356 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
37357 | int arg2 ; | |
37358 | PyObject * obj0 = 0 ; | |
37359 | PyObject * obj1 = 0 ; | |
37360 | char *kwnames[] = { | |
37361 | (char *) "self",(char *) "orient", NULL | |
37362 | }; | |
37363 | ||
37364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
37365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
37366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37367 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37368 | if (PyErr_Occurred()) SWIG_fail; |
37369 | { | |
37370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37371 | (arg1)->SetOrientation(arg2); | |
37372 | ||
37373 | wxPyEndAllowThreads(__tstate); | |
37374 | if (PyErr_Occurred()) SWIG_fail; | |
37375 | } | |
37376 | Py_INCREF(Py_None); resultobj = Py_None; | |
37377 | return resultobj; | |
37378 | fail: | |
37379 | return NULL; | |
37380 | } | |
37381 | ||
37382 | ||
c32bde28 | 37383 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37384 | PyObject *obj; |
37385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37386 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
37387 | Py_INCREF(obj); | |
37388 | return Py_BuildValue((char *)""); | |
37389 | } | |
c32bde28 | 37390 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37391 | PyObject *resultobj; |
37392 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
37393 | int arg2 = (int) wxHORIZONTAL ; | |
37394 | wxStaticBoxSizer *result; | |
37395 | PyObject * obj0 = 0 ; | |
37396 | PyObject * obj1 = 0 ; | |
37397 | char *kwnames[] = { | |
37398 | (char *) "box",(char *) "orient", NULL | |
37399 | }; | |
37400 | ||
37401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
37402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
37403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37404 | if (obj1) { | |
c32bde28 | 37405 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37406 | if (PyErr_Occurred()) SWIG_fail; |
37407 | } | |
37408 | { | |
37409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37410 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
37411 | ||
37412 | wxPyEndAllowThreads(__tstate); | |
37413 | if (PyErr_Occurred()) SWIG_fail; | |
37414 | } | |
37415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
37416 | return resultobj; | |
37417 | fail: | |
37418 | return NULL; | |
37419 | } | |
37420 | ||
37421 | ||
c32bde28 | 37422 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37423 | PyObject *resultobj; |
37424 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
37425 | wxStaticBox *result; | |
37426 | PyObject * obj0 = 0 ; | |
37427 | char *kwnames[] = { | |
37428 | (char *) "self", NULL | |
37429 | }; | |
37430 | ||
37431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
37432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
37433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37434 | { | |
37435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37436 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
37437 | ||
37438 | wxPyEndAllowThreads(__tstate); | |
37439 | if (PyErr_Occurred()) SWIG_fail; | |
37440 | } | |
37441 | { | |
412d302d | 37442 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
37443 | } |
37444 | return resultobj; | |
37445 | fail: | |
37446 | return NULL; | |
37447 | } | |
37448 | ||
37449 | ||
c32bde28 | 37450 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37451 | PyObject *obj; |
37452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37453 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
37454 | Py_INCREF(obj); | |
37455 | return Py_BuildValue((char *)""); | |
37456 | } | |
c32bde28 | 37457 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37458 | PyObject *resultobj; |
37459 | int arg1 = (int) 1 ; | |
37460 | int arg2 = (int) 0 ; | |
37461 | int arg3 = (int) 0 ; | |
37462 | int arg4 = (int) 0 ; | |
37463 | wxGridSizer *result; | |
37464 | PyObject * obj0 = 0 ; | |
37465 | PyObject * obj1 = 0 ; | |
37466 | PyObject * obj2 = 0 ; | |
37467 | PyObject * obj3 = 0 ; | |
37468 | char *kwnames[] = { | |
37469 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37470 | }; | |
37471 | ||
37472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37473 | if (obj0) { | |
c32bde28 | 37474 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37475 | if (PyErr_Occurred()) SWIG_fail; |
37476 | } | |
37477 | if (obj1) { | |
c32bde28 | 37478 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37479 | if (PyErr_Occurred()) SWIG_fail; |
37480 | } | |
37481 | if (obj2) { | |
c32bde28 | 37482 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37483 | if (PyErr_Occurred()) SWIG_fail; |
37484 | } | |
37485 | if (obj3) { | |
c32bde28 | 37486 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37487 | if (PyErr_Occurred()) SWIG_fail; |
37488 | } | |
37489 | { | |
37490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37491 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
37492 | ||
37493 | wxPyEndAllowThreads(__tstate); | |
37494 | if (PyErr_Occurred()) SWIG_fail; | |
37495 | } | |
37496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
37497 | return resultobj; | |
37498 | fail: | |
37499 | return NULL; | |
37500 | } | |
37501 | ||
37502 | ||
c32bde28 | 37503 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37504 | PyObject *resultobj; |
37505 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37506 | int arg2 ; | |
37507 | PyObject * obj0 = 0 ; | |
37508 | PyObject * obj1 = 0 ; | |
37509 | char *kwnames[] = { | |
37510 | (char *) "self",(char *) "cols", NULL | |
37511 | }; | |
37512 | ||
37513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
37514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37516 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37517 | if (PyErr_Occurred()) SWIG_fail; |
37518 | { | |
37519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37520 | (arg1)->SetCols(arg2); | |
37521 | ||
37522 | wxPyEndAllowThreads(__tstate); | |
37523 | if (PyErr_Occurred()) SWIG_fail; | |
37524 | } | |
37525 | Py_INCREF(Py_None); resultobj = Py_None; | |
37526 | return resultobj; | |
37527 | fail: | |
37528 | return NULL; | |
37529 | } | |
37530 | ||
37531 | ||
c32bde28 | 37532 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37533 | PyObject *resultobj; |
37534 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37535 | int arg2 ; | |
37536 | PyObject * obj0 = 0 ; | |
37537 | PyObject * obj1 = 0 ; | |
37538 | char *kwnames[] = { | |
37539 | (char *) "self",(char *) "rows", NULL | |
37540 | }; | |
37541 | ||
37542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
37543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37545 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37546 | if (PyErr_Occurred()) SWIG_fail; |
37547 | { | |
37548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37549 | (arg1)->SetRows(arg2); | |
37550 | ||
37551 | wxPyEndAllowThreads(__tstate); | |
37552 | if (PyErr_Occurred()) SWIG_fail; | |
37553 | } | |
37554 | Py_INCREF(Py_None); resultobj = Py_None; | |
37555 | return resultobj; | |
37556 | fail: | |
37557 | return NULL; | |
37558 | } | |
37559 | ||
37560 | ||
c32bde28 | 37561 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37562 | PyObject *resultobj; |
37563 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37564 | int arg2 ; | |
37565 | PyObject * obj0 = 0 ; | |
37566 | PyObject * obj1 = 0 ; | |
37567 | char *kwnames[] = { | |
37568 | (char *) "self",(char *) "gap", NULL | |
37569 | }; | |
37570 | ||
37571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
37572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37574 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37575 | if (PyErr_Occurred()) SWIG_fail; |
37576 | { | |
37577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37578 | (arg1)->SetVGap(arg2); | |
37579 | ||
37580 | wxPyEndAllowThreads(__tstate); | |
37581 | if (PyErr_Occurred()) SWIG_fail; | |
37582 | } | |
37583 | Py_INCREF(Py_None); resultobj = Py_None; | |
37584 | return resultobj; | |
37585 | fail: | |
37586 | return NULL; | |
37587 | } | |
37588 | ||
37589 | ||
c32bde28 | 37590 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37591 | PyObject *resultobj; |
37592 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37593 | int arg2 ; | |
37594 | PyObject * obj0 = 0 ; | |
37595 | PyObject * obj1 = 0 ; | |
37596 | char *kwnames[] = { | |
37597 | (char *) "self",(char *) "gap", NULL | |
37598 | }; | |
37599 | ||
37600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
37601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37603 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37604 | if (PyErr_Occurred()) SWIG_fail; |
37605 | { | |
37606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37607 | (arg1)->SetHGap(arg2); | |
37608 | ||
37609 | wxPyEndAllowThreads(__tstate); | |
37610 | if (PyErr_Occurred()) SWIG_fail; | |
37611 | } | |
37612 | Py_INCREF(Py_None); resultobj = Py_None; | |
37613 | return resultobj; | |
37614 | fail: | |
37615 | return NULL; | |
37616 | } | |
37617 | ||
37618 | ||
c32bde28 | 37619 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37620 | PyObject *resultobj; |
37621 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37622 | int result; | |
37623 | PyObject * obj0 = 0 ; | |
37624 | char *kwnames[] = { | |
37625 | (char *) "self", NULL | |
37626 | }; | |
37627 | ||
37628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
37629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37631 | { | |
37632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37633 | result = (int)(arg1)->GetCols(); | |
37634 | ||
37635 | wxPyEndAllowThreads(__tstate); | |
37636 | if (PyErr_Occurred()) SWIG_fail; | |
37637 | } | |
c32bde28 | 37638 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37639 | return resultobj; |
37640 | fail: | |
37641 | return NULL; | |
37642 | } | |
37643 | ||
37644 | ||
c32bde28 | 37645 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37646 | PyObject *resultobj; |
37647 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37648 | int result; | |
37649 | PyObject * obj0 = 0 ; | |
37650 | char *kwnames[] = { | |
37651 | (char *) "self", NULL | |
37652 | }; | |
37653 | ||
37654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
37655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37657 | { | |
37658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37659 | result = (int)(arg1)->GetRows(); | |
37660 | ||
37661 | wxPyEndAllowThreads(__tstate); | |
37662 | if (PyErr_Occurred()) SWIG_fail; | |
37663 | } | |
c32bde28 | 37664 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37665 | return resultobj; |
37666 | fail: | |
37667 | return NULL; | |
37668 | } | |
37669 | ||
37670 | ||
c32bde28 | 37671 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37672 | PyObject *resultobj; |
37673 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37674 | int result; | |
37675 | PyObject * obj0 = 0 ; | |
37676 | char *kwnames[] = { | |
37677 | (char *) "self", NULL | |
37678 | }; | |
37679 | ||
37680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
37681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37683 | { | |
37684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37685 | result = (int)(arg1)->GetVGap(); | |
37686 | ||
37687 | wxPyEndAllowThreads(__tstate); | |
37688 | if (PyErr_Occurred()) SWIG_fail; | |
37689 | } | |
c32bde28 | 37690 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37691 | return resultobj; |
37692 | fail: | |
37693 | return NULL; | |
37694 | } | |
37695 | ||
37696 | ||
c32bde28 | 37697 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37698 | PyObject *resultobj; |
37699 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37700 | int result; | |
37701 | PyObject * obj0 = 0 ; | |
37702 | char *kwnames[] = { | |
37703 | (char *) "self", NULL | |
37704 | }; | |
37705 | ||
37706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
37707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37709 | { | |
37710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37711 | result = (int)(arg1)->GetHGap(); | |
37712 | ||
37713 | wxPyEndAllowThreads(__tstate); | |
37714 | if (PyErr_Occurred()) SWIG_fail; | |
37715 | } | |
c32bde28 | 37716 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37717 | return resultobj; |
37718 | fail: | |
37719 | return NULL; | |
37720 | } | |
37721 | ||
37722 | ||
c32bde28 | 37723 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37724 | PyObject *obj; |
37725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37726 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
37727 | Py_INCREF(obj); | |
37728 | return Py_BuildValue((char *)""); | |
37729 | } | |
c32bde28 | 37730 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37731 | PyObject *resultobj; |
37732 | int arg1 = (int) 1 ; | |
37733 | int arg2 = (int) 0 ; | |
37734 | int arg3 = (int) 0 ; | |
37735 | int arg4 = (int) 0 ; | |
37736 | wxFlexGridSizer *result; | |
37737 | PyObject * obj0 = 0 ; | |
37738 | PyObject * obj1 = 0 ; | |
37739 | PyObject * obj2 = 0 ; | |
37740 | PyObject * obj3 = 0 ; | |
37741 | char *kwnames[] = { | |
37742 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37743 | }; | |
37744 | ||
37745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37746 | if (obj0) { | |
c32bde28 | 37747 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37748 | if (PyErr_Occurred()) SWIG_fail; |
37749 | } | |
37750 | if (obj1) { | |
c32bde28 | 37751 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37752 | if (PyErr_Occurred()) SWIG_fail; |
37753 | } | |
37754 | if (obj2) { | |
c32bde28 | 37755 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37756 | if (PyErr_Occurred()) SWIG_fail; |
37757 | } | |
37758 | if (obj3) { | |
c32bde28 | 37759 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37760 | if (PyErr_Occurred()) SWIG_fail; |
37761 | } | |
37762 | { | |
37763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37764 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
37765 | ||
37766 | wxPyEndAllowThreads(__tstate); | |
37767 | if (PyErr_Occurred()) SWIG_fail; | |
37768 | } | |
37769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
37770 | return resultobj; | |
37771 | fail: | |
37772 | return NULL; | |
37773 | } | |
37774 | ||
37775 | ||
c32bde28 | 37776 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37777 | PyObject *resultobj; |
37778 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37779 | size_t arg2 ; | |
37780 | int arg3 = (int) 0 ; | |
37781 | PyObject * obj0 = 0 ; | |
37782 | PyObject * obj1 = 0 ; | |
37783 | PyObject * obj2 = 0 ; | |
37784 | char *kwnames[] = { | |
37785 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37786 | }; | |
37787 | ||
37788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37791 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37792 | if (PyErr_Occurred()) SWIG_fail; |
37793 | if (obj2) { | |
c32bde28 | 37794 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37795 | if (PyErr_Occurred()) SWIG_fail; |
37796 | } | |
37797 | { | |
37798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37799 | (arg1)->AddGrowableRow(arg2,arg3); | |
37800 | ||
37801 | wxPyEndAllowThreads(__tstate); | |
37802 | if (PyErr_Occurred()) SWIG_fail; | |
37803 | } | |
37804 | Py_INCREF(Py_None); resultobj = Py_None; | |
37805 | return resultobj; | |
37806 | fail: | |
37807 | return NULL; | |
37808 | } | |
37809 | ||
37810 | ||
c32bde28 | 37811 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37812 | PyObject *resultobj; |
37813 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37814 | size_t arg2 ; | |
37815 | PyObject * obj0 = 0 ; | |
37816 | PyObject * obj1 = 0 ; | |
37817 | char *kwnames[] = { | |
37818 | (char *) "self",(char *) "idx", NULL | |
37819 | }; | |
37820 | ||
37821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
37822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37824 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37825 | if (PyErr_Occurred()) SWIG_fail; |
37826 | { | |
37827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37828 | (arg1)->RemoveGrowableRow(arg2); | |
37829 | ||
37830 | wxPyEndAllowThreads(__tstate); | |
37831 | if (PyErr_Occurred()) SWIG_fail; | |
37832 | } | |
37833 | Py_INCREF(Py_None); resultobj = Py_None; | |
37834 | return resultobj; | |
37835 | fail: | |
37836 | return NULL; | |
37837 | } | |
37838 | ||
37839 | ||
c32bde28 | 37840 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37841 | PyObject *resultobj; |
37842 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37843 | size_t arg2 ; | |
37844 | int arg3 = (int) 0 ; | |
37845 | PyObject * obj0 = 0 ; | |
37846 | PyObject * obj1 = 0 ; | |
37847 | PyObject * obj2 = 0 ; | |
37848 | char *kwnames[] = { | |
37849 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37850 | }; | |
37851 | ||
37852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37855 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37856 | if (PyErr_Occurred()) SWIG_fail; |
37857 | if (obj2) { | |
c32bde28 | 37858 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37859 | if (PyErr_Occurred()) SWIG_fail; |
37860 | } | |
37861 | { | |
37862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37863 | (arg1)->AddGrowableCol(arg2,arg3); | |
37864 | ||
37865 | wxPyEndAllowThreads(__tstate); | |
37866 | if (PyErr_Occurred()) SWIG_fail; | |
37867 | } | |
37868 | Py_INCREF(Py_None); resultobj = Py_None; | |
37869 | return resultobj; | |
37870 | fail: | |
37871 | return NULL; | |
37872 | } | |
37873 | ||
37874 | ||
c32bde28 | 37875 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37876 | PyObject *resultobj; |
37877 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37878 | size_t arg2 ; | |
37879 | PyObject * obj0 = 0 ; | |
37880 | PyObject * obj1 = 0 ; | |
37881 | char *kwnames[] = { | |
37882 | (char *) "self",(char *) "idx", NULL | |
37883 | }; | |
37884 | ||
37885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37888 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37889 | if (PyErr_Occurred()) SWIG_fail; |
37890 | { | |
37891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37892 | (arg1)->RemoveGrowableCol(arg2); | |
37893 | ||
37894 | wxPyEndAllowThreads(__tstate); | |
37895 | if (PyErr_Occurred()) SWIG_fail; | |
37896 | } | |
37897 | Py_INCREF(Py_None); resultobj = Py_None; | |
37898 | return resultobj; | |
37899 | fail: | |
37900 | return NULL; | |
37901 | } | |
37902 | ||
37903 | ||
c32bde28 | 37904 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37905 | PyObject *resultobj; |
37906 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37907 | int arg2 ; | |
37908 | PyObject * obj0 = 0 ; | |
37909 | PyObject * obj1 = 0 ; | |
37910 | char *kwnames[] = { | |
37911 | (char *) "self",(char *) "direction", NULL | |
37912 | }; | |
37913 | ||
37914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37917 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37918 | if (PyErr_Occurred()) SWIG_fail; |
37919 | { | |
37920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37921 | (arg1)->SetFlexibleDirection(arg2); | |
37922 | ||
37923 | wxPyEndAllowThreads(__tstate); | |
37924 | if (PyErr_Occurred()) SWIG_fail; | |
37925 | } | |
37926 | Py_INCREF(Py_None); resultobj = Py_None; | |
37927 | return resultobj; | |
37928 | fail: | |
37929 | return NULL; | |
37930 | } | |
37931 | ||
37932 | ||
c32bde28 | 37933 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37934 | PyObject *resultobj; |
37935 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37936 | int result; | |
37937 | PyObject * obj0 = 0 ; | |
37938 | char *kwnames[] = { | |
37939 | (char *) "self", NULL | |
37940 | }; | |
37941 | ||
37942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37945 | { | |
37946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37947 | result = (int)(arg1)->GetFlexibleDirection(); | |
37948 | ||
37949 | wxPyEndAllowThreads(__tstate); | |
37950 | if (PyErr_Occurred()) SWIG_fail; | |
37951 | } | |
c32bde28 | 37952 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37953 | return resultobj; |
37954 | fail: | |
37955 | return NULL; | |
37956 | } | |
37957 | ||
37958 | ||
c32bde28 | 37959 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37960 | PyObject *resultobj; |
37961 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37962 | int arg2 ; | |
37963 | PyObject * obj0 = 0 ; | |
37964 | PyObject * obj1 = 0 ; | |
37965 | char *kwnames[] = { | |
37966 | (char *) "self",(char *) "mode", NULL | |
37967 | }; | |
37968 | ||
37969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37972 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37973 | if (PyErr_Occurred()) SWIG_fail; |
37974 | { | |
37975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37976 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37977 | ||
37978 | wxPyEndAllowThreads(__tstate); | |
37979 | if (PyErr_Occurred()) SWIG_fail; | |
37980 | } | |
37981 | Py_INCREF(Py_None); resultobj = Py_None; | |
37982 | return resultobj; | |
37983 | fail: | |
37984 | return NULL; | |
37985 | } | |
37986 | ||
37987 | ||
c32bde28 | 37988 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37989 | PyObject *resultobj; |
37990 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37991 | int result; | |
37992 | PyObject * obj0 = 0 ; | |
37993 | char *kwnames[] = { | |
37994 | (char *) "self", NULL | |
37995 | }; | |
37996 | ||
37997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38000 | { | |
38001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38002 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
38003 | ||
38004 | wxPyEndAllowThreads(__tstate); | |
38005 | if (PyErr_Occurred()) SWIG_fail; | |
38006 | } | |
c32bde28 | 38007 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38008 | return resultobj; |
38009 | fail: | |
38010 | return NULL; | |
38011 | } | |
38012 | ||
38013 | ||
c32bde28 | 38014 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38015 | PyObject *resultobj; |
38016 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
38017 | wxArrayInt *result; | |
38018 | PyObject * obj0 = 0 ; | |
38019 | char *kwnames[] = { | |
38020 | (char *) "self", NULL | |
38021 | }; | |
38022 | ||
38023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
38024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
38025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38026 | { | |
38027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38028 | { | |
38029 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
38030 | result = (wxArrayInt *) &_result_ref; | |
38031 | } | |
38032 | ||
38033 | wxPyEndAllowThreads(__tstate); | |
38034 | if (PyErr_Occurred()) SWIG_fail; | |
38035 | } | |
38036 | { | |
38037 | resultobj = PyList_New(0); | |
38038 | size_t idx; | |
38039 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
38040 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
38041 | PyList_Append(resultobj, val); | |
38042 | Py_DECREF(val); | |
38043 | } | |
38044 | } | |
38045 | return resultobj; | |
38046 | fail: | |
38047 | return NULL; | |
38048 | } | |
38049 | ||
38050 | ||
c32bde28 | 38051 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38052 | PyObject *resultobj; |
38053 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
38054 | wxArrayInt *result; | |
38055 | PyObject * obj0 = 0 ; | |
38056 | char *kwnames[] = { | |
38057 | (char *) "self", NULL | |
38058 | }; | |
38059 | ||
38060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
38061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
38062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38063 | { | |
38064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38065 | { | |
38066 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
38067 | result = (wxArrayInt *) &_result_ref; | |
38068 | } | |
38069 | ||
38070 | wxPyEndAllowThreads(__tstate); | |
38071 | if (PyErr_Occurred()) SWIG_fail; | |
38072 | } | |
38073 | { | |
38074 | resultobj = PyList_New(0); | |
38075 | size_t idx; | |
38076 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
38077 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
38078 | PyList_Append(resultobj, val); | |
38079 | Py_DECREF(val); | |
38080 | } | |
38081 | } | |
38082 | return resultobj; | |
38083 | fail: | |
38084 | return NULL; | |
38085 | } | |
38086 | ||
38087 | ||
c32bde28 | 38088 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38089 | PyObject *obj; |
38090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38091 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
38092 | Py_INCREF(obj); | |
38093 | return Py_BuildValue((char *)""); | |
38094 | } | |
c32bde28 | 38095 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38096 | PyObject *resultobj; |
38097 | int arg1 = (int) 0 ; | |
38098 | int arg2 = (int) 0 ; | |
38099 | wxGBPosition *result; | |
38100 | PyObject * obj0 = 0 ; | |
38101 | PyObject * obj1 = 0 ; | |
38102 | char *kwnames[] = { | |
38103 | (char *) "row",(char *) "col", NULL | |
38104 | }; | |
38105 | ||
38106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
38107 | if (obj0) { | |
c32bde28 | 38108 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38109 | if (PyErr_Occurred()) SWIG_fail; |
38110 | } | |
38111 | if (obj1) { | |
c32bde28 | 38112 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38113 | if (PyErr_Occurred()) SWIG_fail; |
38114 | } | |
38115 | { | |
38116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38117 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
38118 | ||
38119 | wxPyEndAllowThreads(__tstate); | |
38120 | if (PyErr_Occurred()) SWIG_fail; | |
38121 | } | |
38122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
38123 | return resultobj; | |
38124 | fail: | |
38125 | return NULL; | |
38126 | } | |
38127 | ||
38128 | ||
c32bde28 | 38129 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38130 | PyObject *resultobj; |
38131 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38132 | int result; | |
38133 | PyObject * obj0 = 0 ; | |
38134 | char *kwnames[] = { | |
38135 | (char *) "self", NULL | |
38136 | }; | |
38137 | ||
38138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
38139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38141 | { | |
38142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38143 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
38144 | ||
38145 | wxPyEndAllowThreads(__tstate); | |
38146 | if (PyErr_Occurred()) SWIG_fail; | |
38147 | } | |
c32bde28 | 38148 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38149 | return resultobj; |
38150 | fail: | |
38151 | return NULL; | |
38152 | } | |
38153 | ||
38154 | ||
c32bde28 | 38155 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38156 | PyObject *resultobj; |
38157 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38158 | int result; | |
38159 | PyObject * obj0 = 0 ; | |
38160 | char *kwnames[] = { | |
38161 | (char *) "self", NULL | |
38162 | }; | |
38163 | ||
38164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
38165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38167 | { | |
38168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38169 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
38170 | ||
38171 | wxPyEndAllowThreads(__tstate); | |
38172 | if (PyErr_Occurred()) SWIG_fail; | |
38173 | } | |
c32bde28 | 38174 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38175 | return resultobj; |
38176 | fail: | |
38177 | return NULL; | |
38178 | } | |
38179 | ||
38180 | ||
c32bde28 | 38181 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38182 | PyObject *resultobj; |
38183 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38184 | int arg2 ; | |
38185 | PyObject * obj0 = 0 ; | |
38186 | PyObject * obj1 = 0 ; | |
38187 | char *kwnames[] = { | |
38188 | (char *) "self",(char *) "row", NULL | |
38189 | }; | |
38190 | ||
38191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
38192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38194 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38195 | if (PyErr_Occurred()) SWIG_fail; |
38196 | { | |
38197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38198 | (arg1)->SetRow(arg2); | |
38199 | ||
38200 | wxPyEndAllowThreads(__tstate); | |
38201 | if (PyErr_Occurred()) SWIG_fail; | |
38202 | } | |
38203 | Py_INCREF(Py_None); resultobj = Py_None; | |
38204 | return resultobj; | |
38205 | fail: | |
38206 | return NULL; | |
38207 | } | |
38208 | ||
38209 | ||
c32bde28 | 38210 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38211 | PyObject *resultobj; |
38212 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38213 | int arg2 ; | |
38214 | PyObject * obj0 = 0 ; | |
38215 | PyObject * obj1 = 0 ; | |
38216 | char *kwnames[] = { | |
38217 | (char *) "self",(char *) "col", NULL | |
38218 | }; | |
38219 | ||
38220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
38221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38223 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38224 | if (PyErr_Occurred()) SWIG_fail; |
38225 | { | |
38226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38227 | (arg1)->SetCol(arg2); | |
38228 | ||
38229 | wxPyEndAllowThreads(__tstate); | |
38230 | if (PyErr_Occurred()) SWIG_fail; | |
38231 | } | |
38232 | Py_INCREF(Py_None); resultobj = Py_None; | |
38233 | return resultobj; | |
38234 | fail: | |
38235 | return NULL; | |
38236 | } | |
38237 | ||
38238 | ||
c32bde28 | 38239 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38240 | PyObject *resultobj; |
38241 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38242 | wxGBPosition *arg2 = 0 ; | |
38243 | bool result; | |
38244 | wxGBPosition temp2 ; | |
38245 | PyObject * obj0 = 0 ; | |
38246 | PyObject * obj1 = 0 ; | |
38247 | char *kwnames[] = { | |
38248 | (char *) "self",(char *) "other", NULL | |
38249 | }; | |
38250 | ||
38251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38254 | { | |
38255 | arg2 = &temp2; | |
38256 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38257 | } | |
38258 | { | |
38259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38260 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
38261 | ||
38262 | wxPyEndAllowThreads(__tstate); | |
38263 | if (PyErr_Occurred()) SWIG_fail; | |
38264 | } | |
38265 | { | |
38266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38267 | } | |
38268 | return resultobj; | |
38269 | fail: | |
38270 | return NULL; | |
38271 | } | |
38272 | ||
38273 | ||
c32bde28 | 38274 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38275 | PyObject *resultobj; |
38276 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38277 | wxGBPosition *arg2 = 0 ; | |
38278 | bool result; | |
38279 | wxGBPosition temp2 ; | |
38280 | PyObject * obj0 = 0 ; | |
38281 | PyObject * obj1 = 0 ; | |
38282 | char *kwnames[] = { | |
38283 | (char *) "self",(char *) "other", NULL | |
38284 | }; | |
38285 | ||
38286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38289 | { | |
38290 | arg2 = &temp2; | |
38291 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38292 | } | |
38293 | { | |
38294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38295 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
38296 | ||
38297 | wxPyEndAllowThreads(__tstate); | |
38298 | if (PyErr_Occurred()) SWIG_fail; | |
38299 | } | |
38300 | { | |
38301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38302 | } | |
38303 | return resultobj; | |
38304 | fail: | |
38305 | return NULL; | |
38306 | } | |
38307 | ||
38308 | ||
c32bde28 | 38309 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38310 | PyObject *resultobj; |
38311 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38312 | int arg2 = (int) 0 ; | |
38313 | int arg3 = (int) 0 ; | |
38314 | PyObject * obj0 = 0 ; | |
38315 | PyObject * obj1 = 0 ; | |
38316 | PyObject * obj2 = 0 ; | |
38317 | char *kwnames[] = { | |
38318 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38319 | }; | |
38320 | ||
38321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38324 | if (obj1) { | |
c32bde28 | 38325 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38326 | if (PyErr_Occurred()) SWIG_fail; |
38327 | } | |
38328 | if (obj2) { | |
c32bde28 | 38329 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38330 | if (PyErr_Occurred()) SWIG_fail; |
38331 | } | |
38332 | { | |
38333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38334 | wxGBPosition_Set(arg1,arg2,arg3); | |
38335 | ||
38336 | wxPyEndAllowThreads(__tstate); | |
38337 | if (PyErr_Occurred()) SWIG_fail; | |
38338 | } | |
38339 | Py_INCREF(Py_None); resultobj = Py_None; | |
38340 | return resultobj; | |
38341 | fail: | |
38342 | return NULL; | |
38343 | } | |
38344 | ||
38345 | ||
c32bde28 | 38346 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38347 | PyObject *resultobj; |
38348 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38349 | PyObject *result; | |
38350 | PyObject * obj0 = 0 ; | |
38351 | char *kwnames[] = { | |
38352 | (char *) "self", NULL | |
38353 | }; | |
38354 | ||
38355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
38356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38358 | { | |
38359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38360 | result = (PyObject *)wxGBPosition_Get(arg1); | |
38361 | ||
38362 | wxPyEndAllowThreads(__tstate); | |
38363 | if (PyErr_Occurred()) SWIG_fail; | |
38364 | } | |
38365 | resultobj = result; | |
38366 | return resultobj; | |
38367 | fail: | |
38368 | return NULL; | |
38369 | } | |
38370 | ||
38371 | ||
c32bde28 | 38372 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38373 | PyObject *obj; |
38374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38375 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
38376 | Py_INCREF(obj); | |
38377 | return Py_BuildValue((char *)""); | |
38378 | } | |
c32bde28 | 38379 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38380 | PyObject *resultobj; |
38381 | int arg1 = (int) 1 ; | |
38382 | int arg2 = (int) 1 ; | |
38383 | wxGBSpan *result; | |
38384 | PyObject * obj0 = 0 ; | |
38385 | PyObject * obj1 = 0 ; | |
38386 | char *kwnames[] = { | |
38387 | (char *) "rowspan",(char *) "colspan", NULL | |
38388 | }; | |
38389 | ||
38390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
38391 | if (obj0) { | |
c32bde28 | 38392 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38393 | if (PyErr_Occurred()) SWIG_fail; |
38394 | } | |
38395 | if (obj1) { | |
c32bde28 | 38396 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38397 | if (PyErr_Occurred()) SWIG_fail; |
38398 | } | |
38399 | { | |
38400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38401 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
38402 | ||
38403 | wxPyEndAllowThreads(__tstate); | |
38404 | if (PyErr_Occurred()) SWIG_fail; | |
38405 | } | |
38406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
38407 | return resultobj; | |
38408 | fail: | |
38409 | return NULL; | |
38410 | } | |
38411 | ||
38412 | ||
c32bde28 | 38413 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38414 | PyObject *resultobj; |
38415 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38416 | int result; | |
38417 | PyObject * obj0 = 0 ; | |
38418 | char *kwnames[] = { | |
38419 | (char *) "self", NULL | |
38420 | }; | |
38421 | ||
38422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
38423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38425 | { | |
38426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38427 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
38428 | ||
38429 | wxPyEndAllowThreads(__tstate); | |
38430 | if (PyErr_Occurred()) SWIG_fail; | |
38431 | } | |
c32bde28 | 38432 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38433 | return resultobj; |
38434 | fail: | |
38435 | return NULL; | |
38436 | } | |
38437 | ||
38438 | ||
c32bde28 | 38439 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38440 | PyObject *resultobj; |
38441 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38442 | int result; | |
38443 | PyObject * obj0 = 0 ; | |
38444 | char *kwnames[] = { | |
38445 | (char *) "self", NULL | |
38446 | }; | |
38447 | ||
38448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
38449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38451 | { | |
38452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38453 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
38454 | ||
38455 | wxPyEndAllowThreads(__tstate); | |
38456 | if (PyErr_Occurred()) SWIG_fail; | |
38457 | } | |
c32bde28 | 38458 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38459 | return resultobj; |
38460 | fail: | |
38461 | return NULL; | |
38462 | } | |
38463 | ||
38464 | ||
c32bde28 | 38465 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38466 | PyObject *resultobj; |
38467 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38468 | int arg2 ; | |
38469 | PyObject * obj0 = 0 ; | |
38470 | PyObject * obj1 = 0 ; | |
38471 | char *kwnames[] = { | |
38472 | (char *) "self",(char *) "rowspan", NULL | |
38473 | }; | |
38474 | ||
38475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
38476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38478 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38479 | if (PyErr_Occurred()) SWIG_fail; |
38480 | { | |
38481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38482 | (arg1)->SetRowspan(arg2); | |
38483 | ||
38484 | wxPyEndAllowThreads(__tstate); | |
38485 | if (PyErr_Occurred()) SWIG_fail; | |
38486 | } | |
38487 | Py_INCREF(Py_None); resultobj = Py_None; | |
38488 | return resultobj; | |
38489 | fail: | |
38490 | return NULL; | |
38491 | } | |
38492 | ||
38493 | ||
c32bde28 | 38494 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38495 | PyObject *resultobj; |
38496 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38497 | int arg2 ; | |
38498 | PyObject * obj0 = 0 ; | |
38499 | PyObject * obj1 = 0 ; | |
38500 | char *kwnames[] = { | |
38501 | (char *) "self",(char *) "colspan", NULL | |
38502 | }; | |
38503 | ||
38504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
38505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38507 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38508 | if (PyErr_Occurred()) SWIG_fail; |
38509 | { | |
38510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38511 | (arg1)->SetColspan(arg2); | |
38512 | ||
38513 | wxPyEndAllowThreads(__tstate); | |
38514 | if (PyErr_Occurred()) SWIG_fail; | |
38515 | } | |
38516 | Py_INCREF(Py_None); resultobj = Py_None; | |
38517 | return resultobj; | |
38518 | fail: | |
38519 | return NULL; | |
38520 | } | |
38521 | ||
38522 | ||
c32bde28 | 38523 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38524 | PyObject *resultobj; |
38525 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38526 | wxGBSpan *arg2 = 0 ; | |
38527 | bool result; | |
38528 | wxGBSpan temp2 ; | |
38529 | PyObject * obj0 = 0 ; | |
38530 | PyObject * obj1 = 0 ; | |
38531 | char *kwnames[] = { | |
38532 | (char *) "self",(char *) "other", NULL | |
38533 | }; | |
38534 | ||
38535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38538 | { | |
38539 | arg2 = &temp2; | |
38540 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38541 | } | |
38542 | { | |
38543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38544 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
38545 | ||
38546 | wxPyEndAllowThreads(__tstate); | |
38547 | if (PyErr_Occurred()) SWIG_fail; | |
38548 | } | |
38549 | { | |
38550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38551 | } | |
38552 | return resultobj; | |
38553 | fail: | |
38554 | return NULL; | |
38555 | } | |
38556 | ||
38557 | ||
c32bde28 | 38558 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38559 | PyObject *resultobj; |
38560 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38561 | wxGBSpan *arg2 = 0 ; | |
38562 | bool result; | |
38563 | wxGBSpan temp2 ; | |
38564 | PyObject * obj0 = 0 ; | |
38565 | PyObject * obj1 = 0 ; | |
38566 | char *kwnames[] = { | |
38567 | (char *) "self",(char *) "other", NULL | |
38568 | }; | |
38569 | ||
38570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38573 | { | |
38574 | arg2 = &temp2; | |
38575 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38576 | } | |
38577 | { | |
38578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38579 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
38580 | ||
38581 | wxPyEndAllowThreads(__tstate); | |
38582 | if (PyErr_Occurred()) SWIG_fail; | |
38583 | } | |
38584 | { | |
38585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38586 | } | |
38587 | return resultobj; | |
38588 | fail: | |
38589 | return NULL; | |
38590 | } | |
38591 | ||
38592 | ||
c32bde28 | 38593 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38594 | PyObject *resultobj; |
38595 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38596 | int arg2 = (int) 1 ; | |
38597 | int arg3 = (int) 1 ; | |
38598 | PyObject * obj0 = 0 ; | |
38599 | PyObject * obj1 = 0 ; | |
38600 | PyObject * obj2 = 0 ; | |
38601 | char *kwnames[] = { | |
38602 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
38603 | }; | |
38604 | ||
38605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38608 | if (obj1) { | |
c32bde28 | 38609 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38610 | if (PyErr_Occurred()) SWIG_fail; |
38611 | } | |
38612 | if (obj2) { | |
c32bde28 | 38613 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38614 | if (PyErr_Occurred()) SWIG_fail; |
38615 | } | |
38616 | { | |
38617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38618 | wxGBSpan_Set(arg1,arg2,arg3); | |
38619 | ||
38620 | wxPyEndAllowThreads(__tstate); | |
38621 | if (PyErr_Occurred()) SWIG_fail; | |
38622 | } | |
38623 | Py_INCREF(Py_None); resultobj = Py_None; | |
38624 | return resultobj; | |
38625 | fail: | |
38626 | return NULL; | |
38627 | } | |
38628 | ||
38629 | ||
c32bde28 | 38630 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38631 | PyObject *resultobj; |
38632 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38633 | PyObject *result; | |
38634 | PyObject * obj0 = 0 ; | |
38635 | char *kwnames[] = { | |
38636 | (char *) "self", NULL | |
38637 | }; | |
38638 | ||
38639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
38640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38642 | { | |
38643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38644 | result = (PyObject *)wxGBSpan_Get(arg1); | |
38645 | ||
38646 | wxPyEndAllowThreads(__tstate); | |
38647 | if (PyErr_Occurred()) SWIG_fail; | |
38648 | } | |
38649 | resultobj = result; | |
38650 | return resultobj; | |
38651 | fail: | |
38652 | return NULL; | |
38653 | } | |
38654 | ||
38655 | ||
c32bde28 | 38656 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38657 | PyObject *obj; |
38658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38659 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
38660 | Py_INCREF(obj); | |
38661 | return Py_BuildValue((char *)""); | |
38662 | } | |
c32bde28 | 38663 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
38664 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
38665 | return 1; | |
38666 | } | |
38667 | ||
38668 | ||
38669 | static PyObject *_wrap_DefaultSpan_get() { | |
38670 | PyObject *pyobj; | |
38671 | ||
38672 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
38673 | return pyobj; | |
38674 | } | |
38675 | ||
38676 | ||
c32bde28 | 38677 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38678 | PyObject *resultobj; |
38679 | wxGBSizerItem *result; | |
38680 | char *kwnames[] = { | |
38681 | NULL | |
38682 | }; | |
38683 | ||
38684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
38685 | { | |
38686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38687 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
38688 | ||
38689 | wxPyEndAllowThreads(__tstate); | |
38690 | if (PyErr_Occurred()) SWIG_fail; | |
38691 | } | |
38692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38693 | return resultobj; | |
38694 | fail: | |
38695 | return NULL; | |
38696 | } | |
38697 | ||
38698 | ||
c32bde28 | 38699 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38700 | PyObject *resultobj; |
38701 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38702 | wxGBPosition *arg2 = 0 ; | |
38703 | wxGBSpan *arg3 = 0 ; | |
38704 | int arg4 ; | |
38705 | int arg5 ; | |
248ed943 | 38706 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38707 | wxGBSizerItem *result; |
38708 | wxGBPosition temp2 ; | |
38709 | wxGBSpan temp3 ; | |
38710 | PyObject * obj0 = 0 ; | |
38711 | PyObject * obj1 = 0 ; | |
38712 | PyObject * obj2 = 0 ; | |
38713 | PyObject * obj3 = 0 ; | |
38714 | PyObject * obj4 = 0 ; | |
38715 | PyObject * obj5 = 0 ; | |
38716 | char *kwnames[] = { | |
38717 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38718 | }; | |
38719 | ||
248ed943 | 38720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
38722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38723 | { | |
38724 | arg2 = &temp2; | |
38725 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38726 | } | |
38727 | { | |
38728 | arg3 = &temp3; | |
38729 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38730 | } | |
c32bde28 | 38731 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38732 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38733 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38734 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38735 | if (obj5) { |
38736 | arg6 = obj5; | |
38737 | } | |
d55e5bfc RD |
38738 | { |
38739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38740 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38741 | |
38742 | wxPyEndAllowThreads(__tstate); | |
38743 | if (PyErr_Occurred()) SWIG_fail; | |
38744 | } | |
38745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38746 | return resultobj; | |
38747 | fail: | |
38748 | return NULL; | |
38749 | } | |
38750 | ||
38751 | ||
c32bde28 | 38752 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38753 | PyObject *resultobj; |
38754 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38755 | wxGBPosition *arg2 = 0 ; | |
38756 | wxGBSpan *arg3 = 0 ; | |
38757 | int arg4 ; | |
38758 | int arg5 ; | |
248ed943 | 38759 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38760 | wxGBSizerItem *result; |
38761 | wxGBPosition temp2 ; | |
38762 | wxGBSpan temp3 ; | |
38763 | PyObject * obj0 = 0 ; | |
38764 | PyObject * obj1 = 0 ; | |
38765 | PyObject * obj2 = 0 ; | |
38766 | PyObject * obj3 = 0 ; | |
38767 | PyObject * obj4 = 0 ; | |
38768 | PyObject * obj5 = 0 ; | |
38769 | char *kwnames[] = { | |
38770 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38771 | }; | |
38772 | ||
248ed943 | 38773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
38775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38776 | { | |
38777 | arg2 = &temp2; | |
38778 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38779 | } | |
38780 | { | |
38781 | arg3 = &temp3; | |
38782 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38783 | } | |
c32bde28 | 38784 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38785 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38786 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38787 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38788 | if (obj5) { |
38789 | arg6 = obj5; | |
38790 | } | |
d55e5bfc RD |
38791 | { |
38792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38793 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38794 | |
38795 | wxPyEndAllowThreads(__tstate); | |
38796 | if (PyErr_Occurred()) SWIG_fail; | |
38797 | } | |
38798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38799 | return resultobj; | |
38800 | fail: | |
38801 | return NULL; | |
38802 | } | |
38803 | ||
38804 | ||
c32bde28 | 38805 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38806 | PyObject *resultobj; |
38807 | int arg1 ; | |
38808 | int arg2 ; | |
38809 | wxGBPosition *arg3 = 0 ; | |
38810 | wxGBSpan *arg4 = 0 ; | |
38811 | int arg5 ; | |
38812 | int arg6 ; | |
248ed943 | 38813 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
38814 | wxGBSizerItem *result; |
38815 | wxGBPosition temp3 ; | |
38816 | wxGBSpan temp4 ; | |
38817 | PyObject * obj0 = 0 ; | |
38818 | PyObject * obj1 = 0 ; | |
38819 | PyObject * obj2 = 0 ; | |
38820 | PyObject * obj3 = 0 ; | |
38821 | PyObject * obj4 = 0 ; | |
38822 | PyObject * obj5 = 0 ; | |
38823 | PyObject * obj6 = 0 ; | |
38824 | char *kwnames[] = { | |
38825 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38826 | }; | |
38827 | ||
248ed943 | 38828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 38829 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 38830 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38831 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38832 | if (PyErr_Occurred()) SWIG_fail; |
38833 | { | |
38834 | arg3 = &temp3; | |
38835 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38836 | } | |
38837 | { | |
38838 | arg4 = &temp4; | |
38839 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38840 | } | |
c32bde28 | 38841 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38842 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38843 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 38844 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38845 | if (obj6) { |
38846 | arg7 = obj6; | |
38847 | } | |
d55e5bfc RD |
38848 | { |
38849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38850 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38851 | |
38852 | wxPyEndAllowThreads(__tstate); | |
38853 | if (PyErr_Occurred()) SWIG_fail; | |
38854 | } | |
38855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38856 | return resultobj; | |
38857 | fail: | |
38858 | return NULL; | |
38859 | } | |
38860 | ||
38861 | ||
c32bde28 | 38862 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38863 | PyObject *resultobj; |
38864 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38865 | wxGBPosition result; | |
38866 | PyObject * obj0 = 0 ; | |
38867 | char *kwnames[] = { | |
38868 | (char *) "self", NULL | |
38869 | }; | |
38870 | ||
38871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
38872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38874 | { | |
38875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38876 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38877 | ||
38878 | wxPyEndAllowThreads(__tstate); | |
38879 | if (PyErr_Occurred()) SWIG_fail; | |
38880 | } | |
38881 | { | |
38882 | wxGBPosition * resultptr; | |
38883 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38885 | } | |
38886 | return resultobj; | |
38887 | fail: | |
38888 | return NULL; | |
38889 | } | |
38890 | ||
38891 | ||
c32bde28 | 38892 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38893 | PyObject *resultobj; |
38894 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38895 | wxGBSpan result; | |
38896 | PyObject * obj0 = 0 ; | |
38897 | char *kwnames[] = { | |
38898 | (char *) "self", NULL | |
38899 | }; | |
38900 | ||
38901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38904 | { | |
38905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38906 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38907 | ||
38908 | wxPyEndAllowThreads(__tstate); | |
38909 | if (PyErr_Occurred()) SWIG_fail; | |
38910 | } | |
38911 | { | |
38912 | wxGBSpan * resultptr; | |
38913 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38914 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38915 | } | |
38916 | return resultobj; | |
38917 | fail: | |
38918 | return NULL; | |
38919 | } | |
38920 | ||
38921 | ||
c32bde28 | 38922 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38923 | PyObject *resultobj; |
38924 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38925 | wxGBPosition *arg2 = 0 ; | |
38926 | bool result; | |
38927 | wxGBPosition temp2 ; | |
38928 | PyObject * obj0 = 0 ; | |
38929 | PyObject * obj1 = 0 ; | |
38930 | char *kwnames[] = { | |
38931 | (char *) "self",(char *) "pos", NULL | |
38932 | }; | |
38933 | ||
38934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38937 | { | |
38938 | arg2 = &temp2; | |
38939 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38940 | } | |
38941 | { | |
38942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38943 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38944 | ||
38945 | wxPyEndAllowThreads(__tstate); | |
38946 | if (PyErr_Occurred()) SWIG_fail; | |
38947 | } | |
38948 | { | |
38949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38950 | } | |
38951 | return resultobj; | |
38952 | fail: | |
38953 | return NULL; | |
38954 | } | |
38955 | ||
38956 | ||
c32bde28 | 38957 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38958 | PyObject *resultobj; |
38959 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38960 | wxGBSpan *arg2 = 0 ; | |
38961 | bool result; | |
38962 | wxGBSpan temp2 ; | |
38963 | PyObject * obj0 = 0 ; | |
38964 | PyObject * obj1 = 0 ; | |
38965 | char *kwnames[] = { | |
38966 | (char *) "self",(char *) "span", NULL | |
38967 | }; | |
38968 | ||
38969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38972 | { | |
38973 | arg2 = &temp2; | |
38974 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38975 | } | |
38976 | { | |
38977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38978 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38979 | ||
38980 | wxPyEndAllowThreads(__tstate); | |
38981 | if (PyErr_Occurred()) SWIG_fail; | |
38982 | } | |
38983 | { | |
38984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38985 | } | |
38986 | return resultobj; | |
38987 | fail: | |
38988 | return NULL; | |
38989 | } | |
38990 | ||
38991 | ||
c32bde28 | 38992 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38993 | PyObject *resultobj; |
38994 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38995 | wxGBSizerItem *arg2 = 0 ; | |
38996 | bool result; | |
38997 | PyObject * obj0 = 0 ; | |
38998 | PyObject * obj1 = 0 ; | |
248ed943 RD |
38999 | char *kwnames[] = { |
39000 | (char *) "self",(char *) "other", NULL | |
39001 | }; | |
d55e5bfc | 39002 | |
248ed943 | 39003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
39004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
39005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39007 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
39008 | SWIG_fail; | |
39009 | if (arg2 == NULL) { | |
39010 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
39011 | SWIG_fail; | |
39012 | } | |
39013 | { | |
39014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39015 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
39016 | ||
39017 | wxPyEndAllowThreads(__tstate); | |
39018 | if (PyErr_Occurred()) SWIG_fail; | |
39019 | } | |
39020 | { | |
39021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39022 | } | |
39023 | return resultobj; | |
39024 | fail: | |
39025 | return NULL; | |
39026 | } | |
39027 | ||
39028 | ||
c32bde28 | 39029 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39030 | PyObject *resultobj; |
39031 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
39032 | wxGBPosition *arg2 = 0 ; | |
39033 | wxGBSpan *arg3 = 0 ; | |
39034 | bool result; | |
39035 | wxGBPosition temp2 ; | |
39036 | wxGBSpan temp3 ; | |
39037 | PyObject * obj0 = 0 ; | |
39038 | PyObject * obj1 = 0 ; | |
39039 | PyObject * obj2 = 0 ; | |
248ed943 RD |
39040 | char *kwnames[] = { |
39041 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
39042 | }; | |
d55e5bfc | 39043 | |
248ed943 | 39044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
39045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
39046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39047 | { | |
39048 | arg2 = &temp2; | |
39049 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39050 | } | |
39051 | { | |
39052 | arg3 = &temp3; | |
39053 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39054 | } | |
39055 | { | |
39056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39057 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
39058 | ||
39059 | wxPyEndAllowThreads(__tstate); | |
39060 | if (PyErr_Occurred()) SWIG_fail; | |
39061 | } | |
39062 | { | |
39063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39064 | } | |
39065 | return resultobj; | |
39066 | fail: | |
39067 | return NULL; | |
39068 | } | |
39069 | ||
39070 | ||
c32bde28 | 39071 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39072 | PyObject *resultobj; |
39073 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 39074 | wxGBPosition result; |
d55e5bfc | 39075 | PyObject * obj0 = 0 ; |
d55e5bfc | 39076 | char *kwnames[] = { |
248ed943 | 39077 | (char *) "self", NULL |
d55e5bfc RD |
39078 | }; |
39079 | ||
248ed943 | 39080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
39081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
39082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
39083 | { |
39084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 39085 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
39086 | |
39087 | wxPyEndAllowThreads(__tstate); | |
39088 | if (PyErr_Occurred()) SWIG_fail; | |
39089 | } | |
248ed943 RD |
39090 | { |
39091 | wxGBPosition * resultptr; | |
39092 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39094 | } | |
d55e5bfc RD |
39095 | return resultobj; |
39096 | fail: | |
39097 | return NULL; | |
39098 | } | |
39099 | ||
39100 | ||
c32bde28 | 39101 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39102 | PyObject *resultobj; |
39103 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
39104 | wxGridBagSizer *result; | |
39105 | PyObject * obj0 = 0 ; | |
39106 | char *kwnames[] = { | |
39107 | (char *) "self", NULL | |
39108 | }; | |
39109 | ||
39110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
39111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
39112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39113 | { | |
39114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39115 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
39116 | ||
39117 | wxPyEndAllowThreads(__tstate); | |
39118 | if (PyErr_Occurred()) SWIG_fail; | |
39119 | } | |
39120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
39121 | return resultobj; | |
39122 | fail: | |
39123 | return NULL; | |
39124 | } | |
39125 | ||
39126 | ||
c32bde28 | 39127 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39128 | PyObject *resultobj; |
39129 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
39130 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
39131 | PyObject * obj0 = 0 ; | |
39132 | PyObject * obj1 = 0 ; | |
39133 | char *kwnames[] = { | |
39134 | (char *) "self",(char *) "sizer", NULL | |
39135 | }; | |
39136 | ||
39137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
39138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
39139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39140 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
39141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39142 | { | |
39143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39144 | (arg1)->SetGBSizer(arg2); | |
39145 | ||
39146 | wxPyEndAllowThreads(__tstate); | |
39147 | if (PyErr_Occurred()) SWIG_fail; | |
39148 | } | |
39149 | Py_INCREF(Py_None); resultobj = Py_None; | |
39150 | return resultobj; | |
39151 | fail: | |
39152 | return NULL; | |
39153 | } | |
39154 | ||
39155 | ||
c32bde28 | 39156 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39157 | PyObject *obj; |
39158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39159 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
39160 | Py_INCREF(obj); | |
39161 | return Py_BuildValue((char *)""); | |
39162 | } | |
c32bde28 | 39163 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39164 | PyObject *resultobj; |
39165 | int arg1 = (int) 0 ; | |
39166 | int arg2 = (int) 0 ; | |
39167 | wxGridBagSizer *result; | |
39168 | PyObject * obj0 = 0 ; | |
39169 | PyObject * obj1 = 0 ; | |
39170 | char *kwnames[] = { | |
39171 | (char *) "vgap",(char *) "hgap", NULL | |
39172 | }; | |
39173 | ||
39174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
39175 | if (obj0) { | |
c32bde28 | 39176 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
39177 | if (PyErr_Occurred()) SWIG_fail; |
39178 | } | |
39179 | if (obj1) { | |
c32bde28 | 39180 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39181 | if (PyErr_Occurred()) SWIG_fail; |
39182 | } | |
39183 | { | |
39184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39185 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
39186 | ||
39187 | wxPyEndAllowThreads(__tstate); | |
39188 | if (PyErr_Occurred()) SWIG_fail; | |
39189 | } | |
39190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
39191 | return resultobj; | |
39192 | fail: | |
39193 | return NULL; | |
39194 | } | |
39195 | ||
39196 | ||
c32bde28 | 39197 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39198 | PyObject *resultobj; |
39199 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39200 | PyObject *arg2 = (PyObject *) 0 ; | |
39201 | wxGBPosition *arg3 = 0 ; | |
39202 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
39203 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
39204 | int arg5 = (int) 0 ; | |
39205 | int arg6 = (int) 0 ; | |
39206 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 39207 | wxGBSizerItem *result; |
d55e5bfc RD |
39208 | wxGBPosition temp3 ; |
39209 | wxGBSpan temp4 ; | |
39210 | PyObject * obj0 = 0 ; | |
39211 | PyObject * obj1 = 0 ; | |
39212 | PyObject * obj2 = 0 ; | |
39213 | PyObject * obj3 = 0 ; | |
39214 | PyObject * obj4 = 0 ; | |
39215 | PyObject * obj5 = 0 ; | |
39216 | PyObject * obj6 = 0 ; | |
39217 | char *kwnames[] = { | |
39218 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
39219 | }; | |
39220 | ||
39221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
39222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39224 | arg2 = obj1; | |
39225 | { | |
39226 | arg3 = &temp3; | |
39227 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39228 | } | |
39229 | if (obj3) { | |
39230 | { | |
39231 | arg4 = &temp4; | |
39232 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
39233 | } | |
39234 | } | |
39235 | if (obj4) { | |
c32bde28 | 39236 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
39237 | if (PyErr_Occurred()) SWIG_fail; |
39238 | } | |
39239 | if (obj5) { | |
c32bde28 | 39240 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
39241 | if (PyErr_Occurred()) SWIG_fail; |
39242 | } | |
39243 | if (obj6) { | |
39244 | arg7 = obj6; | |
39245 | } | |
39246 | { | |
39247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39248 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
39249 | |
39250 | wxPyEndAllowThreads(__tstate); | |
39251 | if (PyErr_Occurred()) SWIG_fail; | |
39252 | } | |
c1cb24a4 | 39253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
39254 | return resultobj; |
39255 | fail: | |
39256 | return NULL; | |
39257 | } | |
39258 | ||
39259 | ||
c32bde28 | 39260 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39261 | PyObject *resultobj; |
39262 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39263 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
c1cb24a4 | 39264 | wxGBSizerItem *result; |
d55e5bfc RD |
39265 | PyObject * obj0 = 0 ; |
39266 | PyObject * obj1 = 0 ; | |
39267 | char *kwnames[] = { | |
39268 | (char *) "self",(char *) "item", NULL | |
39269 | }; | |
39270 | ||
39271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
39272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39274 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39276 | { | |
39277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39278 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
39279 | |
39280 | wxPyEndAllowThreads(__tstate); | |
39281 | if (PyErr_Occurred()) SWIG_fail; | |
39282 | } | |
c1cb24a4 | 39283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
39284 | return resultobj; |
39285 | fail: | |
39286 | return NULL; | |
39287 | } | |
39288 | ||
39289 | ||
84f85550 RD |
39290 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
39291 | PyObject *resultobj; | |
39292 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39293 | int arg2 ; | |
39294 | int arg3 ; | |
39295 | wxSize result; | |
39296 | PyObject * obj0 = 0 ; | |
39297 | PyObject * obj1 = 0 ; | |
39298 | PyObject * obj2 = 0 ; | |
39299 | char *kwnames[] = { | |
39300 | (char *) "self",(char *) "row",(char *) "col", NULL | |
39301 | }; | |
39302 | ||
39303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39306 | arg2 = (int)SWIG_As_int(obj1); | |
39307 | if (PyErr_Occurred()) SWIG_fail; | |
39308 | arg3 = (int)SWIG_As_int(obj2); | |
39309 | if (PyErr_Occurred()) SWIG_fail; | |
39310 | { | |
39311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39312 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
39313 | ||
39314 | wxPyEndAllowThreads(__tstate); | |
39315 | if (PyErr_Occurred()) SWIG_fail; | |
39316 | } | |
39317 | { | |
39318 | wxSize * resultptr; | |
39319 | resultptr = new wxSize((wxSize &) result); | |
39320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39321 | } | |
39322 | return resultobj; | |
39323 | fail: | |
39324 | return NULL; | |
39325 | } | |
39326 | ||
39327 | ||
c32bde28 | 39328 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39329 | PyObject *resultobj; |
39330 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39331 | wxSize result; | |
39332 | PyObject * obj0 = 0 ; | |
39333 | char *kwnames[] = { | |
39334 | (char *) "self", NULL | |
39335 | }; | |
39336 | ||
39337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
39338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39340 | { | |
39341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39342 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
39343 | ||
39344 | wxPyEndAllowThreads(__tstate); | |
39345 | if (PyErr_Occurred()) SWIG_fail; | |
39346 | } | |
39347 | { | |
39348 | wxSize * resultptr; | |
39349 | resultptr = new wxSize((wxSize &) result); | |
39350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39351 | } | |
39352 | return resultobj; | |
39353 | fail: | |
39354 | return NULL; | |
39355 | } | |
39356 | ||
39357 | ||
c32bde28 | 39358 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39359 | PyObject *resultobj; |
39360 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39361 | wxSize *arg2 = 0 ; | |
39362 | wxSize temp2 ; | |
39363 | PyObject * obj0 = 0 ; | |
39364 | PyObject * obj1 = 0 ; | |
39365 | char *kwnames[] = { | |
39366 | (char *) "self",(char *) "sz", NULL | |
39367 | }; | |
39368 | ||
39369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
39370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39372 | { | |
39373 | arg2 = &temp2; | |
39374 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39375 | } | |
39376 | { | |
39377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39378 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
39379 | ||
39380 | wxPyEndAllowThreads(__tstate); | |
39381 | if (PyErr_Occurred()) SWIG_fail; | |
39382 | } | |
39383 | Py_INCREF(Py_None); resultobj = Py_None; | |
39384 | return resultobj; | |
39385 | fail: | |
39386 | return NULL; | |
39387 | } | |
39388 | ||
39389 | ||
c32bde28 | 39390 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39391 | PyObject *resultobj; |
39392 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39393 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39394 | wxGBPosition result; | |
39395 | PyObject * obj0 = 0 ; | |
39396 | PyObject * obj1 = 0 ; | |
39397 | ||
39398 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39403 | { | |
39404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39405 | result = (arg1)->GetItemPosition(arg2); | |
39406 | ||
39407 | wxPyEndAllowThreads(__tstate); | |
39408 | if (PyErr_Occurred()) SWIG_fail; | |
39409 | } | |
39410 | { | |
39411 | wxGBPosition * resultptr; | |
39412 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39414 | } | |
39415 | return resultobj; | |
39416 | fail: | |
39417 | return NULL; | |
39418 | } | |
39419 | ||
39420 | ||
c32bde28 | 39421 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39422 | PyObject *resultobj; |
39423 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39424 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39425 | wxGBPosition result; | |
39426 | PyObject * obj0 = 0 ; | |
39427 | PyObject * obj1 = 0 ; | |
39428 | ||
39429 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39434 | { | |
39435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39436 | result = (arg1)->GetItemPosition(arg2); | |
39437 | ||
39438 | wxPyEndAllowThreads(__tstate); | |
39439 | if (PyErr_Occurred()) SWIG_fail; | |
39440 | } | |
39441 | { | |
39442 | wxGBPosition * resultptr; | |
39443 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39445 | } | |
39446 | return resultobj; | |
39447 | fail: | |
39448 | return NULL; | |
39449 | } | |
39450 | ||
39451 | ||
c32bde28 | 39452 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39453 | PyObject *resultobj; |
39454 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39455 | size_t arg2 ; | |
39456 | wxGBPosition result; | |
39457 | PyObject * obj0 = 0 ; | |
39458 | PyObject * obj1 = 0 ; | |
39459 | ||
39460 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39463 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39464 | if (PyErr_Occurred()) SWIG_fail; |
39465 | { | |
39466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39467 | result = (arg1)->GetItemPosition(arg2); | |
39468 | ||
39469 | wxPyEndAllowThreads(__tstate); | |
39470 | if (PyErr_Occurred()) SWIG_fail; | |
39471 | } | |
39472 | { | |
39473 | wxGBPosition * resultptr; | |
39474 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39475 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39476 | } | |
39477 | return resultobj; | |
39478 | fail: | |
39479 | return NULL; | |
39480 | } | |
39481 | ||
39482 | ||
39483 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
39484 | int argc; | |
39485 | PyObject *argv[3]; | |
39486 | int ii; | |
39487 | ||
39488 | argc = PyObject_Length(args); | |
39489 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39490 | argv[ii] = PyTuple_GetItem(args,ii); | |
39491 | } | |
39492 | if (argc == 2) { | |
39493 | int _v; | |
39494 | { | |
39495 | void *ptr; | |
39496 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39497 | _v = 0; | |
39498 | PyErr_Clear(); | |
39499 | } else { | |
39500 | _v = 1; | |
39501 | } | |
39502 | } | |
39503 | if (_v) { | |
39504 | { | |
39505 | void *ptr; | |
39506 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39507 | _v = 0; | |
39508 | PyErr_Clear(); | |
39509 | } else { | |
39510 | _v = 1; | |
39511 | } | |
39512 | } | |
39513 | if (_v) { | |
39514 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
39515 | } | |
39516 | } | |
39517 | } | |
39518 | if (argc == 2) { | |
39519 | int _v; | |
39520 | { | |
39521 | void *ptr; | |
39522 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39523 | _v = 0; | |
39524 | PyErr_Clear(); | |
39525 | } else { | |
39526 | _v = 1; | |
39527 | } | |
39528 | } | |
39529 | if (_v) { | |
39530 | { | |
39531 | void *ptr; | |
39532 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39533 | _v = 0; | |
39534 | PyErr_Clear(); | |
39535 | } else { | |
39536 | _v = 1; | |
39537 | } | |
39538 | } | |
39539 | if (_v) { | |
39540 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
39541 | } | |
39542 | } | |
39543 | } | |
39544 | if (argc == 2) { | |
39545 | int _v; | |
39546 | { | |
39547 | void *ptr; | |
39548 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39549 | _v = 0; | |
39550 | PyErr_Clear(); | |
39551 | } else { | |
39552 | _v = 1; | |
39553 | } | |
39554 | } | |
39555 | if (_v) { | |
c32bde28 | 39556 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39557 | if (_v) { |
39558 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
39559 | } | |
39560 | } | |
39561 | } | |
39562 | ||
39563 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
39564 | return NULL; | |
39565 | } | |
39566 | ||
39567 | ||
c32bde28 | 39568 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39569 | PyObject *resultobj; |
39570 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39571 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39572 | wxGBPosition *arg3 = 0 ; | |
39573 | bool result; | |
39574 | wxGBPosition temp3 ; | |
39575 | PyObject * obj0 = 0 ; | |
39576 | PyObject * obj1 = 0 ; | |
39577 | PyObject * obj2 = 0 ; | |
39578 | ||
39579 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39584 | { | |
39585 | arg3 = &temp3; | |
39586 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39587 | } | |
39588 | { | |
39589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39590 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39591 | ||
39592 | wxPyEndAllowThreads(__tstate); | |
39593 | if (PyErr_Occurred()) SWIG_fail; | |
39594 | } | |
39595 | { | |
39596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39597 | } | |
39598 | return resultobj; | |
39599 | fail: | |
39600 | return NULL; | |
39601 | } | |
39602 | ||
39603 | ||
c32bde28 | 39604 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39605 | PyObject *resultobj; |
39606 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39607 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39608 | wxGBPosition *arg3 = 0 ; | |
39609 | bool result; | |
39610 | wxGBPosition temp3 ; | |
39611 | PyObject * obj0 = 0 ; | |
39612 | PyObject * obj1 = 0 ; | |
39613 | PyObject * obj2 = 0 ; | |
39614 | ||
39615 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39620 | { | |
39621 | arg3 = &temp3; | |
39622 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39623 | } | |
39624 | { | |
39625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39626 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39627 | ||
39628 | wxPyEndAllowThreads(__tstate); | |
39629 | if (PyErr_Occurred()) SWIG_fail; | |
39630 | } | |
39631 | { | |
39632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39633 | } | |
39634 | return resultobj; | |
39635 | fail: | |
39636 | return NULL; | |
39637 | } | |
39638 | ||
39639 | ||
c32bde28 | 39640 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39641 | PyObject *resultobj; |
39642 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39643 | size_t arg2 ; | |
39644 | wxGBPosition *arg3 = 0 ; | |
39645 | bool result; | |
39646 | wxGBPosition temp3 ; | |
39647 | PyObject * obj0 = 0 ; | |
39648 | PyObject * obj1 = 0 ; | |
39649 | PyObject * obj2 = 0 ; | |
39650 | ||
39651 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39654 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39655 | if (PyErr_Occurred()) SWIG_fail; |
39656 | { | |
39657 | arg3 = &temp3; | |
39658 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39659 | } | |
39660 | { | |
39661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39662 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39663 | ||
39664 | wxPyEndAllowThreads(__tstate); | |
39665 | if (PyErr_Occurred()) SWIG_fail; | |
39666 | } | |
39667 | { | |
39668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39669 | } | |
39670 | return resultobj; | |
39671 | fail: | |
39672 | return NULL; | |
39673 | } | |
39674 | ||
39675 | ||
39676 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
39677 | int argc; | |
39678 | PyObject *argv[4]; | |
39679 | int ii; | |
39680 | ||
39681 | argc = PyObject_Length(args); | |
39682 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39683 | argv[ii] = PyTuple_GetItem(args,ii); | |
39684 | } | |
39685 | if (argc == 3) { | |
39686 | int _v; | |
39687 | { | |
39688 | void *ptr; | |
39689 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39690 | _v = 0; | |
39691 | PyErr_Clear(); | |
39692 | } else { | |
39693 | _v = 1; | |
39694 | } | |
39695 | } | |
39696 | if (_v) { | |
39697 | { | |
39698 | void *ptr; | |
39699 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39700 | _v = 0; | |
39701 | PyErr_Clear(); | |
39702 | } else { | |
39703 | _v = 1; | |
39704 | } | |
39705 | } | |
39706 | if (_v) { | |
39707 | { | |
39708 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39709 | } | |
39710 | if (_v) { | |
39711 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
39712 | } | |
39713 | } | |
39714 | } | |
39715 | } | |
39716 | if (argc == 3) { | |
39717 | int _v; | |
39718 | { | |
39719 | void *ptr; | |
39720 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39721 | _v = 0; | |
39722 | PyErr_Clear(); | |
39723 | } else { | |
39724 | _v = 1; | |
39725 | } | |
39726 | } | |
39727 | if (_v) { | |
39728 | { | |
39729 | void *ptr; | |
39730 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39731 | _v = 0; | |
39732 | PyErr_Clear(); | |
39733 | } else { | |
39734 | _v = 1; | |
39735 | } | |
39736 | } | |
39737 | if (_v) { | |
39738 | { | |
39739 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39740 | } | |
39741 | if (_v) { | |
39742 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
39743 | } | |
39744 | } | |
39745 | } | |
39746 | } | |
39747 | if (argc == 3) { | |
39748 | int _v; | |
39749 | { | |
39750 | void *ptr; | |
39751 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39752 | _v = 0; | |
39753 | PyErr_Clear(); | |
39754 | } else { | |
39755 | _v = 1; | |
39756 | } | |
39757 | } | |
39758 | if (_v) { | |
c32bde28 | 39759 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39760 | if (_v) { |
39761 | { | |
39762 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39763 | } | |
39764 | if (_v) { | |
39765 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
39766 | } | |
39767 | } | |
39768 | } | |
39769 | } | |
39770 | ||
39771 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
39772 | return NULL; | |
39773 | } | |
39774 | ||
39775 | ||
c32bde28 | 39776 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39777 | PyObject *resultobj; |
39778 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39779 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39780 | wxGBSpan result; | |
39781 | PyObject * obj0 = 0 ; | |
39782 | PyObject * obj1 = 0 ; | |
39783 | ||
39784 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39789 | { | |
39790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39791 | result = (arg1)->GetItemSpan(arg2); | |
39792 | ||
39793 | wxPyEndAllowThreads(__tstate); | |
39794 | if (PyErr_Occurred()) SWIG_fail; | |
39795 | } | |
39796 | { | |
39797 | wxGBSpan * resultptr; | |
39798 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39799 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39800 | } | |
39801 | return resultobj; | |
39802 | fail: | |
39803 | return NULL; | |
39804 | } | |
39805 | ||
39806 | ||
c32bde28 | 39807 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39808 | PyObject *resultobj; |
39809 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39810 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39811 | wxGBSpan result; | |
39812 | PyObject * obj0 = 0 ; | |
39813 | PyObject * obj1 = 0 ; | |
39814 | ||
39815 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39820 | { | |
39821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39822 | result = (arg1)->GetItemSpan(arg2); | |
39823 | ||
39824 | wxPyEndAllowThreads(__tstate); | |
39825 | if (PyErr_Occurred()) SWIG_fail; | |
39826 | } | |
39827 | { | |
39828 | wxGBSpan * resultptr; | |
39829 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39831 | } | |
39832 | return resultobj; | |
39833 | fail: | |
39834 | return NULL; | |
39835 | } | |
39836 | ||
39837 | ||
c32bde28 | 39838 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39839 | PyObject *resultobj; |
39840 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39841 | size_t arg2 ; | |
39842 | wxGBSpan result; | |
39843 | PyObject * obj0 = 0 ; | |
39844 | PyObject * obj1 = 0 ; | |
39845 | ||
39846 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39849 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39850 | if (PyErr_Occurred()) SWIG_fail; |
39851 | { | |
39852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39853 | result = (arg1)->GetItemSpan(arg2); | |
39854 | ||
39855 | wxPyEndAllowThreads(__tstate); | |
39856 | if (PyErr_Occurred()) SWIG_fail; | |
39857 | } | |
39858 | { | |
39859 | wxGBSpan * resultptr; | |
39860 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39861 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39862 | } | |
39863 | return resultobj; | |
39864 | fail: | |
39865 | return NULL; | |
39866 | } | |
39867 | ||
39868 | ||
39869 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39870 | int argc; | |
39871 | PyObject *argv[3]; | |
39872 | int ii; | |
39873 | ||
39874 | argc = PyObject_Length(args); | |
39875 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39876 | argv[ii] = PyTuple_GetItem(args,ii); | |
39877 | } | |
39878 | if (argc == 2) { | |
39879 | int _v; | |
39880 | { | |
39881 | void *ptr; | |
39882 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39883 | _v = 0; | |
39884 | PyErr_Clear(); | |
39885 | } else { | |
39886 | _v = 1; | |
39887 | } | |
39888 | } | |
39889 | if (_v) { | |
39890 | { | |
39891 | void *ptr; | |
39892 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39893 | _v = 0; | |
39894 | PyErr_Clear(); | |
39895 | } else { | |
39896 | _v = 1; | |
39897 | } | |
39898 | } | |
39899 | if (_v) { | |
39900 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39901 | } | |
39902 | } | |
39903 | } | |
39904 | if (argc == 2) { | |
39905 | int _v; | |
39906 | { | |
39907 | void *ptr; | |
39908 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39909 | _v = 0; | |
39910 | PyErr_Clear(); | |
39911 | } else { | |
39912 | _v = 1; | |
39913 | } | |
39914 | } | |
39915 | if (_v) { | |
39916 | { | |
39917 | void *ptr; | |
39918 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39919 | _v = 0; | |
39920 | PyErr_Clear(); | |
39921 | } else { | |
39922 | _v = 1; | |
39923 | } | |
39924 | } | |
39925 | if (_v) { | |
39926 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39927 | } | |
39928 | } | |
39929 | } | |
39930 | if (argc == 2) { | |
39931 | int _v; | |
39932 | { | |
39933 | void *ptr; | |
39934 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39935 | _v = 0; | |
39936 | PyErr_Clear(); | |
39937 | } else { | |
39938 | _v = 1; | |
39939 | } | |
39940 | } | |
39941 | if (_v) { | |
c32bde28 | 39942 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39943 | if (_v) { |
39944 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39945 | } | |
39946 | } | |
39947 | } | |
39948 | ||
39949 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39950 | return NULL; | |
39951 | } | |
39952 | ||
39953 | ||
c32bde28 | 39954 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39955 | PyObject *resultobj; |
39956 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39958 | wxGBSpan *arg3 = 0 ; | |
39959 | bool result; | |
39960 | wxGBSpan temp3 ; | |
39961 | PyObject * obj0 = 0 ; | |
39962 | PyObject * obj1 = 0 ; | |
39963 | PyObject * obj2 = 0 ; | |
39964 | ||
39965 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39968 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39970 | { | |
39971 | arg3 = &temp3; | |
39972 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39973 | } | |
39974 | { | |
39975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39976 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39977 | ||
39978 | wxPyEndAllowThreads(__tstate); | |
39979 | if (PyErr_Occurred()) SWIG_fail; | |
39980 | } | |
39981 | { | |
39982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39983 | } | |
39984 | return resultobj; | |
39985 | fail: | |
39986 | return NULL; | |
39987 | } | |
39988 | ||
39989 | ||
c32bde28 | 39990 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39991 | PyObject *resultobj; |
39992 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39993 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39994 | wxGBSpan *arg3 = 0 ; | |
39995 | bool result; | |
39996 | wxGBSpan temp3 ; | |
39997 | PyObject * obj0 = 0 ; | |
39998 | PyObject * obj1 = 0 ; | |
39999 | PyObject * obj2 = 0 ; | |
40000 | ||
40001 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
40002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40004 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
40005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40006 | { | |
40007 | arg3 = &temp3; | |
40008 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
40009 | } | |
40010 | { | |
40011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40012 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
40013 | ||
40014 | wxPyEndAllowThreads(__tstate); | |
40015 | if (PyErr_Occurred()) SWIG_fail; | |
40016 | } | |
40017 | { | |
40018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40019 | } | |
40020 | return resultobj; | |
40021 | fail: | |
40022 | return NULL; | |
40023 | } | |
40024 | ||
40025 | ||
c32bde28 | 40026 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
40027 | PyObject *resultobj; |
40028 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40029 | size_t arg2 ; | |
40030 | wxGBSpan *arg3 = 0 ; | |
40031 | bool result; | |
40032 | wxGBSpan temp3 ; | |
40033 | PyObject * obj0 = 0 ; | |
40034 | PyObject * obj1 = 0 ; | |
40035 | PyObject * obj2 = 0 ; | |
40036 | ||
40037 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
40038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40040 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
40041 | if (PyErr_Occurred()) SWIG_fail; |
40042 | { | |
40043 | arg3 = &temp3; | |
40044 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
40045 | } | |
40046 | { | |
40047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40048 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
40049 | ||
40050 | wxPyEndAllowThreads(__tstate); | |
40051 | if (PyErr_Occurred()) SWIG_fail; | |
40052 | } | |
40053 | { | |
40054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40055 | } | |
40056 | return resultobj; | |
40057 | fail: | |
40058 | return NULL; | |
40059 | } | |
40060 | ||
40061 | ||
40062 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
40063 | int argc; | |
40064 | PyObject *argv[4]; | |
40065 | int ii; | |
40066 | ||
40067 | argc = PyObject_Length(args); | |
40068 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
40069 | argv[ii] = PyTuple_GetItem(args,ii); | |
40070 | } | |
40071 | if (argc == 3) { | |
40072 | int _v; | |
40073 | { | |
40074 | void *ptr; | |
40075 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40076 | _v = 0; | |
40077 | PyErr_Clear(); | |
40078 | } else { | |
40079 | _v = 1; | |
40080 | } | |
40081 | } | |
40082 | if (_v) { | |
40083 | { | |
40084 | void *ptr; | |
40085 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
40086 | _v = 0; | |
40087 | PyErr_Clear(); | |
40088 | } else { | |
40089 | _v = 1; | |
40090 | } | |
40091 | } | |
40092 | if (_v) { | |
40093 | { | |
40094 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
40095 | } | |
40096 | if (_v) { | |
40097 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
40098 | } | |
40099 | } | |
40100 | } | |
40101 | } | |
40102 | if (argc == 3) { | |
40103 | int _v; | |
40104 | { | |
40105 | void *ptr; | |
40106 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40107 | _v = 0; | |
40108 | PyErr_Clear(); | |
40109 | } else { | |
40110 | _v = 1; | |
40111 | } | |
40112 | } | |
40113 | if (_v) { | |
40114 | { | |
40115 | void *ptr; | |
40116 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
40117 | _v = 0; | |
40118 | PyErr_Clear(); | |
40119 | } else { | |
40120 | _v = 1; | |
40121 | } | |
40122 | } | |
40123 | if (_v) { | |
40124 | { | |
40125 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
40126 | } | |
40127 | if (_v) { | |
40128 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
40129 | } | |
40130 | } | |
40131 | } | |
40132 | } | |
40133 | if (argc == 3) { | |
40134 | int _v; | |
40135 | { | |
40136 | void *ptr; | |
40137 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40138 | _v = 0; | |
40139 | PyErr_Clear(); | |
40140 | } else { | |
40141 | _v = 1; | |
40142 | } | |
40143 | } | |
40144 | if (_v) { | |
c32bde28 | 40145 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
40146 | if (_v) { |
40147 | { | |
40148 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
40149 | } | |
40150 | if (_v) { | |
40151 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
40152 | } | |
40153 | } | |
40154 | } | |
40155 | } | |
40156 | ||
40157 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
40158 | return NULL; | |
40159 | } | |
40160 | ||
40161 | ||
c32bde28 | 40162 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
40163 | PyObject *resultobj; |
40164 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40165 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40166 | wxGBSizerItem *result; | |
40167 | PyObject * obj0 = 0 ; | |
40168 | PyObject * obj1 = 0 ; | |
40169 | ||
40170 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
40171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40173 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40175 | { | |
40176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40177 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
40178 | ||
40179 | wxPyEndAllowThreads(__tstate); | |
40180 | if (PyErr_Occurred()) SWIG_fail; | |
40181 | } | |
40182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40183 | return resultobj; | |
40184 | fail: | |
40185 | return NULL; | |
40186 | } | |
40187 | ||
40188 | ||
c32bde28 | 40189 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
40190 | PyObject *resultobj; |
40191 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40192 | wxSizer *arg2 = (wxSizer *) 0 ; | |
40193 | wxGBSizerItem *result; | |
40194 | PyObject * obj0 = 0 ; | |
40195 | PyObject * obj1 = 0 ; | |
40196 | ||
40197 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
40198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
40201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40202 | { | |
40203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40204 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
40205 | ||
40206 | wxPyEndAllowThreads(__tstate); | |
40207 | if (PyErr_Occurred()) SWIG_fail; | |
40208 | } | |
40209 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40210 | return resultobj; | |
40211 | fail: | |
40212 | return NULL; | |
40213 | } | |
40214 | ||
40215 | ||
40216 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
40217 | int argc; | |
40218 | PyObject *argv[3]; | |
40219 | int ii; | |
40220 | ||
40221 | argc = PyObject_Length(args); | |
40222 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
40223 | argv[ii] = PyTuple_GetItem(args,ii); | |
40224 | } | |
40225 | if (argc == 2) { | |
40226 | int _v; | |
40227 | { | |
40228 | void *ptr; | |
40229 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40230 | _v = 0; | |
40231 | PyErr_Clear(); | |
40232 | } else { | |
40233 | _v = 1; | |
40234 | } | |
40235 | } | |
40236 | if (_v) { | |
40237 | { | |
40238 | void *ptr; | |
40239 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
40240 | _v = 0; | |
40241 | PyErr_Clear(); | |
40242 | } else { | |
40243 | _v = 1; | |
40244 | } | |
40245 | } | |
40246 | if (_v) { | |
40247 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
40248 | } | |
40249 | } | |
40250 | } | |
40251 | if (argc == 2) { | |
40252 | int _v; | |
40253 | { | |
40254 | void *ptr; | |
40255 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40256 | _v = 0; | |
40257 | PyErr_Clear(); | |
40258 | } else { | |
40259 | _v = 1; | |
40260 | } | |
40261 | } | |
40262 | if (_v) { | |
40263 | { | |
40264 | void *ptr; | |
40265 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
40266 | _v = 0; | |
40267 | PyErr_Clear(); | |
40268 | } else { | |
40269 | _v = 1; | |
40270 | } | |
40271 | } | |
40272 | if (_v) { | |
40273 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
40274 | } | |
40275 | } | |
40276 | } | |
40277 | ||
40278 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
40279 | return NULL; | |
40280 | } | |
40281 | ||
40282 | ||
c32bde28 | 40283 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40284 | PyObject *resultobj; |
40285 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40286 | wxGBPosition *arg2 = 0 ; | |
40287 | wxGBSizerItem *result; | |
40288 | wxGBPosition temp2 ; | |
40289 | PyObject * obj0 = 0 ; | |
40290 | PyObject * obj1 = 0 ; | |
40291 | char *kwnames[] = { | |
40292 | (char *) "self",(char *) "pos", NULL | |
40293 | }; | |
40294 | ||
40295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
40296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40298 | { | |
40299 | arg2 = &temp2; | |
40300 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40301 | } | |
40302 | { | |
40303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40304 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
40305 | ||
40306 | wxPyEndAllowThreads(__tstate); | |
40307 | if (PyErr_Occurred()) SWIG_fail; | |
40308 | } | |
40309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40310 | return resultobj; | |
40311 | fail: | |
40312 | return NULL; | |
40313 | } | |
40314 | ||
40315 | ||
c32bde28 | 40316 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40317 | PyObject *resultobj; |
40318 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40319 | wxPoint *arg2 = 0 ; | |
40320 | wxGBSizerItem *result; | |
40321 | wxPoint temp2 ; | |
40322 | PyObject * obj0 = 0 ; | |
40323 | PyObject * obj1 = 0 ; | |
40324 | char *kwnames[] = { | |
40325 | (char *) "self",(char *) "pt", NULL | |
40326 | }; | |
40327 | ||
40328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
40329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40331 | { | |
40332 | arg2 = &temp2; | |
40333 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40334 | } | |
40335 | { | |
40336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40337 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
40338 | ||
40339 | wxPyEndAllowThreads(__tstate); | |
40340 | if (PyErr_Occurred()) SWIG_fail; | |
40341 | } | |
40342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40343 | return resultobj; | |
40344 | fail: | |
40345 | return NULL; | |
40346 | } | |
40347 | ||
40348 | ||
c32bde28 | 40349 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40350 | PyObject *resultobj; |
40351 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40352 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
40353 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
40354 | bool result; | |
40355 | PyObject * obj0 = 0 ; | |
40356 | PyObject * obj1 = 0 ; | |
40357 | PyObject * obj2 = 0 ; | |
248ed943 RD |
40358 | char *kwnames[] = { |
40359 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
40360 | }; | |
d55e5bfc | 40361 | |
248ed943 | 40362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
40363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
40364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
40366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40367 | if (obj2) { | |
40368 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
40369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40370 | } | |
40371 | { | |
40372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40373 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
40374 | ||
40375 | wxPyEndAllowThreads(__tstate); | |
40376 | if (PyErr_Occurred()) SWIG_fail; | |
40377 | } | |
40378 | { | |
40379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40380 | } | |
40381 | return resultobj; | |
40382 | fail: | |
40383 | return NULL; | |
40384 | } | |
40385 | ||
40386 | ||
c32bde28 | 40387 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40388 | PyObject *resultobj; |
40389 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40390 | wxGBPosition *arg2 = 0 ; | |
40391 | wxGBSpan *arg3 = 0 ; | |
40392 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
40393 | bool result; | |
40394 | wxGBPosition temp2 ; | |
40395 | wxGBSpan temp3 ; | |
40396 | PyObject * obj0 = 0 ; | |
40397 | PyObject * obj1 = 0 ; | |
40398 | PyObject * obj2 = 0 ; | |
40399 | PyObject * obj3 = 0 ; | |
248ed943 RD |
40400 | char *kwnames[] = { |
40401 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
40402 | }; | |
d55e5bfc | 40403 | |
248ed943 | 40404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
40405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
40406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40407 | { | |
40408 | arg2 = &temp2; | |
40409 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40410 | } | |
40411 | { | |
40412 | arg3 = &temp3; | |
40413 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
40414 | } | |
40415 | if (obj3) { | |
40416 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
40417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40418 | } | |
40419 | { | |
40420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40421 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
40422 | ||
40423 | wxPyEndAllowThreads(__tstate); | |
40424 | if (PyErr_Occurred()) SWIG_fail; | |
40425 | } | |
40426 | { | |
40427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40428 | } | |
40429 | return resultobj; | |
40430 | fail: | |
40431 | return NULL; | |
40432 | } | |
40433 | ||
40434 | ||
c32bde28 | 40435 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40436 | PyObject *obj; |
40437 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40438 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
40439 | Py_INCREF(obj); | |
40440 | return Py_BuildValue((char *)""); | |
40441 | } | |
c32bde28 | 40442 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40443 | PyObject *resultobj; |
40444 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40445 | int arg2 ; | |
40446 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40447 | int arg4 ; | |
40448 | int arg5 = (int) 0 ; | |
40449 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
40450 | PyObject * obj0 = 0 ; | |
40451 | PyObject * obj1 = 0 ; | |
40452 | PyObject * obj2 = 0 ; | |
40453 | PyObject * obj3 = 0 ; | |
40454 | PyObject * obj4 = 0 ; | |
40455 | PyObject * obj5 = 0 ; | |
40456 | char *kwnames[] = { | |
40457 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
40458 | }; | |
40459 | ||
40460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
40461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40463 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40464 | if (PyErr_Occurred()) SWIG_fail; |
40465 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40467 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40468 | if (PyErr_Occurred()) SWIG_fail; |
40469 | if (obj4) { | |
c32bde28 | 40470 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
40471 | if (PyErr_Occurred()) SWIG_fail; |
40472 | } | |
40473 | if (obj5) { | |
c32bde28 | 40474 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
40475 | if (PyErr_Occurred()) SWIG_fail; |
40476 | } | |
40477 | { | |
40478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40479 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
40480 | ||
40481 | wxPyEndAllowThreads(__tstate); | |
40482 | if (PyErr_Occurred()) SWIG_fail; | |
40483 | } | |
40484 | Py_INCREF(Py_None); resultobj = Py_None; | |
40485 | return resultobj; | |
40486 | fail: | |
40487 | return NULL; | |
40488 | } | |
40489 | ||
40490 | ||
c32bde28 | 40491 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40492 | PyObject *resultobj; |
40493 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40494 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40495 | int arg3 = (int) 0 ; | |
40496 | PyObject * obj0 = 0 ; | |
40497 | PyObject * obj1 = 0 ; | |
40498 | PyObject * obj2 = 0 ; | |
40499 | char *kwnames[] = { | |
40500 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40501 | }; | |
40502 | ||
40503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40508 | if (obj2) { | |
c32bde28 | 40509 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40510 | if (PyErr_Occurred()) SWIG_fail; |
40511 | } | |
40512 | { | |
40513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40514 | (arg1)->LeftOf(arg2,arg3); | |
40515 | ||
40516 | wxPyEndAllowThreads(__tstate); | |
40517 | if (PyErr_Occurred()) SWIG_fail; | |
40518 | } | |
40519 | Py_INCREF(Py_None); resultobj = Py_None; | |
40520 | return resultobj; | |
40521 | fail: | |
40522 | return NULL; | |
40523 | } | |
40524 | ||
40525 | ||
c32bde28 | 40526 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40527 | PyObject *resultobj; |
40528 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40529 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40530 | int arg3 = (int) 0 ; | |
40531 | PyObject * obj0 = 0 ; | |
40532 | PyObject * obj1 = 0 ; | |
40533 | PyObject * obj2 = 0 ; | |
40534 | char *kwnames[] = { | |
40535 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40536 | }; | |
40537 | ||
40538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40543 | if (obj2) { | |
c32bde28 | 40544 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40545 | if (PyErr_Occurred()) SWIG_fail; |
40546 | } | |
40547 | { | |
40548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40549 | (arg1)->RightOf(arg2,arg3); | |
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_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40562 | PyObject *resultobj; |
40563 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40564 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40565 | int arg3 = (int) 0 ; | |
40566 | PyObject * obj0 = 0 ; | |
40567 | PyObject * obj1 = 0 ; | |
40568 | PyObject * obj2 = 0 ; | |
40569 | char *kwnames[] = { | |
40570 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40571 | }; | |
40572 | ||
40573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40576 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40578 | if (obj2) { | |
c32bde28 | 40579 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40580 | if (PyErr_Occurred()) SWIG_fail; |
40581 | } | |
40582 | { | |
40583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40584 | (arg1)->Above(arg2,arg3); | |
40585 | ||
40586 | wxPyEndAllowThreads(__tstate); | |
40587 | if (PyErr_Occurred()) SWIG_fail; | |
40588 | } | |
40589 | Py_INCREF(Py_None); resultobj = Py_None; | |
40590 | return resultobj; | |
40591 | fail: | |
40592 | return NULL; | |
40593 | } | |
40594 | ||
40595 | ||
c32bde28 | 40596 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40597 | PyObject *resultobj; |
40598 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40599 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40600 | int arg3 = (int) 0 ; | |
40601 | PyObject * obj0 = 0 ; | |
40602 | PyObject * obj1 = 0 ; | |
40603 | PyObject * obj2 = 0 ; | |
40604 | char *kwnames[] = { | |
40605 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40606 | }; | |
40607 | ||
40608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40613 | if (obj2) { | |
c32bde28 | 40614 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40615 | if (PyErr_Occurred()) SWIG_fail; |
40616 | } | |
40617 | { | |
40618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40619 | (arg1)->Below(arg2,arg3); | |
40620 | ||
40621 | wxPyEndAllowThreads(__tstate); | |
40622 | if (PyErr_Occurred()) SWIG_fail; | |
40623 | } | |
40624 | Py_INCREF(Py_None); resultobj = Py_None; | |
40625 | return resultobj; | |
40626 | fail: | |
40627 | return NULL; | |
40628 | } | |
40629 | ||
40630 | ||
c32bde28 | 40631 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40632 | PyObject *resultobj; |
40633 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40634 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40635 | int arg3 ; | |
40636 | int arg4 = (int) 0 ; | |
40637 | PyObject * obj0 = 0 ; | |
40638 | PyObject * obj1 = 0 ; | |
40639 | PyObject * obj2 = 0 ; | |
40640 | PyObject * obj3 = 0 ; | |
40641 | char *kwnames[] = { | |
40642 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
40643 | }; | |
40644 | ||
40645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40650 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40651 | if (PyErr_Occurred()) SWIG_fail; |
40652 | if (obj3) { | |
c32bde28 | 40653 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40654 | if (PyErr_Occurred()) SWIG_fail; |
40655 | } | |
40656 | { | |
40657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40658 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
40659 | ||
40660 | wxPyEndAllowThreads(__tstate); | |
40661 | if (PyErr_Occurred()) SWIG_fail; | |
40662 | } | |
40663 | Py_INCREF(Py_None); resultobj = Py_None; | |
40664 | return resultobj; | |
40665 | fail: | |
40666 | return NULL; | |
40667 | } | |
40668 | ||
40669 | ||
c32bde28 | 40670 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40671 | PyObject *resultobj; |
40672 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40673 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40674 | int arg3 ; | |
40675 | int arg4 ; | |
40676 | PyObject * obj0 = 0 ; | |
40677 | PyObject * obj1 = 0 ; | |
40678 | PyObject * obj2 = 0 ; | |
40679 | PyObject * obj3 = 0 ; | |
40680 | char *kwnames[] = { | |
40681 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
40682 | }; | |
40683 | ||
40684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40689 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 40690 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 40691 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40692 | if (PyErr_Occurred()) SWIG_fail; |
40693 | { | |
40694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40695 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
40696 | ||
40697 | wxPyEndAllowThreads(__tstate); | |
40698 | if (PyErr_Occurred()) SWIG_fail; | |
40699 | } | |
40700 | Py_INCREF(Py_None); resultobj = Py_None; | |
40701 | return resultobj; | |
40702 | fail: | |
40703 | return NULL; | |
40704 | } | |
40705 | ||
40706 | ||
c32bde28 | 40707 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40708 | PyObject *resultobj; |
40709 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40710 | int arg2 ; | |
40711 | PyObject * obj0 = 0 ; | |
40712 | PyObject * obj1 = 0 ; | |
40713 | char *kwnames[] = { | |
40714 | (char *) "self",(char *) "val", NULL | |
40715 | }; | |
40716 | ||
40717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
40718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40720 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40721 | if (PyErr_Occurred()) SWIG_fail; |
40722 | { | |
40723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40724 | (arg1)->Absolute(arg2); | |
40725 | ||
40726 | wxPyEndAllowThreads(__tstate); | |
40727 | if (PyErr_Occurred()) SWIG_fail; | |
40728 | } | |
40729 | Py_INCREF(Py_None); resultobj = Py_None; | |
40730 | return resultobj; | |
40731 | fail: | |
40732 | return NULL; | |
40733 | } | |
40734 | ||
40735 | ||
c32bde28 | 40736 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40737 | PyObject *resultobj; |
40738 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40739 | PyObject * obj0 = 0 ; | |
40740 | char *kwnames[] = { | |
40741 | (char *) "self", NULL | |
40742 | }; | |
40743 | ||
40744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
40745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40747 | { | |
40748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40749 | (arg1)->Unconstrained(); | |
40750 | ||
40751 | wxPyEndAllowThreads(__tstate); | |
40752 | if (PyErr_Occurred()) SWIG_fail; | |
40753 | } | |
40754 | Py_INCREF(Py_None); resultobj = Py_None; | |
40755 | return resultobj; | |
40756 | fail: | |
40757 | return NULL; | |
40758 | } | |
40759 | ||
40760 | ||
c32bde28 | 40761 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40762 | PyObject *resultobj; |
40763 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40764 | PyObject * obj0 = 0 ; | |
40765 | char *kwnames[] = { | |
40766 | (char *) "self", NULL | |
40767 | }; | |
40768 | ||
40769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
40770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40772 | { | |
40773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40774 | (arg1)->AsIs(); | |
40775 | ||
40776 | wxPyEndAllowThreads(__tstate); | |
40777 | if (PyErr_Occurred()) SWIG_fail; | |
40778 | } | |
40779 | Py_INCREF(Py_None); resultobj = Py_None; | |
40780 | return resultobj; | |
40781 | fail: | |
40782 | return NULL; | |
40783 | } | |
40784 | ||
40785 | ||
c32bde28 | 40786 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40787 | PyObject *resultobj; |
40788 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40789 | wxWindow *result; | |
40790 | PyObject * obj0 = 0 ; | |
40791 | char *kwnames[] = { | |
40792 | (char *) "self", NULL | |
40793 | }; | |
40794 | ||
40795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
40796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40798 | { | |
40799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40800 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
40801 | ||
40802 | wxPyEndAllowThreads(__tstate); | |
40803 | if (PyErr_Occurred()) SWIG_fail; | |
40804 | } | |
40805 | { | |
412d302d | 40806 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
40807 | } |
40808 | return resultobj; | |
40809 | fail: | |
40810 | return NULL; | |
40811 | } | |
40812 | ||
40813 | ||
c32bde28 | 40814 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40815 | PyObject *resultobj; |
40816 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40817 | int result; | |
40818 | PyObject * obj0 = 0 ; | |
40819 | char *kwnames[] = { | |
40820 | (char *) "self", NULL | |
40821 | }; | |
40822 | ||
40823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
40824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40826 | { | |
40827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40828 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
40829 | ||
40830 | wxPyEndAllowThreads(__tstate); | |
40831 | if (PyErr_Occurred()) SWIG_fail; | |
40832 | } | |
c32bde28 | 40833 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40834 | return resultobj; |
40835 | fail: | |
40836 | return NULL; | |
40837 | } | |
40838 | ||
40839 | ||
c32bde28 | 40840 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40841 | PyObject *resultobj; |
40842 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40843 | int arg2 ; | |
40844 | PyObject * obj0 = 0 ; | |
40845 | PyObject * obj1 = 0 ; | |
40846 | char *kwnames[] = { | |
40847 | (char *) "self",(char *) "which", NULL | |
40848 | }; | |
40849 | ||
40850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40853 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40854 | if (PyErr_Occurred()) SWIG_fail; |
40855 | { | |
40856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40857 | (arg1)->SetEdge((wxEdge )arg2); | |
40858 | ||
40859 | wxPyEndAllowThreads(__tstate); | |
40860 | if (PyErr_Occurred()) SWIG_fail; | |
40861 | } | |
40862 | Py_INCREF(Py_None); resultobj = Py_None; | |
40863 | return resultobj; | |
40864 | fail: | |
40865 | return NULL; | |
40866 | } | |
40867 | ||
40868 | ||
c32bde28 | 40869 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40870 | PyObject *resultobj; |
40871 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40872 | int arg2 ; | |
40873 | PyObject * obj0 = 0 ; | |
40874 | PyObject * obj1 = 0 ; | |
40875 | char *kwnames[] = { | |
40876 | (char *) "self",(char *) "v", NULL | |
40877 | }; | |
40878 | ||
40879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40882 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40883 | if (PyErr_Occurred()) SWIG_fail; |
40884 | { | |
40885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40886 | (arg1)->SetValue(arg2); | |
40887 | ||
40888 | wxPyEndAllowThreads(__tstate); | |
40889 | if (PyErr_Occurred()) SWIG_fail; | |
40890 | } | |
40891 | Py_INCREF(Py_None); resultobj = Py_None; | |
40892 | return resultobj; | |
40893 | fail: | |
40894 | return NULL; | |
40895 | } | |
40896 | ||
40897 | ||
c32bde28 | 40898 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40899 | PyObject *resultobj; |
40900 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40901 | int result; | |
40902 | PyObject * obj0 = 0 ; | |
40903 | char *kwnames[] = { | |
40904 | (char *) "self", NULL | |
40905 | }; | |
40906 | ||
40907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40910 | { | |
40911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40912 | result = (int)(arg1)->GetMargin(); | |
40913 | ||
40914 | wxPyEndAllowThreads(__tstate); | |
40915 | if (PyErr_Occurred()) SWIG_fail; | |
40916 | } | |
c32bde28 | 40917 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40918 | return resultobj; |
40919 | fail: | |
40920 | return NULL; | |
40921 | } | |
40922 | ||
40923 | ||
c32bde28 | 40924 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40925 | PyObject *resultobj; |
40926 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40927 | int arg2 ; | |
40928 | PyObject * obj0 = 0 ; | |
40929 | PyObject * obj1 = 0 ; | |
40930 | char *kwnames[] = { | |
40931 | (char *) "self",(char *) "m", NULL | |
40932 | }; | |
40933 | ||
40934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40937 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40938 | if (PyErr_Occurred()) SWIG_fail; |
40939 | { | |
40940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40941 | (arg1)->SetMargin(arg2); | |
40942 | ||
40943 | wxPyEndAllowThreads(__tstate); | |
40944 | if (PyErr_Occurred()) SWIG_fail; | |
40945 | } | |
40946 | Py_INCREF(Py_None); resultobj = Py_None; | |
40947 | return resultobj; | |
40948 | fail: | |
40949 | return NULL; | |
40950 | } | |
40951 | ||
40952 | ||
c32bde28 | 40953 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40954 | PyObject *resultobj; |
40955 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40956 | int result; | |
40957 | PyObject * obj0 = 0 ; | |
40958 | char *kwnames[] = { | |
40959 | (char *) "self", NULL | |
40960 | }; | |
40961 | ||
40962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40965 | { | |
40966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40967 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40968 | ||
40969 | wxPyEndAllowThreads(__tstate); | |
40970 | if (PyErr_Occurred()) SWIG_fail; | |
40971 | } | |
c32bde28 | 40972 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40973 | return resultobj; |
40974 | fail: | |
40975 | return NULL; | |
40976 | } | |
40977 | ||
40978 | ||
c32bde28 | 40979 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40980 | PyObject *resultobj; |
40981 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40982 | int result; | |
40983 | PyObject * obj0 = 0 ; | |
40984 | char *kwnames[] = { | |
40985 | (char *) "self", NULL | |
40986 | }; | |
40987 | ||
40988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40991 | { | |
40992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40993 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40994 | ||
40995 | wxPyEndAllowThreads(__tstate); | |
40996 | if (PyErr_Occurred()) SWIG_fail; | |
40997 | } | |
c32bde28 | 40998 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40999 | return resultobj; |
41000 | fail: | |
41001 | return NULL; | |
41002 | } | |
41003 | ||
41004 | ||
c32bde28 | 41005 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41006 | PyObject *resultobj; |
41007 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41008 | int result; | |
41009 | PyObject * obj0 = 0 ; | |
41010 | char *kwnames[] = { | |
41011 | (char *) "self", NULL | |
41012 | }; | |
41013 | ||
41014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
41015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41017 | { | |
41018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41019 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
41020 | ||
41021 | wxPyEndAllowThreads(__tstate); | |
41022 | if (PyErr_Occurred()) SWIG_fail; | |
41023 | } | |
c32bde28 | 41024 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
41025 | return resultobj; |
41026 | fail: | |
41027 | return NULL; | |
41028 | } | |
41029 | ||
41030 | ||
c32bde28 | 41031 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41032 | PyObject *resultobj; |
41033 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41034 | bool result; | |
41035 | PyObject * obj0 = 0 ; | |
41036 | char *kwnames[] = { | |
41037 | (char *) "self", NULL | |
41038 | }; | |
41039 | ||
41040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
41041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41043 | { | |
41044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41045 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
41046 | ||
41047 | wxPyEndAllowThreads(__tstate); | |
41048 | if (PyErr_Occurred()) SWIG_fail; | |
41049 | } | |
41050 | { | |
41051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41052 | } | |
41053 | return resultobj; | |
41054 | fail: | |
41055 | return NULL; | |
41056 | } | |
41057 | ||
41058 | ||
c32bde28 | 41059 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41060 | PyObject *resultobj; |
41061 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41062 | bool arg2 ; | |
41063 | PyObject * obj0 = 0 ; | |
41064 | PyObject * obj1 = 0 ; | |
41065 | char *kwnames[] = { | |
41066 | (char *) "self",(char *) "d", NULL | |
41067 | }; | |
41068 | ||
41069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
41070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 41072 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
41073 | if (PyErr_Occurred()) SWIG_fail; |
41074 | { | |
41075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41076 | (arg1)->SetDone(arg2); | |
41077 | ||
41078 | wxPyEndAllowThreads(__tstate); | |
41079 | if (PyErr_Occurred()) SWIG_fail; | |
41080 | } | |
41081 | Py_INCREF(Py_None); resultobj = Py_None; | |
41082 | return resultobj; | |
41083 | fail: | |
41084 | return NULL; | |
41085 | } | |
41086 | ||
41087 | ||
c32bde28 | 41088 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41089 | PyObject *resultobj; |
41090 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41091 | int result; | |
41092 | PyObject * obj0 = 0 ; | |
41093 | char *kwnames[] = { | |
41094 | (char *) "self", NULL | |
41095 | }; | |
41096 | ||
41097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
41098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41100 | { | |
41101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41102 | result = (int)(arg1)->GetRelationship(); | |
41103 | ||
41104 | wxPyEndAllowThreads(__tstate); | |
41105 | if (PyErr_Occurred()) SWIG_fail; | |
41106 | } | |
c32bde28 | 41107 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
41108 | return resultobj; |
41109 | fail: | |
41110 | return NULL; | |
41111 | } | |
41112 | ||
41113 | ||
c32bde28 | 41114 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41115 | PyObject *resultobj; |
41116 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41117 | int arg2 ; | |
41118 | PyObject * obj0 = 0 ; | |
41119 | PyObject * obj1 = 0 ; | |
41120 | char *kwnames[] = { | |
41121 | (char *) "self",(char *) "r", NULL | |
41122 | }; | |
41123 | ||
41124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
41125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 41127 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
41128 | if (PyErr_Occurred()) SWIG_fail; |
41129 | { | |
41130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41131 | (arg1)->SetRelationship((wxRelationship )arg2); | |
41132 | ||
41133 | wxPyEndAllowThreads(__tstate); | |
41134 | if (PyErr_Occurred()) SWIG_fail; | |
41135 | } | |
41136 | Py_INCREF(Py_None); resultobj = Py_None; | |
41137 | return resultobj; | |
41138 | fail: | |
41139 | return NULL; | |
41140 | } | |
41141 | ||
41142 | ||
c32bde28 | 41143 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41144 | PyObject *resultobj; |
41145 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41146 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41147 | bool result; | |
41148 | PyObject * obj0 = 0 ; | |
41149 | PyObject * obj1 = 0 ; | |
41150 | char *kwnames[] = { | |
41151 | (char *) "self",(char *) "otherW", NULL | |
41152 | }; | |
41153 | ||
41154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
41155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
41158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41159 | { | |
41160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41161 | result = (bool)(arg1)->ResetIfWin(arg2); | |
41162 | ||
41163 | wxPyEndAllowThreads(__tstate); | |
41164 | if (PyErr_Occurred()) SWIG_fail; | |
41165 | } | |
41166 | { | |
41167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41168 | } | |
41169 | return resultobj; | |
41170 | fail: | |
41171 | return NULL; | |
41172 | } | |
41173 | ||
41174 | ||
c32bde28 | 41175 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41176 | PyObject *resultobj; |
41177 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41178 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
41179 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41180 | bool result; | |
41181 | PyObject * obj0 = 0 ; | |
41182 | PyObject * obj1 = 0 ; | |
41183 | PyObject * obj2 = 0 ; | |
41184 | char *kwnames[] = { | |
41185 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
41186 | }; | |
41187 | ||
41188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
41189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
41192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41193 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
41194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41195 | { | |
41196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41197 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
41198 | ||
41199 | wxPyEndAllowThreads(__tstate); | |
41200 | if (PyErr_Occurred()) SWIG_fail; | |
41201 | } | |
41202 | { | |
41203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41204 | } | |
41205 | return resultobj; | |
41206 | fail: | |
41207 | return NULL; | |
41208 | } | |
41209 | ||
41210 | ||
c32bde28 | 41211 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41212 | PyObject *resultobj; |
41213 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
41214 | int arg2 ; | |
41215 | wxWindow *arg3 = (wxWindow *) 0 ; | |
41216 | wxWindow *arg4 = (wxWindow *) 0 ; | |
41217 | int result; | |
41218 | PyObject * obj0 = 0 ; | |
41219 | PyObject * obj1 = 0 ; | |
41220 | PyObject * obj2 = 0 ; | |
41221 | PyObject * obj3 = 0 ; | |
41222 | char *kwnames[] = { | |
41223 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
41224 | }; | |
41225 | ||
41226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
41227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
41228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 41229 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
41230 | if (PyErr_Occurred()) SWIG_fail; |
41231 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
41232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41233 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
41234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41235 | { | |
41236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41237 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
41238 | ||
41239 | wxPyEndAllowThreads(__tstate); | |
41240 | if (PyErr_Occurred()) SWIG_fail; | |
41241 | } | |
c32bde28 | 41242 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
41243 | return resultobj; |
41244 | fail: | |
41245 | return NULL; | |
41246 | } | |
41247 | ||
41248 | ||
c32bde28 | 41249 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41250 | PyObject *obj; |
41251 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41252 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
41253 | Py_INCREF(obj); | |
41254 | return Py_BuildValue((char *)""); | |
41255 | } | |
c32bde28 | 41256 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41257 | PyObject *resultobj; |
41258 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41259 | wxIndividualLayoutConstraint *result; | |
41260 | PyObject * obj0 = 0 ; | |
41261 | char *kwnames[] = { | |
41262 | (char *) "self", NULL | |
41263 | }; | |
41264 | ||
41265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
41266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41268 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
41269 | ||
41270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41271 | return resultobj; | |
41272 | fail: | |
41273 | return NULL; | |
41274 | } | |
41275 | ||
41276 | ||
c32bde28 | 41277 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41278 | PyObject *resultobj; |
41279 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41280 | wxIndividualLayoutConstraint *result; | |
41281 | PyObject * obj0 = 0 ; | |
41282 | char *kwnames[] = { | |
41283 | (char *) "self", NULL | |
41284 | }; | |
41285 | ||
41286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
41287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41289 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
41290 | ||
41291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41292 | return resultobj; | |
41293 | fail: | |
41294 | return NULL; | |
41295 | } | |
41296 | ||
41297 | ||
c32bde28 | 41298 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41299 | PyObject *resultobj; |
41300 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41301 | wxIndividualLayoutConstraint *result; | |
41302 | PyObject * obj0 = 0 ; | |
41303 | char *kwnames[] = { | |
41304 | (char *) "self", NULL | |
41305 | }; | |
41306 | ||
41307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
41308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41310 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
41311 | ||
41312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41313 | return resultobj; | |
41314 | fail: | |
41315 | return NULL; | |
41316 | } | |
41317 | ||
41318 | ||
c32bde28 | 41319 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41320 | PyObject *resultobj; |
41321 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41322 | wxIndividualLayoutConstraint *result; | |
41323 | PyObject * obj0 = 0 ; | |
41324 | char *kwnames[] = { | |
41325 | (char *) "self", NULL | |
41326 | }; | |
41327 | ||
41328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
41329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41331 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
41332 | ||
41333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41334 | return resultobj; | |
41335 | fail: | |
41336 | return NULL; | |
41337 | } | |
41338 | ||
41339 | ||
c32bde28 | 41340 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41341 | PyObject *resultobj; |
41342 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41343 | wxIndividualLayoutConstraint *result; | |
41344 | PyObject * obj0 = 0 ; | |
41345 | char *kwnames[] = { | |
41346 | (char *) "self", NULL | |
41347 | }; | |
41348 | ||
41349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
41350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41352 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
41353 | ||
41354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41355 | return resultobj; | |
41356 | fail: | |
41357 | return NULL; | |
41358 | } | |
41359 | ||
41360 | ||
c32bde28 | 41361 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41362 | PyObject *resultobj; |
41363 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41364 | wxIndividualLayoutConstraint *result; | |
41365 | PyObject * obj0 = 0 ; | |
41366 | char *kwnames[] = { | |
41367 | (char *) "self", NULL | |
41368 | }; | |
41369 | ||
41370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
41371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41373 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
41374 | ||
41375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41376 | return resultobj; | |
41377 | fail: | |
41378 | return NULL; | |
41379 | } | |
41380 | ||
41381 | ||
c32bde28 | 41382 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41383 | PyObject *resultobj; |
41384 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41385 | wxIndividualLayoutConstraint *result; | |
41386 | PyObject * obj0 = 0 ; | |
41387 | char *kwnames[] = { | |
41388 | (char *) "self", NULL | |
41389 | }; | |
41390 | ||
41391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
41392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41394 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
41395 | ||
41396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41397 | return resultobj; | |
41398 | fail: | |
41399 | return NULL; | |
41400 | } | |
41401 | ||
41402 | ||
c32bde28 | 41403 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41404 | PyObject *resultobj; |
41405 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41406 | wxIndividualLayoutConstraint *result; | |
41407 | PyObject * obj0 = 0 ; | |
41408 | char *kwnames[] = { | |
41409 | (char *) "self", NULL | |
41410 | }; | |
41411 | ||
41412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
41413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41415 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
41416 | ||
41417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41418 | return resultobj; | |
41419 | fail: | |
41420 | return NULL; | |
41421 | } | |
41422 | ||
41423 | ||
c32bde28 | 41424 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41425 | PyObject *resultobj; |
41426 | wxLayoutConstraints *result; | |
41427 | char *kwnames[] = { | |
41428 | NULL | |
41429 | }; | |
41430 | ||
41431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
41432 | { | |
41433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41434 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
41435 | ||
41436 | wxPyEndAllowThreads(__tstate); | |
41437 | if (PyErr_Occurred()) SWIG_fail; | |
41438 | } | |
41439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
41440 | return resultobj; | |
41441 | fail: | |
41442 | return NULL; | |
41443 | } | |
41444 | ||
41445 | ||
c32bde28 | 41446 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41447 | PyObject *resultobj; |
41448 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41449 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41450 | int *arg3 = (int *) 0 ; | |
41451 | bool result; | |
41452 | int temp3 ; | |
c32bde28 | 41453 | int res3 = 0 ; |
d55e5bfc RD |
41454 | PyObject * obj0 = 0 ; |
41455 | PyObject * obj1 = 0 ; | |
41456 | char *kwnames[] = { | |
41457 | (char *) "self",(char *) "win", NULL | |
41458 | }; | |
41459 | ||
c32bde28 | 41460 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
41461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
41462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
41465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41466 | { | |
41467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41468 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
41469 | ||
41470 | wxPyEndAllowThreads(__tstate); | |
41471 | if (PyErr_Occurred()) SWIG_fail; | |
41472 | } | |
41473 | { | |
41474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41475 | } | |
c32bde28 RD |
41476 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
41477 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
41478 | return resultobj; |
41479 | fail: | |
41480 | return NULL; | |
41481 | } | |
41482 | ||
41483 | ||
c32bde28 | 41484 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41485 | PyObject *resultobj; |
41486 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41487 | bool result; | |
41488 | PyObject * obj0 = 0 ; | |
41489 | char *kwnames[] = { | |
41490 | (char *) "self", NULL | |
41491 | }; | |
41492 | ||
41493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
41494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41496 | { | |
41497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41498 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
41499 | ||
41500 | wxPyEndAllowThreads(__tstate); | |
41501 | if (PyErr_Occurred()) SWIG_fail; | |
41502 | } | |
41503 | { | |
41504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41505 | } | |
41506 | return resultobj; | |
41507 | fail: | |
41508 | return NULL; | |
41509 | } | |
41510 | ||
41511 | ||
c32bde28 | 41512 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41513 | PyObject *obj; |
41514 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41515 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
41516 | Py_INCREF(obj); | |
41517 | return Py_BuildValue((char *)""); | |
41518 | } | |
41519 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
41520 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
41521 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
41522 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
41525 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41534 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41537 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41540 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41541 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
41546 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41551 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41553 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
41559 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41573 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
41574 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41575 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 41577 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41578 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, |
41579 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41589 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41590 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41591 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41595 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41596 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41598 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41600 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41603 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b519803b | 41608 | { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41609 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, |
41610 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41611 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41620 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41622 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
41627 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41629 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41632 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41635 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41637 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41642 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41647 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41650 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41652 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41654 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
41655 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41656 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41657 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, |
41658 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41660 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41662 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41664 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
41674 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
41676 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41678 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
41684 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41685 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41697 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41702 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 | 41707 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
ae8162c8 | 41708 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c32bde28 RD |
41709 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
41710 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
41713 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41714 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
41719 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41723 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
41729 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41731 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
41739 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
41743 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c9c2cf70 | 41751 | { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41752 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, |
41753 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41766 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41767 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, |
41768 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41775 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41783 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41784 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41785 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41794 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41801 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41804 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41809 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41814 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41816 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
41817 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
41819 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
41821 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
41823 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
41825 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41826 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
41827 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
41829 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
41831 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
41833 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
41835 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
41837 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
41839 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
41841 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41855 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41857 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41859 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41863 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41864 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41867 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41868 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41871 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41872 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41873 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41874 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41875 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41876 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41877 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41879 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41880 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41881 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41882 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41883 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41886 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41888 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41889 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41891 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41893 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41896 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41898 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41902 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41903 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41906 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41907 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41908 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41909 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41915 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41916 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41917 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41918 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41919 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41921 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41924 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41926 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41927 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41928 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41929 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41930 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41931 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41932 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41933 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41934 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41935 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41936 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41937 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41938 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41939 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41940 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41941 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41942 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41943 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41944 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41945 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41946 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41947 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41948 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41949 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41950 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41951 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41952 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41953 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41954 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41955 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41956 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41957 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41958 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41959 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41960 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41961 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41962 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41963 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41964 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41965 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41966 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41967 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41968 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41969 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41970 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41971 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41972 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41973 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41974 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41975 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41976 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41977 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41978 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41979 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41980 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41981 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41982 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41983 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41984 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41985 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41986 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41987 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41988 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41989 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41990 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41991 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41992 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41993 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41994 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41995 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41996 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41997 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41998 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41999 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42000 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42001 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42002 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42003 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42004 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42005 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42006 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42007 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42008 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42009 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42010 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42011 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42012 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42013 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
42014 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42015 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42016 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42017 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42018 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42019 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42020 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42021 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42022 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42023 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
42024 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42025 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42026 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42027 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42028 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42029 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42030 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42031 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42032 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42033 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
42034 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42035 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
42036 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42037 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
42038 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42039 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42040 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
42041 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42042 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42043 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42044 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
42045 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42046 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42047 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
42048 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42049 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42050 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
42051 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42052 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
42053 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42054 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42055 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42056 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42057 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
42058 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42059 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42060 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42061 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42062 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42063 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42064 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42065 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
42066 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42067 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42068 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42069 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
42070 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42071 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42072 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
42073 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42074 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
42075 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42076 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42077 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42078 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
42079 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42080 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42081 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42082 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42083 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42084 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42085 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42086 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42087 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42088 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42089 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42090 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42091 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42092 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42093 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42094 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42095 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
42096 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42097 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
42098 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42099 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42100 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
42101 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42102 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
42103 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42104 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42105 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42106 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
42107 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42108 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42109 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42110 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
42111 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42112 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42113 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42114 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42115 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42116 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42117 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42118 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42119 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
42120 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42121 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42122 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
42123 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42124 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42125 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
42126 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42127 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42128 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42129 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
42130 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42131 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42132 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42133 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42134 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42135 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42136 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
42137 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42138 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42139 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42140 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42141 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
42142 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42143 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42144 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42145 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42146 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
42147 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42148 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42149 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42150 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42151 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42152 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42153 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42154 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42155 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42156 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42157 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42158 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42159 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 42160 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42161 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
42162 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42163 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42164 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42165 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42166 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42167 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42168 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42169 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42170 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42171 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42172 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42173 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42174 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42175 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42176 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42177 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42178 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42179 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42180 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42181 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42182 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42183 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42184 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42185 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42186 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42187 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42188 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42189 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42190 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42191 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
42192 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42193 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42194 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42195 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42196 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42197 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42198 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42199 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5cbf236d RD |
42200 | { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, |
42201 | { (char *)"GetDefaultPyEncoding", (PyCFunction) _wrap_GetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
ae8162c8 RD |
42202 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
42203 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42204 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42205 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42206 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42207 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42208 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42209 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42210 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42211 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
42212 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
42213 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42214 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42215 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42216 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42217 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42218 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
42219 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42220 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42221 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42222 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
42223 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42224 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42225 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42226 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42227 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42228 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42229 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42230 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42231 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42232 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
42233 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42234 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42235 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42236 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42237 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42238 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42239 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42240 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42241 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42242 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42243 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42244 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42245 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42246 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42247 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42248 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42249 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42250 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42251 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42252 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42253 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42254 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42255 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42256 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42257 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42258 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42259 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42260 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42261 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42262 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42263 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42264 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42265 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42266 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42267 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42268 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42269 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42270 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42271 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42272 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42273 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42274 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42275 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42276 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42277 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42278 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42279 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42280 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42281 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42282 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42283 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42284 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42285 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42286 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42287 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42288 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42289 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42290 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42291 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42292 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42293 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42294 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42295 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42296 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42297 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42298 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42299 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42300 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42301 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42302 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42303 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42304 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42305 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42306 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42307 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42308 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42309 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42310 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42311 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42312 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42313 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42314 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42315 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42316 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42317 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42318 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42319 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42320 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42321 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42322 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42323 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42324 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42325 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42326 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42327 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42328 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42329 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42330 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42331 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42332 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42333 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42334 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42335 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42336 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42337 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42338 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42339 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42340 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42341 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42342 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42343 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42344 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42345 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42346 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42347 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42348 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42349 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42350 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42351 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42352 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42353 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42354 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42355 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42356 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42357 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42358 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42359 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42360 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42361 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42362 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42363 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42364 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42365 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42366 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42367 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42368 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42369 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42370 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42371 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42372 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42373 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42374 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42375 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42376 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42377 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42378 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42379 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42380 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42381 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42382 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42383 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42384 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42385 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42386 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42387 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42388 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42389 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42390 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42391 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42392 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42393 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42394 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42395 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42396 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42397 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42398 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42399 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42400 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42401 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
42402 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42403 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42404 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42405 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 RD |
42406 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
42407 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
42408 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL }, |
42409 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42410 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42411 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42412 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42413 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42414 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42415 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42416 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42417 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42418 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42419 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42420 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42421 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42422 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42423 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42424 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42425 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42426 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42427 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42428 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42429 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42430 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42431 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42432 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42433 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42434 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42435 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42436 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42437 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42438 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42439 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42440 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42441 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42442 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42443 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
42444 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42445 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42446 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42447 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42448 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42449 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42450 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42451 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42452 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42453 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42454 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42455 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42456 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42457 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
42458 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42459 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42460 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
42461 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42462 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42463 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42464 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42465 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42466 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42467 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42468 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42469 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42470 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42471 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42472 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42473 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42474 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42475 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42476 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42477 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42478 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42479 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42480 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42481 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42482 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42483 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42484 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42485 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42486 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42487 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42488 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42489 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42490 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42491 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42492 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42493 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42494 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42495 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42496 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42497 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42498 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42499 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42500 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42501 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42502 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42503 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42504 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42505 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42506 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42507 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42508 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42509 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42510 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42511 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42512 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42513 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42514 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42515 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
42516 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42517 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42518 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42519 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42520 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42521 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42522 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42523 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42524 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42525 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42526 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42527 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42528 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42529 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42530 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42531 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42532 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42533 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42534 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42535 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42536 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42537 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42538 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42539 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42540 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42541 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42542 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
42543 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42544 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42545 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42546 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42547 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42548 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42549 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42550 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42551 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42552 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42553 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42554 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42555 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42556 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42557 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42558 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42559 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42560 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42561 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42562 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42563 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42564 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42565 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42566 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42567 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42568 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42569 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42570 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42571 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42572 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42573 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42574 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42575 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42576 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42577 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42578 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42579 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42580 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42581 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42582 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42583 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42584 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42585 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42586 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
42587 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42588 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42589 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42590 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42591 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42592 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42593 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42594 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
42595 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42596 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42597 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42598 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42599 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42600 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42601 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42602 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42603 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42604 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42605 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42606 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42607 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42608 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42609 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42610 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42611 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
42612 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
42613 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42614 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42615 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42616 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42617 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42618 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42619 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42620 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42621 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42622 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42623 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42624 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42625 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42626 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42627 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42628 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 42629 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42630 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
42631 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42632 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42633 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42634 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42635 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42636 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42637 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42638 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42639 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42640 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42641 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42642 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42643 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42644 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42645 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42646 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42647 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42648 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42649 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
42650 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42651 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42652 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42653 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42654 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42655 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 42656 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42657 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42658 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42659 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42660 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42661 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42662 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42663 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42664 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42665 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42666 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42667 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42668 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42669 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42670 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42671 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42672 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42673 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42674 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42675 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42676 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42677 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42678 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42679 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
42680 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42681 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42682 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
42683 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42684 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42685 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42686 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
42687 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42688 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42689 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
42690 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42691 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42692 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42693 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42694 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42695 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42696 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42697 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42698 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42699 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
42700 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42701 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42702 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42703 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42704 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42705 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42706 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42707 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42708 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42709 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42710 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42711 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
42712 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42713 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42714 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42715 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42716 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42717 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42718 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42719 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42720 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42721 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
42722 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42723 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42724 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42725 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42726 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42727 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42728 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42729 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42730 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42731 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
42732 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42733 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42734 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42735 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42736 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42737 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42738 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42739 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42740 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42741 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42742 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42743 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42744 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42745 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
42746 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42747 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42748 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 42749 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42750 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42751 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42752 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
42753 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
42754 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
42755 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
42756 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
42757 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42758 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42759 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42760 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42761 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
42762 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42763 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42764 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42765 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42766 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42767 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42768 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42769 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42770 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42771 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42772 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42773 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42774 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42775 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42776 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42777 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42778 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42779 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42780 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42781 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42782 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42783 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42784 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42785 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42786 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42787 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42788 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
42789 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42790 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42791 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42792 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42793 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42794 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42795 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42796 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42797 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42798 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42799 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42800 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
42801 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
42802 | }; |
42803 | ||
42804 | ||
42805 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
42806 | ||
42807 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
42808 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
42809 | } | |
42810 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
42811 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
42812 | } | |
42813 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
42814 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42815 | } | |
42816 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
42817 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42818 | } | |
42819 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
42820 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
42821 | } | |
42822 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
42823 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42824 | } | |
42825 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
42826 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
42827 | } | |
42828 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
42829 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42830 | } | |
42831 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
42832 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42833 | } | |
42834 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
42835 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
42836 | } | |
42837 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
42838 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
42839 | } | |
42840 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
42841 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
42842 | } | |
42843 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
42844 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
42845 | } | |
42846 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
42847 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
42848 | } | |
42849 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
42850 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
42851 | } | |
42852 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
42853 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
42854 | } | |
42855 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
42856 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
42857 | } | |
42858 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
42859 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42860 | } | |
42861 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
42862 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
42863 | } | |
42864 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
42865 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42866 | } | |
42867 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
42868 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42869 | } | |
42870 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
42871 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
42872 | } | |
42873 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42874 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42875 | } | |
42876 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42877 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42878 | } | |
42879 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42880 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42881 | } | |
42882 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42883 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42884 | } | |
42885 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42886 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42887 | } | |
42888 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42889 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42890 | } | |
42891 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42892 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42893 | } | |
42894 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42895 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42896 | } | |
42897 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42898 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42899 | } | |
42900 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42901 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42902 | } | |
42903 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42904 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42905 | } | |
42906 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42907 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42908 | } | |
42909 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42910 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42911 | } | |
42912 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42913 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42914 | } | |
42915 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42916 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42917 | } | |
42918 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42919 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42920 | } | |
42921 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42922 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42923 | } | |
42924 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42925 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42926 | } | |
42927 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42928 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42929 | } | |
42930 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42931 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42932 | } | |
42933 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42934 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42935 | } | |
42936 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42937 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42938 | } | |
42939 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42940 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42941 | } | |
42942 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42943 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42944 | } | |
42945 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42946 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42947 | } | |
42948 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42949 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42950 | } | |
42951 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42952 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42953 | } | |
42954 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42955 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42956 | } | |
42957 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42958 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42959 | } | |
42960 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42961 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42962 | } | |
42963 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42964 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42965 | } | |
42966 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42967 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42968 | } | |
42969 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42970 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42971 | } | |
42972 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42973 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42974 | } | |
42975 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42976 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42977 | } | |
42978 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42979 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42980 | } | |
42981 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42982 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42983 | } | |
42984 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42985 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42986 | } | |
42987 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42988 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42989 | } | |
42990 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42991 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42992 | } | |
42993 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42994 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42995 | } | |
42996 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42997 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42998 | } | |
42999 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
43000 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
43001 | } | |
43002 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
43003 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
43004 | } | |
43005 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
43006 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
43007 | } | |
43008 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
43009 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
43010 | } | |
43011 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
43012 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
43013 | } | |
43014 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
43015 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
43016 | } | |
43017 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
43018 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
43019 | } | |
43020 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
43021 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
43022 | } | |
43023 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
43024 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
43025 | } | |
43026 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
43027 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
43028 | } | |
43029 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
43030 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
43031 | } | |
43032 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
43033 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
43034 | } | |
43035 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
43036 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
43037 | } | |
43038 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
43039 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
43040 | } | |
43041 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
43042 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
43043 | } | |
43044 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
43045 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
43046 | } | |
43047 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
43048 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
43049 | } | |
43050 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
43051 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
43052 | } | |
43053 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
43054 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
43055 | } | |
43056 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
43057 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
43058 | } | |
43059 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
43060 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
43061 | } | |
43062 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
43063 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
43064 | } | |
43065 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
43066 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
43067 | } | |
43068 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
43069 | return (void *)((wxObject *) ((wxSizer *) x)); | |
43070 | } | |
43071 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
43072 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
43073 | } | |
43074 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
43075 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
43076 | } | |
43077 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
43078 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
43079 | } | |
43080 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
43081 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
43082 | } | |
43083 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
43084 | return (void *)((wxObject *) ((wxImage *) x)); | |
43085 | } | |
43086 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
43087 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
43088 | } | |
43089 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
43090 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
43091 | } | |
43092 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
43093 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
43094 | } | |
43095 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
43096 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
43097 | } | |
43098 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
43099 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
43100 | } | |
43101 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
43102 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
43103 | } | |
43104 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
43105 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
43106 | } | |
43107 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
43108 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
43109 | } | |
43110 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
43111 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
43112 | } | |
43113 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
43114 | return (void *)((wxObject *) ((wxEvent *) x)); | |
43115 | } | |
43116 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
43117 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
43118 | } | |
43119 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
43120 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
43121 | } | |
43122 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
43123 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
43124 | } | |
43125 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
43126 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
43127 | } | |
43128 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
43129 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
43130 | } | |
43131 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
43132 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
43133 | } | |
43134 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
43135 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
43136 | } | |
43137 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
43138 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
43139 | } | |
43140 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
43141 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
43142 | } | |
43143 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
43144 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
43145 | } | |
43146 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
43147 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
43148 | } | |
43149 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
43150 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
43151 | } | |
43152 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
43153 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
43154 | } | |
43155 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
43156 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
43157 | } | |
43158 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
43159 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
43160 | } | |
43161 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
43162 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
43163 | } | |
43164 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
43165 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
43166 | } | |
43167 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
43168 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
43169 | } | |
43170 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
43171 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
43172 | } | |
43173 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
43174 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
43175 | } | |
43176 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
43177 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
43178 | } | |
43179 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
43180 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
43181 | } | |
43182 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
43183 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
43184 | } | |
43185 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
43186 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
43187 | } | |
43188 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
43189 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
43190 | } | |
43191 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
43192 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
43193 | } | |
43194 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
43195 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
43196 | } | |
43197 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
43198 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
43199 | } | |
43200 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
43201 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
43202 | } | |
43203 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
43204 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
43205 | } | |
43206 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
43207 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
43208 | } | |
43209 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
43210 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
43211 | } | |
43212 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
43213 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
43214 | } | |
43215 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
43216 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
43217 | } | |
43218 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
43219 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
43220 | } | |
43221 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
43222 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
43223 | } | |
43224 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
43225 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
43226 | } | |
43227 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
43228 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
43229 | } | |
43230 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
43231 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
43232 | } | |
43233 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
43234 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
43235 | } | |
43236 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
43237 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
43238 | } | |
43239 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
43240 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
43241 | } | |
43242 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
43243 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
43244 | } | |
43245 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
43246 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
43247 | } | |
43248 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
43249 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
43250 | } | |
43251 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
43252 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
43253 | } | |
43254 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
43255 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
43256 | } | |
43257 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
43258 | return (void *)((wxWindow *) ((wxControl *) x)); | |
43259 | } | |
43260 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
43261 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
43262 | } | |
43263 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
43264 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
43265 | } | |
43266 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
43267 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
43268 | } | |
43269 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
43270 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
43271 | } | |
43272 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
43273 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
43274 | } | |
43275 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
43276 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
43277 | } | |
43278 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
43279 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
43280 | } | |
43281 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
43282 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
43283 | } | |
43284 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
43285 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
43286 | } | |
43287 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
43288 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
43289 | } | |
43290 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
43291 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
43292 | } | |
43293 | 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}}; | |
43294 | 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}}; | |
43295 | 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}}; | |
43296 | 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}}; | |
43297 | 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 | 43298 | 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 |
43299 | 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}}; |
43300 | 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}}; | |
43301 | 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}}; | |
43302 | 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}}; | |
43303 | 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}}; | |
43304 | 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}}; | |
43305 | 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}}; | |
43306 | 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}}; | |
43307 | 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}}; | |
43308 | 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}}; | |
43309 | 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}}; | |
43310 | 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}}; | |
43311 | 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}}; | |
43312 | 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}}; | |
43313 | 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}}; | |
43314 | 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}}; | |
43315 | 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}}; | |
43316 | 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}}; | |
43317 | 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}}; | |
43318 | 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}}; | |
43319 | 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}}; | |
43320 | 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}}; | |
43321 | 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}}; | |
43322 | 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}}; | |
43323 | 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}}; | |
43324 | 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}}; | |
43325 | 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}}; | |
43326 | 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}}; | |
43327 | 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}}; | |
43328 | 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}}; | |
43329 | 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}}; | |
43330 | 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}}; | |
43331 | 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}}; | |
43332 | 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}}; | |
43333 | 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}}; | |
43334 | 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}}; | |
43335 | 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}}; | |
43336 | 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}}; | |
43337 | 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 |
43338 | 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}}; |
43339 | 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}}; | |
43340 | 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}}; | |
43341 | 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 | 43342 | 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 |
43343 | 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}}; |
43344 | 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}}; | |
43345 | 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}}; | |
43346 | 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}}; | |
43347 | 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}}; | |
43348 | 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}}; | |
43349 | 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}}; | |
43350 | 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}}; | |
43351 | 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}}; | |
43352 | 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}}; | |
43353 | 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}}; | |
43354 | 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}}; | |
43355 | 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}}; | |
43356 | 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}}; | |
43357 | 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}}; | |
43358 | 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}}; | |
43359 | 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}}; | |
43360 | 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}}; | |
43361 | 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}}; | |
43362 | 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}}; | |
43363 | 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}}; | |
43364 | 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}}; | |
43365 | 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}}; | |
43366 | 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}}; | |
43367 | 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}}; | |
43368 | 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}}; | |
43369 | 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}}; | |
43370 | 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}}; | |
43371 | 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}}; | |
43372 | 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}}; | |
43373 | 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}}; | |
43374 | 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}}; | |
43375 | 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}}; | |
43376 | 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}}; | |
43377 | 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}}; | |
43378 | 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}}; | |
43379 | 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}}; | |
43380 | 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}}; | |
43381 | 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}}; | |
43382 | 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}}; | |
43383 | 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}}; | |
43384 | 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}}; | |
43385 | 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}}; | |
43386 | 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}}; | |
43387 | 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}}; | |
43388 | 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}}; | |
43389 | 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}}; | |
43390 | 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}}; | |
43391 | 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}}; | |
43392 | 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}}; | |
43393 | 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}}; | |
43394 | 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}}; | |
43395 | 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}}; | |
43396 | 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}}; | |
43397 | 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}}; | |
43398 | 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}}; | |
43399 | 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}}; | |
43400 | 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}}; | |
43401 | 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 | 43402 | 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 |
43403 | 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}}; |
43404 | 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}}; | |
43405 | 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}}; | |
43406 | 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}}; | |
43407 | 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}}; | |
43408 | 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}}; | |
43409 | 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}}; | |
43410 | ||
43411 | static swig_type_info *swig_types_initial[] = { | |
43412 | _swigt__p_wxLayoutConstraints, | |
43413 | _swigt__p_wxRealPoint, | |
43414 | _swigt__p_wxSizerItem, | |
43415 | _swigt__p_wxGBSizerItem, | |
43416 | _swigt__p_wxScrollEvent, | |
ae8162c8 | 43417 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
43418 | _swigt__p_wxIndividualLayoutConstraint, |
43419 | _swigt__p_wxSizer, | |
43420 | _swigt__p_wxBoxSizer, | |
43421 | _swigt__p_wxStaticBoxSizer, | |
43422 | _swigt__p_wxGridBagSizer, | |
43423 | _swigt__p_wxAcceleratorEntry, | |
43424 | _swigt__p_wxUpdateUIEvent, | |
43425 | _swigt__p_wxMenu, | |
43426 | _swigt__p_wxEvent, | |
43427 | _swigt__p_wxGridSizer, | |
43428 | _swigt__p_wxFlexGridSizer, | |
43429 | _swigt__p_wxInitDialogEvent, | |
43430 | _swigt__p_wxItemContainer, | |
43431 | _swigt__p_wxNcPaintEvent, | |
43432 | _swigt__p_wxPaintEvent, | |
43433 | _swigt__p_wxSysColourChangedEvent, | |
43434 | _swigt__p_wxMouseCaptureChangedEvent, | |
43435 | _swigt__p_wxDisplayChangedEvent, | |
43436 | _swigt__p_wxPaletteChangedEvent, | |
43437 | _swigt__p_wxControl, | |
43438 | _swigt__p_wxFont, | |
43439 | _swigt__p_wxMenuBarBase, | |
43440 | _swigt__p_wxSetCursorEvent, | |
43441 | _swigt__p_wxFSFile, | |
43442 | _swigt__p_wxCaret, | |
43443 | _swigt__p_wxRegion, | |
43444 | _swigt__p_wxPoint2D, | |
43445 | _swigt__p_int, | |
43446 | _swigt__p_wxSize, | |
43447 | _swigt__p_wxDC, | |
43448 | _swigt__p_wxPySizer, | |
43449 | _swigt__p_wxVisualAttributes, | |
43450 | _swigt__p_wxNotifyEvent, | |
43451 | _swigt__p_wxPyEvent, | |
43452 | _swigt__p_wxPropagationDisabler, | |
43453 | _swigt__p_wxAppTraits, | |
43454 | _swigt__p_wxArrayString, | |
43455 | _swigt__p_wxShowEvent, | |
43456 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
43457 | _swigt__p_wxIconizeEvent, |
43458 | _swigt__p_wxActivateEvent, | |
43459 | _swigt__p_wxMoveEvent, | |
43460 | _swigt__p_wxSizeEvent, | |
c0de73ae | 43461 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
43462 | _swigt__p_wxQueryNewPaletteEvent, |
43463 | _swigt__p_wxWindowCreateEvent, | |
43464 | _swigt__p_wxIdleEvent, | |
43465 | _swigt__p_wxMenuItem, | |
43466 | _swigt__p_wxStaticBox, | |
43467 | _swigt__p_long, | |
43468 | _swigt__p_wxTIFFHandler, | |
43469 | _swigt__p_wxXPMHandler, | |
43470 | _swigt__p_wxPNMHandler, | |
43471 | _swigt__p_wxJPEGHandler, | |
43472 | _swigt__p_wxPCXHandler, | |
43473 | _swigt__p_wxGIFHandler, | |
43474 | _swigt__p_wxPNGHandler, | |
43475 | _swigt__p_wxANIHandler, | |
43476 | _swigt__p_wxMemoryFSHandler, | |
43477 | _swigt__p_wxEvtHandler, | |
43478 | _swigt__p_wxCURHandler, | |
43479 | _swigt__p_wxICOHandler, | |
43480 | _swigt__p_wxBMPHandler, | |
43481 | _swigt__p_wxImageHandler, | |
43482 | _swigt__p_wxFileSystemHandler, | |
43483 | _swigt__p_wxPyFileSystemHandler, | |
43484 | _swigt__p_wxInternetFSHandler, | |
43485 | _swigt__p_wxZipFSHandler, | |
43486 | _swigt__p_wxRect, | |
43487 | _swigt__p_wxGBSpan, | |
43488 | _swigt__p_wxPropagateOnce, | |
43489 | _swigt__p_wxAcceleratorTable, | |
43490 | _swigt__p_char, | |
43491 | _swigt__p_wxGBPosition, | |
43492 | _swigt__p_wxImage, | |
43493 | _swigt__p_wxFrame, | |
43494 | _swigt__p_wxScrollWinEvent, | |
43495 | _swigt__p_wxImageHistogram, | |
43496 | _swigt__p_byte, | |
43497 | _swigt__p_wxPoint, | |
43498 | _swigt__p_wxCursor, | |
43499 | _swigt__p_wxObject, | |
43500 | _swigt__p_wxPyInputStream, | |
43501 | _swigt__p_wxOutputStream, | |
43502 | _swigt__p_wxInputStream, | |
43503 | _swigt__p_wxDateTime, | |
43504 | _swigt__p_wxKeyEvent, | |
43505 | _swigt__p_wxNavigationKeyEvent, | |
43506 | _swigt__p_wxWindowDestroyEvent, | |
43507 | _swigt__p_wxWindow, | |
43508 | _swigt__p_wxMenuBar, | |
43509 | _swigt__p_wxFileSystem, | |
43510 | _swigt__p_wxBitmap, | |
43511 | _swigt__p_wxMenuEvent, | |
43512 | _swigt__p_wxContextMenuEvent, | |
43513 | _swigt__p_unsigned_char, | |
43514 | _swigt__p_wxCloseEvent, | |
43515 | _swigt__p_wxEraseEvent, | |
43516 | _swigt__p_wxMouseEvent, | |
43517 | _swigt__p_wxPyApp, | |
43518 | _swigt__p_wxCommandEvent, | |
43519 | _swigt__p_wxPyCommandEvent, | |
43520 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 43521 | _swigt__p_wxQuantize, |
d55e5bfc RD |
43522 | _swigt__p_wxChildFocusEvent, |
43523 | _swigt__p_wxFocusEvent, | |
43524 | _swigt__p_wxDropFilesEvent, | |
43525 | _swigt__p_wxControlWithItems, | |
43526 | _swigt__p_wxColour, | |
43527 | _swigt__p_wxValidator, | |
43528 | _swigt__p_wxPyValidator, | |
43529 | 0 | |
43530 | }; | |
43531 | ||
43532 | ||
43533 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43534 | ||
43535 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 43536 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
43537 | |
43538 | #ifdef __cplusplus | |
43539 | } | |
43540 | #endif | |
43541 | ||
43542 | #ifdef __cplusplus | |
43543 | extern "C" | |
43544 | #endif | |
43545 | SWIGEXPORT(void) SWIG_init(void) { | |
43546 | static PyObject *SWIG_globals = 0; | |
43547 | static int typeinit = 0; | |
43548 | PyObject *m, *d; | |
43549 | int i; | |
43550 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
43551 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43552 | d = PyModule_GetDict(m); | |
43553 | ||
43554 | if (!typeinit) { | |
43555 | for (i = 0; swig_types_initial[i]; i++) { | |
43556 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
43557 | } | |
43558 | typeinit = 1; | |
43559 | } | |
43560 | SWIG_InstallConstants(d,swig_const_table); | |
43561 | ||
43562 | ||
43563 | #ifndef wxPyUSE_EXPORT | |
43564 | // Make our API structure a CObject so other modules can import it | |
43565 | // from this module. | |
43566 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
43567 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
43568 | Py_XDECREF(cobj); | |
43569 | #endif | |
43570 | ||
c32bde28 RD |
43571 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
43572 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
43573 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
43574 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
43575 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
43576 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
43577 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
43578 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
43579 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
43580 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
43581 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
43582 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
43583 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
43584 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
43585 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
43586 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
43587 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
43588 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
43589 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
43590 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
43591 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
43592 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
43593 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
43594 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
43595 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
43596 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
43597 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
43598 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
43599 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
43600 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
43601 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
43602 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
43603 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
43604 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
43605 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
43606 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
43607 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
43608 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
43609 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
43610 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
43611 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
43612 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
43613 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
43614 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
43615 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
43616 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
43617 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
43618 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
43619 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
43620 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
43621 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
43622 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
43623 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
43624 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
43625 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
43626 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
43627 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
43628 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
43629 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
43630 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
43631 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
43632 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
43633 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
43634 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
43635 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
43636 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
43637 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
43638 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
43639 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
43640 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
43641 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
43642 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
43643 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
43644 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
43645 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
43646 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
43647 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
43648 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
43649 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
43650 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
43651 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
43652 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
43653 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
43654 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
43655 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
43656 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
43657 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
43658 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
43659 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
43660 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
43661 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
43662 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
43663 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
43664 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
43665 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
43666 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
43667 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
43668 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
43669 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
43670 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
43671 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
43672 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
43673 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
43674 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
43675 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
43676 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
43677 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
43678 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
43679 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
43680 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
43681 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
43682 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
43683 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
43684 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
43685 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
43686 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
43687 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
43688 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
43689 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
43690 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
43691 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
43692 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
43693 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
43694 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
43695 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
43696 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
43697 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
43698 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
43699 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
43700 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
43701 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
43702 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
43703 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
43704 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
43705 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
43706 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
43707 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
43708 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
43709 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
43710 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
43711 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
43712 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
43713 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
43714 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
43715 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
43716 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
43717 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
43718 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
43719 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
43720 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
43721 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
43722 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
43723 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
43724 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
43725 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
43726 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
43727 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
43728 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
43729 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
43730 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
43731 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
43732 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
43733 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
43734 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
43735 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
43736 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
43737 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
43738 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
43739 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
43740 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
43741 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
43742 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
43743 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
43744 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
43745 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
43746 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
43747 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
43748 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
43749 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
43750 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
43751 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
43752 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
43753 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
43754 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
43755 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
43756 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
43757 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
43758 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
43759 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
43760 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
43761 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
43762 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
43763 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
43764 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
43765 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
43766 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
43767 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
43768 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
43769 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
43770 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
43771 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
43772 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
43773 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
43774 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
43775 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
43776 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
43777 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
43778 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
43779 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
43780 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
43781 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
43782 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
43783 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
43784 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
43785 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
43786 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
43787 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
43788 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
43789 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
43790 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
43791 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
43792 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
43793 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
43794 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
43795 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
43796 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
43797 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
43798 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
43799 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
43800 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
43801 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
43802 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
43803 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
43804 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
43805 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
43806 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
43807 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
43808 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
43809 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
43810 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
43811 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
43812 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
43813 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
43814 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
43815 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
43816 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
43817 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
43818 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
43819 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
43820 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
43821 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
43822 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
43823 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
43824 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
43825 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
43826 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
43827 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
43828 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
43829 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
43830 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
43831 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
43832 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
43833 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
43834 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
43835 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
43836 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
43837 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
43838 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
43839 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
43840 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
43841 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
43842 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
43843 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
43844 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
43845 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
43846 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
43847 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
43848 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
43849 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
43850 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
43851 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
43852 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
43853 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
43854 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
43855 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
43856 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
43857 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
43858 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
43859 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
43860 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
43861 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
43862 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
43863 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
43864 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
43865 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
43866 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
43867 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
43868 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
43869 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
43870 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
43871 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
43872 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
43873 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43874 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43875 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43876 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43877 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43878 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43879 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43880 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43881 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43882 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43883 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43884 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43885 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43886 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43887 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43888 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43889 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43890 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43891 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43892 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43893 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43894 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43895 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43896 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43897 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43898 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43899 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43900 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43901 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43902 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43903 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43904 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43905 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43906 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43907 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43908 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43909 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43910 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43911 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43912 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43913 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43914 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43915 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43916 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43917 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43918 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43919 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43920 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43921 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43922 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43923 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43924 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43925 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43926 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43927 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43928 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43929 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43930 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43931 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43932 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43933 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43934 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43935 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43936 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43937 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43938 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43939 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43940 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43941 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43942 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43943 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43944 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43945 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43946 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43947 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43948 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43949 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43950 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43951 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43952 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43953 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43954 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43955 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43956 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43957 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43958 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43959 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43960 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43961 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43962 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43963 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43964 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43965 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43966 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43967 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43968 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43969 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43970 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43971 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43972 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43973 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43974 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43975 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43976 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43977 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43978 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43979 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43980 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43981 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43982 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43983 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43984 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43985 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43986 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43987 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43988 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43989 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43990 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43991 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43992 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43993 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43994 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43995 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43996 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43997 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43998 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43999 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
44000 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
44001 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
44002 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
44003 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
44004 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
44005 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
44006 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
44007 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
44008 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
44009 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
44010 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
44011 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
44012 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
44013 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
44014 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
44015 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
44016 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
44017 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
44018 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
44019 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
44020 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
44021 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
44022 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
44023 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
44024 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
44025 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
44026 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
44027 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
44028 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
44029 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
44030 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
44031 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
44032 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
44033 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
44034 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
44035 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
44036 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
44037 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
44038 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
44039 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
44040 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
44041 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
44042 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
44043 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
44044 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
44045 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
44046 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
44047 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
44048 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
44049 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
44050 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
44051 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
44052 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
44053 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
44054 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
44055 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
44056 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
44057 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
44058 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
44059 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
44060 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
44061 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
44062 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
44063 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
44064 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
44065 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
44066 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
44067 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
44068 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
44069 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
44070 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
44071 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
44072 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
44073 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
44074 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
44075 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
44076 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
44077 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
44078 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
44079 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
44080 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
44081 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
44082 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
44083 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
44084 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
44085 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
44086 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
44087 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
44088 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
44089 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
44090 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
44091 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
44092 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
44093 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
44094 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
44095 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
44096 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
44097 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
44098 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
44099 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
44100 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
44101 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
44102 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
44103 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
44104 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
44105 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
44106 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
44107 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
44108 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
44109 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
44110 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
44111 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
44112 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
44113 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c32bde28 RD |
44114 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
44115 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
44116 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
44117 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
44118 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
44119 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
44120 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
44121 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
44122 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
44123 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
44124 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
44125 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
44126 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
44127 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
44128 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
44129 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
44130 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
44131 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
44132 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
44133 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
44134 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
44135 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
44136 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
44137 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
44138 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
44139 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
44140 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
44141 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
44142 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
44143 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
44144 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
44145 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
44146 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
44147 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
44148 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
44149 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
44150 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
44151 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
44152 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
44153 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
44154 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
44155 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
44156 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
44157 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
44158 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
44159 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
44160 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
44161 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
44162 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
44163 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
44164 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
44165 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
44166 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c32bde28 RD |
44167 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
44168 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
44169 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
44170 | |
44171 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
44172 | ||
44173 | ||
44174 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
44175 | ||
44176 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
44177 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
44178 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
44179 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
44180 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
44181 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c32bde28 RD |
44182 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
44183 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
44184 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
44185 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
44186 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
44187 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
44188 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
44189 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
44190 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
44191 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
44192 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
44193 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
44194 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
44195 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
44196 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
44197 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
44198 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
44199 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
44200 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
44201 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
44202 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
44203 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
44204 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
44205 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
44206 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
44207 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
44208 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
44209 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
44210 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
44211 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
44212 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
44213 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
44214 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
44215 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
44216 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
44217 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
44218 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
44219 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
44220 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
44221 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
44222 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
44223 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
44224 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
44225 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
44226 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
44227 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
44228 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
44229 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
44230 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
44231 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
44232 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
44233 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
44234 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
44235 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
44236 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
44237 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
44238 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
44239 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
44240 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
44241 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
44242 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
44243 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
44244 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
44245 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
44246 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
44247 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
44248 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
44249 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
44250 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
44251 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
44252 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
44253 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
44254 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
44255 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
44256 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
44257 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
44258 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
44259 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
44260 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
44261 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
44262 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
44263 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
44264 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
44265 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
44266 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
44267 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
44268 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
44269 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
44270 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
44271 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
44272 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
44273 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
44274 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
44275 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
44276 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
44277 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
44278 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
44279 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
44280 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
44281 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
44282 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
44283 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
44284 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
44285 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
44286 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
44287 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
44288 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
44289 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
44290 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
44291 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
44292 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
44293 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
44294 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
44295 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
44296 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
44297 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
44298 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
44299 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
44300 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
44301 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
44302 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
44303 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
44304 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
44305 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
44306 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
44307 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
44308 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
44309 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
44310 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c32bde28 RD |
44311 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
44312 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
44313 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
44314 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
44315 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
44316 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
44317 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
44318 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
44319 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
44320 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
44321 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
44322 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
44323 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
44324 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
44325 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
44326 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
44327 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
44328 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
44329 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
44330 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c32bde28 RD |
44331 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
44332 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
44333 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
44334 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
44335 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
44336 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
44337 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c32bde28 RD |
44338 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
44339 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
44340 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 44341 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c32bde28 RD |
44342 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
44343 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
44344 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
44345 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
44346 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
44347 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
44348 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
44349 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
44350 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
44351 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
44352 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
44353 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
44354 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
44355 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
44356 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
44357 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
44358 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
44359 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
44360 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
44361 | |
44362 | // Initialize threading, some globals and such | |
44363 | __wxPyPreStart(d); | |
44364 | ||
44365 | ||
44366 | // Although these are defined in __version__ they need to be here too so | |
44367 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
44368 | // versions match. | |
44369 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
44370 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
44371 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
44372 | ||
44373 | } | |
44374 |