]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
c32bde28 | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d55e5bfc RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c32bde28 | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d55e5bfc RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c32bde28 | 128 | |
d55e5bfc RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d55e5bfc RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c32bde28 | 208 | |
d55e5bfc RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
212 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
213 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
214 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
215 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
ae8162c8 RD |
216 | #define SWIGTYPE_p_wxEventLoop swig_types[5] |
217 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[6] | |
218 | #define SWIGTYPE_p_wxSizer swig_types[7] | |
219 | #define SWIGTYPE_p_wxBoxSizer swig_types[8] | |
220 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[9] | |
221 | #define SWIGTYPE_p_wxGridBagSizer swig_types[10] | |
222 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[11] | |
223 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[12] | |
224 | #define SWIGTYPE_p_wxMenu swig_types[13] | |
225 | #define SWIGTYPE_p_wxEvent swig_types[14] | |
226 | #define SWIGTYPE_p_wxGridSizer swig_types[15] | |
227 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[16] | |
228 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[17] | |
229 | #define SWIGTYPE_p_wxItemContainer swig_types[18] | |
230 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[19] | |
231 | #define SWIGTYPE_p_wxPaintEvent swig_types[20] | |
232 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[21] | |
233 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[22] | |
234 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23] | |
235 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[24] | |
236 | #define SWIGTYPE_p_wxControl swig_types[25] | |
237 | #define SWIGTYPE_p_wxFont swig_types[26] | |
238 | #define SWIGTYPE_p_wxMenuBarBase swig_types[27] | |
239 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[28] | |
240 | #define SWIGTYPE_p_wxFSFile swig_types[29] | |
241 | #define SWIGTYPE_p_wxCaret swig_types[30] | |
242 | #define SWIGTYPE_p_wxRegion swig_types[31] | |
243 | #define SWIGTYPE_p_wxPoint2D swig_types[32] | |
244 | #define SWIGTYPE_p_int swig_types[33] | |
245 | #define SWIGTYPE_p_wxSize swig_types[34] | |
246 | #define SWIGTYPE_p_wxDC swig_types[35] | |
247 | #define SWIGTYPE_p_wxPySizer swig_types[36] | |
248 | #define SWIGTYPE_p_wxVisualAttributes swig_types[37] | |
249 | #define SWIGTYPE_p_wxNotifyEvent swig_types[38] | |
250 | #define SWIGTYPE_p_wxPyEvent swig_types[39] | |
251 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[40] | |
252 | #define SWIGTYPE_p_wxAppTraits swig_types[41] | |
253 | #define SWIGTYPE_p_wxArrayString swig_types[42] | |
254 | #define SWIGTYPE_p_wxShowEvent swig_types[43] | |
255 | #define SWIGTYPE_p_wxToolTip swig_types[44] | |
256 | #define SWIGTYPE_p_wxIconizeEvent swig_types[45] | |
257 | #define SWIGTYPE_p_wxActivateEvent swig_types[46] | |
258 | #define SWIGTYPE_p_wxMoveEvent swig_types[47] | |
259 | #define SWIGTYPE_p_wxSizeEvent swig_types[48] | |
260 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[49] | |
261 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[50] | |
262 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[51] | |
263 | #define SWIGTYPE_p_wxIdleEvent swig_types[52] | |
264 | #define SWIGTYPE_p_wxMenuItem swig_types[53] | |
265 | #define SWIGTYPE_p_wxStaticBox swig_types[54] | |
266 | #define SWIGTYPE_p_long swig_types[55] | |
267 | #define SWIGTYPE_p_wxTIFFHandler swig_types[56] | |
268 | #define SWIGTYPE_p_wxXPMHandler swig_types[57] | |
269 | #define SWIGTYPE_p_wxPNMHandler swig_types[58] | |
270 | #define SWIGTYPE_p_wxJPEGHandler swig_types[59] | |
271 | #define SWIGTYPE_p_wxPCXHandler swig_types[60] | |
272 | #define SWIGTYPE_p_wxGIFHandler swig_types[61] | |
273 | #define SWIGTYPE_p_wxPNGHandler swig_types[62] | |
274 | #define SWIGTYPE_p_wxANIHandler swig_types[63] | |
275 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[64] | |
276 | #define SWIGTYPE_p_wxEvtHandler swig_types[65] | |
277 | #define SWIGTYPE_p_wxCURHandler swig_types[66] | |
278 | #define SWIGTYPE_p_wxICOHandler swig_types[67] | |
279 | #define SWIGTYPE_p_wxBMPHandler swig_types[68] | |
280 | #define SWIGTYPE_p_wxImageHandler swig_types[69] | |
281 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[70] | |
282 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[71] | |
283 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[72] | |
284 | #define SWIGTYPE_p_wxZipFSHandler swig_types[73] | |
285 | #define SWIGTYPE_p_wxRect swig_types[74] | |
286 | #define SWIGTYPE_p_wxGBSpan swig_types[75] | |
287 | #define SWIGTYPE_p_wxPropagateOnce swig_types[76] | |
288 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[77] | |
289 | #define SWIGTYPE_p_char swig_types[78] | |
290 | #define SWIGTYPE_p_wxGBPosition swig_types[79] | |
291 | #define SWIGTYPE_p_wxImage swig_types[80] | |
292 | #define SWIGTYPE_p_wxFrame swig_types[81] | |
293 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[82] | |
294 | #define SWIGTYPE_p_wxImageHistogram swig_types[83] | |
295 | #define SWIGTYPE_p_byte swig_types[84] | |
296 | #define SWIGTYPE_p_wxPoint swig_types[85] | |
297 | #define SWIGTYPE_p_wxCursor swig_types[86] | |
298 | #define SWIGTYPE_p_wxObject swig_types[87] | |
299 | #define SWIGTYPE_p_wxPyInputStream swig_types[88] | |
300 | #define SWIGTYPE_p_wxOutputStream swig_types[89] | |
301 | #define SWIGTYPE_p_wxInputStream swig_types[90] | |
302 | #define SWIGTYPE_p_wxDateTime swig_types[91] | |
303 | #define SWIGTYPE_p_wxKeyEvent swig_types[92] | |
304 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93] | |
305 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[94] | |
306 | #define SWIGTYPE_p_wxWindow swig_types[95] | |
307 | #define SWIGTYPE_p_wxMenuBar swig_types[96] | |
308 | #define SWIGTYPE_p_wxFileSystem swig_types[97] | |
309 | #define SWIGTYPE_p_wxBitmap swig_types[98] | |
310 | #define SWIGTYPE_p_wxMenuEvent swig_types[99] | |
311 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[100] | |
312 | #define SWIGTYPE_p_unsigned_char swig_types[101] | |
313 | #define SWIGTYPE_p_wxCloseEvent swig_types[102] | |
314 | #define SWIGTYPE_p_wxEraseEvent swig_types[103] | |
315 | #define SWIGTYPE_p_wxMouseEvent swig_types[104] | |
316 | #define SWIGTYPE_p_wxPyApp swig_types[105] | |
317 | #define SWIGTYPE_p_wxCommandEvent swig_types[106] | |
318 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[107] | |
319 | #define SWIGTYPE_p_wxPyDropTarget swig_types[108] | |
320 | #define SWIGTYPE_p_wxQuantize swig_types[109] | |
321 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[110] | |
322 | #define SWIGTYPE_p_wxFocusEvent swig_types[111] | |
323 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[112] | |
324 | #define SWIGTYPE_p_wxControlWithItems swig_types[113] | |
325 | #define SWIGTYPE_p_wxColour swig_types[114] | |
326 | #define SWIGTYPE_p_wxValidator swig_types[115] | |
327 | #define SWIGTYPE_p_wxPyValidator swig_types[116] | |
328 | static swig_type_info *swig_types[118]; | |
d55e5bfc RD |
329 | |
330 | /* -------- TYPES TABLE (END) -------- */ | |
331 | ||
332 | ||
333 | /*----------------------------------------------- | |
334 | @(target):= _core_.so | |
335 | ------------------------------------------------*/ | |
336 | #define SWIG_init init_core_ | |
337 | ||
338 | #define SWIG_name "_core_" | |
339 | ||
c32bde28 RD |
340 | /* Auxiliar swig macros that appear in the header */ |
341 | ||
342 | #define SWIG_OLDOBJ 1 | |
343 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
344 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
345 | |
346 | #ifdef __cplusplus | |
347 | #define SWIGSTATICINLINE(a) static inline a | |
348 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
349 | #define swig_new_array(size,Type) (new Type[(size)]) |
350 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 351 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
352 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
353 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
354 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
355 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
356 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
357 | |
358 | #else /* C case */ | |
359 | ||
360 | #define SWIGSTATICINLINE(a) static a | |
361 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
362 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
363 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 364 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
365 | #define swig_const_cast(a,Type) (Type)(a) |
366 | #define swig_static_cast(a,Type) (Type)(a) | |
367 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
368 | #define swig_numeric_cast(a,Type) (Type)(a) | |
369 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
370 | |
371 | #endif /* __cplusplus */ | |
372 | ||
373 | ||
c32bde28 RD |
374 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
375 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
376 | /*@@*/ | |
377 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
378 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
379 | /*@@*/ | |
380 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
381 | #define SWIG_From_short PyInt_FromLong | |
382 | /*@@*/ | |
383 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
384 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
385 | /*@@*/ | |
386 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
387 | #define SWIG_From_int PyInt_FromLong | |
388 | /*@@*/ | |
389 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
390 | #define SWIG_From_long PyInt_FromLong | |
391 | /*@@*/ | |
392 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
393 | #define SWIG_From_float PyFloat_FromDouble | |
394 | /*@@*/ | |
395 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
396 | #define SWIG_From_double PyFloat_FromDouble | |
397 | /*@@*/ | |
d55e5bfc RD |
398 | |
399 | ||
400 | #include "wx/wxPython/wxPython_int.h" | |
401 | #include "wx/wxPython/pyclasses.h" | |
402 | ||
403 | ||
404 | #ifndef wxPyUSE_EXPORT | |
405 | // Helper functions for dealing with SWIG objects and such. These are | |
406 | // located here so they know about the SWIG types and functions declared | |
407 | // in the wrapper code. | |
408 | ||
409 | #include <wx/hashmap.h> | |
410 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
411 | ||
412 | ||
413 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
414 | // name of a class either looks up the type info in the cache, or scans the | |
415 | // SWIG tables for it. | |
416 | extern PyObject* wxPyPtrTypeMap; | |
417 | static | |
418 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
419 | ||
420 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
421 | ||
422 | if (typeInfoCache == NULL) | |
423 | typeInfoCache = new wxPyTypeInfoHashMap; | |
424 | ||
425 | wxString name(className); | |
426 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
427 | ||
428 | if (! swigType) { | |
429 | // it wasn't in the cache, so look it up from SWIG | |
430 | name.Append(wxT(" *")); | |
431 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
432 | ||
433 | // if it still wasn't found, try looking for a mapped name | |
434 | if (!swigType) { | |
435 | PyObject* item; | |
436 | name = className; | |
437 | ||
438 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
439 | (char*)(const char*)name.mbc_str())) != NULL) { | |
440 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
441 | name.Append(wxT(" *")); | |
442 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
443 | } | |
444 | } | |
445 | if (swigType) { | |
446 | // and add it to the map if found | |
447 | (*typeInfoCache)[className] = swigType; | |
448 | } | |
449 | } | |
450 | return swigType; | |
451 | } | |
452 | ||
453 | ||
454 | // Check if a class name is a type known to SWIG | |
455 | bool wxPyCheckSwigType(const wxChar* className) { | |
456 | ||
457 | swig_type_info* swigType = wxPyFindSwigType(className); | |
458 | return swigType != NULL; | |
459 | } | |
460 | ||
461 | ||
462 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
463 | // object for it. | |
464 | PyObject* wxPyConstructObject(void* ptr, | |
465 | const wxChar* className, | |
466 | int setThisOwn) { | |
467 | ||
468 | swig_type_info* swigType = wxPyFindSwigType(className); | |
469 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
470 | ||
471 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
472 | } | |
473 | ||
474 | ||
475 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
476 | // Ensures that the proxy object is of the specified (or derived) type. If | |
477 | // not able to perform the conversion then a Python exception is set and the | |
478 | // error should be handled properly in the caller. Returns True on success. | |
479 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
480 | const wxChar* className) { | |
481 | ||
482 | swig_type_info* swigType = wxPyFindSwigType(className); | |
ae8162c8 | 483 | wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr")); |
d55e5bfc RD |
484 | |
485 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
486 | } | |
487 | ||
488 | ||
489 | // Make a SWIGified pointer object suitable for a .this attribute | |
490 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
491 | ||
492 | PyObject* robj = NULL; | |
493 | ||
494 | swig_type_info* swigType = wxPyFindSwigType(className); | |
495 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
496 | ||
497 | #ifdef SWIG_COBJECT_TYPES | |
498 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
499 | #else | |
500 | { | |
501 | char result[1024]; | |
502 | char *r = result; | |
503 | *(r++) = '_'; | |
504 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
505 | strcpy(r, swigType->name); | |
506 | robj = PyString_FromString(result); | |
507 | } | |
508 | #endif | |
509 | ||
510 | return robj; | |
511 | } | |
512 | ||
513 | ||
514 | ||
515 | ||
516 | // Export a C API in a struct. Other modules will be able to load this from | |
517 | // the wx._core_ module and will then have safe access to these functions, | |
518 | // even if they are located in another shared library. | |
519 | static wxPyCoreAPI API = { | |
520 | ||
521 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
522 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
523 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
524 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
525 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
c32bde28 | 526 | (p_SWIG_Python_TypePrettyName_t)SWIG_Python_TypePrettyName, |
d55e5bfc RD |
527 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, |
528 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
529 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
530 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
531 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
532 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
533 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
534 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
535 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
536 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
537 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
538 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
539 | ||
540 | wxPyCheckSwigType, | |
541 | wxPyConstructObject, | |
542 | wxPyConvertSwigPtr, | |
543 | wxPyMakeSwigPtr, | |
544 | ||
545 | wxPyBeginAllowThreads, | |
546 | wxPyEndAllowThreads, | |
547 | wxPyBeginBlockThreads, | |
548 | wxPyEndBlockThreads, | |
549 | ||
550 | wxPy_ConvertList, | |
551 | ||
552 | wxString_in_helper, | |
553 | Py2wxString, | |
554 | wx2PyString, | |
555 | ||
556 | byte_LIST_helper, | |
557 | int_LIST_helper, | |
558 | long_LIST_helper, | |
559 | string_LIST_helper, | |
560 | wxPoint_LIST_helper, | |
561 | wxBitmap_LIST_helper, | |
562 | wxString_LIST_helper, | |
563 | wxAcceleratorEntry_LIST_helper, | |
564 | ||
565 | wxSize_helper, | |
566 | wxPoint_helper, | |
567 | wxRealPoint_helper, | |
568 | wxRect_helper, | |
569 | wxColour_helper, | |
570 | wxPoint2D_helper, | |
571 | ||
572 | wxPySimple_typecheck, | |
573 | wxColour_typecheck, | |
574 | ||
575 | wxPyCBH_setCallbackInfo, | |
576 | wxPyCBH_findCallback, | |
577 | wxPyCBH_callCallback, | |
578 | wxPyCBH_callCallbackObj, | |
579 | wxPyCBH_delete, | |
580 | ||
581 | wxPyMake_wxObject, | |
582 | wxPyMake_wxSizer, | |
583 | wxPyPtrTypeMap_Add, | |
584 | wxPy2int_seq_helper, | |
585 | wxPy4int_seq_helper, | |
586 | wxArrayString2PyList_helper, | |
587 | wxArrayInt2PyList_helper, | |
588 | ||
589 | wxPyClientData_dtor, | |
590 | wxPyUserData_dtor, | |
591 | wxPyOORClientData_dtor, | |
592 | ||
593 | wxPyCBInputStream_create, | |
594 | ||
595 | wxPyInstance_Check, | |
0439c23b RD |
596 | wxPySwigInstance_Check, |
597 | ||
598 | wxPyCheckForApp | |
d55e5bfc RD |
599 | |
600 | }; | |
601 | ||
602 | #endif | |
603 | ||
604 | ||
605 | #if ! wxUSE_HOTKEY | |
606 | enum wxHotkeyModifier | |
607 | { | |
608 | wxMOD_NONE = 0, | |
609 | wxMOD_ALT = 1, | |
610 | wxMOD_CONTROL = 2, | |
611 | wxMOD_SHIFT = 4, | |
612 | wxMOD_WIN = 8 | |
613 | }; | |
614 | #define wxEVT_HOTKEY 9999 | |
615 | #endif | |
616 | ||
617 | static const wxString wxPyEmptyString(wxEmptyString); | |
618 | wxString wxObject_GetClassName(wxObject *self){ | |
619 | return self->GetClassInfo()->GetClassName(); | |
620 | } | |
621 | void wxObject_Destroy(wxObject *self){ | |
622 | delete self; | |
623 | } | |
624 | ||
625 | #ifndef __WXMAC__ | |
626 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
627 | #endif | |
628 | ||
629 | ||
630 | #include <limits.h> | |
631 | ||
632 | ||
c32bde28 RD |
633 | SWIGSTATICINLINE(int) |
634 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
635 | const char *errmsg) | |
d55e5bfc | 636 | { |
c32bde28 RD |
637 | if (value < min_value) { |
638 | if (errmsg) { | |
639 | PyErr_Format(PyExc_OverflowError, | |
640 | "value %ld is less than '%s' minimum %ld", | |
641 | value, errmsg, min_value); | |
642 | } | |
643 | return 0; | |
644 | } else if (value > max_value) { | |
645 | if (errmsg) { | |
646 | PyErr_Format(PyExc_OverflowError, | |
647 | "value %ld is greater than '%s' maximum %ld", | |
648 | value, errmsg, max_value); | |
d55e5bfc | 649 | } |
c32bde28 | 650 | return 0; |
d55e5bfc | 651 | } |
c32bde28 | 652 | return 1; |
d55e5bfc RD |
653 | } |
654 | ||
655 | ||
c32bde28 RD |
656 | // See my_fragments.i |
657 | SWIGSTATICINLINE(int) | |
658 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 659 | { |
c32bde28 RD |
660 | if (PyNumber_Check(obj)) { |
661 | if (val) *val = PyInt_AsLong(obj); | |
662 | return 1; | |
663 | } | |
d55e5bfc RD |
664 | else { |
665 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
666 | obj->ob_type->tp_name); | |
667 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
668 | Py_DECREF(errmsg); | |
d55e5bfc | 669 | } |
c32bde28 | 670 | return 0; |
d55e5bfc RD |
671 | } |
672 | ||
673 | ||
674 | #if INT_MAX != LONG_MAX | |
675 | SWIGSTATICINLINE(int) | |
c32bde28 | 676 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 677 | { |
c32bde28 RD |
678 | const char* errmsg = val ? "int" : 0; |
679 | long v; | |
680 | if (SWIG_AsVal_long(obj, &v)) { | |
681 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
682 | if (val) *val = swig_numeric_cast(v, int); | |
683 | return 1; | |
684 | } else { | |
685 | return 0; | |
686 | } | |
687 | } else { | |
688 | PyErr_Clear(); | |
689 | } | |
690 | if (val) { | |
691 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
692 | } | |
693 | return 0; | |
d55e5bfc RD |
694 | } |
695 | #else | |
c32bde28 RD |
696 | SWIGSTATICINLINE(int) |
697 | SWIG_AsVal_int(PyObject *obj, int *val) | |
698 | { | |
699 | return SWIG_AsVal_long(obj,(long*)val); | |
700 | } | |
d55e5bfc RD |
701 | #endif |
702 | ||
703 | ||
704 | SWIGSTATICINLINE(int) | |
c32bde28 | 705 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 706 | { |
c32bde28 RD |
707 | int v; |
708 | if (!SWIG_AsVal_int(obj, &v)) { | |
709 | /* | |
710 | this is needed to make valgrind/purify happier. the other | |
711 | solution is throw an exception, but since this code should work | |
712 | with plain C .... | |
713 | */ | |
714 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 715 | } |
c32bde28 RD |
716 | return v; |
717 | } | |
718 | ||
719 | ||
720 | SWIGSTATICINLINE(int) | |
721 | SWIG_Check_int(PyObject* obj) | |
722 | { | |
723 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
724 | } |
725 | ||
726 | PyObject *wxSize_Get(wxSize *self){ | |
727 | bool blocked = wxPyBeginBlockThreads(); | |
728 | PyObject* tup = PyTuple_New(2); | |
729 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
730 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
731 | wxPyEndBlockThreads(blocked); | |
732 | return tup; | |
733 | } | |
734 | ||
c32bde28 RD |
735 | // See my_fragments.i |
736 | SWIGSTATICINLINE(int) | |
737 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 738 | { |
c32bde28 RD |
739 | if (PyNumber_Check(obj)) { |
740 | if (val) *val = PyFloat_AsDouble(obj); | |
741 | return 1; | |
742 | } | |
d55e5bfc RD |
743 | else { |
744 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
745 | obj->ob_type->tp_name); | |
746 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
747 | Py_DECREF(errmsg); | |
d55e5bfc | 748 | } |
c32bde28 | 749 | return 0; |
d55e5bfc RD |
750 | } |
751 | ||
752 | ||
c32bde28 RD |
753 | SWIGSTATICINLINE(double) |
754 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 755 | { |
c32bde28 RD |
756 | double v; |
757 | if (!SWIG_AsVal_double(obj, &v)) { | |
758 | /* | |
759 | this is needed to make valgrind/purify happier. the other | |
760 | solution is throw an exception, but since this code should work | |
761 | with plain C .... | |
762 | */ | |
763 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 764 | } |
c32bde28 RD |
765 | return v; |
766 | } | |
767 | ||
768 | ||
769 | SWIGSTATICINLINE(int) | |
770 | SWIG_Check_double(PyObject* obj) | |
771 | { | |
772 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
773 | } |
774 | ||
775 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
776 | self->x = x; | |
777 | self->y = y; | |
778 | } | |
779 | PyObject *wxRealPoint_Get(wxRealPoint *self){ | |
780 | bool blocked = wxPyBeginBlockThreads(); | |
781 | PyObject* tup = PyTuple_New(2); | |
782 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
783 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
784 | wxPyEndBlockThreads(blocked); | |
785 | return tup; | |
786 | } | |
787 | ||
c32bde28 RD |
788 | SWIGSTATICINLINE(long) |
789 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 790 | { |
c32bde28 RD |
791 | long v; |
792 | if (!SWIG_AsVal_long(obj, &v)) { | |
793 | /* | |
794 | this is needed to make valgrind/purify happier. the other | |
795 | solution is throw an exception, but since this code should work | |
796 | with plain C .... | |
797 | */ | |
798 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 799 | } |
c32bde28 RD |
800 | return v; |
801 | } | |
802 | ||
803 | ||
804 | SWIGSTATICINLINE(int) | |
805 | SWIG_Check_long(PyObject* obj) | |
806 | { | |
807 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
808 | } |
809 | ||
810 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
811 | self->x = x; | |
812 | self->y = y; | |
813 | } | |
814 | PyObject *wxPoint_Get(wxPoint *self){ | |
815 | bool blocked = wxPyBeginBlockThreads(); | |
816 | PyObject* tup = PyTuple_New(2); | |
817 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
818 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
819 | wxPyEndBlockThreads(blocked); | |
820 | return tup; | |
821 | } | |
822 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
823 | self->x = x; | |
824 | self->y = y; | |
825 | self->width = width; | |
826 | self->height = height; | |
827 | } | |
828 | PyObject *wxRect_Get(wxRect *self){ | |
829 | bool blocked = wxPyBeginBlockThreads(); | |
830 | PyObject* tup = PyTuple_New(4); | |
831 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
832 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
833 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
834 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
835 | wxPyEndBlockThreads(blocked); | |
836 | return tup; | |
837 | } | |
838 | ||
839 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
840 | wxRegion reg1(*r1); | |
841 | wxRegion reg2(*r2); | |
842 | wxRect dest(0,0,0,0); | |
843 | PyObject* obj; | |
844 | ||
845 | reg1.Intersect(reg2); | |
846 | dest = reg1.GetBox(); | |
847 | ||
848 | if (dest != wxRect(0,0,0,0)) { | |
849 | bool blocked = wxPyBeginBlockThreads(); | |
850 | wxRect* newRect = new wxRect(dest); | |
ae8162c8 | 851 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); |
d55e5bfc RD |
852 | wxPyEndBlockThreads(blocked); |
853 | return obj; | |
854 | } | |
855 | Py_INCREF(Py_None); | |
856 | return Py_None; | |
857 | } | |
858 | ||
859 | ||
c32bde28 | 860 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
861 | PyObject* o2; |
862 | PyObject* o3; | |
c32bde28 | 863 | |
d55e5bfc RD |
864 | if (!target) { |
865 | target = o; | |
866 | } else if (target == Py_None) { | |
867 | Py_DECREF(Py_None); | |
868 | target = o; | |
7e63a440 RD |
869 | } else { |
870 | if (!PyTuple_Check(target)) { | |
871 | o2 = target; | |
872 | target = PyTuple_New(1); | |
873 | PyTuple_SetItem(target, 0, o2); | |
874 | } | |
d55e5bfc RD |
875 | o3 = PyTuple_New(1); |
876 | PyTuple_SetItem(o3, 0, o); | |
877 | ||
878 | o2 = target; | |
879 | target = PySequence_Concat(o2, o3); | |
880 | Py_DECREF(o2); | |
881 | Py_DECREF(o3); | |
882 | } | |
883 | return target; | |
7e63a440 | 884 | } |
d55e5bfc | 885 | |
c32bde28 | 886 | |
d55e5bfc RD |
887 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ |
888 | self->m_x = x; | |
889 | self->m_y = y; | |
890 | } | |
891 | PyObject *wxPoint2D_Get(wxPoint2D *self){ | |
892 | bool blocked = wxPyBeginBlockThreads(); | |
893 | PyObject* tup = PyTuple_New(2); | |
894 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
895 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
896 | wxPyEndBlockThreads(blocked); | |
897 | return tup; | |
898 | } | |
899 | ||
900 | #include "wx/wxPython/pyistream.h" | |
901 | ||
902 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
903 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
904 | if (wxis) | |
905 | return new wxPyInputStream(wxis); | |
906 | else | |
907 | return NULL; | |
908 | } | |
909 | ||
910 | SWIGSTATICINLINE(PyObject*) | |
c32bde28 | 911 | SWIG_From_char(char c) |
d55e5bfc RD |
912 | { |
913 | return PyString_FromStringAndSize(&c,1); | |
914 | } | |
915 | ||
916 | ||
917 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 918 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
919 | { |
920 | return (value > LONG_MAX) ? | |
921 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 922 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
923 | } |
924 | ||
925 | ||
c32bde28 | 926 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
d55e5bfc | 927 | SWIGSTATIC(int) |
c32bde28 | 928 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
d55e5bfc RD |
929 | { |
930 | static swig_type_info* pchar_info = 0; | |
c32bde28 | 931 | char* vptr = 0; |
d55e5bfc | 932 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); |
c32bde28 RD |
933 | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) { |
934 | if (cptr) *cptr = vptr; | |
935 | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; | |
936 | return SWIG_OLDOBJ; | |
d55e5bfc | 937 | } else { |
c32bde28 RD |
938 | if (PyString_Check(obj)) { |
939 | if (cptr) { | |
940 | *cptr = PyString_AS_STRING(obj); | |
941 | if (psize) { | |
942 | *psize = PyString_GET_SIZE(obj) + 1; | |
943 | } | |
944 | } | |
945 | return SWIG_PYSTR; | |
946 | } | |
d55e5bfc | 947 | } |
c32bde28 RD |
948 | if (cptr) { |
949 | PyErr_SetString(PyExc_TypeError, "a string is expected"); | |
950 | } | |
951 | return 0; | |
d55e5bfc RD |
952 | } |
953 | ||
954 | ||
c32bde28 RD |
955 | SWIGSTATIC(int) |
956 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) | |
d55e5bfc RD |
957 | { |
958 | char* cptr; size_t csize; | |
c32bde28 RD |
959 | if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) { |
960 | /* in C you can do: | |
961 | ||
d55e5bfc RD |
962 | char x[5] = "hello"; |
963 | ||
964 | ie, assing the array using an extra '0' char. | |
965 | */ | |
d55e5bfc | 966 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; |
c32bde28 RD |
967 | if (csize <= size) { |
968 | if (val) { | |
969 | if (csize) memcpy(val, cptr, csize); | |
970 | if (csize < size) memset(val + csize, 0, size - csize); | |
971 | } | |
972 | return 1; | |
d55e5bfc RD |
973 | } |
974 | } | |
c32bde28 RD |
975 | if (val) { |
976 | PyErr_Format(PyExc_TypeError, | |
977 | "a char array of maximum size %ld is expected", | |
978 | size); | |
979 | } | |
980 | return 0; | |
d55e5bfc RD |
981 | } |
982 | ||
983 | ||
c32bde28 RD |
984 | SWIGSTATICINLINE(int) |
985 | SWIG_AsVal_char(PyObject *obj, char *val) | |
986 | { | |
987 | const char* errmsg = val ? "char" : 0; | |
988 | long v; | |
989 | if (SWIG_AsVal_long(obj, &v)) { | |
990 | if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) { | |
991 | if (val) *val = v; | |
992 | return 1; | |
993 | } else { | |
994 | return 0; | |
995 | } | |
996 | } else { | |
997 | PyErr_Clear(); | |
998 | return SWIG_AsCharArray(obj, val, 1); | |
999 | } | |
1000 | } | |
1001 | ||
1002 | ||
d55e5bfc | 1003 | SWIGSTATICINLINE(char) |
c32bde28 RD |
1004 | SWIG_As_char(PyObject* obj) |
1005 | { | |
1006 | char v; | |
1007 | if (!SWIG_AsVal_char(obj, &v)) { | |
1008 | /* | |
1009 | this is needed to make valgrind/purify happier. the other | |
1010 | solution is throw an exception, but since this code should work | |
1011 | with plain C .... | |
1012 | */ | |
1013 | memset((void*)&v, 0, sizeof(char)); | |
d55e5bfc | 1014 | } |
c32bde28 | 1015 | return v; |
d55e5bfc RD |
1016 | } |
1017 | ||
c32bde28 | 1018 | |
d55e5bfc | 1019 | SWIGSTATICINLINE(int) |
c32bde28 | 1020 | SWIG_Check_char(PyObject* obj) |
d55e5bfc | 1021 | { |
c32bde28 | 1022 | return SWIG_AsVal_char(obj, (char*)0); |
d55e5bfc RD |
1023 | } |
1024 | ||
1025 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
1026 | // We use only strings for the streams, not unicode | |
1027 | PyObject* str = PyObject_Str(obj); | |
1028 | if (! str) { | |
1029 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
1030 | return; | |
1031 | } | |
1032 | self->Write(PyString_AS_STRING(str), | |
1033 | PyString_GET_SIZE(str)); | |
1034 | Py_DECREF(str); | |
1035 | } | |
1036 | ||
1037 | #include "wx/wxPython/pyistream.h" | |
1038 | ||
1039 | ||
1040 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
1041 | { | |
1042 | public: | |
1043 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
1044 | ||
1045 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
1046 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
1047 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
1048 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
1049 | ||
1050 | wxString GetProtocol(const wxString& location) { | |
1051 | return wxFileSystemHandler::GetProtocol(location); | |
1052 | } | |
1053 | ||
1054 | wxString GetLeftLocation(const wxString& location) { | |
1055 | return wxFileSystemHandler::GetLeftLocation(location); | |
1056 | } | |
1057 | ||
1058 | wxString GetAnchor(const wxString& location) { | |
1059 | return wxFileSystemHandler::GetAnchor(location); | |
1060 | } | |
1061 | ||
1062 | wxString GetRightLocation(const wxString& location) { | |
1063 | return wxFileSystemHandler::GetRightLocation(location); | |
1064 | } | |
1065 | ||
1066 | wxString GetMimeTypeFromExt(const wxString& location) { | |
1067 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
1068 | } | |
1069 | ||
1070 | PYPRIVATE; | |
1071 | }; | |
1072 | ||
1073 | ||
1074 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
1075 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
1076 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
1077 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
1078 | ||
1079 | ||
c32bde28 RD |
1080 | SWIGSTATICINLINE(int) |
1081 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
d55e5bfc | 1082 | { |
c32bde28 RD |
1083 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
1084 | if (obj == Py_True) { | |
1085 | if (val) *val = true; | |
1086 | return 1; | |
1087 | } | |
1088 | if (obj == Py_False) { | |
1089 | if (val) *val = false; | |
1090 | return 1; | |
1091 | } | |
1092 | int res = 0; | |
1093 | if (SWIG_AsVal_int(obj, &res)) { | |
1094 | if (val) *val = (bool)res; | |
1095 | return 1; | |
1096 | } | |
1097 | if (val) { | |
1098 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
1099 | } | |
1100 | return 0; | |
d55e5bfc RD |
1101 | } |
1102 | ||
1103 | ||
c32bde28 RD |
1104 | SWIGSTATICINLINE(bool) |
1105 | SWIG_As_bool(PyObject* obj) | |
d55e5bfc | 1106 | { |
c32bde28 RD |
1107 | bool v; |
1108 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1109 | /* | |
1110 | this is needed to make valgrind/purify happier. the other | |
1111 | solution is throw an exception, but since this code should work | |
1112 | with plain C .... | |
1113 | */ | |
1114 | memset((void*)&v, 0, sizeof(bool)); | |
d55e5bfc | 1115 | } |
c32bde28 RD |
1116 | return v; |
1117 | } | |
1118 | ||
1119 | ||
1120 | SWIGSTATICINLINE(int) | |
1121 | SWIG_Check_bool(PyObject* obj) | |
1122 | { | |
1123 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
1124 | } |
1125 | ||
ae8162c8 RD |
1126 | wxString FileSystem_URLToFileName(wxString const &url){ |
1127 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1128 | return fname.GetFullPath(); | |
1129 | } | |
d55e5bfc RD |
1130 | |
1131 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1132 | wxImage& image, | |
1133 | long type) { | |
1134 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1135 | } | |
1136 | ||
1137 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1138 | const wxBitmap& bitmap, | |
1139 | long type) { | |
1140 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1141 | } | |
1142 | ||
1143 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1144 | PyObject* data) { | |
ae8162c8 RD |
1145 | if (! PyString_Check(data)) { |
1146 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
1147 | "Expected string object")); | |
1148 | return; | |
1149 | } | |
1150 | ||
1151 | bool blocked = wxPyBeginBlockThreads(); | |
1152 | void* ptr = (void*)PyString_AsString(data); | |
1153 | size_t size = PyString_Size(data); | |
1154 | wxPyEndBlockThreads(blocked); | |
1155 | ||
1156 | wxMemoryFSHandler::AddFile(filename, ptr, size); | |
d55e5bfc RD |
1157 | } |
1158 | ||
1159 | ||
1160 | #include "wx/wxPython/pyistream.h" | |
1161 | ||
1162 | ||
c32bde28 RD |
1163 | // See my_fragments.i |
1164 | SWIGSTATICINLINE(int) | |
1165 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 1166 | { |
c32bde28 RD |
1167 | long v = 0; |
1168 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1169 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1170 | return 0; | |
d55e5bfc | 1171 | } |
c32bde28 RD |
1172 | else if (val) |
1173 | *val = (unsigned long)v; | |
1174 | return 1; | |
d55e5bfc RD |
1175 | } |
1176 | ||
1177 | ||
c32bde28 RD |
1178 | SWIGSTATICINLINE(int) |
1179 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1180 | unsigned long max_value, | |
1181 | const char *errmsg) | |
d55e5bfc | 1182 | { |
c32bde28 RD |
1183 | if (value > max_value) { |
1184 | if (errmsg) { | |
1185 | PyErr_Format(PyExc_OverflowError, | |
1186 | "value %ld is greater than '%s' minimum %ld", | |
1187 | value, errmsg, max_value); | |
d55e5bfc | 1188 | } |
c32bde28 | 1189 | return 0; |
d55e5bfc | 1190 | } |
c32bde28 RD |
1191 | return 1; |
1192 | } | |
d55e5bfc RD |
1193 | |
1194 | ||
c32bde28 RD |
1195 | SWIGSTATICINLINE(int) |
1196 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
d55e5bfc | 1197 | { |
c32bde28 RD |
1198 | const char* errmsg = val ? "unsigned char" : 0; |
1199 | unsigned long v; | |
1200 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1201 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
1202 | if (val) *val = swig_numeric_cast(v, unsigned char); | |
1203 | return 1; | |
1204 | } else { | |
1205 | return 0; | |
1206 | } | |
1207 | } else { | |
1208 | PyErr_Clear(); | |
1209 | } | |
1210 | if (val) { | |
1211 | PyErr_SetString(PyExc_TypeError, "an unsigned char is expected"); | |
1212 | } | |
1213 | return 0; | |
d55e5bfc RD |
1214 | } |
1215 | ||
1216 | ||
c32bde28 RD |
1217 | SWIGSTATICINLINE(unsigned char) |
1218 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
d55e5bfc | 1219 | { |
c32bde28 RD |
1220 | unsigned char v; |
1221 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
1222 | /* | |
1223 | this is needed to make valgrind/purify happier. the other | |
1224 | solution is throw an exception, but since this code should work | |
1225 | with plain C .... | |
1226 | */ | |
1227 | memset((void*)&v, 0, sizeof(unsigned char)); | |
d55e5bfc | 1228 | } |
c32bde28 | 1229 | return v; |
d55e5bfc RD |
1230 | } |
1231 | ||
c32bde28 RD |
1232 | |
1233 | SWIGSTATICINLINE(int) | |
1234 | SWIG_Check_unsigned_SS_char(PyObject* obj) | |
1235 | { | |
1236 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
1237 | } | |
1238 | ||
1239 | ||
c24da6d6 | 1240 | wxImage *new_wxImage(int width,int height,bool clear){ |
d55e5bfc RD |
1241 | if (width > 0 && height > 0) |
1242 | return new wxImage(width, height, clear); | |
1243 | else | |
1244 | return new wxImage; | |
1245 | } | |
d55e5bfc RD |
1246 | wxImage *new_wxImage(wxBitmap const &bitmap){ |
1247 | return new wxImage(bitmap.ConvertToImage()); | |
1248 | } | |
1249 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1250 | // Copy the source data so the wxImage can clean it up later | |
1251 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1252 | if (copy == NULL) { | |
1253 | PyErr_NoMemory(); | |
1254 | return NULL; | |
1255 | } | |
1256 | memcpy(copy, data, width*height*3); | |
ae8162c8 | 1257 | return new wxImage(width, height, copy, false); |
d55e5bfc RD |
1258 | } |
1259 | wxSize wxImage_GetSize(wxImage *self){ | |
1260 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1261 | return size; | |
1262 | } | |
1263 | PyObject *wxImage_GetData(wxImage *self){ | |
1264 | unsigned char* data = self->GetData(); | |
1265 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1266 | PyObject* rv; | |
1267 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1268 | return rv; | |
1269 | } | |
1270 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1271 | unsigned char* dataPtr; | |
1272 | ||
1273 | if (! PyString_Check(data)) { | |
ae8162c8 RD |
1274 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
1275 | "Expected string object")); | |
d55e5bfc RD |
1276 | return /* NULL */ ; |
1277 | } | |
1278 | ||
1279 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1280 | dataPtr = (unsigned char*) malloc(len); | |
1281 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1282 | self->SetData(dataPtr); | |
1283 | // wxImage takes ownership of dataPtr... | |
1284 | } | |
1285 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1286 | unsigned char* data = self->GetData(); | |
1287 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1288 | PyObject* rv; | |
1289 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1290 | return rv; | |
1291 | } | |
1292 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1293 | unsigned char* buffer; | |
1294 | int size; | |
1295 | ||
1296 | bool blocked = wxPyBeginBlockThreads(); | |
1297 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1298 | goto done; | |
1299 | ||
1300 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1301 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1302 | goto done; | |
1303 | } | |
1304 | self->SetData(buffer); | |
1305 | done: | |
1306 | wxPyEndBlockThreads(blocked); | |
1307 | } | |
1308 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1309 | unsigned char* data = self->GetAlpha(); | |
1310 | if (! data) { | |
1311 | RETURN_NONE(); | |
1312 | } else { | |
1313 | int len = self->GetWidth() * self->GetHeight(); | |
1314 | PyObject* rv; | |
1315 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1316 | return rv; | |
1317 | } | |
1318 | } | |
1319 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1320 | unsigned char* dataPtr; | |
1321 | ||
1322 | if (! PyString_Check(data)) { | |
1323 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1324 | return /* NULL */ ; | |
1325 | } | |
1326 | ||
1327 | size_t len = self->GetWidth() * self->GetHeight(); | |
1328 | dataPtr = (unsigned char*) malloc(len); | |
1329 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1330 | self->SetAlpha(dataPtr); | |
1331 | // wxImage takes ownership of dataPtr... | |
1332 | } | |
1333 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1334 | unsigned char* data = self->GetAlpha(); | |
1335 | int len = self->GetWidth() * self->GetHeight(); | |
1336 | PyObject* rv; | |
1337 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1338 | return rv; | |
1339 | } | |
1340 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1341 | unsigned char* buffer; | |
1342 | int size; | |
1343 | ||
1344 | bool blocked = wxPyBeginBlockThreads(); | |
1345 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1346 | goto done; | |
1347 | ||
1348 | if (size != self->GetWidth() * self->GetHeight()) { | |
1349 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1350 | goto done; | |
1351 | } | |
1352 | self->SetAlpha(buffer); | |
1353 | done: | |
1354 | wxPyEndBlockThreads(blocked); | |
1355 | } | |
1356 | ||
c32bde28 RD |
1357 | SWIGSTATICINLINE(unsigned long) |
1358 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 1359 | { |
c32bde28 RD |
1360 | unsigned long v; |
1361 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1362 | /* | |
1363 | this is needed to make valgrind/purify happier. the other | |
1364 | solution is throw an exception, but since this code should work | |
1365 | with plain C .... | |
1366 | */ | |
1367 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1368 | } |
c32bde28 RD |
1369 | return v; |
1370 | } | |
1371 | ||
1372 | ||
1373 | SWIGSTATICINLINE(int) | |
1374 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1375 | { | |
1376 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1377 | } |
1378 | ||
1fbf26be RD |
1379 | wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){ |
1380 | wxBitmap bitmap(*self, depth); | |
d55e5bfc RD |
1381 | return bitmap; |
1382 | } | |
1383 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1384 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1385 | wxBitmap bitmap( mono, 1 ); | |
1386 | return bitmap; | |
1387 | } | |
1388 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1389 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1390 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1391 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1392 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1393 | |
1394 | #include <wx/quantize.h> | |
1395 | ||
1396 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1397 | return wxQuantize::Quantize(src, dest, | |
1398 | //NULL, // palette | |
1399 | desiredNoColours, | |
1400 | NULL, // eightBitData | |
1401 | flags); | |
1402 | } | |
d55e5bfc RD |
1403 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1404 | if (PyCallable_Check(func)) { | |
1405 | self->Connect(id, lastId, eventType, | |
1406 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1407 | new wxPyCallback(func)); | |
1408 | } | |
1409 | else if (func == Py_None) { | |
1410 | self->Disconnect(id, lastId, eventType, | |
1411 | (wxObjectEventFunction) | |
1412 | &wxPyCallback::EventThunker); | |
1413 | } | |
1414 | else { | |
1415 | wxPyBLOCK_THREADS( | |
1416 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1417 | } | |
1418 | } | |
1419 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1420 | return self->Disconnect(id, lastId, eventType, | |
1421 | (wxObjectEventFunction) | |
1422 | &wxPyCallback::EventThunker); | |
1423 | } | |
1424 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1425 | if (_self && _self != Py_None) { | |
1426 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1427 | } | |
1428 | else { | |
1429 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1430 | if (data) { | |
1431 | self->SetClientObject(NULL); // This will delete it too | |
1432 | } | |
1433 | } | |
1434 | } | |
c32bde28 | 1435 | |
19272049 | 1436 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 1437 | #if wxUSE_UNICODE |
19272049 | 1438 | return self->GetUnicodeKey(); |
d55e5bfc RD |
1439 | #else |
1440 | return 0; | |
1441 | #endif | |
1442 | } | |
1443 | ||
1444 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
1445 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1446 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1447 | /*@@*/ | |
d55e5bfc | 1448 | #else |
c32bde28 RD |
1449 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1450 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1451 | /*@@*/ | |
d55e5bfc RD |
1452 | #endif |
1453 | ||
1454 | ||
1455 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
1456 | SWIGSTATICINLINE(int) |
1457 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 1458 | { |
c32bde28 RD |
1459 | const char* errmsg = val ? "unsigned int" : 0; |
1460 | unsigned long v; | |
1461 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1462 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1463 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
1464 | return 1; | |
1465 | } | |
1466 | } else { | |
1467 | PyErr_Clear(); | |
1468 | } | |
1469 | if (val) { | |
1470 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
1471 | } | |
1472 | return 0; | |
d55e5bfc RD |
1473 | } |
1474 | #else | |
c32bde28 RD |
1475 | SWIGSTATICINLINE(unsigned int) |
1476 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1477 | { | |
1478 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
1479 | } | |
d55e5bfc RD |
1480 | #endif |
1481 | ||
1482 | ||
c32bde28 RD |
1483 | SWIGSTATICINLINE(unsigned int) |
1484 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 1485 | { |
c32bde28 RD |
1486 | unsigned int v; |
1487 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
1488 | /* | |
1489 | this is needed to make valgrind/purify happier. the other | |
1490 | solution is throw an exception, but since this code should work | |
1491 | with plain C .... | |
1492 | */ | |
1493 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 1494 | } |
c32bde28 RD |
1495 | return v; |
1496 | } | |
1497 | ||
1498 | ||
1499 | SWIGSTATICINLINE(int) | |
1500 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
1501 | { | |
1502 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
1503 | } |
1504 | ||
1505 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1506 | self->m_size = size; | |
1507 | } | |
1508 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1509 | self->m_pos = pos; | |
1510 | } | |
1511 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1512 | int count = self->GetNumberOfFiles(); | |
1513 | wxString* files = self->GetFiles(); | |
1514 | PyObject* list = PyList_New(count); | |
1515 | ||
1516 | if (!list) { | |
1517 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1518 | return NULL; | |
1519 | } | |
1520 | ||
1521 | for (int i=0; i<count; i++) { | |
1522 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1523 | } | |
1524 | return list; | |
1525 | } | |
1526 | ||
1527 | ||
1528 | wxPyApp *new_wxPyApp(){ | |
1529 | wxPythonApp = new wxPyApp(); | |
1530 | return wxPythonApp; | |
1531 | } | |
1532 | ||
1533 | void wxApp_CleanUp() { | |
1534 | __wxPyCleanup(); | |
1535 | } | |
1536 | ||
1537 | ||
caef1a4d | 1538 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1539 | |
1540 | ||
ae8162c8 RD |
1541 | #ifdef __WXMAC__ |
1542 | ||
1543 | // A dummy class that raises an exception if used... | |
1544 | class wxEventLoop | |
1545 | { | |
1546 | public: | |
1547 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
1548 | int Run() { return 0; } | |
1549 | void Exit(int rc = 0) {} | |
1550 | bool Pending() const { return false; } | |
1551 | bool Dispatch() { return false; } | |
1552 | bool IsRunning() const { return false; } | |
1553 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
1554 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
1555 | }; | |
1556 | ||
1557 | #else | |
1558 | ||
1559 | #include <wx/evtloop.h> | |
1560 | ||
1561 | #endif | |
1562 | ||
1563 | ||
d55e5bfc RD |
1564 | |
1565 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1566 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1567 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1568 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1569 | wxWindowList& list = self->GetChildren(); | |
1570 | return wxPy_ConvertList(&list); | |
1571 | } | |
1572 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1573 | #if wxUSE_HOTKEY | |
1574 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1575 | #else | |
ae8162c8 | 1576 | return false; |
d55e5bfc RD |
1577 | #endif |
1578 | } | |
1579 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1580 | ||
1581 | ||
1582 | ||
ae8162c8 | 1583 | return false; |
d55e5bfc RD |
1584 | |
1585 | } | |
1586 | long wxWindow_GetHandle(wxWindow *self){ | |
1587 | return wxPyGetWinHandle(self); | |
1588 | } | |
7e63a440 RD |
1589 | void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
1590 | self->AssociateHandle((WXWidget)handle); | |
1591 | } | |
d55e5bfc RD |
1592 | |
1593 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1594 | return wxWindow::FindWindowById(id, parent); | |
1595 | } | |
1596 | ||
1597 | wxWindow* wxFindWindowByName( const wxString& name, | |
1598 | const wxWindow *parent = NULL ) { | |
1599 | return wxWindow::FindWindowByName(name, parent); | |
1600 | } | |
1601 | ||
1602 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1603 | const wxWindow *parent = NULL ) { | |
1604 | return wxWindow::FindWindowByLabel(label, parent); | |
1605 | } | |
1606 | ||
1607 | ||
1608 | #ifdef __WXMSW__ | |
1609 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1610 | #endif | |
1611 | ||
1612 | ||
1613 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1614 | #ifdef __WXMSW__ | |
1615 | WXHWND hWnd = (WXHWND)_hWnd; | |
1616 | long id = wxGetWindowId(hWnd); | |
1617 | wxWindow* win = new wxWindow; | |
1618 | parent->AddChild(win); | |
1619 | win->SetEventHandler(win); | |
1620 | win->SetHWND(hWnd); | |
1621 | win->SetId(id); | |
1622 | win->SubclassWin(hWnd); | |
1623 | win->AdoptAttributesFromHWND(); | |
1624 | win->SetupColours(); | |
1625 | return win; | |
1626 | #else | |
1627 | wxPyRaiseNotImplemented(); | |
1628 | return NULL; | |
1629 | #endif | |
1630 | } | |
1631 | ||
1632 | ||
1633 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1634 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1635 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1636 | ||
1637 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1638 | ||
1639 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1640 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1641 | wxMenuItemList& list = self->GetMenuItems(); | |
1642 | return wxPy_ConvertList(&list); | |
1643 | } | |
1644 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1645 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1646 | if (clientData) { | |
1647 | wxPyClientData* data = new wxPyClientData(clientData); | |
1648 | return self->Append(item, data); | |
1649 | } else | |
1650 | return self->Append(item); | |
1651 | } | |
1652 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1653 | if (clientData) { | |
1654 | wxPyClientData* data = new wxPyClientData(clientData); | |
1655 | return self->Insert(item, pos, data); | |
1656 | } else | |
1657 | return self->Insert(item, pos); | |
1658 | } | |
1659 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1660 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1661 | if (data) { | |
1662 | Py_INCREF(data->m_obj); | |
1663 | return data->m_obj; | |
1664 | } else { | |
1665 | Py_INCREF(Py_None); | |
1666 | return Py_None; | |
1667 | } | |
1668 | } | |
1669 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1670 | wxPyClientData* data = new wxPyClientData(clientData); | |
1671 | self->SetClientObject(n, data); | |
1672 | } | |
1673 | ||
1674 | ||
248ed943 RD |
1675 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1676 | wxPyUserData* data = NULL; | |
1677 | if ( userData ) { | |
1678 | bool blocked = wxPyBeginBlockThreads(); | |
1679 | data = new wxPyUserData(userData); | |
1680 | wxPyEndBlockThreads(blocked); | |
1681 | } | |
1682 | return new wxSizerItem(window, proportion, flag, border, data); | |
1683 | } | |
1684 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1685 | wxPyUserData* data = NULL; | |
1686 | if ( userData ) { | |
1687 | bool blocked = wxPyBeginBlockThreads(); | |
1688 | data = new wxPyUserData(userData); | |
1689 | wxPyEndBlockThreads(blocked); | |
1690 | } | |
1691 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1692 | } | |
1693 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1694 | wxPyUserData* data = NULL; | |
1695 | if ( userData ) { | |
1696 | bool blocked = wxPyBeginBlockThreads(); | |
1697 | data = new wxPyUserData(userData); | |
1698 | wxPyEndBlockThreads(blocked); | |
1699 | } | |
1700 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1701 | } | |
d55e5bfc RD |
1702 | |
1703 | #include <float.h> | |
c32bde28 RD |
1704 | SWIGSTATICINLINE(int) |
1705 | SWIG_CheckDoubleInRange(double value, double min_value, | |
1706 | double max_value, const char* errmsg) | |
1707 | { | |
1708 | if (value < min_value) { | |
1709 | if (errmsg) { | |
1710 | PyErr_Format(PyExc_OverflowError, | |
1711 | "value %g is less than %s minimum %g", | |
1712 | value, errmsg, min_value); | |
1713 | } | |
1714 | return 0; | |
1715 | } else if (value > max_value) { | |
1716 | if (errmsg) { | |
1717 | PyErr_Format(PyExc_OverflowError, | |
1718 | "value %g is greater than %s maximum %g", | |
1719 | value, errmsg, max_value); | |
1720 | } | |
1721 | return 0; | |
1722 | } | |
1723 | return 1; | |
1724 | } | |
1725 | ||
d55e5bfc | 1726 | |
c32bde28 RD |
1727 | SWIGSTATICINLINE(int) |
1728 | SWIG_AsVal_float(PyObject *obj, float *val) | |
d55e5bfc | 1729 | { |
c32bde28 RD |
1730 | const char* errmsg = val ? "float" : 0; |
1731 | double v; | |
1732 | if (SWIG_AsVal_double(obj, &v)) { | |
1733 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
1734 | if (val) *val = v; | |
1735 | return 1; | |
d55e5bfc | 1736 | } else { |
c32bde28 | 1737 | return 0; |
d55e5bfc | 1738 | } |
c32bde28 RD |
1739 | } else { |
1740 | PyErr_Clear(); | |
d55e5bfc | 1741 | } |
c32bde28 RD |
1742 | if (val) { |
1743 | PyErr_SetString(PyExc_TypeError, "a float is expected"); | |
1744 | } | |
1745 | return 0; | |
d55e5bfc RD |
1746 | } |
1747 | ||
1748 | ||
1749 | SWIGSTATICINLINE(float) | |
c32bde28 | 1750 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 1751 | { |
c32bde28 RD |
1752 | float v; |
1753 | if (!SWIG_AsVal_float(obj, &v)) { | |
1754 | /* | |
1755 | this is needed to make valgrind/purify happier. the other | |
1756 | solution is throw an exception, but since this code should work | |
1757 | with plain C .... | |
1758 | */ | |
1759 | memset((void*)&v, 0, sizeof(float)); | |
1760 | } | |
1761 | return v; | |
d55e5bfc RD |
1762 | } |
1763 | ||
c32bde28 | 1764 | |
d55e5bfc | 1765 | SWIGSTATICINLINE(int) |
c32bde28 | 1766 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 1767 | { |
c32bde28 | 1768 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
1769 | } |
1770 | ||
1771 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1772 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1773 | if (data) { | |
1774 | Py_INCREF(data->m_obj); | |
1775 | return data->m_obj; | |
1776 | } else { | |
1777 | Py_INCREF(Py_None); | |
1778 | return Py_None; | |
1779 | } | |
1780 | } | |
1781 | ||
1782 | // Figure out the type of the sizer item | |
1783 | ||
1784 | struct wxPySizerItemInfo { | |
1785 | wxPySizerItemInfo() | |
ae8162c8 RD |
1786 | : window(NULL), sizer(NULL), gotSize(false), |
1787 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc RD |
1788 | {} |
1789 | ||
1790 | wxWindow* window; | |
1791 | wxSizer* sizer; | |
1792 | bool gotSize; | |
1793 | wxSize size; | |
1794 | bool gotPos; | |
1795 | int pos; | |
1796 | }; | |
1797 | ||
1798 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1799 | ||
1800 | wxPySizerItemInfo info; | |
1801 | wxSize size; | |
1802 | wxSize* sizePtr = &size; | |
1803 | ||
1804 | // Find out what the type of the item is | |
1805 | // try wxWindow | |
1806 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1807 | PyErr_Clear(); | |
1808 | info.window = NULL; | |
1809 | ||
1810 | // try wxSizer | |
1811 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1812 | PyErr_Clear(); | |
1813 | info.sizer = NULL; | |
1814 | ||
1815 | // try wxSize or (w,h) | |
1816 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1817 | info.size = *sizePtr; | |
ae8162c8 | 1818 | info.gotSize = true; |
d55e5bfc RD |
1819 | } |
1820 | ||
1821 | // or a single int | |
1822 | if (checkIdx && PyInt_Check(item)) { | |
1823 | info.pos = PyInt_AsLong(item); | |
ae8162c8 | 1824 | info.gotPos = true; |
d55e5bfc RD |
1825 | } |
1826 | } | |
1827 | } | |
1828 | ||
1829 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1830 | // no expected type, figure out what kind of error message to generate | |
1831 | if ( !checkSize && !checkIdx ) | |
1832 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1833 | else if ( checkSize && !checkIdx ) | |
1834 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1835 | else if ( !checkSize && checkIdx) | |
1836 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1837 | else | |
1838 | // can this one happen? | |
1839 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1840 | } | |
1841 | ||
1842 | return info; | |
1843 | } | |
1844 | ||
1845 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1846 | if (!self->GetClientObject()) |
1847 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc | 1848 | } |
c1cb24a4 | 1849 | wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1850 | |
1851 | wxPyUserData* data = NULL; | |
1852 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1853 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1854 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1855 | data = new wxPyUserData(userData); | |
1856 | wxPyEndBlockThreads(blocked); | |
1857 | ||
1858 | // Now call the real Add method if a valid item type was found | |
1859 | if ( info.window ) | |
c1cb24a4 | 1860 | return self->Add(info.window, proportion, flag, border, data); |
d55e5bfc | 1861 | else if ( info.sizer ) |
c1cb24a4 | 1862 | return self->Add(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1863 | else if (info.gotSize) |
c1cb24a4 RD |
1864 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
1865 | proportion, flag, border, data); | |
1866 | else | |
1867 | return NULL; | |
d55e5bfc | 1868 | } |
c1cb24a4 | 1869 | wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1870 | |
1871 | wxPyUserData* data = NULL; | |
1872 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1873 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1874 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1875 | data = new wxPyUserData(userData); | |
1876 | wxPyEndBlockThreads(blocked); | |
1877 | ||
1878 | // Now call the real Insert method if a valid item type was found | |
1879 | if ( info.window ) | |
c1cb24a4 | 1880 | return self->Insert(before, info.window, proportion, flag, border, data); |
d55e5bfc | 1881 | else if ( info.sizer ) |
c1cb24a4 | 1882 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d55e5bfc | 1883 | else if (info.gotSize) |
c1cb24a4 RD |
1884 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
1885 | proportion, flag, border, data); | |
1886 | else | |
1887 | return NULL; | |
d55e5bfc | 1888 | } |
c1cb24a4 | 1889 | wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1890 | |
1891 | wxPyUserData* data = NULL; | |
1892 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1893 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1894 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1895 | data = new wxPyUserData(userData); | |
1896 | wxPyEndBlockThreads(blocked); | |
1897 | ||
1898 | // Now call the real Prepend method if a valid item type was found | |
1899 | if ( info.window ) | |
c1cb24a4 | 1900 | return self->Prepend(info.window, proportion, flag, border, data); |
d55e5bfc | 1901 | else if ( info.sizer ) |
c1cb24a4 | 1902 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1903 | else if (info.gotSize) |
c1cb24a4 RD |
1904 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
1905 | proportion, flag, border, data); | |
1906 | else | |
1907 | return NULL; | |
d55e5bfc RD |
1908 | } |
1909 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1910 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1911 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1912 | wxPyEndBlockThreads(blocked); |
1913 | if ( info.window ) | |
1914 | return self->Remove(info.window); | |
1915 | else if ( info.sizer ) | |
1916 | return self->Remove(info.sizer); | |
1917 | else if ( info.gotPos ) | |
1918 | return self->Remove(info.pos); | |
1919 | else | |
ae8162c8 | 1920 | return false; |
d55e5bfc | 1921 | } |
1a6bba1e RD |
1922 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1923 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1924 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
1925 | wxPyEndBlockThreads(blocked); |
1926 | if ( info.window ) | |
1927 | return self->Detach(info.window); | |
1928 | else if ( info.sizer ) | |
1929 | return self->Detach(info.sizer); | |
1930 | else if ( info.gotPos ) | |
1931 | return self->Detach(info.pos); | |
1932 | else | |
ae8162c8 | 1933 | return false; |
1a6bba1e | 1934 | } |
c1cb24a4 RD |
1935 | wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
1936 | bool blocked = wxPyBeginBlockThreads(); | |
1937 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1938 | wxPyEndBlockThreads(blocked); | |
1939 | if ( info.window ) | |
1940 | return self->GetItem(info.window); | |
1941 | else if ( info.sizer ) | |
1942 | return self->GetItem(info.sizer); | |
1943 | else if ( info.gotPos ) | |
1944 | return self->GetItem(info.pos); | |
1945 | else | |
1946 | return NULL; | |
1947 | } | |
d55e5bfc RD |
1948 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1949 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 1950 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1951 | wxPyEndBlockThreads(blocked); |
1952 | if ( info.window ) | |
1953 | self->SetItemMinSize(info.window, size); | |
1954 | else if ( info.sizer ) | |
1955 | self->SetItemMinSize(info.sizer, size); | |
1956 | else if ( info.gotPos ) | |
1957 | self->SetItemMinSize(info.pos, size); | |
1958 | } | |
1959 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1960 | wxSizerItemList& list = self->GetChildren(); | |
1961 | return wxPy_ConvertList(&list); | |
1962 | } | |
7e63a440 | 1963 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
c24da6d6 | 1964 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1965 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
c24da6d6 | 1966 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 1967 | if ( info.window ) |
7e63a440 | 1968 | return self->Show(info.window, show, recursive); |
d55e5bfc | 1969 | else if ( info.sizer ) |
7e63a440 | 1970 | return self->Show(info.sizer, show, recursive); |
248ed943 | 1971 | else if ( info.gotPos ) |
7e63a440 | 1972 | return self->Show(info.pos, show); |
ae8162c8 RD |
1973 | else |
1974 | return false; | |
d55e5bfc RD |
1975 | } |
1976 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1977 | bool blocked = wxPyBeginBlockThreads(); |
ae8162c8 | 1978 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
c24da6d6 | 1979 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1980 | if ( info.window ) |
1981 | return self->IsShown(info.window); | |
1982 | else if ( info.sizer ) | |
1983 | return self->IsShown(info.sizer); | |
248ed943 RD |
1984 | else if ( info.gotPos ) |
1985 | return self->IsShown(info.pos); | |
d55e5bfc | 1986 | else |
ae8162c8 | 1987 | return false; |
d55e5bfc RD |
1988 | } |
1989 | ||
1990 | // See pyclasses.h | |
1991 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1992 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1993 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1999 | { | |
2000 | if (source == Py_None) { | |
2001 | **obj = wxGBPosition(-1,-1); | |
ae8162c8 | 2002 | return true; |
d55e5bfc RD |
2003 | } |
2004 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
2005 | } | |
2006 | ||
2007 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
2008 | { | |
2009 | if (source == Py_None) { | |
2010 | **obj = wxGBSpan(-1,-1); | |
ae8162c8 | 2011 | return true; |
d55e5bfc RD |
2012 | } |
2013 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
2014 | } | |
2015 | ||
2016 | ||
2017 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
2018 | self->SetRow(row); | |
2019 | self->SetCol(col); | |
2020 | } | |
2021 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
2022 | bool blocked = wxPyBeginBlockThreads(); | |
2023 | PyObject* tup = PyTuple_New(2); | |
2024 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2025 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
2026 | wxPyEndBlockThreads(blocked); | |
2027 | return tup; | |
2028 | } | |
2029 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
2030 | self->SetRowspan(rowspan); | |
2031 | self->SetColspan(colspan); | |
2032 | } | |
2033 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
2034 | bool blocked = wxPyBeginBlockThreads(); | |
2035 | PyObject* tup = PyTuple_New(2); | |
2036 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2037 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
2038 | wxPyEndBlockThreads(blocked); | |
2039 | return tup; | |
2040 | } | |
248ed943 RD |
2041 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2042 | wxPyUserData* data = NULL; | |
2043 | if ( userData ) { | |
2044 | bool blocked = wxPyBeginBlockThreads(); | |
2045 | data = new wxPyUserData(userData); | |
2046 | wxPyEndBlockThreads(blocked); | |
2047 | } | |
2048 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2049 | } | |
2050 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2051 | wxPyUserData* data = NULL; | |
2052 | if ( userData ) { | |
2053 | bool blocked = wxPyBeginBlockThreads(); | |
2054 | data = new wxPyUserData(userData); | |
2055 | wxPyEndBlockThreads(blocked); | |
2056 | } | |
2057 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2058 | } | |
2059 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2060 | wxPyUserData* data = NULL; | |
2061 | if ( userData ) { | |
2062 | bool blocked = wxPyBeginBlockThreads(); | |
2063 | data = new wxPyUserData(userData); | |
2064 | wxPyEndBlockThreads(blocked); | |
2065 | } | |
2066 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2067 | } | |
2068 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2069 | int row, col; | |
2070 | self->GetEndPos(row, col); | |
2071 | return wxGBPosition(row, col); | |
2072 | } | |
c1cb24a4 | 2073 | wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
2074 | |
2075 | wxPyUserData* data = NULL; | |
2076 | bool blocked = wxPyBeginBlockThreads(); | |
ae8162c8 | 2077 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2078 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2079 | data = new wxPyUserData(userData); | |
2080 | wxPyEndBlockThreads(blocked); | |
2081 | ||
2082 | // Now call the real Add method if a valid item type was found | |
2083 | if ( info.window ) | |
c1cb24a4 | 2084 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d55e5bfc | 2085 | else if ( info.sizer ) |
c1cb24a4 | 2086 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d55e5bfc | 2087 | else if (info.gotSize) |
c1cb24a4 RD |
2088 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
2089 | pos, span, flag, border, data); | |
2090 | return NULL; | |
d55e5bfc RD |
2091 | } |
2092 | ||
2093 | ||
2094 | #ifdef __cplusplus | |
2095 | extern "C" { | |
2096 | #endif | |
c32bde28 | 2097 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
2098 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2099 | return 1; | |
2100 | } | |
2101 | ||
2102 | ||
2103 | static PyObject *_wrap_EmptyString_get() { | |
2104 | PyObject *pyobj; | |
2105 | ||
2106 | { | |
2107 | #if wxUSE_UNICODE | |
2108 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2109 | #else | |
2110 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2111 | #endif | |
2112 | } | |
2113 | return pyobj; | |
2114 | } | |
2115 | ||
2116 | ||
c32bde28 | 2117 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2118 | PyObject *resultobj; |
2119 | wxObject *arg1 = (wxObject *) 0 ; | |
2120 | wxString result; | |
2121 | PyObject * obj0 = 0 ; | |
2122 | char *kwnames[] = { | |
2123 | (char *) "self", NULL | |
2124 | }; | |
2125 | ||
2126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2129 | { | |
2130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2131 | result = wxObject_GetClassName(arg1); | |
2132 | ||
2133 | wxPyEndAllowThreads(__tstate); | |
2134 | if (PyErr_Occurred()) SWIG_fail; | |
2135 | } | |
2136 | { | |
2137 | #if wxUSE_UNICODE | |
2138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2139 | #else | |
2140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2141 | #endif | |
2142 | } | |
2143 | return resultobj; | |
2144 | fail: | |
2145 | return NULL; | |
2146 | } | |
2147 | ||
2148 | ||
c32bde28 | 2149 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2150 | PyObject *resultobj; |
2151 | wxObject *arg1 = (wxObject *) 0 ; | |
2152 | PyObject * obj0 = 0 ; | |
2153 | char *kwnames[] = { | |
2154 | (char *) "self", NULL | |
2155 | }; | |
2156 | ||
2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2160 | { | |
2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2162 | wxObject_Destroy(arg1); | |
2163 | ||
2164 | wxPyEndAllowThreads(__tstate); | |
2165 | if (PyErr_Occurred()) SWIG_fail; | |
2166 | } | |
2167 | Py_INCREF(Py_None); resultobj = Py_None; | |
2168 | return resultobj; | |
2169 | fail: | |
2170 | return NULL; | |
2171 | } | |
2172 | ||
2173 | ||
c32bde28 | 2174 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2175 | PyObject *obj; |
2176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2177 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2178 | Py_INCREF(obj); | |
2179 | return Py_BuildValue((char *)""); | |
2180 | } | |
c32bde28 | 2181 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2182 | PyObject *resultobj; |
2183 | wxSize *arg1 = (wxSize *) 0 ; | |
2184 | int arg2 ; | |
2185 | PyObject * obj0 = 0 ; | |
2186 | PyObject * obj1 = 0 ; | |
2187 | char *kwnames[] = { | |
2188 | (char *) "self",(char *) "x", NULL | |
2189 | }; | |
2190 | ||
2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
2192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2194 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2195 | if (PyErr_Occurred()) SWIG_fail; |
2196 | if (arg1) (arg1)->x = arg2; | |
2197 | ||
2198 | Py_INCREF(Py_None); resultobj = Py_None; | |
2199 | return resultobj; | |
2200 | fail: | |
2201 | return NULL; | |
2202 | } | |
2203 | ||
2204 | ||
c32bde28 | 2205 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2206 | PyObject *resultobj; |
2207 | wxSize *arg1 = (wxSize *) 0 ; | |
2208 | int result; | |
2209 | PyObject * obj0 = 0 ; | |
2210 | char *kwnames[] = { | |
2211 | (char *) "self", NULL | |
2212 | }; | |
2213 | ||
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2217 | result = (int) ((arg1)->x); | |
2218 | ||
c32bde28 | 2219 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2220 | return resultobj; |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
c32bde28 | 2226 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2227 | PyObject *resultobj; |
2228 | wxSize *arg1 = (wxSize *) 0 ; | |
2229 | int arg2 ; | |
2230 | PyObject * obj0 = 0 ; | |
2231 | PyObject * obj1 = 0 ; | |
2232 | char *kwnames[] = { | |
2233 | (char *) "self",(char *) "y", NULL | |
2234 | }; | |
2235 | ||
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
2237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2239 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2240 | if (PyErr_Occurred()) SWIG_fail; |
2241 | if (arg1) (arg1)->y = arg2; | |
2242 | ||
2243 | Py_INCREF(Py_None); resultobj = Py_None; | |
2244 | return resultobj; | |
2245 | fail: | |
2246 | return NULL; | |
2247 | } | |
2248 | ||
2249 | ||
c32bde28 | 2250 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2251 | PyObject *resultobj; |
2252 | wxSize *arg1 = (wxSize *) 0 ; | |
2253 | int result; | |
2254 | PyObject * obj0 = 0 ; | |
2255 | char *kwnames[] = { | |
2256 | (char *) "self", NULL | |
2257 | }; | |
2258 | ||
2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2262 | result = (int) ((arg1)->y); | |
2263 | ||
c32bde28 | 2264 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2265 | return resultobj; |
2266 | fail: | |
2267 | return NULL; | |
2268 | } | |
2269 | ||
2270 | ||
c32bde28 | 2271 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2272 | PyObject *resultobj; |
2273 | int arg1 = (int) 0 ; | |
2274 | int arg2 = (int) 0 ; | |
2275 | wxSize *result; | |
2276 | PyObject * obj0 = 0 ; | |
2277 | PyObject * obj1 = 0 ; | |
2278 | char *kwnames[] = { | |
2279 | (char *) "w",(char *) "h", NULL | |
2280 | }; | |
2281 | ||
2282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2283 | if (obj0) { | |
c32bde28 | 2284 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2285 | if (PyErr_Occurred()) SWIG_fail; |
2286 | } | |
2287 | if (obj1) { | |
c32bde28 | 2288 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2289 | if (PyErr_Occurred()) SWIG_fail; |
2290 | } | |
2291 | { | |
2292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2293 | result = (wxSize *)new wxSize(arg1,arg2); | |
2294 | ||
2295 | wxPyEndAllowThreads(__tstate); | |
2296 | if (PyErr_Occurred()) SWIG_fail; | |
2297 | } | |
2298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2299 | return resultobj; | |
2300 | fail: | |
2301 | return NULL; | |
2302 | } | |
2303 | ||
2304 | ||
c32bde28 | 2305 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2306 | PyObject *resultobj; |
2307 | wxSize *arg1 = (wxSize *) 0 ; | |
2308 | PyObject * obj0 = 0 ; | |
2309 | char *kwnames[] = { | |
2310 | (char *) "self", NULL | |
2311 | }; | |
2312 | ||
2313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2316 | { | |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2318 | delete arg1; | |
2319 | ||
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) SWIG_fail; | |
2322 | } | |
2323 | Py_INCREF(Py_None); resultobj = Py_None; | |
2324 | return resultobj; | |
2325 | fail: | |
2326 | return NULL; | |
2327 | } | |
2328 | ||
2329 | ||
c32bde28 | 2330 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2331 | PyObject *resultobj; |
2332 | wxSize *arg1 = (wxSize *) 0 ; | |
2333 | wxSize *arg2 = 0 ; | |
2334 | bool result; | |
2335 | wxSize temp2 ; | |
2336 | PyObject * obj0 = 0 ; | |
2337 | PyObject * obj1 = 0 ; | |
2338 | char *kwnames[] = { | |
2339 | (char *) "self",(char *) "sz", NULL | |
2340 | }; | |
2341 | ||
2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2345 | { | |
2346 | arg2 = &temp2; | |
2347 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2348 | } | |
2349 | { | |
2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2351 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2352 | ||
2353 | wxPyEndAllowThreads(__tstate); | |
2354 | if (PyErr_Occurred()) SWIG_fail; | |
2355 | } | |
2356 | { | |
2357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2358 | } | |
2359 | return resultobj; | |
2360 | fail: | |
2361 | return NULL; | |
2362 | } | |
2363 | ||
2364 | ||
c32bde28 | 2365 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2366 | PyObject *resultobj; |
2367 | wxSize *arg1 = (wxSize *) 0 ; | |
2368 | wxSize *arg2 = 0 ; | |
2369 | bool result; | |
2370 | wxSize temp2 ; | |
2371 | PyObject * obj0 = 0 ; | |
2372 | PyObject * obj1 = 0 ; | |
2373 | char *kwnames[] = { | |
2374 | (char *) "self",(char *) "sz", NULL | |
2375 | }; | |
2376 | ||
2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2380 | { | |
2381 | arg2 = &temp2; | |
2382 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2383 | } | |
2384 | { | |
2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2386 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2387 | ||
2388 | wxPyEndAllowThreads(__tstate); | |
2389 | if (PyErr_Occurred()) SWIG_fail; | |
2390 | } | |
2391 | { | |
2392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2393 | } | |
2394 | return resultobj; | |
2395 | fail: | |
2396 | return NULL; | |
2397 | } | |
2398 | ||
2399 | ||
c32bde28 | 2400 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2401 | PyObject *resultobj; |
2402 | wxSize *arg1 = (wxSize *) 0 ; | |
2403 | wxSize *arg2 = 0 ; | |
2404 | wxSize result; | |
2405 | wxSize temp2 ; | |
2406 | PyObject * obj0 = 0 ; | |
2407 | PyObject * obj1 = 0 ; | |
2408 | char *kwnames[] = { | |
2409 | (char *) "self",(char *) "sz", NULL | |
2410 | }; | |
2411 | ||
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2415 | { | |
2416 | arg2 = &temp2; | |
2417 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2418 | } | |
2419 | { | |
2420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2421 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2422 | ||
2423 | wxPyEndAllowThreads(__tstate); | |
2424 | if (PyErr_Occurred()) SWIG_fail; | |
2425 | } | |
2426 | { | |
2427 | wxSize * resultptr; | |
2428 | resultptr = new wxSize((wxSize &) result); | |
2429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2430 | } | |
2431 | return resultobj; | |
2432 | fail: | |
2433 | return NULL; | |
2434 | } | |
2435 | ||
2436 | ||
c32bde28 | 2437 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2438 | PyObject *resultobj; |
2439 | wxSize *arg1 = (wxSize *) 0 ; | |
2440 | wxSize *arg2 = 0 ; | |
2441 | wxSize result; | |
2442 | wxSize temp2 ; | |
2443 | PyObject * obj0 = 0 ; | |
2444 | PyObject * obj1 = 0 ; | |
2445 | char *kwnames[] = { | |
2446 | (char *) "self",(char *) "sz", NULL | |
2447 | }; | |
2448 | ||
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2452 | { | |
2453 | arg2 = &temp2; | |
2454 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2455 | } | |
2456 | { | |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2458 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2459 | ||
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) SWIG_fail; | |
2462 | } | |
2463 | { | |
2464 | wxSize * resultptr; | |
2465 | resultptr = new wxSize((wxSize &) result); | |
2466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2467 | } | |
2468 | return resultobj; | |
2469 | fail: | |
2470 | return NULL; | |
2471 | } | |
2472 | ||
2473 | ||
c32bde28 | 2474 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2475 | PyObject *resultobj; |
2476 | wxSize *arg1 = (wxSize *) 0 ; | |
2477 | wxSize *arg2 = 0 ; | |
2478 | wxSize temp2 ; | |
2479 | PyObject * obj0 = 0 ; | |
2480 | PyObject * obj1 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "self",(char *) "sz", NULL | |
2483 | }; | |
2484 | ||
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2488 | { | |
2489 | arg2 = &temp2; | |
2490 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2491 | } | |
2492 | { | |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2494 | (arg1)->IncTo((wxSize const &)*arg2); | |
2495 | ||
2496 | wxPyEndAllowThreads(__tstate); | |
2497 | if (PyErr_Occurred()) SWIG_fail; | |
2498 | } | |
2499 | Py_INCREF(Py_None); resultobj = Py_None; | |
2500 | return resultobj; | |
2501 | fail: | |
2502 | return NULL; | |
2503 | } | |
2504 | ||
2505 | ||
c32bde28 | 2506 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2507 | PyObject *resultobj; |
2508 | wxSize *arg1 = (wxSize *) 0 ; | |
2509 | wxSize *arg2 = 0 ; | |
2510 | wxSize temp2 ; | |
2511 | PyObject * obj0 = 0 ; | |
2512 | PyObject * obj1 = 0 ; | |
2513 | char *kwnames[] = { | |
2514 | (char *) "self",(char *) "sz", NULL | |
2515 | }; | |
2516 | ||
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2520 | { | |
2521 | arg2 = &temp2; | |
2522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2523 | } | |
2524 | { | |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | (arg1)->DecTo((wxSize const &)*arg2); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
2531 | Py_INCREF(Py_None); resultobj = Py_None; | |
2532 | return resultobj; | |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
c32bde28 | 2538 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2539 | PyObject *resultobj; |
2540 | wxSize *arg1 = (wxSize *) 0 ; | |
2541 | int arg2 ; | |
2542 | int arg3 ; | |
2543 | PyObject * obj0 = 0 ; | |
2544 | PyObject * obj1 = 0 ; | |
2545 | PyObject * obj2 = 0 ; | |
2546 | char *kwnames[] = { | |
2547 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2548 | }; | |
2549 | ||
2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2553 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2554 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 2555 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2556 | if (PyErr_Occurred()) SWIG_fail; |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | (arg1)->Set(arg2,arg3); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | Py_INCREF(Py_None); resultobj = Py_None; | |
2565 | return resultobj; | |
2566 | fail: | |
2567 | return NULL; | |
2568 | } | |
2569 | ||
2570 | ||
c32bde28 | 2571 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2572 | PyObject *resultobj; |
2573 | wxSize *arg1 = (wxSize *) 0 ; | |
2574 | int arg2 ; | |
2575 | PyObject * obj0 = 0 ; | |
2576 | PyObject * obj1 = 0 ; | |
2577 | char *kwnames[] = { | |
2578 | (char *) "self",(char *) "w", NULL | |
2579 | }; | |
2580 | ||
2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2584 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2585 | if (PyErr_Occurred()) SWIG_fail; |
2586 | { | |
2587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2588 | (arg1)->SetWidth(arg2); | |
2589 | ||
2590 | wxPyEndAllowThreads(__tstate); | |
2591 | if (PyErr_Occurred()) SWIG_fail; | |
2592 | } | |
2593 | Py_INCREF(Py_None); resultobj = Py_None; | |
2594 | return resultobj; | |
2595 | fail: | |
2596 | return NULL; | |
2597 | } | |
2598 | ||
2599 | ||
c32bde28 | 2600 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2601 | PyObject *resultobj; |
2602 | wxSize *arg1 = (wxSize *) 0 ; | |
2603 | int arg2 ; | |
2604 | PyObject * obj0 = 0 ; | |
2605 | PyObject * obj1 = 0 ; | |
2606 | char *kwnames[] = { | |
2607 | (char *) "self",(char *) "h", NULL | |
2608 | }; | |
2609 | ||
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2613 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2614 | if (PyErr_Occurred()) SWIG_fail; |
2615 | { | |
2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2617 | (arg1)->SetHeight(arg2); | |
2618 | ||
2619 | wxPyEndAllowThreads(__tstate); | |
2620 | if (PyErr_Occurred()) SWIG_fail; | |
2621 | } | |
2622 | Py_INCREF(Py_None); resultobj = Py_None; | |
2623 | return resultobj; | |
2624 | fail: | |
2625 | return NULL; | |
2626 | } | |
2627 | ||
2628 | ||
c32bde28 | 2629 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2630 | PyObject *resultobj; |
2631 | wxSize *arg1 = (wxSize *) 0 ; | |
2632 | int result; | |
2633 | PyObject * obj0 = 0 ; | |
2634 | char *kwnames[] = { | |
2635 | (char *) "self", NULL | |
2636 | }; | |
2637 | ||
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
c32bde28 | 2648 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2649 | return resultobj; |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
c32bde28 | 2655 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2656 | PyObject *resultobj; |
2657 | wxSize *arg1 = (wxSize *) 0 ; | |
2658 | int result; | |
2659 | PyObject * obj0 = 0 ; | |
2660 | char *kwnames[] = { | |
2661 | (char *) "self", NULL | |
2662 | }; | |
2663 | ||
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2667 | { | |
2668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2669 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2670 | ||
2671 | wxPyEndAllowThreads(__tstate); | |
2672 | if (PyErr_Occurred()) SWIG_fail; | |
2673 | } | |
c32bde28 | 2674 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2675 | return resultobj; |
2676 | fail: | |
2677 | return NULL; | |
2678 | } | |
2679 | ||
2680 | ||
c32bde28 | 2681 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2682 | PyObject *resultobj; |
2683 | wxSize *arg1 = (wxSize *) 0 ; | |
2684 | bool result; | |
2685 | PyObject * obj0 = 0 ; | |
2686 | char *kwnames[] = { | |
2687 | (char *) "self", NULL | |
2688 | }; | |
2689 | ||
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2693 | { | |
2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2695 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2696 | ||
2697 | wxPyEndAllowThreads(__tstate); | |
2698 | if (PyErr_Occurred()) SWIG_fail; | |
2699 | } | |
2700 | { | |
2701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2702 | } | |
2703 | return resultobj; | |
2704 | fail: | |
2705 | return NULL; | |
2706 | } | |
2707 | ||
2708 | ||
c32bde28 | 2709 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2710 | PyObject *resultobj; |
2711 | wxSize *arg1 = (wxSize *) 0 ; | |
2712 | wxSize *arg2 = 0 ; | |
2713 | wxSize temp2 ; | |
2714 | PyObject * obj0 = 0 ; | |
2715 | PyObject * obj1 = 0 ; | |
2716 | char *kwnames[] = { | |
2717 | (char *) "self",(char *) "size", NULL | |
2718 | }; | |
2719 | ||
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2723 | { | |
2724 | arg2 = &temp2; | |
2725 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
2734 | Py_INCREF(Py_None); resultobj = Py_None; | |
2735 | return resultobj; | |
2736 | fail: | |
2737 | return NULL; | |
2738 | } | |
2739 | ||
2740 | ||
c32bde28 | 2741 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2742 | PyObject *resultobj; |
2743 | wxSize *arg1 = (wxSize *) 0 ; | |
2744 | PyObject *result; | |
2745 | PyObject * obj0 = 0 ; | |
2746 | char *kwnames[] = { | |
2747 | (char *) "self", NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2753 | { | |
2754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2755 | result = (PyObject *)wxSize_Get(arg1); | |
2756 | ||
2757 | wxPyEndAllowThreads(__tstate); | |
2758 | if (PyErr_Occurred()) SWIG_fail; | |
2759 | } | |
2760 | resultobj = result; | |
2761 | return resultobj; | |
2762 | fail: | |
2763 | return NULL; | |
2764 | } | |
2765 | ||
2766 | ||
c32bde28 | 2767 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2768 | PyObject *obj; |
2769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2770 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2771 | Py_INCREF(obj); | |
2772 | return Py_BuildValue((char *)""); | |
2773 | } | |
c32bde28 | 2774 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2775 | PyObject *resultobj; |
2776 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2777 | double arg2 ; | |
2778 | PyObject * obj0 = 0 ; | |
2779 | PyObject * obj1 = 0 ; | |
2780 | char *kwnames[] = { | |
2781 | (char *) "self",(char *) "x", NULL | |
2782 | }; | |
2783 | ||
2784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2787 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2788 | if (PyErr_Occurred()) SWIG_fail; |
2789 | if (arg1) (arg1)->x = arg2; | |
2790 | ||
2791 | Py_INCREF(Py_None); resultobj = Py_None; | |
2792 | return resultobj; | |
2793 | fail: | |
2794 | return NULL; | |
2795 | } | |
2796 | ||
2797 | ||
c32bde28 | 2798 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2799 | PyObject *resultobj; |
2800 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2801 | double result; | |
2802 | PyObject * obj0 = 0 ; | |
2803 | char *kwnames[] = { | |
2804 | (char *) "self", NULL | |
2805 | }; | |
2806 | ||
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2810 | result = (double) ((arg1)->x); | |
2811 | ||
c32bde28 | 2812 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2813 | return resultobj; |
2814 | fail: | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
c32bde28 | 2819 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2820 | PyObject *resultobj; |
2821 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2822 | double arg2 ; | |
2823 | PyObject * obj0 = 0 ; | |
2824 | PyObject * obj1 = 0 ; | |
2825 | char *kwnames[] = { | |
2826 | (char *) "self",(char *) "y", NULL | |
2827 | }; | |
2828 | ||
2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 2832 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2833 | if (PyErr_Occurred()) SWIG_fail; |
2834 | if (arg1) (arg1)->y = arg2; | |
2835 | ||
2836 | Py_INCREF(Py_None); resultobj = Py_None; | |
2837 | return resultobj; | |
2838 | fail: | |
2839 | return NULL; | |
2840 | } | |
2841 | ||
2842 | ||
c32bde28 | 2843 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2844 | PyObject *resultobj; |
2845 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2846 | double result; | |
2847 | PyObject * obj0 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "self", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2855 | result = (double) ((arg1)->y); | |
2856 | ||
c32bde28 | 2857 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2858 | return resultobj; |
2859 | fail: | |
2860 | return NULL; | |
2861 | } | |
2862 | ||
2863 | ||
c32bde28 | 2864 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2865 | PyObject *resultobj; |
2866 | double arg1 = (double) 0.0 ; | |
2867 | double arg2 = (double) 0.0 ; | |
2868 | wxRealPoint *result; | |
2869 | PyObject * obj0 = 0 ; | |
2870 | PyObject * obj1 = 0 ; | |
2871 | char *kwnames[] = { | |
2872 | (char *) "x",(char *) "y", NULL | |
2873 | }; | |
2874 | ||
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2876 | if (obj0) { | |
c32bde28 | 2877 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
2878 | if (PyErr_Occurred()) SWIG_fail; |
2879 | } | |
2880 | if (obj1) { | |
c32bde28 | 2881 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2882 | if (PyErr_Occurred()) SWIG_fail; |
2883 | } | |
2884 | { | |
2885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2886 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2887 | ||
2888 | wxPyEndAllowThreads(__tstate); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
2891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2892 | return resultobj; | |
2893 | fail: | |
2894 | return NULL; | |
2895 | } | |
2896 | ||
2897 | ||
c32bde28 | 2898 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2899 | PyObject *resultobj; |
2900 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2901 | PyObject * obj0 = 0 ; | |
2902 | char *kwnames[] = { | |
2903 | (char *) "self", NULL | |
2904 | }; | |
2905 | ||
2906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2909 | { | |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | delete arg1; | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
2916 | Py_INCREF(Py_None); resultobj = Py_None; | |
2917 | return resultobj; | |
2918 | fail: | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
c32bde28 | 2923 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2924 | PyObject *resultobj; |
2925 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2926 | wxRealPoint *arg2 = 0 ; | |
2927 | bool result; | |
2928 | wxRealPoint temp2 ; | |
2929 | PyObject * obj0 = 0 ; | |
2930 | PyObject * obj1 = 0 ; | |
2931 | char *kwnames[] = { | |
2932 | (char *) "self",(char *) "pt", NULL | |
2933 | }; | |
2934 | ||
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2938 | { | |
2939 | arg2 = &temp2; | |
2940 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2941 | } | |
2942 | { | |
2943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2944 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2945 | ||
2946 | wxPyEndAllowThreads(__tstate); | |
2947 | if (PyErr_Occurred()) SWIG_fail; | |
2948 | } | |
2949 | { | |
2950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2951 | } | |
2952 | return resultobj; | |
2953 | fail: | |
2954 | return NULL; | |
2955 | } | |
2956 | ||
2957 | ||
c32bde28 | 2958 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2959 | PyObject *resultobj; |
2960 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2961 | wxRealPoint *arg2 = 0 ; | |
2962 | bool result; | |
2963 | wxRealPoint temp2 ; | |
2964 | PyObject * obj0 = 0 ; | |
2965 | PyObject * obj1 = 0 ; | |
2966 | char *kwnames[] = { | |
2967 | (char *) "self",(char *) "pt", NULL | |
2968 | }; | |
2969 | ||
2970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2973 | { | |
2974 | arg2 = &temp2; | |
2975 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2976 | } | |
2977 | { | |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2986 | } | |
2987 | return resultobj; | |
2988 | fail: | |
2989 | return NULL; | |
2990 | } | |
2991 | ||
2992 | ||
c32bde28 | 2993 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2994 | PyObject *resultobj; |
2995 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2996 | wxRealPoint *arg2 = 0 ; | |
2997 | wxRealPoint result; | |
2998 | wxRealPoint temp2 ; | |
2999 | PyObject * obj0 = 0 ; | |
3000 | PyObject * obj1 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "self",(char *) "pt", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
3006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3008 | { | |
3009 | arg2 = &temp2; | |
3010 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3011 | } | |
3012 | { | |
3013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3014 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
3015 | ||
3016 | wxPyEndAllowThreads(__tstate); | |
3017 | if (PyErr_Occurred()) SWIG_fail; | |
3018 | } | |
3019 | { | |
3020 | wxRealPoint * resultptr; | |
3021 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3022 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3023 | } | |
3024 | return resultobj; | |
3025 | fail: | |
3026 | return NULL; | |
3027 | } | |
3028 | ||
3029 | ||
c32bde28 | 3030 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3031 | PyObject *resultobj; |
3032 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3033 | wxRealPoint *arg2 = 0 ; | |
3034 | wxRealPoint result; | |
3035 | wxRealPoint temp2 ; | |
3036 | PyObject * obj0 = 0 ; | |
3037 | PyObject * obj1 = 0 ; | |
3038 | char *kwnames[] = { | |
3039 | (char *) "self",(char *) "pt", NULL | |
3040 | }; | |
3041 | ||
3042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3045 | { | |
3046 | arg2 = &temp2; | |
3047 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3048 | } | |
3049 | { | |
3050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3051 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
3052 | ||
3053 | wxPyEndAllowThreads(__tstate); | |
3054 | if (PyErr_Occurred()) SWIG_fail; | |
3055 | } | |
3056 | { | |
3057 | wxRealPoint * resultptr; | |
3058 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | return NULL; | |
3064 | } | |
3065 | ||
3066 | ||
c32bde28 | 3067 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3068 | PyObject *resultobj; |
3069 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3070 | double arg2 ; | |
3071 | double arg3 ; | |
3072 | PyObject * obj0 = 0 ; | |
3073 | PyObject * obj1 = 0 ; | |
3074 | PyObject * obj2 = 0 ; | |
3075 | char *kwnames[] = { | |
3076 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3077 | }; | |
3078 | ||
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3082 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 3083 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3084 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
3085 | if (PyErr_Occurred()) SWIG_fail; |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | wxRealPoint_Set(arg1,arg2,arg3); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | Py_INCREF(Py_None); resultobj = Py_None; | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
c32bde28 | 3100 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3101 | PyObject *resultobj; |
3102 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3103 | PyObject *result; | |
3104 | PyObject * obj0 = 0 ; | |
3105 | char *kwnames[] = { | |
3106 | (char *) "self", NULL | |
3107 | }; | |
3108 | ||
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
3110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3114 | result = (PyObject *)wxRealPoint_Get(arg1); | |
3115 | ||
3116 | wxPyEndAllowThreads(__tstate); | |
3117 | if (PyErr_Occurred()) SWIG_fail; | |
3118 | } | |
3119 | resultobj = result; | |
3120 | return resultobj; | |
3121 | fail: | |
3122 | return NULL; | |
3123 | } | |
3124 | ||
3125 | ||
c32bde28 | 3126 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3127 | PyObject *obj; |
3128 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3129 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3130 | Py_INCREF(obj); | |
3131 | return Py_BuildValue((char *)""); | |
3132 | } | |
c32bde28 | 3133 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3134 | PyObject *resultobj; |
3135 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3136 | int arg2 ; | |
3137 | PyObject * obj0 = 0 ; | |
3138 | PyObject * obj1 = 0 ; | |
3139 | char *kwnames[] = { | |
3140 | (char *) "self",(char *) "x", NULL | |
3141 | }; | |
3142 | ||
3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
3144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3146 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3147 | if (PyErr_Occurred()) SWIG_fail; |
3148 | if (arg1) (arg1)->x = arg2; | |
3149 | ||
3150 | Py_INCREF(Py_None); resultobj = Py_None; | |
3151 | return resultobj; | |
3152 | fail: | |
3153 | return NULL; | |
3154 | } | |
3155 | ||
3156 | ||
c32bde28 | 3157 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3158 | PyObject *resultobj; |
3159 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3160 | int result; | |
3161 | PyObject * obj0 = 0 ; | |
3162 | char *kwnames[] = { | |
3163 | (char *) "self", NULL | |
3164 | }; | |
3165 | ||
3166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
3167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3169 | result = (int) ((arg1)->x); | |
3170 | ||
c32bde28 | 3171 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3172 | return resultobj; |
3173 | fail: | |
3174 | return NULL; | |
3175 | } | |
3176 | ||
3177 | ||
c32bde28 | 3178 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3179 | PyObject *resultobj; |
3180 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3181 | int arg2 ; | |
3182 | PyObject * obj0 = 0 ; | |
3183 | PyObject * obj1 = 0 ; | |
3184 | char *kwnames[] = { | |
3185 | (char *) "self",(char *) "y", NULL | |
3186 | }; | |
3187 | ||
3188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
3189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3191 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3192 | if (PyErr_Occurred()) SWIG_fail; |
3193 | if (arg1) (arg1)->y = arg2; | |
3194 | ||
3195 | Py_INCREF(Py_None); resultobj = Py_None; | |
3196 | return resultobj; | |
3197 | fail: | |
3198 | return NULL; | |
3199 | } | |
3200 | ||
3201 | ||
c32bde28 | 3202 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3203 | PyObject *resultobj; |
3204 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3205 | int result; | |
3206 | PyObject * obj0 = 0 ; | |
3207 | char *kwnames[] = { | |
3208 | (char *) "self", NULL | |
3209 | }; | |
3210 | ||
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
3212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3214 | result = (int) ((arg1)->y); | |
3215 | ||
c32bde28 | 3216 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3217 | return resultobj; |
3218 | fail: | |
3219 | return NULL; | |
3220 | } | |
3221 | ||
3222 | ||
c32bde28 | 3223 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3224 | PyObject *resultobj; |
3225 | int arg1 = (int) 0 ; | |
3226 | int arg2 = (int) 0 ; | |
3227 | wxPoint *result; | |
3228 | PyObject * obj0 = 0 ; | |
3229 | PyObject * obj1 = 0 ; | |
3230 | char *kwnames[] = { | |
3231 | (char *) "x",(char *) "y", NULL | |
3232 | }; | |
3233 | ||
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
3235 | if (obj0) { | |
c32bde28 | 3236 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3237 | if (PyErr_Occurred()) SWIG_fail; |
3238 | } | |
3239 | if (obj1) { | |
c32bde28 | 3240 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3241 | if (PyErr_Occurred()) SWIG_fail; |
3242 | } | |
3243 | { | |
3244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3245 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3246 | ||
3247 | wxPyEndAllowThreads(__tstate); | |
3248 | if (PyErr_Occurred()) SWIG_fail; | |
3249 | } | |
3250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3251 | return resultobj; | |
3252 | fail: | |
3253 | return NULL; | |
3254 | } | |
3255 | ||
3256 | ||
c32bde28 | 3257 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3258 | PyObject *resultobj; |
3259 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3260 | PyObject * obj0 = 0 ; | |
3261 | char *kwnames[] = { | |
3262 | (char *) "self", NULL | |
3263 | }; | |
3264 | ||
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3268 | { | |
3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3270 | delete arg1; | |
3271 | ||
3272 | wxPyEndAllowThreads(__tstate); | |
3273 | if (PyErr_Occurred()) SWIG_fail; | |
3274 | } | |
3275 | Py_INCREF(Py_None); resultobj = Py_None; | |
3276 | return resultobj; | |
3277 | fail: | |
3278 | return NULL; | |
3279 | } | |
3280 | ||
3281 | ||
c32bde28 | 3282 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3283 | PyObject *resultobj; |
3284 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3285 | wxPoint *arg2 = 0 ; | |
3286 | bool result; | |
3287 | wxPoint temp2 ; | |
3288 | PyObject * obj0 = 0 ; | |
3289 | PyObject * obj1 = 0 ; | |
3290 | char *kwnames[] = { | |
3291 | (char *) "self",(char *) "pt", NULL | |
3292 | }; | |
3293 | ||
3294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3297 | { | |
3298 | arg2 = &temp2; | |
3299 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3300 | } | |
3301 | { | |
3302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3303 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3304 | ||
3305 | wxPyEndAllowThreads(__tstate); | |
3306 | if (PyErr_Occurred()) SWIG_fail; | |
3307 | } | |
3308 | { | |
3309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3310 | } | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | return NULL; | |
3314 | } | |
3315 | ||
3316 | ||
c32bde28 | 3317 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3318 | PyObject *resultobj; |
3319 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3320 | wxPoint *arg2 = 0 ; | |
3321 | bool result; | |
3322 | wxPoint temp2 ; | |
3323 | PyObject * obj0 = 0 ; | |
3324 | PyObject * obj1 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "self",(char *) "pt", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3332 | { | |
3333 | arg2 = &temp2; | |
3334 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3335 | } | |
3336 | { | |
3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3338 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3339 | ||
3340 | wxPyEndAllowThreads(__tstate); | |
3341 | if (PyErr_Occurred()) SWIG_fail; | |
3342 | } | |
3343 | { | |
3344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3345 | } | |
3346 | return resultobj; | |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
c32bde28 | 3352 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3353 | PyObject *resultobj; |
3354 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3355 | wxPoint *arg2 = 0 ; | |
3356 | wxPoint result; | |
3357 | wxPoint temp2 ; | |
3358 | PyObject * obj0 = 0 ; | |
3359 | PyObject * obj1 = 0 ; | |
3360 | char *kwnames[] = { | |
3361 | (char *) "self",(char *) "pt", NULL | |
3362 | }; | |
3363 | ||
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3367 | { | |
3368 | arg2 = &temp2; | |
3369 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3370 | } | |
3371 | { | |
3372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3373 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3374 | ||
3375 | wxPyEndAllowThreads(__tstate); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | wxPoint * resultptr; | |
3380 | resultptr = new wxPoint((wxPoint &) result); | |
3381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3382 | } | |
3383 | return resultobj; | |
3384 | fail: | |
3385 | return NULL; | |
3386 | } | |
3387 | ||
3388 | ||
c32bde28 | 3389 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3390 | PyObject *resultobj; |
3391 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3392 | wxPoint *arg2 = 0 ; | |
3393 | wxPoint result; | |
3394 | wxPoint temp2 ; | |
3395 | PyObject * obj0 = 0 ; | |
3396 | PyObject * obj1 = 0 ; | |
3397 | char *kwnames[] = { | |
3398 | (char *) "self",(char *) "pt", NULL | |
3399 | }; | |
3400 | ||
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3404 | { | |
3405 | arg2 = &temp2; | |
3406 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3407 | } | |
3408 | { | |
3409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3410 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3411 | ||
3412 | wxPyEndAllowThreads(__tstate); | |
3413 | if (PyErr_Occurred()) SWIG_fail; | |
3414 | } | |
3415 | { | |
3416 | wxPoint * resultptr; | |
3417 | resultptr = new wxPoint((wxPoint &) result); | |
3418 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3419 | } | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | return NULL; | |
3423 | } | |
3424 | ||
3425 | ||
c32bde28 | 3426 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3427 | PyObject *resultobj; |
3428 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3429 | wxPoint *arg2 = 0 ; | |
3430 | wxPoint *result; | |
3431 | wxPoint temp2 ; | |
3432 | PyObject * obj0 = 0 ; | |
3433 | PyObject * obj1 = 0 ; | |
3434 | char *kwnames[] = { | |
3435 | (char *) "self",(char *) "pt", NULL | |
3436 | }; | |
3437 | ||
3438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3440 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3441 | { |
3442 | arg2 = &temp2; | |
3443 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3444 | } | |
3445 | { | |
3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3447 | { | |
3448 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3449 | result = (wxPoint *) &_result_ref; | |
3450 | } | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
c32bde28 | 3455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3456 | return resultobj; |
3457 | fail: | |
3458 | return NULL; | |
3459 | } | |
3460 | ||
3461 | ||
c32bde28 | 3462 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3463 | PyObject *resultobj; |
3464 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3465 | wxPoint *arg2 = 0 ; | |
3466 | wxPoint *result; | |
3467 | wxPoint temp2 ; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | PyObject * obj1 = 0 ; | |
3470 | char *kwnames[] = { | |
3471 | (char *) "self",(char *) "pt", NULL | |
3472 | }; | |
3473 | ||
3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c32bde28 | 3476 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3477 | { |
3478 | arg2 = &temp2; | |
3479 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3480 | } | |
3481 | { | |
3482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3483 | { | |
3484 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3485 | result = (wxPoint *) &_result_ref; | |
3486 | } | |
3487 | ||
3488 | wxPyEndAllowThreads(__tstate); | |
3489 | if (PyErr_Occurred()) SWIG_fail; | |
3490 | } | |
c32bde28 | 3491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3492 | return resultobj; |
3493 | fail: | |
3494 | return NULL; | |
3495 | } | |
3496 | ||
3497 | ||
c32bde28 | 3498 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3499 | PyObject *resultobj; |
3500 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3501 | long arg2 ; | |
3502 | long arg3 ; | |
3503 | PyObject * obj0 = 0 ; | |
3504 | PyObject * obj1 = 0 ; | |
3505 | PyObject * obj2 = 0 ; | |
3506 | char *kwnames[] = { | |
3507 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3508 | }; | |
3509 | ||
3510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3513 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3514 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 3515 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3516 | if (PyErr_Occurred()) SWIG_fail; |
3517 | { | |
3518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3519 | wxPoint_Set(arg1,arg2,arg3); | |
3520 | ||
3521 | wxPyEndAllowThreads(__tstate); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | Py_INCREF(Py_None); resultobj = Py_None; | |
3525 | return resultobj; | |
3526 | fail: | |
3527 | return NULL; | |
3528 | } | |
3529 | ||
3530 | ||
c32bde28 | 3531 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3532 | PyObject *resultobj; |
3533 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3534 | PyObject *result; | |
3535 | PyObject * obj0 = 0 ; | |
3536 | char *kwnames[] = { | |
3537 | (char *) "self", NULL | |
3538 | }; | |
3539 | ||
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3543 | { | |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | result = (PyObject *)wxPoint_Get(arg1); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | resultobj = result; | |
3551 | return resultobj; | |
3552 | fail: | |
3553 | return NULL; | |
3554 | } | |
3555 | ||
3556 | ||
c32bde28 | 3557 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3558 | PyObject *obj; |
3559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3560 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3561 | Py_INCREF(obj); | |
3562 | return Py_BuildValue((char *)""); | |
3563 | } | |
c32bde28 | 3564 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3565 | PyObject *resultobj; |
3566 | int arg1 = (int) 0 ; | |
3567 | int arg2 = (int) 0 ; | |
3568 | int arg3 = (int) 0 ; | |
3569 | int arg4 = (int) 0 ; | |
3570 | wxRect *result; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | PyObject * obj1 = 0 ; | |
3573 | PyObject * obj2 = 0 ; | |
3574 | PyObject * obj3 = 0 ; | |
3575 | char *kwnames[] = { | |
3576 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3577 | }; | |
3578 | ||
3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3580 | if (obj0) { | |
c32bde28 | 3581 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3582 | if (PyErr_Occurred()) SWIG_fail; |
3583 | } | |
3584 | if (obj1) { | |
c32bde28 | 3585 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3586 | if (PyErr_Occurred()) SWIG_fail; |
3587 | } | |
3588 | if (obj2) { | |
c32bde28 | 3589 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3590 | if (PyErr_Occurred()) SWIG_fail; |
3591 | } | |
3592 | if (obj3) { | |
c32bde28 | 3593 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3594 | if (PyErr_Occurred()) SWIG_fail; |
3595 | } | |
3596 | { | |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3604 | return resultobj; | |
3605 | fail: | |
3606 | return NULL; | |
3607 | } | |
3608 | ||
3609 | ||
c32bde28 | 3610 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3611 | PyObject *resultobj; |
3612 | wxPoint *arg1 = 0 ; | |
3613 | wxPoint *arg2 = 0 ; | |
3614 | wxRect *result; | |
3615 | wxPoint temp1 ; | |
3616 | wxPoint temp2 ; | |
3617 | PyObject * obj0 = 0 ; | |
3618 | PyObject * obj1 = 0 ; | |
3619 | char *kwnames[] = { | |
3620 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3621 | }; | |
3622 | ||
3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3624 | { | |
3625 | arg1 = &temp1; | |
3626 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3627 | } | |
3628 | { | |
3629 | arg2 = &temp2; | |
3630 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3631 | } | |
3632 | { | |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3640 | return resultobj; | |
3641 | fail: | |
3642 | return NULL; | |
3643 | } | |
3644 | ||
3645 | ||
c32bde28 | 3646 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3647 | PyObject *resultobj; |
3648 | wxPoint *arg1 = 0 ; | |
3649 | wxSize *arg2 = 0 ; | |
3650 | wxRect *result; | |
3651 | wxPoint temp1 ; | |
3652 | wxSize temp2 ; | |
3653 | PyObject * obj0 = 0 ; | |
3654 | PyObject * obj1 = 0 ; | |
3655 | char *kwnames[] = { | |
3656 | (char *) "pos",(char *) "size", NULL | |
3657 | }; | |
3658 | ||
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3660 | { | |
3661 | arg1 = &temp1; | |
3662 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3663 | } | |
3664 | { | |
3665 | arg2 = &temp2; | |
3666 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3667 | } | |
3668 | { | |
3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3670 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3671 | ||
3672 | wxPyEndAllowThreads(__tstate); | |
3673 | if (PyErr_Occurred()) SWIG_fail; | |
3674 | } | |
3675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3676 | return resultobj; | |
3677 | fail: | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
c1cb24a4 RD |
3682 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
3683 | PyObject *resultobj; | |
3684 | wxSize *arg1 = 0 ; | |
3685 | wxRect *result; | |
3686 | wxSize temp1 ; | |
3687 | PyObject * obj0 = 0 ; | |
3688 | char *kwnames[] = { | |
3689 | (char *) "size", NULL | |
3690 | }; | |
3691 | ||
3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
3693 | { | |
3694 | arg1 = &temp1; | |
3695 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
3696 | } | |
3697 | { | |
3698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3699 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
3700 | ||
3701 | wxPyEndAllowThreads(__tstate); | |
3702 | if (PyErr_Occurred()) SWIG_fail; | |
3703 | } | |
3704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
c32bde28 | 3711 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3712 | PyObject *resultobj; |
3713 | wxRect *arg1 = (wxRect *) 0 ; | |
3714 | PyObject * obj0 = 0 ; | |
3715 | char *kwnames[] = { | |
3716 | (char *) "self", NULL | |
3717 | }; | |
3718 | ||
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3722 | { | |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | delete arg1; | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | Py_INCREF(Py_None); resultobj = Py_None; | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
3733 | } | |
3734 | ||
3735 | ||
c32bde28 | 3736 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3737 | PyObject *resultobj; |
3738 | wxRect *arg1 = (wxRect *) 0 ; | |
3739 | int result; | |
3740 | PyObject * obj0 = 0 ; | |
3741 | char *kwnames[] = { | |
3742 | (char *) "self", NULL | |
3743 | }; | |
3744 | ||
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3748 | { | |
3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3750 | result = (int)((wxRect const *)arg1)->GetX(); | |
3751 | ||
3752 | wxPyEndAllowThreads(__tstate); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | } | |
c32bde28 | 3755 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3756 | return resultobj; |
3757 | fail: | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
c32bde28 | 3762 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3763 | PyObject *resultobj; |
3764 | wxRect *arg1 = (wxRect *) 0 ; | |
3765 | int arg2 ; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | PyObject * obj1 = 0 ; | |
3768 | char *kwnames[] = { | |
3769 | (char *) "self",(char *) "x", NULL | |
3770 | }; | |
3771 | ||
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3775 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3776 | if (PyErr_Occurred()) SWIG_fail; |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | (arg1)->SetX(arg2); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
c32bde28 | 3791 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3792 | PyObject *resultobj; |
3793 | wxRect *arg1 = (wxRect *) 0 ; | |
3794 | int result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3803 | { | |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | result = (int)(arg1)->GetY(); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
c32bde28 | 3810 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3811 | return resultobj; |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
c32bde28 | 3817 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3818 | PyObject *resultobj; |
3819 | wxRect *arg1 = (wxRect *) 0 ; | |
3820 | int arg2 ; | |
3821 | PyObject * obj0 = 0 ; | |
3822 | PyObject * obj1 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self",(char *) "y", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3830 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3831 | if (PyErr_Occurred()) SWIG_fail; |
3832 | { | |
3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3834 | (arg1)->SetY(arg2); | |
3835 | ||
3836 | wxPyEndAllowThreads(__tstate); | |
3837 | if (PyErr_Occurred()) SWIG_fail; | |
3838 | } | |
3839 | Py_INCREF(Py_None); resultobj = Py_None; | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
c32bde28 | 3846 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3847 | PyObject *resultobj; |
3848 | wxRect *arg1 = (wxRect *) 0 ; | |
3849 | int result; | |
3850 | PyObject * obj0 = 0 ; | |
3851 | char *kwnames[] = { | |
3852 | (char *) "self", NULL | |
3853 | }; | |
3854 | ||
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
c32bde28 | 3865 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3866 | return resultobj; |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
c32bde28 | 3872 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3873 | PyObject *resultobj; |
3874 | wxRect *arg1 = (wxRect *) 0 ; | |
3875 | int arg2 ; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | PyObject * obj1 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "self",(char *) "w", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3886 | if (PyErr_Occurred()) SWIG_fail; |
3887 | { | |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | (arg1)->SetWidth(arg2); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | Py_INCREF(Py_None); resultobj = Py_None; | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
c32bde28 | 3901 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3902 | PyObject *resultobj; |
3903 | wxRect *arg1 = (wxRect *) 0 ; | |
3904 | int result; | |
3905 | PyObject * obj0 = 0 ; | |
3906 | char *kwnames[] = { | |
3907 | (char *) "self", NULL | |
3908 | }; | |
3909 | ||
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
c32bde28 | 3920 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3921 | return resultobj; |
3922 | fail: | |
3923 | return NULL; | |
3924 | } | |
3925 | ||
3926 | ||
c32bde28 | 3927 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3928 | PyObject *resultobj; |
3929 | wxRect *arg1 = (wxRect *) 0 ; | |
3930 | int arg2 ; | |
3931 | PyObject * obj0 = 0 ; | |
3932 | PyObject * obj1 = 0 ; | |
3933 | char *kwnames[] = { | |
3934 | (char *) "self",(char *) "h", NULL | |
3935 | }; | |
3936 | ||
3937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 3940 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3941 | if (PyErr_Occurred()) SWIG_fail; |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | (arg1)->SetHeight(arg2); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | Py_INCREF(Py_None); resultobj = Py_None; | |
3950 | return resultobj; | |
3951 | fail: | |
3952 | return NULL; | |
3953 | } | |
3954 | ||
3955 | ||
c32bde28 | 3956 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3957 | PyObject *resultobj; |
3958 | wxRect *arg1 = (wxRect *) 0 ; | |
3959 | wxPoint result; | |
3960 | PyObject * obj0 = 0 ; | |
3961 | char *kwnames[] = { | |
3962 | (char *) "self", NULL | |
3963 | }; | |
3964 | ||
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | result = ((wxRect const *)arg1)->GetPosition(); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | { | |
3976 | wxPoint * resultptr; | |
3977 | resultptr = new wxPoint((wxPoint &) result); | |
3978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3979 | } | |
3980 | return resultobj; | |
3981 | fail: | |
3982 | return NULL; | |
3983 | } | |
3984 | ||
3985 | ||
c32bde28 | 3986 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3987 | PyObject *resultobj; |
3988 | wxRect *arg1 = (wxRect *) 0 ; | |
3989 | wxPoint *arg2 = 0 ; | |
3990 | wxPoint temp2 ; | |
3991 | PyObject * obj0 = 0 ; | |
3992 | PyObject * obj1 = 0 ; | |
3993 | char *kwnames[] = { | |
3994 | (char *) "self",(char *) "p", NULL | |
3995 | }; | |
3996 | ||
3997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4000 | { | |
4001 | arg2 = &temp2; | |
4002 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4003 | } | |
4004 | { | |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
4007 | ||
4008 | wxPyEndAllowThreads(__tstate); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | } | |
4011 | Py_INCREF(Py_None); resultobj = Py_None; | |
4012 | return resultobj; | |
4013 | fail: | |
4014 | return NULL; | |
4015 | } | |
4016 | ||
4017 | ||
c32bde28 | 4018 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4019 | PyObject *resultobj; |
4020 | wxRect *arg1 = (wxRect *) 0 ; | |
4021 | wxSize result; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | char *kwnames[] = { | |
4024 | (char *) "self", NULL | |
4025 | }; | |
4026 | ||
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
4028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4030 | { | |
4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4032 | result = ((wxRect const *)arg1)->GetSize(); | |
4033 | ||
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
4036 | } | |
4037 | { | |
4038 | wxSize * resultptr; | |
4039 | resultptr = new wxSize((wxSize &) result); | |
4040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4041 | } | |
4042 | return resultobj; | |
4043 | fail: | |
4044 | return NULL; | |
4045 | } | |
4046 | ||
4047 | ||
c32bde28 | 4048 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4049 | PyObject *resultobj; |
4050 | wxRect *arg1 = (wxRect *) 0 ; | |
4051 | wxSize *arg2 = 0 ; | |
4052 | wxSize temp2 ; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | PyObject * obj1 = 0 ; | |
4055 | char *kwnames[] = { | |
4056 | (char *) "self",(char *) "s", NULL | |
4057 | }; | |
4058 | ||
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4062 | { | |
4063 | arg2 = &temp2; | |
4064 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->SetSize((wxSize const &)*arg2); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
c32bde28 | 4080 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4081 | PyObject *resultobj; |
4082 | wxRect *arg1 = (wxRect *) 0 ; | |
4083 | wxPoint result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "self", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
4090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4092 | { | |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4094 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4095 | ||
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
4099 | { | |
4100 | wxPoint * resultptr; | |
4101 | resultptr = new wxPoint((wxPoint &) result); | |
4102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4103 | } | |
4104 | return resultobj; | |
4105 | fail: | |
4106 | return NULL; | |
4107 | } | |
4108 | ||
4109 | ||
c32bde28 | 4110 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4111 | PyObject *resultobj; |
4112 | wxRect *arg1 = (wxRect *) 0 ; | |
4113 | wxPoint *arg2 = 0 ; | |
4114 | wxPoint temp2 ; | |
4115 | PyObject * obj0 = 0 ; | |
4116 | PyObject * obj1 = 0 ; | |
4117 | char *kwnames[] = { | |
4118 | (char *) "self",(char *) "p", NULL | |
4119 | }; | |
4120 | ||
4121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
4122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4124 | { | |
4125 | arg2 = &temp2; | |
4126 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4127 | } | |
4128 | { | |
4129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4130 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4131 | ||
4132 | wxPyEndAllowThreads(__tstate); | |
4133 | if (PyErr_Occurred()) SWIG_fail; | |
4134 | } | |
4135 | Py_INCREF(Py_None); resultobj = Py_None; | |
4136 | return resultobj; | |
4137 | fail: | |
4138 | return NULL; | |
4139 | } | |
4140 | ||
4141 | ||
c32bde28 | 4142 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4143 | PyObject *resultobj; |
4144 | wxRect *arg1 = (wxRect *) 0 ; | |
4145 | wxPoint result; | |
4146 | PyObject * obj0 = 0 ; | |
4147 | char *kwnames[] = { | |
4148 | (char *) "self", NULL | |
4149 | }; | |
4150 | ||
4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
4152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4154 | { | |
4155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4156 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4157 | ||
4158 | wxPyEndAllowThreads(__tstate); | |
4159 | if (PyErr_Occurred()) SWIG_fail; | |
4160 | } | |
4161 | { | |
4162 | wxPoint * resultptr; | |
4163 | resultptr = new wxPoint((wxPoint &) result); | |
4164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4165 | } | |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
c32bde28 | 4172 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4173 | PyObject *resultobj; |
4174 | wxRect *arg1 = (wxRect *) 0 ; | |
4175 | wxPoint *arg2 = 0 ; | |
4176 | wxPoint temp2 ; | |
4177 | PyObject * obj0 = 0 ; | |
4178 | PyObject * obj1 = 0 ; | |
4179 | char *kwnames[] = { | |
4180 | (char *) "self",(char *) "p", NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
4184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4186 | { | |
4187 | arg2 = &temp2; | |
4188 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4189 | } | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4193 | ||
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | Py_INCREF(Py_None); resultobj = Py_None; | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
c32bde28 | 4204 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4205 | PyObject *resultobj; |
4206 | wxRect *arg1 = (wxRect *) 0 ; | |
4207 | int result; | |
4208 | PyObject * obj0 = 0 ; | |
4209 | char *kwnames[] = { | |
4210 | (char *) "self", NULL | |
4211 | }; | |
4212 | ||
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
4214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4216 | { | |
4217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4218 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4219 | ||
4220 | wxPyEndAllowThreads(__tstate); | |
4221 | if (PyErr_Occurred()) SWIG_fail; | |
4222 | } | |
c32bde28 | 4223 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4224 | return resultobj; |
4225 | fail: | |
4226 | return NULL; | |
4227 | } | |
4228 | ||
4229 | ||
c32bde28 | 4230 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4231 | PyObject *resultobj; |
4232 | wxRect *arg1 = (wxRect *) 0 ; | |
4233 | int result; | |
4234 | PyObject * obj0 = 0 ; | |
4235 | char *kwnames[] = { | |
4236 | (char *) "self", NULL | |
4237 | }; | |
4238 | ||
4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
4240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4242 | { | |
4243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4244 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4245 | ||
4246 | wxPyEndAllowThreads(__tstate); | |
4247 | if (PyErr_Occurred()) SWIG_fail; | |
4248 | } | |
c32bde28 | 4249 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4250 | return resultobj; |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
c32bde28 | 4256 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4257 | PyObject *resultobj; |
4258 | wxRect *arg1 = (wxRect *) 0 ; | |
4259 | int result; | |
4260 | PyObject * obj0 = 0 ; | |
4261 | char *kwnames[] = { | |
4262 | (char *) "self", NULL | |
4263 | }; | |
4264 | ||
4265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
4266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4268 | { | |
4269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4270 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4271 | ||
4272 | wxPyEndAllowThreads(__tstate); | |
4273 | if (PyErr_Occurred()) SWIG_fail; | |
4274 | } | |
c32bde28 | 4275 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4276 | return resultobj; |
4277 | fail: | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
c32bde28 | 4282 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4283 | PyObject *resultobj; |
4284 | wxRect *arg1 = (wxRect *) 0 ; | |
4285 | int result; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | char *kwnames[] = { | |
4288 | (char *) "self", NULL | |
4289 | }; | |
4290 | ||
4291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4297 | ||
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
c32bde28 | 4301 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4302 | return resultobj; |
4303 | fail: | |
4304 | return NULL; | |
4305 | } | |
4306 | ||
4307 | ||
c32bde28 | 4308 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4309 | PyObject *resultobj; |
4310 | wxRect *arg1 = (wxRect *) 0 ; | |
4311 | int arg2 ; | |
4312 | PyObject * obj0 = 0 ; | |
4313 | PyObject * obj1 = 0 ; | |
4314 | char *kwnames[] = { | |
4315 | (char *) "self",(char *) "left", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4321 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4322 | if (PyErr_Occurred()) SWIG_fail; |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | (arg1)->SetLeft(arg2); | |
4326 | ||
4327 | wxPyEndAllowThreads(__tstate); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
4330 | Py_INCREF(Py_None); resultobj = Py_None; | |
4331 | return resultobj; | |
4332 | fail: | |
4333 | return NULL; | |
4334 | } | |
4335 | ||
4336 | ||
c32bde28 | 4337 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4338 | PyObject *resultobj; |
4339 | wxRect *arg1 = (wxRect *) 0 ; | |
4340 | int arg2 ; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | PyObject * obj1 = 0 ; | |
4343 | char *kwnames[] = { | |
4344 | (char *) "self",(char *) "right", NULL | |
4345 | }; | |
4346 | ||
4347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4350 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4351 | if (PyErr_Occurred()) SWIG_fail; |
4352 | { | |
4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4354 | (arg1)->SetRight(arg2); | |
4355 | ||
4356 | wxPyEndAllowThreads(__tstate); | |
4357 | if (PyErr_Occurred()) SWIG_fail; | |
4358 | } | |
4359 | Py_INCREF(Py_None); resultobj = Py_None; | |
4360 | return resultobj; | |
4361 | fail: | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
c32bde28 | 4366 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4367 | PyObject *resultobj; |
4368 | wxRect *arg1 = (wxRect *) 0 ; | |
4369 | int arg2 ; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | PyObject * obj1 = 0 ; | |
4372 | char *kwnames[] = { | |
4373 | (char *) "self",(char *) "top", NULL | |
4374 | }; | |
4375 | ||
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4379 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4380 | if (PyErr_Occurred()) SWIG_fail; |
4381 | { | |
4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4383 | (arg1)->SetTop(arg2); | |
4384 | ||
4385 | wxPyEndAllowThreads(__tstate); | |
4386 | if (PyErr_Occurred()) SWIG_fail; | |
4387 | } | |
4388 | Py_INCREF(Py_None); resultobj = Py_None; | |
4389 | return resultobj; | |
4390 | fail: | |
4391 | return NULL; | |
4392 | } | |
4393 | ||
4394 | ||
c32bde28 | 4395 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4396 | PyObject *resultobj; |
4397 | wxRect *arg1 = (wxRect *) 0 ; | |
4398 | int arg2 ; | |
4399 | PyObject * obj0 = 0 ; | |
4400 | PyObject * obj1 = 0 ; | |
4401 | char *kwnames[] = { | |
4402 | (char *) "self",(char *) "bottom", NULL | |
4403 | }; | |
4404 | ||
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4408 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4409 | if (PyErr_Occurred()) SWIG_fail; |
4410 | { | |
4411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4412 | (arg1)->SetBottom(arg2); | |
4413 | ||
4414 | wxPyEndAllowThreads(__tstate); | |
4415 | if (PyErr_Occurred()) SWIG_fail; | |
4416 | } | |
4417 | Py_INCREF(Py_None); resultobj = Py_None; | |
4418 | return resultobj; | |
4419 | fail: | |
4420 | return NULL; | |
4421 | } | |
4422 | ||
4423 | ||
c32bde28 | 4424 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4425 | PyObject *resultobj; |
4426 | wxRect *arg1 = (wxRect *) 0 ; | |
4427 | int arg2 ; | |
4428 | int arg3 ; | |
4429 | wxRect *result; | |
4430 | PyObject * obj0 = 0 ; | |
4431 | PyObject * obj1 = 0 ; | |
4432 | PyObject * obj2 = 0 ; | |
4433 | char *kwnames[] = { | |
4434 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4435 | }; | |
4436 | ||
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4440 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4441 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4442 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4443 | if (PyErr_Occurred()) SWIG_fail; |
4444 | { | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | { | |
4447 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4448 | result = (wxRect *) &_result_ref; | |
4449 | } | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4454 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
c32bde28 | 4461 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4462 | PyObject *resultobj; |
4463 | wxRect *arg1 = (wxRect *) 0 ; | |
4464 | int arg2 ; | |
4465 | int arg3 ; | |
4466 | wxRect *result; | |
4467 | PyObject * obj0 = 0 ; | |
4468 | PyObject * obj1 = 0 ; | |
4469 | PyObject * obj2 = 0 ; | |
4470 | char *kwnames[] = { | |
4471 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4472 | }; | |
4473 | ||
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4477 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4478 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4479 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4480 | if (PyErr_Occurred()) SWIG_fail; |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | { | |
4484 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4485 | result = (wxRect *) &_result_ref; | |
4486 | } | |
4487 | ||
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4492 | return resultobj; | |
4493 | fail: | |
4494 | return NULL; | |
4495 | } | |
4496 | ||
4497 | ||
c32bde28 | 4498 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4499 | PyObject *resultobj; |
4500 | wxRect *arg1 = (wxRect *) 0 ; | |
4501 | int arg2 ; | |
4502 | int arg3 ; | |
4503 | PyObject * obj0 = 0 ; | |
4504 | PyObject * obj1 = 0 ; | |
4505 | PyObject * obj2 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4513 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4514 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4515 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4516 | if (PyErr_Occurred()) SWIG_fail; |
4517 | { | |
4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4519 | (arg1)->Offset(arg2,arg3); | |
4520 | ||
4521 | wxPyEndAllowThreads(__tstate); | |
4522 | if (PyErr_Occurred()) SWIG_fail; | |
4523 | } | |
4524 | Py_INCREF(Py_None); resultobj = Py_None; | |
4525 | return resultobj; | |
4526 | fail: | |
4527 | return NULL; | |
4528 | } | |
4529 | ||
4530 | ||
c32bde28 | 4531 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4532 | PyObject *resultobj; |
4533 | wxRect *arg1 = (wxRect *) 0 ; | |
4534 | wxPoint *arg2 = 0 ; | |
4535 | wxPoint temp2 ; | |
4536 | PyObject * obj0 = 0 ; | |
4537 | PyObject * obj1 = 0 ; | |
4538 | char *kwnames[] = { | |
4539 | (char *) "self",(char *) "pt", NULL | |
4540 | }; | |
4541 | ||
4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4545 | { | |
4546 | arg2 = &temp2; | |
4547 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4548 | } | |
4549 | { | |
4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4551 | (arg1)->Offset((wxPoint const &)*arg2); | |
4552 | ||
4553 | wxPyEndAllowThreads(__tstate); | |
4554 | if (PyErr_Occurred()) SWIG_fail; | |
4555 | } | |
4556 | Py_INCREF(Py_None); resultobj = Py_None; | |
4557 | return resultobj; | |
4558 | fail: | |
4559 | return NULL; | |
4560 | } | |
4561 | ||
4562 | ||
c32bde28 | 4563 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4564 | PyObject *resultobj; |
4565 | wxRect *arg1 = (wxRect *) 0 ; | |
4566 | wxRect *arg2 = 0 ; | |
4567 | wxRect *result; | |
4568 | wxRect temp2 ; | |
4569 | PyObject * obj0 = 0 ; | |
4570 | PyObject * obj1 = 0 ; | |
4571 | char *kwnames[] = { | |
4572 | (char *) "self",(char *) "rect", NULL | |
4573 | }; | |
4574 | ||
4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4578 | { | |
4579 | arg2 = &temp2; | |
4580 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4581 | } | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | { | |
4585 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4586 | result = (wxRect *) &_result_ref; | |
4587 | } | |
4588 | ||
4589 | wxPyEndAllowThreads(__tstate); | |
4590 | if (PyErr_Occurred()) SWIG_fail; | |
4591 | } | |
4592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4593 | return resultobj; | |
4594 | fail: | |
4595 | return NULL; | |
4596 | } | |
4597 | ||
4598 | ||
c32bde28 | 4599 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4600 | PyObject *resultobj; |
4601 | wxRect *arg1 = (wxRect *) 0 ; | |
4602 | wxRect *arg2 = 0 ; | |
4603 | wxRect result; | |
4604 | wxRect temp2 ; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | PyObject * obj1 = 0 ; | |
4607 | char *kwnames[] = { | |
4608 | (char *) "self",(char *) "rect", NULL | |
4609 | }; | |
4610 | ||
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4614 | { | |
4615 | arg2 = &temp2; | |
4616 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4617 | } | |
4618 | { | |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | { | |
4626 | wxRect * resultptr; | |
4627 | resultptr = new wxRect((wxRect &) result); | |
4628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4629 | } | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
c32bde28 | 4636 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4637 | PyObject *resultobj; |
4638 | wxRect *arg1 = (wxRect *) 0 ; | |
4639 | wxRect *arg2 = 0 ; | |
4640 | wxRect *result; | |
4641 | wxRect temp2 ; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | PyObject * obj1 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "self",(char *) "rect", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
c32bde28 | 4650 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
4651 | { |
4652 | arg2 = &temp2; | |
4653 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4654 | } | |
4655 | { | |
4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4657 | { | |
4658 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4659 | result = (wxRect *) &_result_ref; | |
4660 | } | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
c32bde28 | 4665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
4666 | return resultobj; |
4667 | fail: | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
c32bde28 | 4672 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4673 | PyObject *resultobj; |
4674 | wxRect *arg1 = (wxRect *) 0 ; | |
4675 | wxRect *arg2 = 0 ; | |
4676 | bool result; | |
4677 | wxRect temp2 ; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | PyObject * obj1 = 0 ; | |
4680 | char *kwnames[] = { | |
4681 | (char *) "self",(char *) "rect", NULL | |
4682 | }; | |
4683 | ||
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4687 | { | |
4688 | arg2 = &temp2; | |
4689 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4690 | } | |
4691 | { | |
4692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4693 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4694 | ||
4695 | wxPyEndAllowThreads(__tstate); | |
4696 | if (PyErr_Occurred()) SWIG_fail; | |
4697 | } | |
4698 | { | |
4699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4700 | } | |
4701 | return resultobj; | |
4702 | fail: | |
4703 | return NULL; | |
4704 | } | |
4705 | ||
4706 | ||
c32bde28 | 4707 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4708 | PyObject *resultobj; |
4709 | wxRect *arg1 = (wxRect *) 0 ; | |
4710 | wxRect *arg2 = 0 ; | |
4711 | bool result; | |
4712 | wxRect temp2 ; | |
4713 | PyObject * obj0 = 0 ; | |
4714 | PyObject * obj1 = 0 ; | |
4715 | char *kwnames[] = { | |
4716 | (char *) "self",(char *) "rect", NULL | |
4717 | }; | |
4718 | ||
4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4722 | { | |
4723 | arg2 = &temp2; | |
4724 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4725 | } | |
4726 | { | |
4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4728 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4729 | ||
4730 | wxPyEndAllowThreads(__tstate); | |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
4732 | } | |
4733 | { | |
4734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4735 | } | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
c32bde28 | 4742 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4743 | PyObject *resultobj; |
4744 | wxRect *arg1 = (wxRect *) 0 ; | |
4745 | int arg2 ; | |
4746 | int arg3 ; | |
4747 | bool result; | |
4748 | PyObject * obj0 = 0 ; | |
4749 | PyObject * obj1 = 0 ; | |
4750 | PyObject * obj2 = 0 ; | |
4751 | char *kwnames[] = { | |
4752 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4753 | }; | |
4754 | ||
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4758 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4759 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 4760 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4761 | if (PyErr_Occurred()) SWIG_fail; |
4762 | { | |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4764 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4765 | ||
4766 | wxPyEndAllowThreads(__tstate); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | { | |
4770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4771 | } | |
4772 | return resultobj; | |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
c32bde28 | 4778 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4779 | PyObject *resultobj; |
4780 | wxRect *arg1 = (wxRect *) 0 ; | |
4781 | wxPoint *arg2 = 0 ; | |
4782 | bool result; | |
4783 | wxPoint temp2 ; | |
4784 | PyObject * obj0 = 0 ; | |
4785 | PyObject * obj1 = 0 ; | |
4786 | char *kwnames[] = { | |
4787 | (char *) "self",(char *) "pt", NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4793 | { | |
4794 | arg2 = &temp2; | |
4795 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | { | |
4805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4806 | } | |
4807 | return resultobj; | |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
c32bde28 | 4813 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4814 | PyObject *resultobj; |
4815 | wxRect *arg1 = (wxRect *) 0 ; | |
4816 | wxRect *arg2 = 0 ; | |
4817 | bool result; | |
4818 | wxRect temp2 ; | |
4819 | PyObject * obj0 = 0 ; | |
4820 | PyObject * obj1 = 0 ; | |
4821 | char *kwnames[] = { | |
4822 | (char *) "self",(char *) "rect", NULL | |
4823 | }; | |
4824 | ||
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4828 | { | |
4829 | arg2 = &temp2; | |
4830 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4831 | } | |
4832 | { | |
4833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4834 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4835 | ||
4836 | wxPyEndAllowThreads(__tstate); | |
4837 | if (PyErr_Occurred()) SWIG_fail; | |
4838 | } | |
4839 | { | |
4840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4841 | } | |
4842 | return resultobj; | |
4843 | fail: | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
c32bde28 | 4848 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4849 | PyObject *resultobj; |
4850 | wxRect *arg1 = (wxRect *) 0 ; | |
4851 | int arg2 ; | |
4852 | PyObject * obj0 = 0 ; | |
4853 | PyObject * obj1 = 0 ; | |
4854 | char *kwnames[] = { | |
4855 | (char *) "self",(char *) "x", NULL | |
4856 | }; | |
4857 | ||
4858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4862 | if (PyErr_Occurred()) SWIG_fail; |
4863 | if (arg1) (arg1)->x = arg2; | |
4864 | ||
4865 | Py_INCREF(Py_None); resultobj = Py_None; | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
c32bde28 | 4872 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4873 | PyObject *resultobj; |
4874 | wxRect *arg1 = (wxRect *) 0 ; | |
4875 | int result; | |
4876 | PyObject * obj0 = 0 ; | |
4877 | char *kwnames[] = { | |
4878 | (char *) "self", NULL | |
4879 | }; | |
4880 | ||
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4884 | result = (int) ((arg1)->x); | |
4885 | ||
c32bde28 | 4886 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4887 | return resultobj; |
4888 | fail: | |
4889 | return NULL; | |
4890 | } | |
4891 | ||
4892 | ||
c32bde28 | 4893 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4894 | PyObject *resultobj; |
4895 | wxRect *arg1 = (wxRect *) 0 ; | |
4896 | int arg2 ; | |
4897 | PyObject * obj0 = 0 ; | |
4898 | PyObject * obj1 = 0 ; | |
4899 | char *kwnames[] = { | |
4900 | (char *) "self",(char *) "y", NULL | |
4901 | }; | |
4902 | ||
4903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4906 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4907 | if (PyErr_Occurred()) SWIG_fail; |
4908 | if (arg1) (arg1)->y = arg2; | |
4909 | ||
4910 | Py_INCREF(Py_None); resultobj = Py_None; | |
4911 | return resultobj; | |
4912 | fail: | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
c32bde28 | 4917 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4918 | PyObject *resultobj; |
4919 | wxRect *arg1 = (wxRect *) 0 ; | |
4920 | int result; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | char *kwnames[] = { | |
4923 | (char *) "self", NULL | |
4924 | }; | |
4925 | ||
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4929 | result = (int) ((arg1)->y); | |
4930 | ||
c32bde28 | 4931 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4932 | return resultobj; |
4933 | fail: | |
4934 | return NULL; | |
4935 | } | |
4936 | ||
4937 | ||
c32bde28 | 4938 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4939 | PyObject *resultobj; |
4940 | wxRect *arg1 = (wxRect *) 0 ; | |
4941 | int arg2 ; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | PyObject * obj1 = 0 ; | |
4944 | char *kwnames[] = { | |
4945 | (char *) "self",(char *) "width", NULL | |
4946 | }; | |
4947 | ||
4948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4951 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4952 | if (PyErr_Occurred()) SWIG_fail; |
4953 | if (arg1) (arg1)->width = arg2; | |
4954 | ||
4955 | Py_INCREF(Py_None); resultobj = Py_None; | |
4956 | return resultobj; | |
4957 | fail: | |
4958 | return NULL; | |
4959 | } | |
4960 | ||
4961 | ||
c32bde28 | 4962 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4963 | PyObject *resultobj; |
4964 | wxRect *arg1 = (wxRect *) 0 ; | |
4965 | int result; | |
4966 | PyObject * obj0 = 0 ; | |
4967 | char *kwnames[] = { | |
4968 | (char *) "self", NULL | |
4969 | }; | |
4970 | ||
4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4974 | result = (int) ((arg1)->width); | |
4975 | ||
c32bde28 | 4976 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4977 | return resultobj; |
4978 | fail: | |
4979 | return NULL; | |
4980 | } | |
4981 | ||
4982 | ||
c32bde28 | 4983 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4984 | PyObject *resultobj; |
4985 | wxRect *arg1 = (wxRect *) 0 ; | |
4986 | int arg2 ; | |
4987 | PyObject * obj0 = 0 ; | |
4988 | PyObject * obj1 = 0 ; | |
4989 | char *kwnames[] = { | |
4990 | (char *) "self",(char *) "height", NULL | |
4991 | }; | |
4992 | ||
4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 4996 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4997 | if (PyErr_Occurred()) SWIG_fail; |
4998 | if (arg1) (arg1)->height = arg2; | |
4999 | ||
5000 | Py_INCREF(Py_None); resultobj = Py_None; | |
5001 | return resultobj; | |
5002 | fail: | |
5003 | return NULL; | |
5004 | } | |
5005 | ||
5006 | ||
c32bde28 | 5007 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5008 | PyObject *resultobj; |
5009 | wxRect *arg1 = (wxRect *) 0 ; | |
5010 | int result; | |
5011 | PyObject * obj0 = 0 ; | |
5012 | char *kwnames[] = { | |
5013 | (char *) "self", NULL | |
5014 | }; | |
5015 | ||
5016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
5017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5019 | result = (int) ((arg1)->height); | |
5020 | ||
c32bde28 | 5021 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5022 | return resultobj; |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
c32bde28 | 5028 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5029 | PyObject *resultobj; |
5030 | wxRect *arg1 = (wxRect *) 0 ; | |
5031 | int arg2 = (int) 0 ; | |
5032 | int arg3 = (int) 0 ; | |
5033 | int arg4 = (int) 0 ; | |
5034 | int arg5 = (int) 0 ; | |
5035 | PyObject * obj0 = 0 ; | |
5036 | PyObject * obj1 = 0 ; | |
5037 | PyObject * obj2 = 0 ; | |
5038 | PyObject * obj3 = 0 ; | |
5039 | PyObject * obj4 = 0 ; | |
5040 | char *kwnames[] = { | |
5041 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5042 | }; | |
5043 | ||
5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5047 | if (obj1) { | |
c32bde28 | 5048 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5049 | if (PyErr_Occurred()) SWIG_fail; |
5050 | } | |
5051 | if (obj2) { | |
c32bde28 | 5052 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5053 | if (PyErr_Occurred()) SWIG_fail; |
5054 | } | |
5055 | if (obj3) { | |
c32bde28 | 5056 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5057 | if (PyErr_Occurred()) SWIG_fail; |
5058 | } | |
5059 | if (obj4) { | |
c32bde28 | 5060 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5061 | if (PyErr_Occurred()) SWIG_fail; |
5062 | } | |
5063 | { | |
5064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5065 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5066 | ||
5067 | wxPyEndAllowThreads(__tstate); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | } | |
5070 | Py_INCREF(Py_None); resultobj = Py_None; | |
5071 | return resultobj; | |
5072 | fail: | |
5073 | return NULL; | |
5074 | } | |
5075 | ||
5076 | ||
c32bde28 | 5077 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5078 | PyObject *resultobj; |
5079 | wxRect *arg1 = (wxRect *) 0 ; | |
5080 | PyObject *result; | |
5081 | PyObject * obj0 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "self", NULL | |
5084 | }; | |
5085 | ||
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
5087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5089 | { | |
5090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5091 | result = (PyObject *)wxRect_Get(arg1); | |
5092 | ||
5093 | wxPyEndAllowThreads(__tstate); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | } | |
5096 | resultobj = result; | |
5097 | return resultobj; | |
5098 | fail: | |
5099 | return NULL; | |
5100 | } | |
5101 | ||
5102 | ||
c32bde28 | 5103 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5104 | PyObject *obj; |
5105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5106 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5107 | Py_INCREF(obj); | |
5108 | return Py_BuildValue((char *)""); | |
5109 | } | |
c32bde28 | 5110 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5111 | PyObject *resultobj; |
5112 | wxRect *arg1 = (wxRect *) 0 ; | |
5113 | wxRect *arg2 = (wxRect *) 0 ; | |
5114 | PyObject *result; | |
5115 | PyObject * obj0 = 0 ; | |
5116 | PyObject * obj1 = 0 ; | |
5117 | char *kwnames[] = { | |
5118 | (char *) "r1",(char *) "r2", NULL | |
5119 | }; | |
5120 | ||
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5126 | { | |
0439c23b | 5127 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5129 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5132 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5133 | } |
5134 | resultobj = result; | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
c32bde28 | 5141 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5142 | PyObject *resultobj; |
5143 | double arg1 = (double) 0.0 ; | |
5144 | double arg2 = (double) 0.0 ; | |
5145 | wxPoint2D *result; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | char *kwnames[] = { | |
5149 | (char *) "x",(char *) "y", NULL | |
5150 | }; | |
5151 | ||
5152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
5153 | if (obj0) { | |
c32bde28 | 5154 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
5155 | if (PyErr_Occurred()) SWIG_fail; |
5156 | } | |
5157 | if (obj1) { | |
c32bde28 | 5158 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5159 | if (PyErr_Occurred()) SWIG_fail; |
5160 | } | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
c32bde28 | 5175 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5176 | PyObject *resultobj; |
5177 | wxPoint2D *arg1 = 0 ; | |
5178 | wxPoint2D *result; | |
5179 | wxPoint2D temp1 ; | |
5180 | PyObject * obj0 = 0 ; | |
5181 | char *kwnames[] = { | |
5182 | (char *) "pt", NULL | |
5183 | }; | |
5184 | ||
5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5186 | { | |
5187 | arg1 = &temp1; | |
5188 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5189 | } | |
5190 | { | |
5191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5192 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5193 | ||
5194 | wxPyEndAllowThreads(__tstate); | |
5195 | if (PyErr_Occurred()) SWIG_fail; | |
5196 | } | |
5197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5198 | return resultobj; | |
5199 | fail: | |
5200 | return NULL; | |
5201 | } | |
5202 | ||
5203 | ||
c32bde28 | 5204 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5205 | PyObject *resultobj; |
5206 | wxPoint *arg1 = 0 ; | |
5207 | wxPoint2D *result; | |
5208 | wxPoint temp1 ; | |
5209 | PyObject * obj0 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "pt", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5215 | { | |
5216 | arg1 = &temp1; | |
5217 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5218 | } | |
5219 | { | |
5220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5221 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5222 | ||
5223 | wxPyEndAllowThreads(__tstate); | |
5224 | if (PyErr_Occurred()) SWIG_fail; | |
5225 | } | |
5226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5227 | return resultobj; | |
5228 | fail: | |
5229 | return NULL; | |
5230 | } | |
5231 | ||
5232 | ||
c32bde28 | 5233 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5234 | PyObject *resultobj; |
5235 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5236 | int *arg2 = (int *) 0 ; | |
5237 | int *arg3 = (int *) 0 ; | |
5238 | int temp2 ; | |
c32bde28 | 5239 | int res2 = 0 ; |
d55e5bfc | 5240 | int temp3 ; |
c32bde28 | 5241 | int res3 = 0 ; |
d55e5bfc RD |
5242 | PyObject * obj0 = 0 ; |
5243 | char *kwnames[] = { | |
5244 | (char *) "self", NULL | |
5245 | }; | |
5246 | ||
c32bde28 RD |
5247 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5248 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
5250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5252 | { | |
5253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5254 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5255 | ||
5256 | wxPyEndAllowThreads(__tstate); | |
5257 | if (PyErr_Occurred()) SWIG_fail; | |
5258 | } | |
5259 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5260 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5261 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5262 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5263 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5264 | return resultobj; |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
c32bde28 | 5270 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5271 | PyObject *resultobj; |
5272 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5273 | int *arg2 = (int *) 0 ; | |
5274 | int *arg3 = (int *) 0 ; | |
5275 | int temp2 ; | |
c32bde28 | 5276 | int res2 = 0 ; |
d55e5bfc | 5277 | int temp3 ; |
c32bde28 | 5278 | int res3 = 0 ; |
d55e5bfc RD |
5279 | PyObject * obj0 = 0 ; |
5280 | char *kwnames[] = { | |
5281 | (char *) "self", NULL | |
5282 | }; | |
5283 | ||
c32bde28 RD |
5284 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5285 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
5287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5289 | { | |
5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5291 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5292 | ||
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
5296 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5297 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5298 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5299 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5300 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5301 | return resultobj; |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
c32bde28 | 5307 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5308 | PyObject *resultobj; |
5309 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5310 | double result; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5319 | { | |
5320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5321 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5322 | ||
5323 | wxPyEndAllowThreads(__tstate); | |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
5325 | } | |
c32bde28 | 5326 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5327 | return resultobj; |
5328 | fail: | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
c32bde28 | 5333 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5334 | PyObject *resultobj; |
5335 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5336 | double result; | |
5337 | PyObject * obj0 = 0 ; | |
5338 | char *kwnames[] = { | |
5339 | (char *) "self", NULL | |
5340 | }; | |
5341 | ||
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5345 | { | |
5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5347 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5348 | ||
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
c32bde28 | 5352 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5353 | return resultobj; |
5354 | fail: | |
5355 | return NULL; | |
5356 | } | |
5357 | ||
5358 | ||
c32bde28 | 5359 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5360 | PyObject *resultobj; |
5361 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5362 | double arg2 ; | |
5363 | PyObject * obj0 = 0 ; | |
5364 | PyObject * obj1 = 0 ; | |
5365 | char *kwnames[] = { | |
5366 | (char *) "self",(char *) "length", NULL | |
5367 | }; | |
5368 | ||
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5372 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5373 | if (PyErr_Occurred()) SWIG_fail; |
5374 | { | |
5375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5376 | (arg1)->SetVectorLength(arg2); | |
5377 | ||
5378 | wxPyEndAllowThreads(__tstate); | |
5379 | if (PyErr_Occurred()) SWIG_fail; | |
5380 | } | |
5381 | Py_INCREF(Py_None); resultobj = Py_None; | |
5382 | return resultobj; | |
5383 | fail: | |
5384 | return NULL; | |
5385 | } | |
5386 | ||
5387 | ||
c32bde28 | 5388 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5389 | PyObject *resultobj; |
5390 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5391 | double arg2 ; | |
5392 | PyObject * obj0 = 0 ; | |
5393 | PyObject * obj1 = 0 ; | |
5394 | char *kwnames[] = { | |
5395 | (char *) "self",(char *) "degrees", NULL | |
5396 | }; | |
5397 | ||
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5401 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5402 | if (PyErr_Occurred()) SWIG_fail; |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | (arg1)->SetVectorAngle(arg2); | |
5406 | ||
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | Py_INCREF(Py_None); resultobj = Py_None; | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
c32bde28 | 5417 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5418 | PyObject *resultobj; |
5419 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5420 | wxPoint2D *arg2 = 0 ; | |
5421 | double result; | |
5422 | wxPoint2D temp2 ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | char *kwnames[] = { | |
5426 | (char *) "self",(char *) "pt", NULL | |
5427 | }; | |
5428 | ||
5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5432 | { | |
5433 | arg2 = &temp2; | |
5434 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
c32bde28 | 5443 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5444 | return resultobj; |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
c32bde28 | 5450 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5451 | PyObject *resultobj; |
5452 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5453 | wxPoint2D *arg2 = 0 ; | |
5454 | double result; | |
5455 | wxPoint2D temp2 ; | |
5456 | PyObject * obj0 = 0 ; | |
5457 | PyObject * obj1 = 0 ; | |
5458 | char *kwnames[] = { | |
5459 | (char *) "self",(char *) "pt", NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5465 | { | |
5466 | arg2 = &temp2; | |
5467 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5468 | } | |
5469 | { | |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5471 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5472 | ||
5473 | wxPyEndAllowThreads(__tstate); | |
5474 | if (PyErr_Occurred()) SWIG_fail; | |
5475 | } | |
c32bde28 | 5476 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5477 | return resultobj; |
5478 | fail: | |
5479 | return NULL; | |
5480 | } | |
5481 | ||
5482 | ||
c32bde28 | 5483 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5484 | PyObject *resultobj; |
5485 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5486 | wxPoint2D *arg2 = 0 ; | |
5487 | double result; | |
5488 | wxPoint2D temp2 ; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | PyObject * obj1 = 0 ; | |
5491 | char *kwnames[] = { | |
5492 | (char *) "self",(char *) "vec", NULL | |
5493 | }; | |
5494 | ||
5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5498 | { | |
5499 | arg2 = &temp2; | |
5500 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5501 | } | |
5502 | { | |
5503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5504 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5505 | ||
5506 | wxPyEndAllowThreads(__tstate); | |
5507 | if (PyErr_Occurred()) SWIG_fail; | |
5508 | } | |
c32bde28 | 5509 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5510 | return resultobj; |
5511 | fail: | |
5512 | return NULL; | |
5513 | } | |
5514 | ||
5515 | ||
c32bde28 | 5516 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5517 | PyObject *resultobj; |
5518 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5519 | wxPoint2D *arg2 = 0 ; | |
5520 | double result; | |
5521 | wxPoint2D temp2 ; | |
5522 | PyObject * obj0 = 0 ; | |
5523 | PyObject * obj1 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "self",(char *) "vec", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5531 | { | |
5532 | arg2 = &temp2; | |
5533 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5534 | } | |
5535 | { | |
5536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5537 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5538 | ||
5539 | wxPyEndAllowThreads(__tstate); | |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
5541 | } | |
c32bde28 | 5542 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5543 | return resultobj; |
5544 | fail: | |
5545 | return NULL; | |
5546 | } | |
5547 | ||
5548 | ||
c32bde28 | 5549 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5550 | PyObject *resultobj; |
5551 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5552 | wxPoint2D result; | |
5553 | PyObject * obj0 = 0 ; | |
5554 | char *kwnames[] = { | |
5555 | (char *) "self", NULL | |
5556 | }; | |
5557 | ||
5558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5561 | { | |
5562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5563 | result = (arg1)->operator -(); | |
5564 | ||
5565 | wxPyEndAllowThreads(__tstate); | |
5566 | if (PyErr_Occurred()) SWIG_fail; | |
5567 | } | |
5568 | { | |
5569 | wxPoint2D * resultptr; | |
5570 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5572 | } | |
5573 | return resultobj; | |
5574 | fail: | |
5575 | return NULL; | |
5576 | } | |
5577 | ||
5578 | ||
c32bde28 | 5579 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5580 | PyObject *resultobj; |
5581 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5582 | wxPoint2D *arg2 = 0 ; | |
5583 | wxPoint2D *result; | |
5584 | wxPoint2D temp2 ; | |
5585 | PyObject * obj0 = 0 ; | |
5586 | PyObject * obj1 = 0 ; | |
5587 | char *kwnames[] = { | |
5588 | (char *) "self",(char *) "pt", NULL | |
5589 | }; | |
5590 | ||
5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5593 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5594 | { |
5595 | arg2 = &temp2; | |
5596 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5597 | } | |
5598 | { | |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | { | |
5601 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5602 | result = (wxPoint2D *) &_result_ref; | |
5603 | } | |
5604 | ||
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
c32bde28 | 5608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5609 | return resultobj; |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
c32bde28 | 5615 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5616 | PyObject *resultobj; |
5617 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5618 | wxPoint2D *arg2 = 0 ; | |
5619 | wxPoint2D *result; | |
5620 | wxPoint2D temp2 ; | |
5621 | PyObject * obj0 = 0 ; | |
5622 | PyObject * obj1 = 0 ; | |
5623 | char *kwnames[] = { | |
5624 | (char *) "self",(char *) "pt", NULL | |
5625 | }; | |
5626 | ||
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5629 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5630 | { |
5631 | arg2 = &temp2; | |
5632 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5633 | } | |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | { | |
5637 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5638 | result = (wxPoint2D *) &_result_ref; | |
5639 | } | |
5640 | ||
5641 | wxPyEndAllowThreads(__tstate); | |
5642 | if (PyErr_Occurred()) SWIG_fail; | |
5643 | } | |
c32bde28 | 5644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5645 | return resultobj; |
5646 | fail: | |
5647 | return NULL; | |
5648 | } | |
5649 | ||
5650 | ||
c32bde28 | 5651 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5652 | PyObject *resultobj; |
5653 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5654 | wxPoint2D *arg2 = 0 ; | |
5655 | wxPoint2D *result; | |
5656 | wxPoint2D temp2 ; | |
5657 | PyObject * obj0 = 0 ; | |
5658 | PyObject * obj1 = 0 ; | |
5659 | char *kwnames[] = { | |
5660 | (char *) "self",(char *) "pt", NULL | |
5661 | }; | |
5662 | ||
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5665 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5666 | { |
5667 | arg2 = &temp2; | |
5668 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5669 | } | |
5670 | { | |
5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5672 | { | |
5673 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5674 | result = (wxPoint2D *) &_result_ref; | |
5675 | } | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
c32bde28 | 5680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5681 | return resultobj; |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
c32bde28 | 5687 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5688 | PyObject *resultobj; |
5689 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5690 | wxPoint2D *arg2 = 0 ; | |
5691 | wxPoint2D *result; | |
5692 | wxPoint2D temp2 ; | |
5693 | PyObject * obj0 = 0 ; | |
5694 | PyObject * obj1 = 0 ; | |
5695 | char *kwnames[] = { | |
5696 | (char *) "self",(char *) "pt", NULL | |
5697 | }; | |
5698 | ||
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c32bde28 | 5701 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5702 | { |
5703 | arg2 = &temp2; | |
5704 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5705 | } | |
5706 | { | |
5707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5708 | { | |
5709 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5710 | result = (wxPoint2D *) &_result_ref; | |
5711 | } | |
5712 | ||
5713 | wxPyEndAllowThreads(__tstate); | |
5714 | if (PyErr_Occurred()) SWIG_fail; | |
5715 | } | |
c32bde28 | 5716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5717 | return resultobj; |
5718 | fail: | |
5719 | return NULL; | |
5720 | } | |
5721 | ||
5722 | ||
c32bde28 | 5723 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5724 | PyObject *resultobj; |
5725 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5726 | wxPoint2D *arg2 = 0 ; | |
5727 | bool result; | |
5728 | wxPoint2D temp2 ; | |
5729 | PyObject * obj0 = 0 ; | |
5730 | PyObject * obj1 = 0 ; | |
5731 | char *kwnames[] = { | |
5732 | (char *) "self",(char *) "pt", NULL | |
5733 | }; | |
5734 | ||
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5738 | { | |
5739 | arg2 = &temp2; | |
5740 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5741 | } | |
5742 | { | |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
5749 | { | |
5750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5751 | } | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
5755 | } | |
5756 | ||
5757 | ||
c32bde28 | 5758 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5759 | PyObject *resultobj; |
5760 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5761 | wxPoint2D *arg2 = 0 ; | |
5762 | bool result; | |
5763 | wxPoint2D temp2 ; | |
5764 | PyObject * obj0 = 0 ; | |
5765 | PyObject * obj1 = 0 ; | |
5766 | char *kwnames[] = { | |
5767 | (char *) "self",(char *) "pt", NULL | |
5768 | }; | |
5769 | ||
5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5773 | { | |
5774 | arg2 = &temp2; | |
5775 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5776 | } | |
5777 | { | |
5778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5779 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5780 | ||
5781 | wxPyEndAllowThreads(__tstate); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | } | |
5784 | { | |
5785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5786 | } | |
5787 | return resultobj; | |
5788 | fail: | |
5789 | return NULL; | |
5790 | } | |
5791 | ||
5792 | ||
c32bde28 | 5793 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5794 | PyObject *resultobj; |
5795 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5796 | double arg2 ; | |
5797 | PyObject * obj0 = 0 ; | |
5798 | PyObject * obj1 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self",(char *) "m_x", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5806 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5807 | if (PyErr_Occurred()) SWIG_fail; |
5808 | if (arg1) (arg1)->m_x = arg2; | |
5809 | ||
5810 | Py_INCREF(Py_None); resultobj = Py_None; | |
5811 | return resultobj; | |
5812 | fail: | |
5813 | return NULL; | |
5814 | } | |
5815 | ||
5816 | ||
c32bde28 | 5817 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5818 | PyObject *resultobj; |
5819 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5820 | double result; | |
5821 | PyObject * obj0 = 0 ; | |
5822 | char *kwnames[] = { | |
5823 | (char *) "self", NULL | |
5824 | }; | |
5825 | ||
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5829 | result = (double) ((arg1)->m_x); | |
5830 | ||
c32bde28 | 5831 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5832 | return resultobj; |
5833 | fail: | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
c32bde28 | 5838 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5839 | PyObject *resultobj; |
5840 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5841 | double arg2 ; | |
5842 | PyObject * obj0 = 0 ; | |
5843 | PyObject * obj1 = 0 ; | |
5844 | char *kwnames[] = { | |
5845 | (char *) "self",(char *) "m_y", NULL | |
5846 | }; | |
5847 | ||
5848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5851 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5852 | if (PyErr_Occurred()) SWIG_fail; |
5853 | if (arg1) (arg1)->m_y = arg2; | |
5854 | ||
5855 | Py_INCREF(Py_None); resultobj = Py_None; | |
5856 | return resultobj; | |
5857 | fail: | |
5858 | return NULL; | |
5859 | } | |
5860 | ||
5861 | ||
c32bde28 | 5862 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5863 | PyObject *resultobj; |
5864 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5865 | double result; | |
5866 | PyObject * obj0 = 0 ; | |
5867 | char *kwnames[] = { | |
5868 | (char *) "self", NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5874 | result = (double) ((arg1)->m_y); | |
5875 | ||
c32bde28 | 5876 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5877 | return resultobj; |
5878 | fail: | |
5879 | return NULL; | |
5880 | } | |
5881 | ||
5882 | ||
c32bde28 | 5883 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5884 | PyObject *resultobj; |
5885 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5886 | double arg2 = (double) 0 ; | |
5887 | double arg3 = (double) 0 ; | |
5888 | PyObject * obj0 = 0 ; | |
5889 | PyObject * obj1 = 0 ; | |
5890 | PyObject * obj2 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5898 | if (obj1) { | |
c32bde28 | 5899 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5900 | if (PyErr_Occurred()) SWIG_fail; |
5901 | } | |
5902 | if (obj2) { | |
c32bde28 | 5903 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
5904 | if (PyErr_Occurred()) SWIG_fail; |
5905 | } | |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | wxPoint2D_Set(arg1,arg2,arg3); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | Py_INCREF(Py_None); resultobj = Py_None; | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
c32bde28 | 5920 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5921 | PyObject *resultobj; |
5922 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5923 | PyObject *result; | |
5924 | PyObject * obj0 = 0 ; | |
5925 | char *kwnames[] = { | |
5926 | (char *) "self", NULL | |
5927 | }; | |
5928 | ||
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5932 | { | |
5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5934 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5935 | ||
5936 | wxPyEndAllowThreads(__tstate); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | } | |
5939 | resultobj = result; | |
5940 | return resultobj; | |
5941 | fail: | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
c32bde28 | 5946 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5947 | PyObject *obj; |
5948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5949 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5950 | Py_INCREF(obj); | |
5951 | return Py_BuildValue((char *)""); | |
5952 | } | |
c32bde28 | 5953 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
5954 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5955 | return 1; | |
5956 | } | |
5957 | ||
5958 | ||
5959 | static PyObject *_wrap_DefaultPosition_get() { | |
5960 | PyObject *pyobj; | |
5961 | ||
5962 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5963 | return pyobj; | |
5964 | } | |
5965 | ||
5966 | ||
c32bde28 | 5967 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
5968 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5969 | return 1; | |
5970 | } | |
5971 | ||
5972 | ||
5973 | static PyObject *_wrap_DefaultSize_get() { | |
5974 | PyObject *pyobj; | |
5975 | ||
5976 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5977 | return pyobj; | |
5978 | } | |
5979 | ||
5980 | ||
c32bde28 | 5981 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5982 | PyObject *resultobj; |
5983 | PyObject *arg1 = (PyObject *) 0 ; | |
5984 | wxPyInputStream *result; | |
5985 | PyObject * obj0 = 0 ; | |
5986 | char *kwnames[] = { | |
5987 | (char *) "p", NULL | |
5988 | }; | |
5989 | ||
5990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5991 | arg1 = obj0; | |
5992 | { | |
5993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5994 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5995 | ||
5996 | wxPyEndAllowThreads(__tstate); | |
5997 | if (PyErr_Occurred()) SWIG_fail; | |
5998 | } | |
5999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
6000 | return resultobj; | |
6001 | fail: | |
6002 | return NULL; | |
6003 | } | |
6004 | ||
6005 | ||
c32bde28 | 6006 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6007 | PyObject *resultobj; |
6008 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6009 | PyObject * obj0 = 0 ; | |
6010 | char *kwnames[] = { | |
6011 | (char *) "self", NULL | |
6012 | }; | |
6013 | ||
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
6015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | (arg1)->close(); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | Py_INCREF(Py_None); resultobj = Py_None; | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
c32bde28 | 6031 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6032 | PyObject *resultobj; |
6033 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6034 | PyObject * obj0 = 0 ; | |
6035 | char *kwnames[] = { | |
6036 | (char *) "self", NULL | |
6037 | }; | |
6038 | ||
6039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
6040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6042 | { | |
6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6044 | (arg1)->flush(); | |
6045 | ||
6046 | wxPyEndAllowThreads(__tstate); | |
6047 | if (PyErr_Occurred()) SWIG_fail; | |
6048 | } | |
6049 | Py_INCREF(Py_None); resultobj = Py_None; | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
c32bde28 | 6056 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6057 | PyObject *resultobj; |
6058 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6059 | bool result; | |
6060 | PyObject * obj0 = 0 ; | |
6061 | char *kwnames[] = { | |
6062 | (char *) "self", NULL | |
6063 | }; | |
6064 | ||
6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
6066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6068 | { | |
6069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6070 | result = (bool)(arg1)->eof(); | |
6071 | ||
6072 | wxPyEndAllowThreads(__tstate); | |
6073 | if (PyErr_Occurred()) SWIG_fail; | |
6074 | } | |
6075 | { | |
6076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6077 | } | |
6078 | return resultobj; | |
6079 | fail: | |
6080 | return NULL; | |
6081 | } | |
6082 | ||
6083 | ||
c32bde28 | 6084 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6085 | PyObject *resultobj; |
6086 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6087 | int arg2 = (int) -1 ; | |
6088 | PyObject *result; | |
6089 | PyObject * obj0 = 0 ; | |
6090 | PyObject * obj1 = 0 ; | |
6091 | char *kwnames[] = { | |
6092 | (char *) "self",(char *) "size", NULL | |
6093 | }; | |
6094 | ||
6095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
6096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6098 | if (obj1) { | |
c32bde28 | 6099 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6100 | if (PyErr_Occurred()) SWIG_fail; |
6101 | } | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6104 | result = (PyObject *)(arg1)->read(arg2); | |
6105 | ||
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
6109 | resultobj = result; | |
6110 | return resultobj; | |
6111 | fail: | |
6112 | return NULL; | |
6113 | } | |
6114 | ||
6115 | ||
c32bde28 | 6116 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6117 | PyObject *resultobj; |
6118 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6119 | int arg2 = (int) -1 ; | |
6120 | PyObject *result; | |
6121 | PyObject * obj0 = 0 ; | |
6122 | PyObject * obj1 = 0 ; | |
6123 | char *kwnames[] = { | |
6124 | (char *) "self",(char *) "size", NULL | |
6125 | }; | |
6126 | ||
6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
6128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6130 | if (obj1) { | |
c32bde28 | 6131 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6132 | if (PyErr_Occurred()) SWIG_fail; |
6133 | } | |
6134 | { | |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | result = (PyObject *)(arg1)->readline(arg2); | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | resultobj = result; | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | return NULL; | |
6145 | } | |
6146 | ||
6147 | ||
c32bde28 | 6148 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6149 | PyObject *resultobj; |
6150 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6151 | int arg2 = (int) -1 ; | |
6152 | PyObject *result; | |
6153 | PyObject * obj0 = 0 ; | |
6154 | PyObject * obj1 = 0 ; | |
6155 | char *kwnames[] = { | |
6156 | (char *) "self",(char *) "sizehint", NULL | |
6157 | }; | |
6158 | ||
6159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
6160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6162 | if (obj1) { | |
c32bde28 | 6163 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6164 | if (PyErr_Occurred()) SWIG_fail; |
6165 | } | |
6166 | { | |
6167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6168 | result = (PyObject *)(arg1)->readlines(arg2); | |
6169 | ||
6170 | wxPyEndAllowThreads(__tstate); | |
6171 | if (PyErr_Occurred()) SWIG_fail; | |
6172 | } | |
6173 | resultobj = result; | |
6174 | return resultobj; | |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
c32bde28 | 6180 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6181 | PyObject *resultobj; |
6182 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6183 | int arg2 ; | |
6184 | int arg3 = (int) 0 ; | |
6185 | PyObject * obj0 = 0 ; | |
6186 | PyObject * obj1 = 0 ; | |
6187 | PyObject * obj2 = 0 ; | |
6188 | char *kwnames[] = { | |
6189 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6190 | }; | |
6191 | ||
6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6195 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6196 | if (PyErr_Occurred()) SWIG_fail; |
6197 | if (obj2) { | |
c32bde28 | 6198 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6199 | if (PyErr_Occurred()) SWIG_fail; |
6200 | } | |
6201 | { | |
6202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6203 | (arg1)->seek(arg2,arg3); | |
6204 | ||
6205 | wxPyEndAllowThreads(__tstate); | |
6206 | if (PyErr_Occurred()) SWIG_fail; | |
6207 | } | |
6208 | Py_INCREF(Py_None); resultobj = Py_None; | |
6209 | return resultobj; | |
6210 | fail: | |
6211 | return NULL; | |
6212 | } | |
6213 | ||
6214 | ||
c32bde28 | 6215 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6216 | PyObject *resultobj; |
6217 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6218 | int result; | |
6219 | PyObject * obj0 = 0 ; | |
6220 | char *kwnames[] = { | |
6221 | (char *) "self", NULL | |
6222 | }; | |
6223 | ||
6224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
6225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6227 | { | |
6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6229 | result = (int)(arg1)->tell(); | |
6230 | ||
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
c32bde28 | 6234 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6235 | return resultobj; |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
c32bde28 | 6241 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6242 | PyObject *resultobj; |
6243 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6244 | char result; | |
6245 | PyObject * obj0 = 0 ; | |
6246 | char *kwnames[] = { | |
6247 | (char *) "self", NULL | |
6248 | }; | |
6249 | ||
6250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
6251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6253 | { | |
6254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6255 | result = (char)(arg1)->Peek(); | |
6256 | ||
6257 | wxPyEndAllowThreads(__tstate); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
6259 | } | |
c32bde28 | 6260 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6261 | return resultobj; |
6262 | fail: | |
6263 | return NULL; | |
6264 | } | |
6265 | ||
6266 | ||
c32bde28 | 6267 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6268 | PyObject *resultobj; |
6269 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6270 | char result; | |
6271 | PyObject * obj0 = 0 ; | |
6272 | char *kwnames[] = { | |
6273 | (char *) "self", NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = (char)(arg1)->GetC(); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
c32bde28 | 6286 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6287 | return resultobj; |
6288 | fail: | |
6289 | return NULL; | |
6290 | } | |
6291 | ||
6292 | ||
c32bde28 | 6293 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6294 | PyObject *resultobj; |
6295 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6296 | size_t result; | |
6297 | PyObject * obj0 = 0 ; | |
6298 | char *kwnames[] = { | |
6299 | (char *) "self", NULL | |
6300 | }; | |
6301 | ||
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6305 | { | |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | result = (size_t)(arg1)->LastRead(); | |
6308 | ||
6309 | wxPyEndAllowThreads(__tstate); | |
6310 | if (PyErr_Occurred()) SWIG_fail; | |
6311 | } | |
c32bde28 | 6312 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6313 | return resultobj; |
6314 | fail: | |
6315 | return NULL; | |
6316 | } | |
6317 | ||
6318 | ||
c32bde28 | 6319 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6320 | PyObject *resultobj; |
6321 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6322 | bool result; | |
6323 | PyObject * obj0 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "self", NULL | |
6326 | }; | |
6327 | ||
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6331 | { | |
6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6333 | result = (bool)(arg1)->CanRead(); | |
6334 | ||
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
6338 | { | |
6339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6340 | } | |
6341 | return resultobj; | |
6342 | fail: | |
6343 | return NULL; | |
6344 | } | |
6345 | ||
6346 | ||
c32bde28 | 6347 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6348 | PyObject *resultobj; |
6349 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6350 | bool result; | |
6351 | PyObject * obj0 = 0 ; | |
6352 | char *kwnames[] = { | |
6353 | (char *) "self", NULL | |
6354 | }; | |
6355 | ||
6356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6359 | { | |
6360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6361 | result = (bool)(arg1)->Eof(); | |
6362 | ||
6363 | wxPyEndAllowThreads(__tstate); | |
6364 | if (PyErr_Occurred()) SWIG_fail; | |
6365 | } | |
6366 | { | |
6367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6368 | } | |
6369 | return resultobj; | |
6370 | fail: | |
6371 | return NULL; | |
6372 | } | |
6373 | ||
6374 | ||
c32bde28 | 6375 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6376 | PyObject *resultobj; |
6377 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6378 | char arg2 ; | |
6379 | bool result; | |
6380 | PyObject * obj0 = 0 ; | |
6381 | PyObject * obj1 = 0 ; | |
6382 | char *kwnames[] = { | |
6383 | (char *) "self",(char *) "c", NULL | |
6384 | }; | |
6385 | ||
6386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6389 | arg2 = (char)SWIG_As_char(obj1); |
d55e5bfc RD |
6390 | if (PyErr_Occurred()) SWIG_fail; |
6391 | { | |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | result = (bool)(arg1)->Ungetch(arg2); | |
6394 | ||
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | { | |
6399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6400 | } | |
6401 | return resultobj; | |
6402 | fail: | |
6403 | return NULL; | |
6404 | } | |
6405 | ||
6406 | ||
c32bde28 | 6407 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6408 | PyObject *resultobj; |
6409 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6410 | long arg2 ; | |
6411 | int arg3 = (int) wxFromStart ; | |
6412 | long result; | |
6413 | PyObject * obj0 = 0 ; | |
6414 | PyObject * obj1 = 0 ; | |
6415 | PyObject * obj2 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6423 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
6424 | if (PyErr_Occurred()) SWIG_fail; |
6425 | if (obj2) { | |
c32bde28 | 6426 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6427 | if (PyErr_Occurred()) SWIG_fail; |
6428 | } | |
6429 | { | |
6430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6431 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6432 | ||
6433 | wxPyEndAllowThreads(__tstate); | |
6434 | if (PyErr_Occurred()) SWIG_fail; | |
6435 | } | |
c32bde28 | 6436 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6437 | return resultobj; |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
c32bde28 | 6443 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6444 | PyObject *resultobj; |
6445 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6446 | long result; | |
6447 | PyObject * obj0 = 0 ; | |
6448 | char *kwnames[] = { | |
6449 | (char *) "self", NULL | |
6450 | }; | |
6451 | ||
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6455 | { | |
6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6457 | result = (long)(arg1)->TellI(); | |
6458 | ||
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
c32bde28 | 6462 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6463 | return resultobj; |
6464 | fail: | |
6465 | return NULL; | |
6466 | } | |
6467 | ||
6468 | ||
c32bde28 | 6469 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6470 | PyObject *obj; |
6471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6472 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6473 | Py_INCREF(obj); | |
6474 | return Py_BuildValue((char *)""); | |
6475 | } | |
c32bde28 | 6476 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6477 | PyObject *resultobj; |
6478 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6479 | PyObject *arg2 = (PyObject *) 0 ; | |
6480 | PyObject * obj0 = 0 ; | |
6481 | PyObject * obj1 = 0 ; | |
6482 | char *kwnames[] = { | |
6483 | (char *) "self",(char *) "obj", NULL | |
6484 | }; | |
6485 | ||
6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6489 | arg2 = obj1; | |
6490 | { | |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6492 | wxOutputStream_write(arg1,arg2); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) SWIG_fail; | |
6496 | } | |
6497 | Py_INCREF(Py_None); resultobj = Py_None; | |
6498 | return resultobj; | |
6499 | fail: | |
6500 | return NULL; | |
6501 | } | |
6502 | ||
6503 | ||
c32bde28 | 6504 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6505 | PyObject *obj; |
6506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6507 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6508 | Py_INCREF(obj); | |
6509 | return Py_BuildValue((char *)""); | |
6510 | } | |
c32bde28 | 6511 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6512 | PyObject *resultobj; |
6513 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6514 | wxString *arg2 = 0 ; | |
6515 | wxString *arg3 = 0 ; | |
6516 | wxString *arg4 = 0 ; | |
6517 | wxDateTime arg5 ; | |
6518 | wxFSFile *result; | |
6519 | wxPyInputStream *temp1 ; | |
6520 | bool created1 ; | |
ae8162c8 RD |
6521 | bool temp2 = false ; |
6522 | bool temp3 = false ; | |
6523 | bool temp4 = false ; | |
d55e5bfc RD |
6524 | wxDateTime *argp5 ; |
6525 | PyObject * obj0 = 0 ; | |
6526 | PyObject * obj1 = 0 ; | |
6527 | PyObject * obj2 = 0 ; | |
6528 | PyObject * obj3 = 0 ; | |
6529 | PyObject * obj4 = 0 ; | |
6530 | char *kwnames[] = { | |
6531 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6532 | }; | |
6533 | ||
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6535 | { | |
6536 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6537 | arg1 = temp1->m_wxis; | |
ae8162c8 | 6538 | created1 = false; |
d55e5bfc RD |
6539 | } else { |
6540 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 6541 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
6542 | if (arg1 == NULL) { |
6543 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6544 | SWIG_fail; | |
6545 | } | |
ae8162c8 | 6546 | created1 = true; |
d55e5bfc RD |
6547 | } |
6548 | } | |
6549 | { | |
6550 | arg2 = wxString_in_helper(obj1); | |
6551 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6552 | temp2 = true; |
d55e5bfc RD |
6553 | } |
6554 | { | |
6555 | arg3 = wxString_in_helper(obj2); | |
6556 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6557 | temp3 = true; |
d55e5bfc RD |
6558 | } |
6559 | { | |
6560 | arg4 = wxString_in_helper(obj3); | |
6561 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6562 | temp4 = true; |
d55e5bfc RD |
6563 | } |
6564 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6565 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6566 | arg5 = *argp5; | |
6567 | { | |
6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6569 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6570 | ||
6571 | wxPyEndAllowThreads(__tstate); | |
6572 | if (PyErr_Occurred()) SWIG_fail; | |
6573 | } | |
6574 | { | |
412d302d | 6575 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6576 | } |
6577 | { | |
6578 | if (created1) | |
6579 | delete arg1; | |
6580 | } | |
6581 | { | |
6582 | if (temp2) | |
6583 | delete arg2; | |
6584 | } | |
6585 | { | |
6586 | if (temp3) | |
6587 | delete arg3; | |
6588 | } | |
6589 | { | |
6590 | if (temp4) | |
6591 | delete arg4; | |
6592 | } | |
6593 | return resultobj; | |
6594 | fail: | |
6595 | { | |
6596 | if (created1) | |
6597 | delete arg1; | |
6598 | } | |
6599 | { | |
6600 | if (temp2) | |
6601 | delete arg2; | |
6602 | } | |
6603 | { | |
6604 | if (temp3) | |
6605 | delete arg3; | |
6606 | } | |
6607 | { | |
6608 | if (temp4) | |
6609 | delete arg4; | |
6610 | } | |
6611 | return NULL; | |
6612 | } | |
6613 | ||
6614 | ||
c32bde28 | 6615 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6616 | PyObject *resultobj; |
6617 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6618 | PyObject * obj0 = 0 ; | |
6619 | char *kwnames[] = { | |
6620 | (char *) "self", NULL | |
6621 | }; | |
6622 | ||
6623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | delete arg1; | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | Py_INCREF(Py_None); resultobj = Py_None; | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
c32bde28 | 6640 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6641 | PyObject *resultobj; |
6642 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6643 | wxInputStream *result; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | char *kwnames[] = { | |
6646 | (char *) "self", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6652 | { | |
6653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6654 | result = (wxInputStream *)(arg1)->GetStream(); | |
6655 | ||
6656 | wxPyEndAllowThreads(__tstate); | |
6657 | if (PyErr_Occurred()) SWIG_fail; | |
6658 | } | |
6659 | { | |
6660 | wxPyInputStream * _ptr = NULL; | |
6661 | ||
6662 | if (result) { | |
6663 | _ptr = new wxPyInputStream(result); | |
6664 | } | |
ae8162c8 | 6665 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
6666 | } |
6667 | return resultobj; | |
6668 | fail: | |
6669 | return NULL; | |
6670 | } | |
6671 | ||
6672 | ||
c32bde28 | 6673 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6674 | PyObject *resultobj; |
6675 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6676 | wxString *result; | |
6677 | PyObject * obj0 = 0 ; | |
6678 | char *kwnames[] = { | |
6679 | (char *) "self", NULL | |
6680 | }; | |
6681 | ||
6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6685 | { | |
6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6687 | { | |
6688 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6689 | result = (wxString *) &_result_ref; | |
6690 | } | |
6691 | ||
6692 | wxPyEndAllowThreads(__tstate); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | } | |
6695 | { | |
6696 | #if wxUSE_UNICODE | |
6697 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6698 | #else | |
6699 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6700 | #endif | |
6701 | } | |
6702 | return resultobj; | |
6703 | fail: | |
6704 | return NULL; | |
6705 | } | |
6706 | ||
6707 | ||
c32bde28 | 6708 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6709 | PyObject *resultobj; |
6710 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6711 | wxString *result; | |
6712 | PyObject * obj0 = 0 ; | |
6713 | char *kwnames[] = { | |
6714 | (char *) "self", NULL | |
6715 | }; | |
6716 | ||
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6720 | { | |
6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6722 | { | |
6723 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6724 | result = (wxString *) &_result_ref; | |
6725 | } | |
6726 | ||
6727 | wxPyEndAllowThreads(__tstate); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
6730 | { | |
6731 | #if wxUSE_UNICODE | |
6732 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6733 | #else | |
6734 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6735 | #endif | |
6736 | } | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | return NULL; | |
6740 | } | |
6741 | ||
6742 | ||
c32bde28 | 6743 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6744 | PyObject *resultobj; |
6745 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6746 | wxString *result; | |
6747 | PyObject * obj0 = 0 ; | |
6748 | char *kwnames[] = { | |
6749 | (char *) "self", NULL | |
6750 | }; | |
6751 | ||
6752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6755 | { | |
6756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6757 | { | |
6758 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6759 | result = (wxString *) &_result_ref; | |
6760 | } | |
6761 | ||
6762 | wxPyEndAllowThreads(__tstate); | |
6763 | if (PyErr_Occurred()) SWIG_fail; | |
6764 | } | |
6765 | { | |
6766 | #if wxUSE_UNICODE | |
6767 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6768 | #else | |
6769 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6770 | #endif | |
6771 | } | |
6772 | return resultobj; | |
6773 | fail: | |
6774 | return NULL; | |
6775 | } | |
6776 | ||
6777 | ||
c32bde28 | 6778 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6779 | PyObject *resultobj; |
6780 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6781 | wxDateTime result; | |
6782 | PyObject * obj0 = 0 ; | |
6783 | char *kwnames[] = { | |
6784 | (char *) "self", NULL | |
6785 | }; | |
6786 | ||
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6790 | { | |
6791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6792 | result = (arg1)->GetModificationTime(); | |
6793 | ||
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
6797 | { | |
6798 | wxDateTime * resultptr; | |
6799 | resultptr = new wxDateTime((wxDateTime &) result); | |
6800 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6801 | } | |
6802 | return resultobj; | |
6803 | fail: | |
6804 | return NULL; | |
6805 | } | |
6806 | ||
6807 | ||
c32bde28 | 6808 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6809 | PyObject *obj; |
6810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6811 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6812 | Py_INCREF(obj); | |
6813 | return Py_BuildValue((char *)""); | |
6814 | } | |
c32bde28 | 6815 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6816 | PyObject *obj; |
6817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6818 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6819 | Py_INCREF(obj); | |
6820 | return Py_BuildValue((char *)""); | |
6821 | } | |
c32bde28 | 6822 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6823 | PyObject *resultobj; |
6824 | wxPyFileSystemHandler *result; | |
6825 | char *kwnames[] = { | |
6826 | NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6830 | { | |
6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6832 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6833 | ||
6834 | wxPyEndAllowThreads(__tstate); | |
6835 | if (PyErr_Occurred()) SWIG_fail; | |
6836 | } | |
6837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6838 | return resultobj; | |
6839 | fail: | |
6840 | return NULL; | |
6841 | } | |
6842 | ||
6843 | ||
c32bde28 | 6844 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6845 | PyObject *resultobj; |
6846 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6847 | PyObject *arg2 = (PyObject *) 0 ; | |
6848 | PyObject *arg3 = (PyObject *) 0 ; | |
6849 | PyObject * obj0 = 0 ; | |
6850 | PyObject * obj1 = 0 ; | |
6851 | PyObject * obj2 = 0 ; | |
6852 | char *kwnames[] = { | |
6853 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6854 | }; | |
6855 | ||
6856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6859 | arg2 = obj1; | |
6860 | arg3 = obj2; | |
6861 | { | |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6864 | ||
6865 | wxPyEndAllowThreads(__tstate); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
6868 | Py_INCREF(Py_None); resultobj = Py_None; | |
6869 | return resultobj; | |
6870 | fail: | |
6871 | return NULL; | |
6872 | } | |
6873 | ||
6874 | ||
c32bde28 | 6875 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6876 | PyObject *resultobj; |
6877 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6878 | wxString *arg2 = 0 ; | |
6879 | bool result; | |
ae8162c8 | 6880 | bool temp2 = false ; |
d55e5bfc RD |
6881 | PyObject * obj0 = 0 ; |
6882 | PyObject * obj1 = 0 ; | |
6883 | char *kwnames[] = { | |
6884 | (char *) "self",(char *) "location", NULL | |
6885 | }; | |
6886 | ||
6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6890 | { | |
6891 | arg2 = wxString_in_helper(obj1); | |
6892 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6893 | temp2 = true; |
d55e5bfc RD |
6894 | } |
6895 | { | |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | { | |
6903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6904 | } | |
6905 | { | |
6906 | if (temp2) | |
6907 | delete arg2; | |
6908 | } | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | { | |
6912 | if (temp2) | |
6913 | delete arg2; | |
6914 | } | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
c32bde28 | 6919 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6920 | PyObject *resultobj; |
6921 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6922 | wxFileSystem *arg2 = 0 ; | |
6923 | wxString *arg3 = 0 ; | |
6924 | wxFSFile *result; | |
ae8162c8 | 6925 | bool temp3 = false ; |
d55e5bfc RD |
6926 | PyObject * obj0 = 0 ; |
6927 | PyObject * obj1 = 0 ; | |
6928 | PyObject * obj2 = 0 ; | |
6929 | char *kwnames[] = { | |
6930 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6931 | }; | |
6932 | ||
6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6936 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6937 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6938 | SWIG_fail; | |
6939 | if (arg2 == NULL) { | |
6940 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6941 | SWIG_fail; | |
6942 | } | |
6943 | { | |
6944 | arg3 = wxString_in_helper(obj2); | |
6945 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6946 | temp3 = true; |
d55e5bfc RD |
6947 | } |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | } | |
6955 | { | |
4cf4100f | 6956 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6957 | } |
6958 | { | |
6959 | if (temp3) | |
6960 | delete arg3; | |
6961 | } | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | { | |
6965 | if (temp3) | |
6966 | delete arg3; | |
6967 | } | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
c32bde28 | 6972 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6973 | PyObject *resultobj; |
6974 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6975 | wxString *arg2 = 0 ; | |
6976 | int arg3 = (int) 0 ; | |
6977 | wxString result; | |
ae8162c8 | 6978 | bool temp2 = false ; |
d55e5bfc RD |
6979 | PyObject * obj0 = 0 ; |
6980 | PyObject * obj1 = 0 ; | |
6981 | PyObject * obj2 = 0 ; | |
6982 | char *kwnames[] = { | |
6983 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6984 | }; | |
6985 | ||
6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6989 | { | |
6990 | arg2 = wxString_in_helper(obj1); | |
6991 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6992 | temp2 = true; |
d55e5bfc RD |
6993 | } |
6994 | if (obj2) { | |
c32bde28 | 6995 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6996 | if (PyErr_Occurred()) SWIG_fail; |
6997 | } | |
6998 | { | |
6999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7000 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7001 | ||
7002 | wxPyEndAllowThreads(__tstate); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | } | |
7005 | { | |
7006 | #if wxUSE_UNICODE | |
7007 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7008 | #else | |
7009 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7010 | #endif | |
7011 | } | |
7012 | { | |
7013 | if (temp2) | |
7014 | delete arg2; | |
7015 | } | |
7016 | return resultobj; | |
7017 | fail: | |
7018 | { | |
7019 | if (temp2) | |
7020 | delete arg2; | |
7021 | } | |
7022 | return NULL; | |
7023 | } | |
7024 | ||
7025 | ||
c32bde28 | 7026 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7027 | PyObject *resultobj; |
7028 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7029 | wxString result; | |
7030 | PyObject * obj0 = 0 ; | |
7031 | char *kwnames[] = { | |
7032 | (char *) "self", NULL | |
7033 | }; | |
7034 | ||
7035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
7036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7038 | { | |
7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7040 | result = (arg1)->FindNext(); | |
7041 | ||
7042 | wxPyEndAllowThreads(__tstate); | |
7043 | if (PyErr_Occurred()) SWIG_fail; | |
7044 | } | |
7045 | { | |
7046 | #if wxUSE_UNICODE | |
7047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7048 | #else | |
7049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7050 | #endif | |
7051 | } | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
c32bde28 | 7058 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7059 | PyObject *resultobj; |
7060 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7061 | wxString *arg2 = 0 ; | |
7062 | wxString result; | |
ae8162c8 | 7063 | bool temp2 = false ; |
d55e5bfc RD |
7064 | PyObject * obj0 = 0 ; |
7065 | PyObject * obj1 = 0 ; | |
7066 | char *kwnames[] = { | |
7067 | (char *) "self",(char *) "location", NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
7071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7073 | { | |
7074 | arg2 = wxString_in_helper(obj1); | |
7075 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7076 | temp2 = true; |
d55e5bfc RD |
7077 | } |
7078 | { | |
7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7080 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7081 | ||
7082 | wxPyEndAllowThreads(__tstate); | |
7083 | if (PyErr_Occurred()) SWIG_fail; | |
7084 | } | |
7085 | { | |
7086 | #if wxUSE_UNICODE | |
7087 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7088 | #else | |
7089 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7090 | #endif | |
7091 | } | |
7092 | { | |
7093 | if (temp2) | |
7094 | delete arg2; | |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | { | |
7099 | if (temp2) | |
7100 | delete arg2; | |
7101 | } | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
c32bde28 | 7106 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7107 | PyObject *resultobj; |
7108 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7109 | wxString *arg2 = 0 ; | |
7110 | wxString result; | |
ae8162c8 | 7111 | bool temp2 = false ; |
d55e5bfc RD |
7112 | PyObject * obj0 = 0 ; |
7113 | PyObject * obj1 = 0 ; | |
7114 | char *kwnames[] = { | |
7115 | (char *) "self",(char *) "location", NULL | |
7116 | }; | |
7117 | ||
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
7119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7121 | { | |
7122 | arg2 = wxString_in_helper(obj1); | |
7123 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7124 | temp2 = true; |
d55e5bfc RD |
7125 | } |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | { | |
7134 | #if wxUSE_UNICODE | |
7135 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7136 | #else | |
7137 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7138 | #endif | |
7139 | } | |
7140 | { | |
7141 | if (temp2) | |
7142 | delete arg2; | |
7143 | } | |
7144 | return resultobj; | |
7145 | fail: | |
7146 | { | |
7147 | if (temp2) | |
7148 | delete arg2; | |
7149 | } | |
7150 | return NULL; | |
7151 | } | |
7152 | ||
7153 | ||
c32bde28 | 7154 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7155 | PyObject *resultobj; |
7156 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7157 | wxString *arg2 = 0 ; | |
7158 | wxString result; | |
ae8162c8 | 7159 | bool temp2 = false ; |
d55e5bfc RD |
7160 | PyObject * obj0 = 0 ; |
7161 | PyObject * obj1 = 0 ; | |
7162 | char *kwnames[] = { | |
7163 | (char *) "self",(char *) "location", NULL | |
7164 | }; | |
7165 | ||
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
7167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7169 | { | |
7170 | arg2 = wxString_in_helper(obj1); | |
7171 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7172 | temp2 = true; |
d55e5bfc RD |
7173 | } |
7174 | { | |
7175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7176 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7177 | ||
7178 | wxPyEndAllowThreads(__tstate); | |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
7180 | } | |
7181 | { | |
7182 | #if wxUSE_UNICODE | |
7183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7184 | #else | |
7185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7186 | #endif | |
7187 | } | |
7188 | { | |
7189 | if (temp2) | |
7190 | delete arg2; | |
7191 | } | |
7192 | return resultobj; | |
7193 | fail: | |
7194 | { | |
7195 | if (temp2) | |
7196 | delete arg2; | |
7197 | } | |
7198 | return NULL; | |
7199 | } | |
7200 | ||
7201 | ||
c32bde28 | 7202 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7203 | PyObject *resultobj; |
7204 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7205 | wxString *arg2 = 0 ; | |
7206 | wxString result; | |
ae8162c8 | 7207 | bool temp2 = false ; |
d55e5bfc RD |
7208 | PyObject * obj0 = 0 ; |
7209 | PyObject * obj1 = 0 ; | |
7210 | char *kwnames[] = { | |
7211 | (char *) "self",(char *) "location", NULL | |
7212 | }; | |
7213 | ||
7214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
7215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7217 | { | |
7218 | arg2 = wxString_in_helper(obj1); | |
7219 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7220 | temp2 = true; |
d55e5bfc RD |
7221 | } |
7222 | { | |
7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7224 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7225 | ||
7226 | wxPyEndAllowThreads(__tstate); | |
7227 | if (PyErr_Occurred()) SWIG_fail; | |
7228 | } | |
7229 | { | |
7230 | #if wxUSE_UNICODE | |
7231 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7232 | #else | |
7233 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7234 | #endif | |
7235 | } | |
7236 | { | |
7237 | if (temp2) | |
7238 | delete arg2; | |
7239 | } | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | { | |
7243 | if (temp2) | |
7244 | delete arg2; | |
7245 | } | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
c32bde28 | 7250 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7251 | PyObject *resultobj; |
7252 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7253 | wxString *arg2 = 0 ; | |
7254 | wxString result; | |
ae8162c8 | 7255 | bool temp2 = false ; |
d55e5bfc RD |
7256 | PyObject * obj0 = 0 ; |
7257 | PyObject * obj1 = 0 ; | |
7258 | char *kwnames[] = { | |
7259 | (char *) "self",(char *) "location", NULL | |
7260 | }; | |
7261 | ||
7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
7263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7265 | { | |
7266 | arg2 = wxString_in_helper(obj1); | |
7267 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7268 | temp2 = true; |
d55e5bfc RD |
7269 | } |
7270 | { | |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | { | |
7278 | #if wxUSE_UNICODE | |
7279 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7280 | #else | |
7281 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7282 | #endif | |
7283 | } | |
7284 | { | |
7285 | if (temp2) | |
7286 | delete arg2; | |
7287 | } | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | { | |
7291 | if (temp2) | |
7292 | delete arg2; | |
7293 | } | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
c32bde28 | 7298 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7299 | PyObject *obj; |
7300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7301 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7302 | Py_INCREF(obj); | |
7303 | return Py_BuildValue((char *)""); | |
7304 | } | |
c32bde28 | 7305 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7306 | PyObject *resultobj; |
7307 | wxFileSystem *result; | |
7308 | char *kwnames[] = { | |
7309 | NULL | |
7310 | }; | |
7311 | ||
7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7313 | { | |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | result = (wxFileSystem *)new wxFileSystem(); | |
7316 | ||
7317 | wxPyEndAllowThreads(__tstate); | |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
7320 | { | |
412d302d | 7321 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7322 | } |
7323 | return resultobj; | |
7324 | fail: | |
7325 | return NULL; | |
7326 | } | |
7327 | ||
7328 | ||
c32bde28 | 7329 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7330 | PyObject *resultobj; |
7331 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7332 | PyObject * obj0 = 0 ; | |
7333 | char *kwnames[] = { | |
7334 | (char *) "self", NULL | |
7335 | }; | |
7336 | ||
7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
7338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7340 | { | |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | delete arg1; | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
7347 | Py_INCREF(Py_None); resultobj = Py_None; | |
7348 | return resultobj; | |
7349 | fail: | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
c32bde28 | 7354 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7355 | PyObject *resultobj; |
7356 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7357 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
7358 | bool arg3 = (bool) false ; |
7359 | bool temp2 = false ; | |
d55e5bfc RD |
7360 | PyObject * obj0 = 0 ; |
7361 | PyObject * obj1 = 0 ; | |
7362 | PyObject * obj2 = 0 ; | |
7363 | char *kwnames[] = { | |
7364 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7365 | }; | |
7366 | ||
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7370 | { | |
7371 | arg2 = wxString_in_helper(obj1); | |
7372 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7373 | temp2 = true; |
d55e5bfc RD |
7374 | } |
7375 | if (obj2) { | |
c32bde28 | 7376 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7377 | if (PyErr_Occurred()) SWIG_fail; |
7378 | } | |
7379 | { | |
7380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7381 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7382 | ||
7383 | wxPyEndAllowThreads(__tstate); | |
7384 | if (PyErr_Occurred()) SWIG_fail; | |
7385 | } | |
7386 | Py_INCREF(Py_None); resultobj = Py_None; | |
7387 | { | |
7388 | if (temp2) | |
7389 | delete arg2; | |
7390 | } | |
7391 | return resultobj; | |
7392 | fail: | |
7393 | { | |
7394 | if (temp2) | |
7395 | delete arg2; | |
7396 | } | |
7397 | return NULL; | |
7398 | } | |
7399 | ||
7400 | ||
c32bde28 | 7401 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7402 | PyObject *resultobj; |
7403 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7404 | wxString result; | |
7405 | PyObject * obj0 = 0 ; | |
7406 | char *kwnames[] = { | |
7407 | (char *) "self", NULL | |
7408 | }; | |
7409 | ||
7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7413 | { | |
7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7415 | result = (arg1)->GetPath(); | |
7416 | ||
7417 | wxPyEndAllowThreads(__tstate); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
7420 | { | |
7421 | #if wxUSE_UNICODE | |
7422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7423 | #else | |
7424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7425 | #endif | |
7426 | } | |
7427 | return resultobj; | |
7428 | fail: | |
7429 | return NULL; | |
7430 | } | |
7431 | ||
7432 | ||
c32bde28 | 7433 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7434 | PyObject *resultobj; |
7435 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7436 | wxString *arg2 = 0 ; | |
7437 | wxFSFile *result; | |
ae8162c8 | 7438 | bool temp2 = false ; |
d55e5bfc RD |
7439 | PyObject * obj0 = 0 ; |
7440 | PyObject * obj1 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self",(char *) "location", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7448 | { | |
7449 | arg2 = wxString_in_helper(obj1); | |
7450 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7451 | temp2 = true; |
d55e5bfc RD |
7452 | } |
7453 | { | |
7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7455 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7456 | ||
7457 | wxPyEndAllowThreads(__tstate); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | } | |
7460 | { | |
4cf4100f | 7461 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7462 | } |
7463 | { | |
7464 | if (temp2) | |
7465 | delete arg2; | |
7466 | } | |
7467 | return resultobj; | |
7468 | fail: | |
7469 | { | |
7470 | if (temp2) | |
7471 | delete arg2; | |
7472 | } | |
7473 | return NULL; | |
7474 | } | |
7475 | ||
7476 | ||
c32bde28 | 7477 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7478 | PyObject *resultobj; |
7479 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7480 | wxString *arg2 = 0 ; | |
7481 | int arg3 = (int) 0 ; | |
7482 | wxString result; | |
ae8162c8 | 7483 | bool temp2 = false ; |
d55e5bfc RD |
7484 | PyObject * obj0 = 0 ; |
7485 | PyObject * obj1 = 0 ; | |
7486 | PyObject * obj2 = 0 ; | |
7487 | char *kwnames[] = { | |
7488 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7489 | }; | |
7490 | ||
7491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7494 | { | |
7495 | arg2 = wxString_in_helper(obj1); | |
7496 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7497 | temp2 = true; |
d55e5bfc RD |
7498 | } |
7499 | if (obj2) { | |
c32bde28 | 7500 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7501 | if (PyErr_Occurred()) SWIG_fail; |
7502 | } | |
7503 | { | |
7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7505 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7506 | ||
7507 | wxPyEndAllowThreads(__tstate); | |
7508 | if (PyErr_Occurred()) SWIG_fail; | |
7509 | } | |
7510 | { | |
7511 | #if wxUSE_UNICODE | |
7512 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7513 | #else | |
7514 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7515 | #endif | |
7516 | } | |
7517 | { | |
7518 | if (temp2) | |
7519 | delete arg2; | |
7520 | } | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | { | |
7524 | if (temp2) | |
7525 | delete arg2; | |
7526 | } | |
7527 | return NULL; | |
7528 | } | |
7529 | ||
7530 | ||
c32bde28 | 7531 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7532 | PyObject *resultobj; |
7533 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7534 | wxString result; | |
7535 | PyObject * obj0 = 0 ; | |
7536 | char *kwnames[] = { | |
7537 | (char *) "self", NULL | |
7538 | }; | |
7539 | ||
7540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7543 | { | |
7544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7545 | result = (arg1)->FindNext(); | |
7546 | ||
7547 | wxPyEndAllowThreads(__tstate); | |
7548 | if (PyErr_Occurred()) SWIG_fail; | |
7549 | } | |
7550 | { | |
7551 | #if wxUSE_UNICODE | |
7552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7553 | #else | |
7554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7555 | #endif | |
7556 | } | |
7557 | return resultobj; | |
7558 | fail: | |
7559 | return NULL; | |
7560 | } | |
7561 | ||
7562 | ||
c32bde28 | 7563 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7564 | PyObject *resultobj; |
7565 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7566 | PyObject * obj0 = 0 ; | |
7567 | char *kwnames[] = { | |
7568 | (char *) "handler", NULL | |
7569 | }; | |
7570 | ||
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7574 | { | |
7575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7576 | wxFileSystem::AddHandler(arg1); | |
7577 | ||
7578 | wxPyEndAllowThreads(__tstate); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | Py_INCREF(Py_None); resultobj = Py_None; | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
c32bde28 | 7588 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7589 | PyObject *resultobj; |
7590 | char *kwnames[] = { | |
7591 | NULL | |
7592 | }; | |
7593 | ||
7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7595 | { | |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7597 | wxFileSystem::CleanUpHandlers(); | |
7598 | ||
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
7602 | Py_INCREF(Py_None); resultobj = Py_None; | |
7603 | return resultobj; | |
7604 | fail: | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
c32bde28 | 7609 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7610 | PyObject *resultobj; |
7611 | wxString *arg1 = 0 ; | |
7612 | wxString result; | |
ae8162c8 | 7613 | bool temp1 = false ; |
d55e5bfc RD |
7614 | PyObject * obj0 = 0 ; |
7615 | char *kwnames[] = { | |
7616 | (char *) "filename", NULL | |
7617 | }; | |
7618 | ||
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7620 | { | |
7621 | arg1 = wxString_in_helper(obj0); | |
7622 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7623 | temp1 = true; |
d55e5bfc RD |
7624 | } |
7625 | { | |
7626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7627 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7628 | ||
7629 | wxPyEndAllowThreads(__tstate); | |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
7631 | } | |
7632 | { | |
7633 | #if wxUSE_UNICODE | |
7634 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7635 | #else | |
7636 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7637 | #endif | |
7638 | } | |
7639 | { | |
7640 | if (temp1) | |
7641 | delete arg1; | |
7642 | } | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | { | |
7646 | if (temp1) | |
7647 | delete arg1; | |
7648 | } | |
7649 | return NULL; | |
7650 | } | |
7651 | ||
7652 | ||
c32bde28 | 7653 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7654 | PyObject *resultobj; |
7655 | wxString *arg1 = 0 ; | |
7656 | wxString result; | |
ae8162c8 | 7657 | bool temp1 = false ; |
d55e5bfc RD |
7658 | PyObject * obj0 = 0 ; |
7659 | char *kwnames[] = { | |
7660 | (char *) "url", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7664 | { | |
7665 | arg1 = wxString_in_helper(obj0); | |
7666 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7667 | temp1 = true; |
d55e5bfc RD |
7668 | } |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ae8162c8 | 7671 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
7672 | |
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) SWIG_fail; | |
7675 | } | |
7676 | { | |
7677 | #if wxUSE_UNICODE | |
7678 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7679 | #else | |
7680 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7681 | #endif | |
7682 | } | |
7683 | { | |
7684 | if (temp1) | |
7685 | delete arg1; | |
7686 | } | |
7687 | return resultobj; | |
7688 | fail: | |
7689 | { | |
7690 | if (temp1) | |
7691 | delete arg1; | |
7692 | } | |
7693 | return NULL; | |
7694 | } | |
7695 | ||
7696 | ||
ae8162c8 RD |
7697 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7698 | PyObject *obj; | |
7699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7700 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7701 | Py_INCREF(obj); | |
7702 | return Py_BuildValue((char *)""); | |
7703 | } | |
c32bde28 | 7704 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7705 | PyObject *resultobj; |
7706 | wxInternetFSHandler *result; | |
7707 | char *kwnames[] = { | |
7708 | NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7712 | { | |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7714 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7715 | ||
7716 | wxPyEndAllowThreads(__tstate); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
7719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7720 | return resultobj; | |
7721 | fail: | |
7722 | return NULL; | |
7723 | } | |
7724 | ||
7725 | ||
c32bde28 | 7726 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7727 | PyObject *resultobj; |
7728 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7729 | wxString *arg2 = 0 ; | |
7730 | bool result; | |
ae8162c8 | 7731 | bool temp2 = false ; |
d55e5bfc RD |
7732 | PyObject * obj0 = 0 ; |
7733 | PyObject * obj1 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self",(char *) "location", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7741 | { | |
7742 | arg2 = wxString_in_helper(obj1); | |
7743 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7744 | temp2 = true; |
d55e5bfc RD |
7745 | } |
7746 | { | |
7747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7748 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7749 | ||
7750 | wxPyEndAllowThreads(__tstate); | |
7751 | if (PyErr_Occurred()) SWIG_fail; | |
7752 | } | |
7753 | { | |
7754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7755 | } | |
7756 | { | |
7757 | if (temp2) | |
7758 | delete arg2; | |
7759 | } | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | { | |
7763 | if (temp2) | |
7764 | delete arg2; | |
7765 | } | |
7766 | return NULL; | |
7767 | } | |
7768 | ||
7769 | ||
c32bde28 | 7770 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7771 | PyObject *resultobj; |
7772 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7773 | wxFileSystem *arg2 = 0 ; | |
7774 | wxString *arg3 = 0 ; | |
7775 | wxFSFile *result; | |
ae8162c8 | 7776 | bool temp3 = false ; |
d55e5bfc RD |
7777 | PyObject * obj0 = 0 ; |
7778 | PyObject * obj1 = 0 ; | |
7779 | PyObject * obj2 = 0 ; | |
7780 | char *kwnames[] = { | |
7781 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7782 | }; | |
7783 | ||
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7789 | SWIG_fail; | |
7790 | if (arg2 == NULL) { | |
7791 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7792 | SWIG_fail; | |
7793 | } | |
7794 | { | |
7795 | arg3 = wxString_in_helper(obj2); | |
7796 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7797 | temp3 = true; |
d55e5bfc RD |
7798 | } |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | { | |
4cf4100f | 7807 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7808 | } |
7809 | { | |
7810 | if (temp3) | |
7811 | delete arg3; | |
7812 | } | |
7813 | return resultobj; | |
7814 | fail: | |
7815 | { | |
7816 | if (temp3) | |
7817 | delete arg3; | |
7818 | } | |
7819 | return NULL; | |
7820 | } | |
7821 | ||
7822 | ||
c32bde28 | 7823 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7824 | PyObject *obj; |
7825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7826 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7827 | Py_INCREF(obj); | |
7828 | return Py_BuildValue((char *)""); | |
7829 | } | |
c32bde28 | 7830 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7831 | PyObject *resultobj; |
7832 | wxZipFSHandler *result; | |
7833 | char *kwnames[] = { | |
7834 | NULL | |
7835 | }; | |
7836 | ||
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7838 | { | |
7839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7840 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7841 | ||
7842 | wxPyEndAllowThreads(__tstate); | |
7843 | if (PyErr_Occurred()) SWIG_fail; | |
7844 | } | |
7845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7846 | return resultobj; | |
7847 | fail: | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
c32bde28 | 7852 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7853 | PyObject *resultobj; |
7854 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7855 | wxString *arg2 = 0 ; | |
7856 | bool result; | |
ae8162c8 | 7857 | bool temp2 = false ; |
d55e5bfc RD |
7858 | PyObject * obj0 = 0 ; |
7859 | PyObject * obj1 = 0 ; | |
7860 | char *kwnames[] = { | |
7861 | (char *) "self",(char *) "location", NULL | |
7862 | }; | |
7863 | ||
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7867 | { | |
7868 | arg2 = wxString_in_helper(obj1); | |
7869 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7870 | temp2 = true; |
d55e5bfc RD |
7871 | } |
7872 | { | |
7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7874 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
7879 | { | |
7880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7881 | } | |
7882 | { | |
7883 | if (temp2) | |
7884 | delete arg2; | |
7885 | } | |
7886 | return resultobj; | |
7887 | fail: | |
7888 | { | |
7889 | if (temp2) | |
7890 | delete arg2; | |
7891 | } | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
c32bde28 | 7896 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7897 | PyObject *resultobj; |
7898 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7899 | wxFileSystem *arg2 = 0 ; | |
7900 | wxString *arg3 = 0 ; | |
7901 | wxFSFile *result; | |
ae8162c8 | 7902 | bool temp3 = false ; |
d55e5bfc RD |
7903 | PyObject * obj0 = 0 ; |
7904 | PyObject * obj1 = 0 ; | |
7905 | PyObject * obj2 = 0 ; | |
7906 | char *kwnames[] = { | |
7907 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7908 | }; | |
7909 | ||
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7915 | SWIG_fail; | |
7916 | if (arg2 == NULL) { | |
7917 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7918 | SWIG_fail; | |
7919 | } | |
7920 | { | |
7921 | arg3 = wxString_in_helper(obj2); | |
7922 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 7923 | temp3 = true; |
d55e5bfc RD |
7924 | } |
7925 | { | |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | { | |
4cf4100f | 7933 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7934 | } |
7935 | { | |
7936 | if (temp3) | |
7937 | delete arg3; | |
7938 | } | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | { | |
7942 | if (temp3) | |
7943 | delete arg3; | |
7944 | } | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
c32bde28 | 7949 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7950 | PyObject *resultobj; |
7951 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7952 | wxString *arg2 = 0 ; | |
7953 | int arg3 = (int) 0 ; | |
7954 | wxString result; | |
ae8162c8 | 7955 | bool temp2 = false ; |
d55e5bfc RD |
7956 | PyObject * obj0 = 0 ; |
7957 | PyObject * obj1 = 0 ; | |
7958 | PyObject * obj2 = 0 ; | |
7959 | char *kwnames[] = { | |
7960 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7961 | }; | |
7962 | ||
7963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7966 | { | |
7967 | arg2 = wxString_in_helper(obj1); | |
7968 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7969 | temp2 = true; |
d55e5bfc RD |
7970 | } |
7971 | if (obj2) { | |
c32bde28 | 7972 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7973 | if (PyErr_Occurred()) SWIG_fail; |
7974 | } | |
7975 | { | |
7976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7977 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7978 | ||
7979 | wxPyEndAllowThreads(__tstate); | |
7980 | if (PyErr_Occurred()) SWIG_fail; | |
7981 | } | |
7982 | { | |
7983 | #if wxUSE_UNICODE | |
7984 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7985 | #else | |
7986 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7987 | #endif | |
7988 | } | |
7989 | { | |
7990 | if (temp2) | |
7991 | delete arg2; | |
7992 | } | |
7993 | return resultobj; | |
7994 | fail: | |
7995 | { | |
7996 | if (temp2) | |
7997 | delete arg2; | |
7998 | } | |
7999 | return NULL; | |
8000 | } | |
8001 | ||
8002 | ||
c32bde28 | 8003 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8004 | PyObject *resultobj; |
8005 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8006 | wxString result; | |
8007 | PyObject * obj0 = 0 ; | |
8008 | char *kwnames[] = { | |
8009 | (char *) "self", NULL | |
8010 | }; | |
8011 | ||
8012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8015 | { | |
8016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8017 | result = (arg1)->FindNext(); | |
8018 | ||
8019 | wxPyEndAllowThreads(__tstate); | |
8020 | if (PyErr_Occurred()) SWIG_fail; | |
8021 | } | |
8022 | { | |
8023 | #if wxUSE_UNICODE | |
8024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8025 | #else | |
8026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8027 | #endif | |
8028 | } | |
8029 | return resultobj; | |
8030 | fail: | |
8031 | return NULL; | |
8032 | } | |
8033 | ||
8034 | ||
c32bde28 | 8035 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8036 | PyObject *obj; |
8037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8038 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
8039 | Py_INCREF(obj); | |
8040 | return Py_BuildValue((char *)""); | |
8041 | } | |
c32bde28 | 8042 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8043 | PyObject *resultobj; |
8044 | wxString *arg1 = 0 ; | |
8045 | wxImage *arg2 = 0 ; | |
8046 | long arg3 ; | |
ae8162c8 | 8047 | bool temp1 = false ; |
d55e5bfc RD |
8048 | PyObject * obj0 = 0 ; |
8049 | PyObject * obj1 = 0 ; | |
8050 | PyObject * obj2 = 0 ; | |
8051 | char *kwnames[] = { | |
8052 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8053 | }; | |
8054 | ||
8055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8056 | { | |
8057 | arg1 = wxString_in_helper(obj0); | |
8058 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8059 | temp1 = true; |
d55e5bfc RD |
8060 | } |
8061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
8062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8063 | SWIG_fail; | |
8064 | if (arg2 == NULL) { | |
8065 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8066 | SWIG_fail; | |
8067 | } | |
c32bde28 | 8068 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8069 | if (PyErr_Occurred()) SWIG_fail; |
8070 | { | |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | Py_INCREF(Py_None); resultobj = Py_None; | |
8078 | { | |
8079 | if (temp1) | |
8080 | delete arg1; | |
8081 | } | |
8082 | return resultobj; | |
8083 | fail: | |
8084 | { | |
8085 | if (temp1) | |
8086 | delete arg1; | |
8087 | } | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
c32bde28 | 8092 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8093 | PyObject *resultobj; |
8094 | wxString *arg1 = 0 ; | |
8095 | wxBitmap *arg2 = 0 ; | |
8096 | long arg3 ; | |
ae8162c8 | 8097 | bool temp1 = false ; |
d55e5bfc RD |
8098 | PyObject * obj0 = 0 ; |
8099 | PyObject * obj1 = 0 ; | |
8100 | PyObject * obj2 = 0 ; | |
8101 | char *kwnames[] = { | |
8102 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8103 | }; | |
8104 | ||
8105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8106 | { | |
8107 | arg1 = wxString_in_helper(obj0); | |
8108 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8109 | temp1 = true; |
d55e5bfc RD |
8110 | } |
8111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
8112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8113 | SWIG_fail; | |
8114 | if (arg2 == NULL) { | |
8115 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8116 | SWIG_fail; | |
8117 | } | |
c32bde28 | 8118 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8119 | if (PyErr_Occurred()) SWIG_fail; |
8120 | { | |
8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8122 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8123 | ||
8124 | wxPyEndAllowThreads(__tstate); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | } | |
8127 | Py_INCREF(Py_None); resultobj = Py_None; | |
8128 | { | |
8129 | if (temp1) | |
8130 | delete arg1; | |
8131 | } | |
8132 | return resultobj; | |
8133 | fail: | |
8134 | { | |
8135 | if (temp1) | |
8136 | delete arg1; | |
8137 | } | |
8138 | return NULL; | |
8139 | } | |
8140 | ||
8141 | ||
c32bde28 | 8142 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8143 | PyObject *resultobj; |
8144 | wxString *arg1 = 0 ; | |
8145 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 | 8146 | bool temp1 = false ; |
d55e5bfc RD |
8147 | PyObject * obj0 = 0 ; |
8148 | PyObject * obj1 = 0 ; | |
8149 | char *kwnames[] = { | |
8150 | (char *) "filename",(char *) "data", NULL | |
8151 | }; | |
8152 | ||
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8154 | { | |
8155 | arg1 = wxString_in_helper(obj0); | |
8156 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8157 | temp1 = true; |
d55e5bfc RD |
8158 | } |
8159 | arg2 = obj1; | |
8160 | { | |
8161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8162 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8163 | ||
8164 | wxPyEndAllowThreads(__tstate); | |
8165 | if (PyErr_Occurred()) SWIG_fail; | |
8166 | } | |
8167 | Py_INCREF(Py_None); resultobj = Py_None; | |
8168 | { | |
8169 | if (temp1) | |
8170 | delete arg1; | |
8171 | } | |
8172 | return resultobj; | |
8173 | fail: | |
8174 | { | |
8175 | if (temp1) | |
8176 | delete arg1; | |
8177 | } | |
8178 | return NULL; | |
8179 | } | |
8180 | ||
8181 | ||
c32bde28 | 8182 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8183 | PyObject *resultobj; |
8184 | wxMemoryFSHandler *result; | |
8185 | char *kwnames[] = { | |
8186 | NULL | |
8187 | }; | |
8188 | ||
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8190 | { | |
8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8192 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8193 | ||
8194 | wxPyEndAllowThreads(__tstate); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
8197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
8198 | return resultobj; | |
8199 | fail: | |
8200 | return NULL; | |
8201 | } | |
8202 | ||
8203 | ||
c32bde28 | 8204 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8205 | PyObject *resultobj; |
8206 | wxString *arg1 = 0 ; | |
ae8162c8 | 8207 | bool temp1 = false ; |
d55e5bfc RD |
8208 | PyObject * obj0 = 0 ; |
8209 | char *kwnames[] = { | |
8210 | (char *) "filename", NULL | |
8211 | }; | |
8212 | ||
8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8214 | { | |
8215 | arg1 = wxString_in_helper(obj0); | |
8216 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8217 | temp1 = true; |
d55e5bfc RD |
8218 | } |
8219 | { | |
8220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8221 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8222 | ||
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | Py_INCREF(Py_None); resultobj = Py_None; | |
8227 | { | |
8228 | if (temp1) | |
8229 | delete arg1; | |
8230 | } | |
8231 | return resultobj; | |
8232 | fail: | |
8233 | { | |
8234 | if (temp1) | |
8235 | delete arg1; | |
8236 | } | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
c32bde28 | 8241 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8242 | PyObject *resultobj; |
8243 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8244 | wxString *arg2 = 0 ; | |
8245 | bool result; | |
ae8162c8 | 8246 | bool temp2 = false ; |
d55e5bfc RD |
8247 | PyObject * obj0 = 0 ; |
8248 | PyObject * obj1 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self",(char *) "location", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
8254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8256 | { | |
8257 | arg2 = wxString_in_helper(obj1); | |
8258 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8259 | temp2 = true; |
d55e5bfc RD |
8260 | } |
8261 | { | |
8262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8263 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8264 | ||
8265 | wxPyEndAllowThreads(__tstate); | |
8266 | if (PyErr_Occurred()) SWIG_fail; | |
8267 | } | |
8268 | { | |
8269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8270 | } | |
8271 | { | |
8272 | if (temp2) | |
8273 | delete arg2; | |
8274 | } | |
8275 | return resultobj; | |
8276 | fail: | |
8277 | { | |
8278 | if (temp2) | |
8279 | delete arg2; | |
8280 | } | |
8281 | return NULL; | |
8282 | } | |
8283 | ||
8284 | ||
c32bde28 | 8285 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8286 | PyObject *resultobj; |
8287 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8288 | wxFileSystem *arg2 = 0 ; | |
8289 | wxString *arg3 = 0 ; | |
8290 | wxFSFile *result; | |
ae8162c8 | 8291 | bool temp3 = false ; |
d55e5bfc RD |
8292 | PyObject * obj0 = 0 ; |
8293 | PyObject * obj1 = 0 ; | |
8294 | PyObject * obj2 = 0 ; | |
8295 | char *kwnames[] = { | |
8296 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8297 | }; | |
8298 | ||
8299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8302 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8303 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8304 | SWIG_fail; | |
8305 | if (arg2 == NULL) { | |
8306 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8307 | SWIG_fail; | |
8308 | } | |
8309 | { | |
8310 | arg3 = wxString_in_helper(obj2); | |
8311 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 8312 | temp3 = true; |
d55e5bfc RD |
8313 | } |
8314 | { | |
8315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8316 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8317 | ||
8318 | wxPyEndAllowThreads(__tstate); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | } | |
8321 | { | |
4cf4100f | 8322 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8323 | } |
8324 | { | |
8325 | if (temp3) | |
8326 | delete arg3; | |
8327 | } | |
8328 | return resultobj; | |
8329 | fail: | |
8330 | { | |
8331 | if (temp3) | |
8332 | delete arg3; | |
8333 | } | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
c32bde28 | 8338 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8339 | PyObject *resultobj; |
8340 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8341 | wxString *arg2 = 0 ; | |
8342 | int arg3 = (int) 0 ; | |
8343 | wxString result; | |
ae8162c8 | 8344 | bool temp2 = false ; |
d55e5bfc RD |
8345 | PyObject * obj0 = 0 ; |
8346 | PyObject * obj1 = 0 ; | |
8347 | PyObject * obj2 = 0 ; | |
8348 | char *kwnames[] = { | |
8349 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8350 | }; | |
8351 | ||
8352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8355 | { | |
8356 | arg2 = wxString_in_helper(obj1); | |
8357 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8358 | temp2 = true; |
d55e5bfc RD |
8359 | } |
8360 | if (obj2) { | |
c32bde28 | 8361 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8362 | if (PyErr_Occurred()) SWIG_fail; |
8363 | } | |
8364 | { | |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | { | |
8372 | #if wxUSE_UNICODE | |
8373 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8374 | #else | |
8375 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8376 | #endif | |
8377 | } | |
8378 | { | |
8379 | if (temp2) | |
8380 | delete arg2; | |
8381 | } | |
8382 | return resultobj; | |
8383 | fail: | |
8384 | { | |
8385 | if (temp2) | |
8386 | delete arg2; | |
8387 | } | |
8388 | return NULL; | |
8389 | } | |
8390 | ||
8391 | ||
c32bde28 | 8392 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8393 | PyObject *resultobj; |
8394 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8395 | wxString result; | |
8396 | PyObject * obj0 = 0 ; | |
8397 | char *kwnames[] = { | |
8398 | (char *) "self", NULL | |
8399 | }; | |
8400 | ||
8401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8404 | { | |
8405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8406 | result = (arg1)->FindNext(); | |
8407 | ||
8408 | wxPyEndAllowThreads(__tstate); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
8410 | } | |
8411 | { | |
8412 | #if wxUSE_UNICODE | |
8413 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8414 | #else | |
8415 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8416 | #endif | |
8417 | } | |
8418 | return resultobj; | |
8419 | fail: | |
8420 | return NULL; | |
8421 | } | |
8422 | ||
8423 | ||
c32bde28 | 8424 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8425 | PyObject *obj; |
8426 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8427 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8428 | Py_INCREF(obj); | |
8429 | return Py_BuildValue((char *)""); | |
8430 | } | |
c32bde28 | 8431 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8432 | PyObject *resultobj; |
8433 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8434 | wxString result; | |
8435 | PyObject * obj0 = 0 ; | |
8436 | char *kwnames[] = { | |
8437 | (char *) "self", NULL | |
8438 | }; | |
8439 | ||
8440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8443 | { | |
8444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8445 | result = (arg1)->GetName(); | |
8446 | ||
8447 | wxPyEndAllowThreads(__tstate); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | { | |
8451 | #if wxUSE_UNICODE | |
8452 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8453 | #else | |
8454 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8455 | #endif | |
8456 | } | |
8457 | return resultobj; | |
8458 | fail: | |
8459 | return NULL; | |
8460 | } | |
8461 | ||
8462 | ||
c32bde28 | 8463 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8464 | PyObject *resultobj; |
8465 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8466 | wxString result; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | char *kwnames[] = { | |
8469 | (char *) "self", NULL | |
8470 | }; | |
8471 | ||
8472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | result = (arg1)->GetExtension(); | |
8478 | ||
8479 | wxPyEndAllowThreads(__tstate); | |
8480 | if (PyErr_Occurred()) SWIG_fail; | |
8481 | } | |
8482 | { | |
8483 | #if wxUSE_UNICODE | |
8484 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8485 | #else | |
8486 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8487 | #endif | |
8488 | } | |
8489 | return resultobj; | |
8490 | fail: | |
8491 | return NULL; | |
8492 | } | |
8493 | ||
8494 | ||
c32bde28 | 8495 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8496 | PyObject *resultobj; |
8497 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8498 | long result; | |
8499 | PyObject * obj0 = 0 ; | |
8500 | char *kwnames[] = { | |
8501 | (char *) "self", NULL | |
8502 | }; | |
8503 | ||
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | result = (long)(arg1)->GetType(); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
c32bde28 | 8514 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8515 | return resultobj; |
8516 | fail: | |
8517 | return NULL; | |
8518 | } | |
8519 | ||
8520 | ||
c32bde28 | 8521 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8522 | PyObject *resultobj; |
8523 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8524 | wxString result; | |
8525 | PyObject * obj0 = 0 ; | |
8526 | char *kwnames[] = { | |
8527 | (char *) "self", NULL | |
8528 | }; | |
8529 | ||
8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8533 | { | |
8534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8535 | result = (arg1)->GetMimeType(); | |
8536 | ||
8537 | wxPyEndAllowThreads(__tstate); | |
8538 | if (PyErr_Occurred()) SWIG_fail; | |
8539 | } | |
8540 | { | |
8541 | #if wxUSE_UNICODE | |
8542 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8543 | #else | |
8544 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8545 | #endif | |
8546 | } | |
8547 | return resultobj; | |
8548 | fail: | |
8549 | return NULL; | |
8550 | } | |
8551 | ||
8552 | ||
c32bde28 | 8553 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8554 | PyObject *resultobj; |
8555 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8556 | wxString *arg2 = 0 ; | |
8557 | bool result; | |
ae8162c8 | 8558 | bool temp2 = false ; |
d55e5bfc RD |
8559 | PyObject * obj0 = 0 ; |
8560 | PyObject * obj1 = 0 ; | |
8561 | char *kwnames[] = { | |
8562 | (char *) "self",(char *) "name", NULL | |
8563 | }; | |
8564 | ||
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8568 | { | |
8569 | arg2 = wxString_in_helper(obj1); | |
8570 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8571 | temp2 = true; |
d55e5bfc RD |
8572 | } |
8573 | { | |
8574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8575 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8576 | ||
8577 | wxPyEndAllowThreads(__tstate); | |
8578 | if (PyErr_Occurred()) SWIG_fail; | |
8579 | } | |
8580 | { | |
8581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8582 | } | |
8583 | { | |
8584 | if (temp2) | |
8585 | delete arg2; | |
8586 | } | |
8587 | return resultobj; | |
8588 | fail: | |
8589 | { | |
8590 | if (temp2) | |
8591 | delete arg2; | |
8592 | } | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
c32bde28 | 8597 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8598 | PyObject *resultobj; |
8599 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8600 | wxString *arg2 = 0 ; | |
ae8162c8 | 8601 | bool temp2 = false ; |
d55e5bfc RD |
8602 | PyObject * obj0 = 0 ; |
8603 | PyObject * obj1 = 0 ; | |
8604 | char *kwnames[] = { | |
8605 | (char *) "self",(char *) "name", NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8611 | { | |
8612 | arg2 = wxString_in_helper(obj1); | |
8613 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8614 | temp2 = true; |
d55e5bfc RD |
8615 | } |
8616 | { | |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | (arg1)->SetName((wxString const &)*arg2); | |
8619 | ||
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) SWIG_fail; | |
8622 | } | |
8623 | Py_INCREF(Py_None); resultobj = Py_None; | |
8624 | { | |
8625 | if (temp2) | |
8626 | delete arg2; | |
8627 | } | |
8628 | return resultobj; | |
8629 | fail: | |
8630 | { | |
8631 | if (temp2) | |
8632 | delete arg2; | |
8633 | } | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
c32bde28 | 8638 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8639 | PyObject *resultobj; |
8640 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8641 | wxString *arg2 = 0 ; | |
ae8162c8 | 8642 | bool temp2 = false ; |
d55e5bfc RD |
8643 | PyObject * obj0 = 0 ; |
8644 | PyObject * obj1 = 0 ; | |
8645 | char *kwnames[] = { | |
8646 | (char *) "self",(char *) "extension", NULL | |
8647 | }; | |
8648 | ||
8649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8652 | { | |
8653 | arg2 = wxString_in_helper(obj1); | |
8654 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8655 | temp2 = true; |
d55e5bfc RD |
8656 | } |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | (arg1)->SetExtension((wxString const &)*arg2); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
8664 | Py_INCREF(Py_None); resultobj = Py_None; | |
8665 | { | |
8666 | if (temp2) | |
8667 | delete arg2; | |
8668 | } | |
8669 | return resultobj; | |
8670 | fail: | |
8671 | { | |
8672 | if (temp2) | |
8673 | delete arg2; | |
8674 | } | |
8675 | return NULL; | |
8676 | } | |
8677 | ||
8678 | ||
c32bde28 | 8679 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8680 | PyObject *resultobj; |
8681 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8682 | long arg2 ; | |
8683 | PyObject * obj0 = 0 ; | |
8684 | PyObject * obj1 = 0 ; | |
8685 | char *kwnames[] = { | |
8686 | (char *) "self",(char *) "type", NULL | |
8687 | }; | |
8688 | ||
8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8692 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8693 | if (PyErr_Occurred()) SWIG_fail; |
8694 | { | |
8695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8696 | (arg1)->SetType(arg2); | |
8697 | ||
8698 | wxPyEndAllowThreads(__tstate); | |
8699 | if (PyErr_Occurred()) SWIG_fail; | |
8700 | } | |
8701 | Py_INCREF(Py_None); resultobj = Py_None; | |
8702 | return resultobj; | |
8703 | fail: | |
8704 | return NULL; | |
8705 | } | |
8706 | ||
8707 | ||
c32bde28 | 8708 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8709 | PyObject *resultobj; |
8710 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8711 | wxString *arg2 = 0 ; | |
ae8162c8 | 8712 | bool temp2 = false ; |
d55e5bfc RD |
8713 | PyObject * obj0 = 0 ; |
8714 | PyObject * obj1 = 0 ; | |
8715 | char *kwnames[] = { | |
8716 | (char *) "self",(char *) "mimetype", NULL | |
8717 | }; | |
8718 | ||
8719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8722 | { | |
8723 | arg2 = wxString_in_helper(obj1); | |
8724 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8725 | temp2 = true; |
d55e5bfc RD |
8726 | } |
8727 | { | |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8733 | } | |
8734 | Py_INCREF(Py_None); resultobj = Py_None; | |
8735 | { | |
8736 | if (temp2) | |
8737 | delete arg2; | |
8738 | } | |
8739 | return resultobj; | |
8740 | fail: | |
8741 | { | |
8742 | if (temp2) | |
8743 | delete arg2; | |
8744 | } | |
8745 | return NULL; | |
8746 | } | |
8747 | ||
8748 | ||
c32bde28 | 8749 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8750 | PyObject *obj; |
8751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8752 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8753 | Py_INCREF(obj); | |
8754 | return Py_BuildValue((char *)""); | |
8755 | } | |
c32bde28 | 8756 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8757 | PyObject *resultobj; |
8758 | wxImageHistogram *result; | |
8759 | char *kwnames[] = { | |
8760 | NULL | |
8761 | }; | |
8762 | ||
8763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8764 | { | |
8765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8766 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8767 | ||
8768 | wxPyEndAllowThreads(__tstate); | |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
8770 | } | |
8771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8772 | return resultobj; | |
8773 | fail: | |
8774 | return NULL; | |
8775 | } | |
8776 | ||
8777 | ||
c32bde28 | 8778 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8779 | PyObject *resultobj; |
8780 | unsigned char arg1 ; | |
8781 | unsigned char arg2 ; | |
8782 | unsigned char arg3 ; | |
8783 | unsigned long result; | |
8784 | PyObject * obj0 = 0 ; | |
8785 | PyObject * obj1 = 0 ; | |
8786 | PyObject * obj2 = 0 ; | |
8787 | char *kwnames[] = { | |
8788 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8789 | }; | |
8790 | ||
8791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 8792 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc | 8793 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8794 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 8795 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 8796 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8797 | if (PyErr_Occurred()) SWIG_fail; |
8798 | { | |
8799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8800 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8801 | ||
8802 | wxPyEndAllowThreads(__tstate); | |
8803 | if (PyErr_Occurred()) SWIG_fail; | |
8804 | } | |
c32bde28 | 8805 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8806 | return resultobj; |
8807 | fail: | |
8808 | return NULL; | |
8809 | } | |
8810 | ||
8811 | ||
c32bde28 | 8812 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8813 | PyObject *resultobj; |
8814 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8815 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8816 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8817 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8818 | unsigned char arg5 = (unsigned char) 1 ; | |
8819 | unsigned char arg6 = (unsigned char) 0 ; | |
8820 | unsigned char arg7 = (unsigned char) 0 ; | |
8821 | bool result; | |
8822 | unsigned char temp2 ; | |
c32bde28 | 8823 | int res2 = 0 ; |
d55e5bfc | 8824 | unsigned char temp3 ; |
c32bde28 | 8825 | int res3 = 0 ; |
d55e5bfc | 8826 | unsigned char temp4 ; |
c32bde28 | 8827 | int res4 = 0 ; |
d55e5bfc RD |
8828 | PyObject * obj0 = 0 ; |
8829 | PyObject * obj1 = 0 ; | |
8830 | PyObject * obj2 = 0 ; | |
8831 | PyObject * obj3 = 0 ; | |
8832 | char *kwnames[] = { | |
8833 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8834 | }; | |
8835 | ||
c32bde28 RD |
8836 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8837 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8838 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8842 | if (obj1) { | |
c32bde28 | 8843 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
8844 | if (PyErr_Occurred()) SWIG_fail; |
8845 | } | |
8846 | if (obj2) { | |
c32bde28 | 8847 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8848 | if (PyErr_Occurred()) SWIG_fail; |
8849 | } | |
8850 | if (obj3) { | |
c32bde28 | 8851 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
8852 | if (PyErr_Occurred()) SWIG_fail; |
8853 | } | |
8854 | { | |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | { | |
8862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8863 | } | |
c32bde28 RD |
8864 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8865 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8866 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8867 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8868 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8869 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
8870 | return resultobj; |
8871 | fail: | |
8872 | return NULL; | |
8873 | } | |
8874 | ||
8875 | ||
c32bde28 | 8876 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8877 | PyObject *obj; |
8878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8879 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8880 | Py_INCREF(obj); | |
8881 | return Py_BuildValue((char *)""); | |
8882 | } | |
c32bde28 | 8883 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8884 | PyObject *resultobj; |
8885 | wxString *arg1 = 0 ; | |
8886 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8887 | int arg3 = (int) -1 ; | |
8888 | wxImage *result; | |
ae8162c8 | 8889 | bool temp1 = false ; |
d55e5bfc RD |
8890 | PyObject * obj0 = 0 ; |
8891 | PyObject * obj1 = 0 ; | |
8892 | PyObject * obj2 = 0 ; | |
8893 | char *kwnames[] = { | |
8894 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8895 | }; | |
8896 | ||
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8898 | { | |
8899 | arg1 = wxString_in_helper(obj0); | |
8900 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8901 | temp1 = true; |
d55e5bfc RD |
8902 | } |
8903 | if (obj1) { | |
c32bde28 | 8904 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8905 | if (PyErr_Occurred()) SWIG_fail; |
8906 | } | |
8907 | if (obj2) { | |
c32bde28 | 8908 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8909 | if (PyErr_Occurred()) SWIG_fail; |
8910 | } | |
8911 | { | |
8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8913 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8914 | ||
8915 | wxPyEndAllowThreads(__tstate); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | } | |
8918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8919 | { | |
8920 | if (temp1) | |
8921 | delete arg1; | |
8922 | } | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | { | |
8926 | if (temp1) | |
8927 | delete arg1; | |
8928 | } | |
8929 | return NULL; | |
8930 | } | |
8931 | ||
8932 | ||
c32bde28 | 8933 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8934 | PyObject *resultobj; |
8935 | wxImage *arg1 = (wxImage *) 0 ; | |
8936 | PyObject * obj0 = 0 ; | |
8937 | char *kwnames[] = { | |
8938 | (char *) "self", NULL | |
8939 | }; | |
8940 | ||
8941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8944 | { | |
8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8946 | delete arg1; | |
8947 | ||
8948 | wxPyEndAllowThreads(__tstate); | |
8949 | if (PyErr_Occurred()) SWIG_fail; | |
8950 | } | |
8951 | Py_INCREF(Py_None); resultobj = Py_None; | |
8952 | return resultobj; | |
8953 | fail: | |
8954 | return NULL; | |
8955 | } | |
8956 | ||
8957 | ||
c32bde28 | 8958 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8959 | PyObject *resultobj; |
8960 | wxString *arg1 = 0 ; | |
8961 | wxString *arg2 = 0 ; | |
8962 | int arg3 = (int) -1 ; | |
8963 | wxImage *result; | |
ae8162c8 RD |
8964 | bool temp1 = false ; |
8965 | bool temp2 = false ; | |
d55e5bfc RD |
8966 | PyObject * obj0 = 0 ; |
8967 | PyObject * obj1 = 0 ; | |
8968 | PyObject * obj2 = 0 ; | |
8969 | char *kwnames[] = { | |
8970 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8971 | }; | |
8972 | ||
8973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8974 | { | |
8975 | arg1 = wxString_in_helper(obj0); | |
8976 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8977 | temp1 = true; |
d55e5bfc RD |
8978 | } |
8979 | { | |
8980 | arg2 = wxString_in_helper(obj1); | |
8981 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8982 | temp2 = true; |
d55e5bfc RD |
8983 | } |
8984 | if (obj2) { | |
c32bde28 | 8985 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8986 | if (PyErr_Occurred()) SWIG_fail; |
8987 | } | |
8988 | { | |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8996 | { | |
8997 | if (temp1) | |
8998 | delete arg1; | |
8999 | } | |
9000 | { | |
9001 | if (temp2) | |
9002 | delete arg2; | |
9003 | } | |
9004 | return resultobj; | |
9005 | fail: | |
9006 | { | |
9007 | if (temp1) | |
9008 | delete arg1; | |
9009 | } | |
9010 | { | |
9011 | if (temp2) | |
9012 | delete arg2; | |
9013 | } | |
9014 | return NULL; | |
9015 | } | |
9016 | ||
9017 | ||
c32bde28 | 9018 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9019 | PyObject *resultobj; |
9020 | wxInputStream *arg1 = 0 ; | |
9021 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9022 | int arg3 = (int) -1 ; | |
9023 | wxImage *result; | |
9024 | wxPyInputStream *temp1 ; | |
9025 | bool created1 ; | |
9026 | PyObject * obj0 = 0 ; | |
9027 | PyObject * obj1 = 0 ; | |
9028 | PyObject * obj2 = 0 ; | |
9029 | char *kwnames[] = { | |
9030 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
9031 | }; | |
9032 | ||
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9034 | { | |
9035 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9036 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9037 | created1 = false; |
d55e5bfc RD |
9038 | } else { |
9039 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9040 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9041 | if (arg1 == NULL) { |
9042 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9043 | SWIG_fail; | |
9044 | } | |
ae8162c8 | 9045 | created1 = true; |
d55e5bfc RD |
9046 | } |
9047 | } | |
9048 | if (obj1) { | |
c32bde28 | 9049 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9050 | if (PyErr_Occurred()) SWIG_fail; |
9051 | } | |
9052 | if (obj2) { | |
c32bde28 | 9053 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9054 | if (PyErr_Occurred()) SWIG_fail; |
9055 | } | |
9056 | { | |
9057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9058 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9059 | ||
9060 | wxPyEndAllowThreads(__tstate); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | } | |
9063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9064 | { | |
9065 | if (created1) | |
9066 | delete arg1; | |
9067 | } | |
9068 | return resultobj; | |
9069 | fail: | |
9070 | { | |
9071 | if (created1) | |
9072 | delete arg1; | |
9073 | } | |
9074 | return NULL; | |
9075 | } | |
9076 | ||
9077 | ||
c32bde28 | 9078 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9079 | PyObject *resultobj; |
9080 | wxInputStream *arg1 = 0 ; | |
9081 | wxString *arg2 = 0 ; | |
9082 | int arg3 = (int) -1 ; | |
9083 | wxImage *result; | |
9084 | wxPyInputStream *temp1 ; | |
9085 | bool created1 ; | |
ae8162c8 | 9086 | bool temp2 = false ; |
d55e5bfc RD |
9087 | PyObject * obj0 = 0 ; |
9088 | PyObject * obj1 = 0 ; | |
9089 | PyObject * obj2 = 0 ; | |
9090 | char *kwnames[] = { | |
9091 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9092 | }; | |
9093 | ||
9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9095 | { | |
9096 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9097 | arg1 = temp1->m_wxis; | |
ae8162c8 | 9098 | created1 = false; |
d55e5bfc RD |
9099 | } else { |
9100 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 9101 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9102 | if (arg1 == NULL) { |
9103 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9104 | SWIG_fail; | |
9105 | } | |
ae8162c8 | 9106 | created1 = true; |
d55e5bfc RD |
9107 | } |
9108 | } | |
9109 | { | |
9110 | arg2 = wxString_in_helper(obj1); | |
9111 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9112 | temp2 = true; |
d55e5bfc RD |
9113 | } |
9114 | if (obj2) { | |
c32bde28 | 9115 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9116 | if (PyErr_Occurred()) SWIG_fail; |
9117 | } | |
9118 | { | |
9119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9120 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9121 | ||
9122 | wxPyEndAllowThreads(__tstate); | |
9123 | if (PyErr_Occurred()) SWIG_fail; | |
9124 | } | |
9125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9126 | { | |
9127 | if (created1) | |
9128 | delete arg1; | |
9129 | } | |
9130 | { | |
9131 | if (temp2) | |
9132 | delete arg2; | |
9133 | } | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | { | |
9137 | if (created1) | |
9138 | delete arg1; | |
9139 | } | |
9140 | { | |
9141 | if (temp2) | |
9142 | delete arg2; | |
9143 | } | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
c32bde28 | 9148 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9149 | PyObject *resultobj; |
9150 | int arg1 = (int) 0 ; | |
9151 | int arg2 = (int) 0 ; | |
ae8162c8 | 9152 | bool arg3 = (bool) true ; |
d55e5bfc RD |
9153 | wxImage *result; |
9154 | PyObject * obj0 = 0 ; | |
9155 | PyObject * obj1 = 0 ; | |
9156 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
9157 | char *kwnames[] = { |
9158 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9159 | }; | |
d55e5bfc | 9160 | |
c24da6d6 | 9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 9162 | if (obj0) { |
c32bde28 | 9163 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9164 | if (PyErr_Occurred()) SWIG_fail; |
9165 | } | |
9166 | if (obj1) { | |
c32bde28 | 9167 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9168 | if (PyErr_Occurred()) SWIG_fail; |
9169 | } | |
9170 | if (obj2) { | |
c32bde28 | 9171 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9172 | if (PyErr_Occurred()) SWIG_fail; |
9173 | } | |
9174 | { | |
9175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 9176 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
9177 | |
9178 | wxPyEndAllowThreads(__tstate); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | } | |
9181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9182 | return resultobj; | |
9183 | fail: | |
9184 | return NULL; | |
9185 | } | |
9186 | ||
9187 | ||
c32bde28 | 9188 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9189 | PyObject *resultobj; |
9190 | wxBitmap *arg1 = 0 ; | |
9191 | wxImage *result; | |
9192 | PyObject * obj0 = 0 ; | |
9193 | char *kwnames[] = { | |
9194 | (char *) "bitmap", NULL | |
9195 | }; | |
9196 | ||
9197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
9198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
9199 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9200 | SWIG_fail; | |
9201 | if (arg1 == NULL) { | |
9202 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9203 | SWIG_fail; | |
9204 | } | |
9205 | { | |
0439c23b | 9206 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9208 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9209 | ||
9210 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9211 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9212 | } |
9213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9214 | return resultobj; | |
9215 | fail: | |
9216 | return NULL; | |
9217 | } | |
9218 | ||
9219 | ||
c32bde28 | 9220 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9221 | PyObject *resultobj; |
9222 | int arg1 ; | |
9223 | int arg2 ; | |
9224 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9225 | wxImage *result; | |
9226 | PyObject * obj0 = 0 ; | |
9227 | PyObject * obj1 = 0 ; | |
9228 | PyObject * obj2 = 0 ; | |
9229 | char *kwnames[] = { | |
9230 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9231 | }; | |
9232 | ||
9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 9234 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 9235 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9236 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9237 | if (PyErr_Occurred()) SWIG_fail; |
9238 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9240 | { | |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | return NULL; | |
9251 | } | |
9252 | ||
9253 | ||
c32bde28 | 9254 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9255 | PyObject *resultobj; |
9256 | wxImage *arg1 = (wxImage *) 0 ; | |
9257 | int arg2 ; | |
9258 | int arg3 ; | |
9259 | PyObject * obj0 = 0 ; | |
9260 | PyObject * obj1 = 0 ; | |
9261 | PyObject * obj2 = 0 ; | |
9262 | char *kwnames[] = { | |
9263 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9264 | }; | |
9265 | ||
9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9269 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9270 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9271 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9272 | if (PyErr_Occurred()) SWIG_fail; |
9273 | { | |
9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9275 | (arg1)->Create(arg2,arg3); | |
9276 | ||
9277 | wxPyEndAllowThreads(__tstate); | |
9278 | if (PyErr_Occurred()) SWIG_fail; | |
9279 | } | |
9280 | Py_INCREF(Py_None); resultobj = Py_None; | |
9281 | return resultobj; | |
9282 | fail: | |
9283 | return NULL; | |
9284 | } | |
9285 | ||
9286 | ||
c32bde28 | 9287 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9288 | PyObject *resultobj; |
9289 | wxImage *arg1 = (wxImage *) 0 ; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9298 | { | |
9299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9300 | (arg1)->Destroy(); | |
9301 | ||
9302 | wxPyEndAllowThreads(__tstate); | |
9303 | if (PyErr_Occurred()) SWIG_fail; | |
9304 | } | |
9305 | Py_INCREF(Py_None); resultobj = Py_None; | |
9306 | return resultobj; | |
9307 | fail: | |
9308 | return NULL; | |
9309 | } | |
9310 | ||
9311 | ||
c32bde28 | 9312 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9313 | PyObject *resultobj; |
9314 | wxImage *arg1 = (wxImage *) 0 ; | |
9315 | int arg2 ; | |
9316 | int arg3 ; | |
9317 | SwigValueWrapper< wxImage > result; | |
9318 | PyObject * obj0 = 0 ; | |
9319 | PyObject * obj1 = 0 ; | |
9320 | PyObject * obj2 = 0 ; | |
9321 | char *kwnames[] = { | |
9322 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9323 | }; | |
9324 | ||
9325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9328 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9329 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9330 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9331 | if (PyErr_Occurred()) SWIG_fail; |
9332 | { | |
9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9334 | result = (arg1)->Scale(arg2,arg3); | |
9335 | ||
9336 | wxPyEndAllowThreads(__tstate); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
9338 | } | |
9339 | { | |
9340 | wxImage * resultptr; | |
9341 | resultptr = new wxImage((wxImage &) result); | |
9342 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9343 | } | |
9344 | return resultobj; | |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
c32bde28 | 9350 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9351 | PyObject *resultobj; |
9352 | wxImage *arg1 = (wxImage *) 0 ; | |
9353 | int arg2 ; | |
9354 | int arg3 ; | |
9355 | SwigValueWrapper< wxImage > result; | |
9356 | PyObject * obj0 = 0 ; | |
9357 | PyObject * obj1 = 0 ; | |
9358 | PyObject * obj2 = 0 ; | |
9359 | char *kwnames[] = { | |
9360 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9361 | }; | |
9362 | ||
9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9366 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9367 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9368 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9369 | if (PyErr_Occurred()) SWIG_fail; |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9373 | ||
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
9377 | { | |
9378 | wxImage * resultptr; | |
9379 | resultptr = new wxImage((wxImage &) result); | |
9380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9381 | } | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
c32bde28 | 9388 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9389 | PyObject *resultobj; |
9390 | wxImage *arg1 = (wxImage *) 0 ; | |
9391 | int arg2 ; | |
9392 | int arg3 ; | |
9393 | wxImage *result; | |
9394 | PyObject * obj0 = 0 ; | |
9395 | PyObject * obj1 = 0 ; | |
9396 | PyObject * obj2 = 0 ; | |
9397 | char *kwnames[] = { | |
9398 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9399 | }; | |
9400 | ||
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9404 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9405 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9406 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9407 | if (PyErr_Occurred()) SWIG_fail; |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9410 | { | |
9411 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9412 | result = (wxImage *) &_result_ref; | |
9413 | } | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
c32bde28 | 9425 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9426 | PyObject *resultobj; |
9427 | wxImage *arg1 = (wxImage *) 0 ; | |
9428 | int arg2 ; | |
9429 | int arg3 ; | |
9430 | unsigned char arg4 ; | |
9431 | unsigned char arg5 ; | |
9432 | unsigned char arg6 ; | |
9433 | PyObject * obj0 = 0 ; | |
9434 | PyObject * obj1 = 0 ; | |
9435 | PyObject * obj2 = 0 ; | |
9436 | PyObject * obj3 = 0 ; | |
9437 | PyObject * obj4 = 0 ; | |
9438 | PyObject * obj5 = 0 ; | |
9439 | char *kwnames[] = { | |
9440 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9441 | }; | |
9442 | ||
9443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9446 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9447 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9448 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9449 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9450 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9451 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9452 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 9453 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9454 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc RD |
9455 | if (PyErr_Occurred()) SWIG_fail; |
9456 | { | |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9459 | ||
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
9463 | Py_INCREF(Py_None); resultobj = Py_None; | |
9464 | return resultobj; | |
9465 | fail: | |
9466 | return NULL; | |
9467 | } | |
9468 | ||
9469 | ||
c32bde28 | 9470 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9471 | PyObject *resultobj; |
9472 | wxImage *arg1 = (wxImage *) 0 ; | |
9473 | int arg2 ; | |
9474 | int arg3 ; | |
9475 | unsigned char result; | |
9476 | PyObject * obj0 = 0 ; | |
9477 | PyObject * obj1 = 0 ; | |
9478 | PyObject * obj2 = 0 ; | |
9479 | char *kwnames[] = { | |
9480 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9481 | }; | |
9482 | ||
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9486 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9487 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9488 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9489 | if (PyErr_Occurred()) SWIG_fail; |
9490 | { | |
9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9492 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9493 | ||
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) SWIG_fail; | |
9496 | } | |
c32bde28 | 9497 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9498 | return resultobj; |
9499 | fail: | |
9500 | return NULL; | |
9501 | } | |
9502 | ||
9503 | ||
c32bde28 | 9504 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9505 | PyObject *resultobj; |
9506 | wxImage *arg1 = (wxImage *) 0 ; | |
9507 | int arg2 ; | |
9508 | int arg3 ; | |
9509 | unsigned char result; | |
9510 | PyObject * obj0 = 0 ; | |
9511 | PyObject * obj1 = 0 ; | |
9512 | PyObject * obj2 = 0 ; | |
9513 | char *kwnames[] = { | |
9514 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9515 | }; | |
9516 | ||
9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",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 = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9527 | ||
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
c32bde28 | 9531 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9532 | return resultobj; |
9533 | fail: | |
9534 | return NULL; | |
9535 | } | |
9536 | ||
9537 | ||
c32bde28 | 9538 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9539 | PyObject *resultobj; |
9540 | wxImage *arg1 = (wxImage *) 0 ; | |
9541 | int arg2 ; | |
9542 | int arg3 ; | |
9543 | unsigned char result; | |
9544 | PyObject * obj0 = 0 ; | |
9545 | PyObject * obj1 = 0 ; | |
9546 | PyObject * obj2 = 0 ; | |
9547 | char *kwnames[] = { | |
9548 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9549 | }; | |
9550 | ||
9551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9554 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9555 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9556 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9557 | if (PyErr_Occurred()) SWIG_fail; |
9558 | { | |
9559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9560 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9561 | ||
9562 | wxPyEndAllowThreads(__tstate); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | } | |
c32bde28 | 9565 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9566 | return resultobj; |
9567 | fail: | |
9568 | return NULL; | |
9569 | } | |
9570 | ||
9571 | ||
c32bde28 | 9572 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9573 | PyObject *resultobj; |
9574 | wxImage *arg1 = (wxImage *) 0 ; | |
9575 | int arg2 ; | |
9576 | int arg3 ; | |
9577 | unsigned char arg4 ; | |
9578 | PyObject * obj0 = 0 ; | |
9579 | PyObject * obj1 = 0 ; | |
9580 | PyObject * obj2 = 0 ; | |
9581 | PyObject * obj3 = 0 ; | |
9582 | char *kwnames[] = { | |
9583 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9589 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9590 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9591 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9592 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9593 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9594 | if (PyErr_Occurred()) SWIG_fail; |
9595 | { | |
9596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9597 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9598 | ||
9599 | wxPyEndAllowThreads(__tstate); | |
9600 | if (PyErr_Occurred()) SWIG_fail; | |
9601 | } | |
9602 | Py_INCREF(Py_None); resultobj = Py_None; | |
9603 | return resultobj; | |
9604 | fail: | |
9605 | return NULL; | |
9606 | } | |
9607 | ||
9608 | ||
c32bde28 | 9609 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9610 | PyObject *resultobj; |
9611 | wxImage *arg1 = (wxImage *) 0 ; | |
9612 | int arg2 ; | |
9613 | int arg3 ; | |
9614 | unsigned char result; | |
9615 | PyObject * obj0 = 0 ; | |
9616 | PyObject * obj1 = 0 ; | |
9617 | PyObject * obj2 = 0 ; | |
9618 | char *kwnames[] = { | |
9619 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9620 | }; | |
9621 | ||
9622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9625 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9626 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9627 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9628 | if (PyErr_Occurred()) SWIG_fail; |
9629 | { | |
9630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9631 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9632 | ||
9633 | wxPyEndAllowThreads(__tstate); | |
9634 | if (PyErr_Occurred()) SWIG_fail; | |
9635 | } | |
c32bde28 | 9636 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9637 | return resultobj; |
9638 | fail: | |
9639 | return NULL; | |
9640 | } | |
9641 | ||
9642 | ||
c32bde28 | 9643 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9644 | PyObject *resultobj; |
9645 | wxImage *arg1 = (wxImage *) 0 ; | |
9646 | bool result; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | char *kwnames[] = { | |
9649 | (char *) "self", NULL | |
9650 | }; | |
9651 | ||
9652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9655 | { | |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | result = (bool)(arg1)->HasAlpha(); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | { | |
9663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9664 | } | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
c32bde28 | 9671 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9672 | PyObject *resultobj; |
9673 | wxImage *arg1 = (wxImage *) 0 ; | |
9674 | byte *arg2 = (byte *) 0 ; | |
9675 | byte *arg3 = (byte *) 0 ; | |
9676 | byte *arg4 = (byte *) 0 ; | |
9677 | byte arg5 = (byte) 0 ; | |
9678 | byte arg6 = (byte) 0 ; | |
9679 | byte arg7 = (byte) 0 ; | |
9680 | bool result; | |
9681 | byte temp2 ; | |
c32bde28 | 9682 | int res2 = 0 ; |
d55e5bfc | 9683 | byte temp3 ; |
c32bde28 | 9684 | int res3 = 0 ; |
d55e5bfc | 9685 | byte temp4 ; |
c32bde28 | 9686 | int res4 = 0 ; |
d55e5bfc RD |
9687 | PyObject * obj0 = 0 ; |
9688 | PyObject * obj1 = 0 ; | |
9689 | PyObject * obj2 = 0 ; | |
9690 | PyObject * obj3 = 0 ; | |
9691 | char *kwnames[] = { | |
9692 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9693 | }; | |
9694 | ||
c32bde28 RD |
9695 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9696 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9697 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9701 | if (obj1) { | |
c32bde28 | 9702 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
9703 | if (PyErr_Occurred()) SWIG_fail; |
9704 | } | |
9705 | if (obj2) { | |
c32bde28 | 9706 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
9707 | if (PyErr_Occurred()) SWIG_fail; |
9708 | } | |
9709 | if (obj3) { | |
c32bde28 | 9710 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9711 | if (PyErr_Occurred()) SWIG_fail; |
9712 | } | |
9713 | { | |
9714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9715 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9716 | ||
9717 | wxPyEndAllowThreads(__tstate); | |
9718 | if (PyErr_Occurred()) SWIG_fail; | |
9719 | } | |
9720 | { | |
9721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9722 | } | |
c32bde28 RD |
9723 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9724 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9725 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9726 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9727 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9728 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
9729 | return resultobj; |
9730 | fail: | |
9731 | return NULL; | |
9732 | } | |
9733 | ||
9734 | ||
c32bde28 | 9735 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9736 | PyObject *resultobj; |
9737 | wxImage *arg1 = (wxImage *) 0 ; | |
9738 | byte arg2 = (byte) 128 ; | |
9739 | bool result; | |
9740 | PyObject * obj0 = 0 ; | |
9741 | PyObject * obj1 = 0 ; | |
9742 | char *kwnames[] = { | |
9743 | (char *) "self",(char *) "threshold", NULL | |
9744 | }; | |
9745 | ||
9746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9749 | if (obj1) { | |
c32bde28 | 9750 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9751 | if (PyErr_Occurred()) SWIG_fail; |
9752 | } | |
9753 | { | |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
9760 | { | |
9761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9762 | } | |
9763 | return resultobj; | |
9764 | fail: | |
9765 | return NULL; | |
9766 | } | |
9767 | ||
9768 | ||
c32bde28 | 9769 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9770 | PyObject *resultobj; |
9771 | wxImage *arg1 = (wxImage *) 0 ; | |
9772 | wxImage *arg2 = 0 ; | |
9773 | byte arg3 ; | |
9774 | byte arg4 ; | |
9775 | byte arg5 ; | |
9776 | bool result; | |
9777 | PyObject * obj0 = 0 ; | |
9778 | PyObject * obj1 = 0 ; | |
9779 | PyObject * obj2 = 0 ; | |
9780 | PyObject * obj3 = 0 ; | |
9781 | PyObject * obj4 = 0 ; | |
9782 | char *kwnames[] = { | |
9783 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9784 | }; | |
9785 | ||
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9789 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9790 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9791 | SWIG_fail; | |
9792 | if (arg2 == NULL) { | |
9793 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9794 | SWIG_fail; | |
9795 | } | |
c32bde28 | 9796 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 9797 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9798 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9799 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9800 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc RD |
9801 | if (PyErr_Occurred()) SWIG_fail; |
9802 | { | |
9803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9804 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9805 | ||
9806 | wxPyEndAllowThreads(__tstate); | |
9807 | if (PyErr_Occurred()) SWIG_fail; | |
9808 | } | |
9809 | { | |
9810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9811 | } | |
9812 | return resultobj; | |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
c32bde28 | 9818 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9819 | PyObject *resultobj; |
9820 | wxString *arg1 = 0 ; | |
9821 | bool result; | |
ae8162c8 | 9822 | bool temp1 = false ; |
d55e5bfc RD |
9823 | PyObject * obj0 = 0 ; |
9824 | char *kwnames[] = { | |
9825 | (char *) "name", NULL | |
9826 | }; | |
9827 | ||
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9829 | { | |
9830 | arg1 = wxString_in_helper(obj0); | |
9831 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9832 | temp1 = true; |
d55e5bfc RD |
9833 | } |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9837 | ||
9838 | wxPyEndAllowThreads(__tstate); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
9841 | { | |
9842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9843 | } | |
9844 | { | |
9845 | if (temp1) | |
9846 | delete arg1; | |
9847 | } | |
9848 | return resultobj; | |
9849 | fail: | |
9850 | { | |
9851 | if (temp1) | |
9852 | delete arg1; | |
9853 | } | |
9854 | return NULL; | |
9855 | } | |
9856 | ||
9857 | ||
c32bde28 | 9858 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9859 | PyObject *resultobj; |
9860 | wxString *arg1 = 0 ; | |
9861 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9862 | int result; | |
ae8162c8 | 9863 | bool temp1 = false ; |
d55e5bfc RD |
9864 | PyObject * obj0 = 0 ; |
9865 | PyObject * obj1 = 0 ; | |
9866 | char *kwnames[] = { | |
9867 | (char *) "name",(char *) "type", NULL | |
9868 | }; | |
9869 | ||
9870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9871 | { | |
9872 | arg1 = wxString_in_helper(obj0); | |
9873 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9874 | temp1 = true; |
d55e5bfc RD |
9875 | } |
9876 | if (obj1) { | |
c32bde28 | 9877 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9878 | if (PyErr_Occurred()) SWIG_fail; |
9879 | } | |
9880 | { | |
9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9882 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9883 | ||
9884 | wxPyEndAllowThreads(__tstate); | |
9885 | if (PyErr_Occurred()) SWIG_fail; | |
9886 | } | |
c32bde28 | 9887 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9888 | { |
9889 | if (temp1) | |
9890 | delete arg1; | |
9891 | } | |
9892 | return resultobj; | |
9893 | fail: | |
9894 | { | |
9895 | if (temp1) | |
9896 | delete arg1; | |
9897 | } | |
9898 | return NULL; | |
9899 | } | |
9900 | ||
9901 | ||
c32bde28 | 9902 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9903 | PyObject *resultobj; |
9904 | wxImage *arg1 = (wxImage *) 0 ; | |
9905 | wxString *arg2 = 0 ; | |
9906 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9907 | int arg4 = (int) -1 ; | |
9908 | bool result; | |
ae8162c8 | 9909 | bool temp2 = false ; |
d55e5bfc RD |
9910 | PyObject * obj0 = 0 ; |
9911 | PyObject * obj1 = 0 ; | |
9912 | PyObject * obj2 = 0 ; | |
9913 | PyObject * obj3 = 0 ; | |
9914 | char *kwnames[] = { | |
9915 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9916 | }; | |
9917 | ||
9918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9921 | { | |
9922 | arg2 = wxString_in_helper(obj1); | |
9923 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9924 | temp2 = true; |
d55e5bfc RD |
9925 | } |
9926 | if (obj2) { | |
c32bde28 | 9927 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9928 | if (PyErr_Occurred()) SWIG_fail; |
9929 | } | |
9930 | if (obj3) { | |
c32bde28 | 9931 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9932 | if (PyErr_Occurred()) SWIG_fail; |
9933 | } | |
9934 | { | |
9935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9936 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9937 | ||
9938 | wxPyEndAllowThreads(__tstate); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
9940 | } | |
9941 | { | |
9942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9943 | } | |
9944 | { | |
9945 | if (temp2) | |
9946 | delete arg2; | |
9947 | } | |
9948 | return resultobj; | |
9949 | fail: | |
9950 | { | |
9951 | if (temp2) | |
9952 | delete arg2; | |
9953 | } | |
9954 | return NULL; | |
9955 | } | |
9956 | ||
9957 | ||
c32bde28 | 9958 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9959 | PyObject *resultobj; |
9960 | wxImage *arg1 = (wxImage *) 0 ; | |
9961 | wxString *arg2 = 0 ; | |
9962 | wxString *arg3 = 0 ; | |
9963 | int arg4 = (int) -1 ; | |
9964 | bool result; | |
ae8162c8 RD |
9965 | bool temp2 = false ; |
9966 | bool temp3 = false ; | |
d55e5bfc RD |
9967 | PyObject * obj0 = 0 ; |
9968 | PyObject * obj1 = 0 ; | |
9969 | PyObject * obj2 = 0 ; | |
9970 | PyObject * obj3 = 0 ; | |
9971 | char *kwnames[] = { | |
9972 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9973 | }; | |
9974 | ||
9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9978 | { | |
9979 | arg2 = wxString_in_helper(obj1); | |
9980 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9981 | temp2 = true; |
d55e5bfc RD |
9982 | } |
9983 | { | |
9984 | arg3 = wxString_in_helper(obj2); | |
9985 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9986 | temp3 = true; |
d55e5bfc RD |
9987 | } |
9988 | if (obj3) { | |
c32bde28 | 9989 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9990 | if (PyErr_Occurred()) SWIG_fail; |
9991 | } | |
9992 | { | |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9994 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9995 | ||
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
9999 | { | |
10000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10001 | } | |
10002 | { | |
10003 | if (temp2) | |
10004 | delete arg2; | |
10005 | } | |
10006 | { | |
10007 | if (temp3) | |
10008 | delete arg3; | |
10009 | } | |
10010 | return resultobj; | |
10011 | fail: | |
10012 | { | |
10013 | if (temp2) | |
10014 | delete arg2; | |
10015 | } | |
10016 | { | |
10017 | if (temp3) | |
10018 | delete arg3; | |
10019 | } | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
c32bde28 | 10024 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10025 | PyObject *resultobj; |
10026 | wxImage *arg1 = (wxImage *) 0 ; | |
10027 | wxString *arg2 = 0 ; | |
10028 | int arg3 ; | |
10029 | bool result; | |
ae8162c8 | 10030 | bool temp2 = false ; |
d55e5bfc RD |
10031 | PyObject * obj0 = 0 ; |
10032 | PyObject * obj1 = 0 ; | |
10033 | PyObject * obj2 = 0 ; | |
10034 | char *kwnames[] = { | |
10035 | (char *) "self",(char *) "name",(char *) "type", NULL | |
10036 | }; | |
10037 | ||
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10041 | { | |
10042 | arg2 = wxString_in_helper(obj1); | |
10043 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10044 | temp2 = true; |
d55e5bfc | 10045 | } |
c32bde28 | 10046 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10047 | if (PyErr_Occurred()) SWIG_fail; |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10057 | } | |
10058 | { | |
10059 | if (temp2) | |
10060 | delete arg2; | |
10061 | } | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | { | |
10065 | if (temp2) | |
10066 | delete arg2; | |
10067 | } | |
10068 | return NULL; | |
10069 | } | |
10070 | ||
10071 | ||
c32bde28 | 10072 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10073 | PyObject *resultobj; |
10074 | wxImage *arg1 = (wxImage *) 0 ; | |
10075 | wxString *arg2 = 0 ; | |
10076 | wxString *arg3 = 0 ; | |
10077 | bool result; | |
ae8162c8 RD |
10078 | bool temp2 = false ; |
10079 | bool temp3 = false ; | |
d55e5bfc RD |
10080 | PyObject * obj0 = 0 ; |
10081 | PyObject * obj1 = 0 ; | |
10082 | PyObject * obj2 = 0 ; | |
10083 | char *kwnames[] = { | |
10084 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10085 | }; | |
10086 | ||
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10090 | { | |
10091 | arg2 = wxString_in_helper(obj1); | |
10092 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10093 | temp2 = true; |
d55e5bfc RD |
10094 | } |
10095 | { | |
10096 | arg3 = wxString_in_helper(obj2); | |
10097 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10098 | temp3 = true; |
d55e5bfc RD |
10099 | } |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10102 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | { | |
10108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10109 | } | |
10110 | { | |
10111 | if (temp2) | |
10112 | delete arg2; | |
10113 | } | |
10114 | { | |
10115 | if (temp3) | |
10116 | delete arg3; | |
10117 | } | |
10118 | return resultobj; | |
10119 | fail: | |
10120 | { | |
10121 | if (temp2) | |
10122 | delete arg2; | |
10123 | } | |
10124 | { | |
10125 | if (temp3) | |
10126 | delete arg3; | |
10127 | } | |
10128 | return NULL; | |
10129 | } | |
10130 | ||
10131 | ||
c32bde28 | 10132 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10133 | PyObject *resultobj; |
10134 | wxInputStream *arg1 = 0 ; | |
10135 | bool result; | |
10136 | wxPyInputStream *temp1 ; | |
10137 | bool created1 ; | |
10138 | PyObject * obj0 = 0 ; | |
10139 | char *kwnames[] = { | |
10140 | (char *) "stream", NULL | |
10141 | }; | |
10142 | ||
10143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10144 | { | |
10145 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10146 | arg1 = temp1->m_wxis; | |
ae8162c8 | 10147 | created1 = false; |
d55e5bfc RD |
10148 | } else { |
10149 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10150 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10151 | if (arg1 == NULL) { |
10152 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10153 | SWIG_fail; | |
10154 | } | |
ae8162c8 | 10155 | created1 = true; |
d55e5bfc RD |
10156 | } |
10157 | } | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | result = (bool)wxImage::CanRead(*arg1); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | { | |
10166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10167 | } | |
10168 | { | |
10169 | if (created1) | |
10170 | delete arg1; | |
10171 | } | |
10172 | return resultobj; | |
10173 | fail: | |
10174 | { | |
10175 | if (created1) | |
10176 | delete arg1; | |
10177 | } | |
10178 | return NULL; | |
10179 | } | |
10180 | ||
10181 | ||
c32bde28 | 10182 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10183 | PyObject *resultobj; |
10184 | wxImage *arg1 = (wxImage *) 0 ; | |
10185 | wxInputStream *arg2 = 0 ; | |
10186 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10187 | int arg4 = (int) -1 ; | |
10188 | bool result; | |
10189 | wxPyInputStream *temp2 ; | |
10190 | bool created2 ; | |
10191 | PyObject * obj0 = 0 ; | |
10192 | PyObject * obj1 = 0 ; | |
10193 | PyObject * obj2 = 0 ; | |
10194 | PyObject * obj3 = 0 ; | |
10195 | char *kwnames[] = { | |
10196 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10197 | }; | |
10198 | ||
10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10202 | { | |
10203 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10204 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10205 | created2 = false; |
d55e5bfc RD |
10206 | } else { |
10207 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10208 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10209 | if (arg2 == NULL) { |
10210 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10211 | SWIG_fail; | |
10212 | } | |
ae8162c8 | 10213 | created2 = true; |
d55e5bfc RD |
10214 | } |
10215 | } | |
10216 | if (obj2) { | |
c32bde28 | 10217 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10218 | if (PyErr_Occurred()) SWIG_fail; |
10219 | } | |
10220 | if (obj3) { | |
c32bde28 | 10221 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10222 | if (PyErr_Occurred()) SWIG_fail; |
10223 | } | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
10231 | { | |
10232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10233 | } | |
10234 | { | |
10235 | if (created2) | |
10236 | delete arg2; | |
10237 | } | |
10238 | return resultobj; | |
10239 | fail: | |
10240 | { | |
10241 | if (created2) | |
10242 | delete arg2; | |
10243 | } | |
10244 | return NULL; | |
10245 | } | |
10246 | ||
10247 | ||
c32bde28 | 10248 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10249 | PyObject *resultobj; |
10250 | wxImage *arg1 = (wxImage *) 0 ; | |
10251 | wxInputStream *arg2 = 0 ; | |
10252 | wxString *arg3 = 0 ; | |
10253 | int arg4 = (int) -1 ; | |
10254 | bool result; | |
10255 | wxPyInputStream *temp2 ; | |
10256 | bool created2 ; | |
ae8162c8 | 10257 | bool temp3 = false ; |
d55e5bfc RD |
10258 | PyObject * obj0 = 0 ; |
10259 | PyObject * obj1 = 0 ; | |
10260 | PyObject * obj2 = 0 ; | |
10261 | PyObject * obj3 = 0 ; | |
10262 | char *kwnames[] = { | |
10263 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10264 | }; | |
10265 | ||
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10269 | { | |
10270 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10271 | arg2 = temp2->m_wxis; | |
ae8162c8 | 10272 | created2 = false; |
d55e5bfc RD |
10273 | } else { |
10274 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
ae8162c8 | 10275 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10276 | if (arg2 == NULL) { |
10277 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10278 | SWIG_fail; | |
10279 | } | |
ae8162c8 | 10280 | created2 = true; |
d55e5bfc RD |
10281 | } |
10282 | } | |
10283 | { | |
10284 | arg3 = wxString_in_helper(obj2); | |
10285 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 10286 | temp3 = true; |
d55e5bfc RD |
10287 | } |
10288 | if (obj3) { | |
c32bde28 | 10289 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10290 | if (PyErr_Occurred()) SWIG_fail; |
10291 | } | |
10292 | { | |
10293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10294 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10295 | ||
10296 | wxPyEndAllowThreads(__tstate); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
10299 | { | |
10300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10301 | } | |
10302 | { | |
10303 | if (created2) | |
10304 | delete arg2; | |
10305 | } | |
10306 | { | |
10307 | if (temp3) | |
10308 | delete arg3; | |
10309 | } | |
10310 | return resultobj; | |
10311 | fail: | |
10312 | { | |
10313 | if (created2) | |
10314 | delete arg2; | |
10315 | } | |
10316 | { | |
10317 | if (temp3) | |
10318 | delete arg3; | |
10319 | } | |
10320 | return NULL; | |
10321 | } | |
10322 | ||
10323 | ||
c32bde28 | 10324 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10325 | PyObject *resultobj; |
10326 | wxImage *arg1 = (wxImage *) 0 ; | |
10327 | bool result; | |
10328 | PyObject * obj0 = 0 ; | |
10329 | char *kwnames[] = { | |
10330 | (char *) "self", NULL | |
10331 | }; | |
10332 | ||
10333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10336 | { | |
10337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10338 | result = (bool)(arg1)->Ok(); | |
10339 | ||
10340 | wxPyEndAllowThreads(__tstate); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
10343 | { | |
10344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10345 | } | |
10346 | return resultobj; | |
10347 | fail: | |
10348 | return NULL; | |
10349 | } | |
10350 | ||
10351 | ||
c32bde28 | 10352 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10353 | PyObject *resultobj; |
10354 | wxImage *arg1 = (wxImage *) 0 ; | |
10355 | int result; | |
10356 | PyObject * obj0 = 0 ; | |
10357 | char *kwnames[] = { | |
10358 | (char *) "self", NULL | |
10359 | }; | |
10360 | ||
10361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10364 | { | |
10365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10366 | result = (int)(arg1)->GetWidth(); | |
10367 | ||
10368 | wxPyEndAllowThreads(__tstate); | |
10369 | if (PyErr_Occurred()) SWIG_fail; | |
10370 | } | |
c32bde28 | 10371 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10372 | return resultobj; |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
c32bde28 | 10378 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10379 | PyObject *resultobj; |
10380 | wxImage *arg1 = (wxImage *) 0 ; | |
10381 | int result; | |
10382 | PyObject * obj0 = 0 ; | |
10383 | char *kwnames[] = { | |
10384 | (char *) "self", NULL | |
10385 | }; | |
10386 | ||
10387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10390 | { | |
10391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10392 | result = (int)(arg1)->GetHeight(); | |
10393 | ||
10394 | wxPyEndAllowThreads(__tstate); | |
10395 | if (PyErr_Occurred()) SWIG_fail; | |
10396 | } | |
c32bde28 | 10397 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10398 | return resultobj; |
10399 | fail: | |
10400 | return NULL; | |
10401 | } | |
10402 | ||
10403 | ||
c32bde28 | 10404 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10405 | PyObject *resultobj; |
10406 | wxImage *arg1 = (wxImage *) 0 ; | |
10407 | wxSize result; | |
10408 | PyObject * obj0 = 0 ; | |
10409 | char *kwnames[] = { | |
10410 | (char *) "self", NULL | |
10411 | }; | |
10412 | ||
10413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10416 | { | |
10417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10418 | result = wxImage_GetSize(arg1); | |
10419 | ||
10420 | wxPyEndAllowThreads(__tstate); | |
10421 | if (PyErr_Occurred()) SWIG_fail; | |
10422 | } | |
10423 | { | |
10424 | wxSize * resultptr; | |
10425 | resultptr = new wxSize((wxSize &) result); | |
10426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10427 | } | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
c32bde28 | 10434 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10435 | PyObject *resultobj; |
10436 | wxImage *arg1 = (wxImage *) 0 ; | |
10437 | wxRect *arg2 = 0 ; | |
10438 | SwigValueWrapper< wxImage > result; | |
10439 | wxRect temp2 ; | |
10440 | PyObject * obj0 = 0 ; | |
10441 | PyObject * obj1 = 0 ; | |
10442 | char *kwnames[] = { | |
10443 | (char *) "self",(char *) "rect", NULL | |
10444 | }; | |
10445 | ||
10446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10449 | { | |
10450 | arg2 = &temp2; | |
10451 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10452 | } | |
10453 | { | |
10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10455 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10456 | ||
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | { | |
10461 | wxImage * resultptr; | |
10462 | resultptr = new wxImage((wxImage &) result); | |
10463 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10464 | } | |
10465 | return resultobj; | |
10466 | fail: | |
10467 | return NULL; | |
10468 | } | |
10469 | ||
10470 | ||
c32bde28 | 10471 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10472 | PyObject *resultobj; |
10473 | wxImage *arg1 = (wxImage *) 0 ; | |
10474 | SwigValueWrapper< wxImage > result; | |
10475 | PyObject * obj0 = 0 ; | |
10476 | char *kwnames[] = { | |
10477 | (char *) "self", NULL | |
10478 | }; | |
10479 | ||
10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10483 | { | |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | result = (arg1)->Copy(); | |
10486 | ||
10487 | wxPyEndAllowThreads(__tstate); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | } | |
10490 | { | |
10491 | wxImage * resultptr; | |
10492 | resultptr = new wxImage((wxImage &) result); | |
10493 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10494 | } | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
c32bde28 | 10501 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10502 | PyObject *resultobj; |
10503 | wxImage *arg1 = (wxImage *) 0 ; | |
10504 | wxImage *arg2 = 0 ; | |
10505 | int arg3 ; | |
10506 | int arg4 ; | |
10507 | PyObject * obj0 = 0 ; | |
10508 | PyObject * obj1 = 0 ; | |
10509 | PyObject * obj2 = 0 ; | |
10510 | PyObject * obj3 = 0 ; | |
10511 | char *kwnames[] = { | |
10512 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10513 | }; | |
10514 | ||
10515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10518 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10520 | SWIG_fail; | |
10521 | if (arg2 == NULL) { | |
10522 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10523 | SWIG_fail; | |
10524 | } | |
c32bde28 | 10525 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10526 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10527 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10528 | if (PyErr_Occurred()) SWIG_fail; |
10529 | { | |
10530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10531 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10532 | ||
10533 | wxPyEndAllowThreads(__tstate); | |
10534 | if (PyErr_Occurred()) SWIG_fail; | |
10535 | } | |
10536 | Py_INCREF(Py_None); resultobj = Py_None; | |
10537 | return resultobj; | |
10538 | fail: | |
10539 | return NULL; | |
10540 | } | |
10541 | ||
10542 | ||
c32bde28 | 10543 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10544 | PyObject *resultobj; |
10545 | wxImage *arg1 = (wxImage *) 0 ; | |
10546 | PyObject *result; | |
10547 | PyObject * obj0 = 0 ; | |
10548 | char *kwnames[] = { | |
10549 | (char *) "self", NULL | |
10550 | }; | |
10551 | ||
10552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10555 | { | |
10556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10557 | result = (PyObject *)wxImage_GetData(arg1); | |
10558 | ||
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | } | |
10562 | resultobj = result; | |
10563 | return resultobj; | |
10564 | fail: | |
10565 | return NULL; | |
10566 | } | |
10567 | ||
10568 | ||
c32bde28 | 10569 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10570 | PyObject *resultobj; |
10571 | wxImage *arg1 = (wxImage *) 0 ; | |
10572 | PyObject *arg2 = (PyObject *) 0 ; | |
10573 | PyObject * obj0 = 0 ; | |
10574 | PyObject * obj1 = 0 ; | |
10575 | char *kwnames[] = { | |
10576 | (char *) "self",(char *) "data", NULL | |
10577 | }; | |
10578 | ||
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10582 | arg2 = obj1; | |
10583 | { | |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | wxImage_SetData(arg1,arg2); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | Py_INCREF(Py_None); resultobj = Py_None; | |
10591 | return resultobj; | |
10592 | fail: | |
10593 | return NULL; | |
10594 | } | |
10595 | ||
10596 | ||
c32bde28 | 10597 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10598 | PyObject *resultobj; |
10599 | wxImage *arg1 = (wxImage *) 0 ; | |
10600 | PyObject *result; | |
10601 | PyObject * obj0 = 0 ; | |
10602 | char *kwnames[] = { | |
10603 | (char *) "self", NULL | |
10604 | }; | |
10605 | ||
10606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10609 | { | |
10610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10611 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10612 | ||
10613 | wxPyEndAllowThreads(__tstate); | |
10614 | if (PyErr_Occurred()) SWIG_fail; | |
10615 | } | |
10616 | resultobj = result; | |
10617 | return resultobj; | |
10618 | fail: | |
10619 | return NULL; | |
10620 | } | |
10621 | ||
10622 | ||
c32bde28 | 10623 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10624 | PyObject *resultobj; |
10625 | wxImage *arg1 = (wxImage *) 0 ; | |
10626 | PyObject *arg2 = (PyObject *) 0 ; | |
10627 | PyObject * obj0 = 0 ; | |
10628 | PyObject * obj1 = 0 ; | |
10629 | char *kwnames[] = { | |
10630 | (char *) "self",(char *) "data", NULL | |
10631 | }; | |
10632 | ||
10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10636 | arg2 = obj1; | |
10637 | { | |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | wxImage_SetDataBuffer(arg1,arg2); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | Py_INCREF(Py_None); resultobj = Py_None; | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | return NULL; | |
10648 | } | |
10649 | ||
10650 | ||
c32bde28 | 10651 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10652 | PyObject *resultobj; |
10653 | wxImage *arg1 = (wxImage *) 0 ; | |
10654 | PyObject *result; | |
10655 | PyObject * obj0 = 0 ; | |
10656 | char *kwnames[] = { | |
10657 | (char *) "self", NULL | |
10658 | }; | |
10659 | ||
10660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10663 | { | |
10664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10665 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10666 | ||
10667 | wxPyEndAllowThreads(__tstate); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | } | |
10670 | resultobj = result; | |
10671 | return resultobj; | |
10672 | fail: | |
10673 | return NULL; | |
10674 | } | |
10675 | ||
10676 | ||
c32bde28 | 10677 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10678 | PyObject *resultobj; |
10679 | wxImage *arg1 = (wxImage *) 0 ; | |
10680 | PyObject *arg2 = (PyObject *) 0 ; | |
10681 | PyObject * obj0 = 0 ; | |
10682 | PyObject * obj1 = 0 ; | |
10683 | char *kwnames[] = { | |
10684 | (char *) "self",(char *) "data", NULL | |
10685 | }; | |
10686 | ||
10687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10690 | arg2 = obj1; | |
10691 | { | |
10692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10693 | wxImage_SetAlphaData(arg1,arg2); | |
10694 | ||
10695 | wxPyEndAllowThreads(__tstate); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | } | |
10698 | Py_INCREF(Py_None); resultobj = Py_None; | |
10699 | return resultobj; | |
10700 | fail: | |
10701 | return NULL; | |
10702 | } | |
10703 | ||
10704 | ||
c32bde28 | 10705 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10706 | PyObject *resultobj; |
10707 | wxImage *arg1 = (wxImage *) 0 ; | |
10708 | PyObject *result; | |
10709 | PyObject * obj0 = 0 ; | |
10710 | char *kwnames[] = { | |
10711 | (char *) "self", NULL | |
10712 | }; | |
10713 | ||
10714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10717 | { | |
10718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10719 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10720 | ||
10721 | wxPyEndAllowThreads(__tstate); | |
10722 | if (PyErr_Occurred()) SWIG_fail; | |
10723 | } | |
10724 | resultobj = result; | |
10725 | return resultobj; | |
10726 | fail: | |
10727 | return NULL; | |
10728 | } | |
10729 | ||
10730 | ||
c32bde28 | 10731 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10732 | PyObject *resultobj; |
10733 | wxImage *arg1 = (wxImage *) 0 ; | |
10734 | PyObject *arg2 = (PyObject *) 0 ; | |
10735 | PyObject * obj0 = 0 ; | |
10736 | PyObject * obj1 = 0 ; | |
10737 | char *kwnames[] = { | |
10738 | (char *) "self",(char *) "data", NULL | |
10739 | }; | |
10740 | ||
10741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10744 | arg2 = obj1; | |
10745 | { | |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10747 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10748 | ||
10749 | wxPyEndAllowThreads(__tstate); | |
10750 | if (PyErr_Occurred()) SWIG_fail; | |
10751 | } | |
10752 | Py_INCREF(Py_None); resultobj = Py_None; | |
10753 | return resultobj; | |
10754 | fail: | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
c32bde28 | 10759 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10760 | PyObject *resultobj; |
10761 | wxImage *arg1 = (wxImage *) 0 ; | |
10762 | unsigned char arg2 ; | |
10763 | unsigned char arg3 ; | |
10764 | unsigned char arg4 ; | |
10765 | PyObject * obj0 = 0 ; | |
10766 | PyObject * obj1 = 0 ; | |
10767 | PyObject * obj2 = 0 ; | |
10768 | PyObject * obj3 = 0 ; | |
10769 | char *kwnames[] = { | |
10770 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10771 | }; | |
10772 | ||
10773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10776 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 10777 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10778 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 10779 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 10780 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
10781 | if (PyErr_Occurred()) SWIG_fail; |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | Py_INCREF(Py_None); resultobj = Py_None; | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
c32bde28 | 10796 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10797 | PyObject *resultobj; |
10798 | wxImage *arg1 = (wxImage *) 0 ; | |
10799 | unsigned char result; | |
10800 | PyObject * obj0 = 0 ; | |
10801 | char *kwnames[] = { | |
10802 | (char *) "self", NULL | |
10803 | }; | |
10804 | ||
10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10808 | { | |
10809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10810 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10811 | ||
10812 | wxPyEndAllowThreads(__tstate); | |
10813 | if (PyErr_Occurred()) SWIG_fail; | |
10814 | } | |
c32bde28 | 10815 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10816 | return resultobj; |
10817 | fail: | |
10818 | return NULL; | |
10819 | } | |
10820 | ||
10821 | ||
c32bde28 | 10822 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10823 | PyObject *resultobj; |
10824 | wxImage *arg1 = (wxImage *) 0 ; | |
10825 | unsigned char result; | |
10826 | PyObject * obj0 = 0 ; | |
10827 | char *kwnames[] = { | |
10828 | (char *) "self", NULL | |
10829 | }; | |
10830 | ||
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10834 | { | |
10835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10836 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10837 | ||
10838 | wxPyEndAllowThreads(__tstate); | |
10839 | if (PyErr_Occurred()) SWIG_fail; | |
10840 | } | |
c32bde28 | 10841 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10842 | return resultobj; |
10843 | fail: | |
10844 | return NULL; | |
10845 | } | |
10846 | ||
10847 | ||
c32bde28 | 10848 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10849 | PyObject *resultobj; |
10850 | wxImage *arg1 = (wxImage *) 0 ; | |
10851 | unsigned char result; | |
10852 | PyObject * obj0 = 0 ; | |
10853 | char *kwnames[] = { | |
10854 | (char *) "self", NULL | |
10855 | }; | |
10856 | ||
10857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10860 | { | |
10861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10862 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10863 | ||
10864 | wxPyEndAllowThreads(__tstate); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | } | |
c32bde28 | 10867 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10868 | return resultobj; |
10869 | fail: | |
10870 | return NULL; | |
10871 | } | |
10872 | ||
10873 | ||
c32bde28 | 10874 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10875 | PyObject *resultobj; |
10876 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10877 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10878 | PyObject * obj0 = 0 ; |
10879 | PyObject * obj1 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self",(char *) "mask", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10887 | if (obj1) { | |
c32bde28 | 10888 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10889 | if (PyErr_Occurred()) SWIG_fail; |
10890 | } | |
10891 | { | |
10892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10893 | (arg1)->SetMask(arg2); | |
10894 | ||
10895 | wxPyEndAllowThreads(__tstate); | |
10896 | if (PyErr_Occurred()) SWIG_fail; | |
10897 | } | |
10898 | Py_INCREF(Py_None); resultobj = Py_None; | |
10899 | return resultobj; | |
10900 | fail: | |
10901 | return NULL; | |
10902 | } | |
10903 | ||
10904 | ||
c32bde28 | 10905 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10906 | PyObject *resultobj; |
10907 | wxImage *arg1 = (wxImage *) 0 ; | |
10908 | bool result; | |
10909 | PyObject * obj0 = 0 ; | |
10910 | char *kwnames[] = { | |
10911 | (char *) "self", NULL | |
10912 | }; | |
10913 | ||
10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10917 | { | |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | result = (bool)(arg1)->HasMask(); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | { | |
10925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10926 | } | |
10927 | return resultobj; | |
10928 | fail: | |
10929 | return NULL; | |
10930 | } | |
10931 | ||
10932 | ||
c32bde28 | 10933 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10934 | PyObject *resultobj; |
10935 | wxImage *arg1 = (wxImage *) 0 ; | |
10936 | double arg2 ; | |
10937 | wxPoint *arg3 = 0 ; | |
ae8162c8 | 10938 | bool arg4 = (bool) true ; |
d55e5bfc RD |
10939 | wxPoint *arg5 = (wxPoint *) NULL ; |
10940 | SwigValueWrapper< wxImage > result; | |
10941 | wxPoint temp3 ; | |
10942 | PyObject * obj0 = 0 ; | |
10943 | PyObject * obj1 = 0 ; | |
10944 | PyObject * obj2 = 0 ; | |
10945 | PyObject * obj3 = 0 ; | |
10946 | PyObject * obj4 = 0 ; | |
10947 | char *kwnames[] = { | |
10948 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10949 | }; | |
10950 | ||
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10954 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
10955 | if (PyErr_Occurred()) SWIG_fail; |
10956 | { | |
10957 | arg3 = &temp3; | |
10958 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10959 | } | |
10960 | if (obj3) { | |
c32bde28 | 10961 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
10962 | if (PyErr_Occurred()) SWIG_fail; |
10963 | } | |
10964 | if (obj4) { | |
10965 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10967 | } | |
10968 | { | |
10969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10970 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10971 | ||
10972 | wxPyEndAllowThreads(__tstate); | |
10973 | if (PyErr_Occurred()) SWIG_fail; | |
10974 | } | |
10975 | { | |
10976 | wxImage * resultptr; | |
10977 | resultptr = new wxImage((wxImage &) result); | |
10978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10979 | } | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
c32bde28 | 10986 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10987 | PyObject *resultobj; |
10988 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 10989 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10990 | SwigValueWrapper< wxImage > result; |
10991 | PyObject * obj0 = 0 ; | |
10992 | PyObject * obj1 = 0 ; | |
10993 | char *kwnames[] = { | |
10994 | (char *) "self",(char *) "clockwise", NULL | |
10995 | }; | |
10996 | ||
10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11000 | if (obj1) { | |
c32bde28 | 11001 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11002 | if (PyErr_Occurred()) SWIG_fail; |
11003 | } | |
11004 | { | |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | result = (arg1)->Rotate90(arg2); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
11011 | { | |
11012 | wxImage * resultptr; | |
11013 | resultptr = new wxImage((wxImage &) result); | |
11014 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11015 | } | |
11016 | return resultobj; | |
11017 | fail: | |
11018 | return NULL; | |
11019 | } | |
11020 | ||
11021 | ||
c32bde28 | 11022 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11023 | PyObject *resultobj; |
11024 | wxImage *arg1 = (wxImage *) 0 ; | |
ae8162c8 | 11025 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11026 | SwigValueWrapper< wxImage > result; |
11027 | PyObject * obj0 = 0 ; | |
11028 | PyObject * obj1 = 0 ; | |
11029 | char *kwnames[] = { | |
11030 | (char *) "self",(char *) "horizontally", NULL | |
11031 | }; | |
11032 | ||
11033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
11034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11036 | if (obj1) { | |
c32bde28 | 11037 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11038 | if (PyErr_Occurred()) SWIG_fail; |
11039 | } | |
11040 | { | |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = (arg1)->Mirror(arg2); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | { | |
11048 | wxImage * resultptr; | |
11049 | resultptr = new wxImage((wxImage &) result); | |
11050 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11051 | } | |
11052 | return resultobj; | |
11053 | fail: | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
c32bde28 | 11058 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11059 | PyObject *resultobj; |
11060 | wxImage *arg1 = (wxImage *) 0 ; | |
11061 | unsigned char arg2 ; | |
11062 | unsigned char arg3 ; | |
11063 | unsigned char arg4 ; | |
11064 | unsigned char arg5 ; | |
11065 | unsigned char arg6 ; | |
11066 | unsigned char arg7 ; | |
11067 | PyObject * obj0 = 0 ; | |
11068 | PyObject * obj1 = 0 ; | |
11069 | PyObject * obj2 = 0 ; | |
11070 | PyObject * obj3 = 0 ; | |
11071 | PyObject * obj4 = 0 ; | |
11072 | PyObject * obj5 = 0 ; | |
11073 | PyObject * obj6 = 0 ; | |
11074 | char *kwnames[] = { | |
11075 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11076 | }; | |
11077 | ||
11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11081 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11082 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11083 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11084 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11085 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 11086 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11087 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 11088 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11089 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc | 11090 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11091 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
d55e5bfc RD |
11092 | if (PyErr_Occurred()) SWIG_fail; |
11093 | { | |
11094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11095 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11096 | ||
11097 | wxPyEndAllowThreads(__tstate); | |
11098 | if (PyErr_Occurred()) SWIG_fail; | |
11099 | } | |
11100 | Py_INCREF(Py_None); resultobj = Py_None; | |
11101 | return resultobj; | |
11102 | fail: | |
11103 | return NULL; | |
11104 | } | |
11105 | ||
11106 | ||
c32bde28 | 11107 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11108 | PyObject *resultobj; |
11109 | wxImage *arg1 = (wxImage *) 0 ; | |
11110 | unsigned char arg2 ; | |
11111 | unsigned char arg3 ; | |
11112 | unsigned char arg4 ; | |
11113 | SwigValueWrapper< wxImage > result; | |
11114 | PyObject * obj0 = 0 ; | |
11115 | PyObject * obj1 = 0 ; | |
11116 | PyObject * obj2 = 0 ; | |
11117 | PyObject * obj3 = 0 ; | |
11118 | char *kwnames[] = { | |
11119 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11120 | }; | |
11121 | ||
11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11125 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11126 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11127 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11128 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11129 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11130 | if (PyErr_Occurred()) SWIG_fail; |
11131 | { | |
11132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11133 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11134 | ||
11135 | wxPyEndAllowThreads(__tstate); | |
11136 | if (PyErr_Occurred()) SWIG_fail; | |
11137 | } | |
11138 | { | |
11139 | wxImage * resultptr; | |
11140 | resultptr = new wxImage((wxImage &) result); | |
11141 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11142 | } | |
11143 | return resultobj; | |
11144 | fail: | |
11145 | return NULL; | |
11146 | } | |
11147 | ||
11148 | ||
c32bde28 | 11149 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11150 | PyObject *resultobj; |
11151 | wxImage *arg1 = (wxImage *) 0 ; | |
11152 | wxString *arg2 = 0 ; | |
11153 | wxString *arg3 = 0 ; | |
ae8162c8 RD |
11154 | bool temp2 = false ; |
11155 | bool temp3 = false ; | |
d55e5bfc RD |
11156 | PyObject * obj0 = 0 ; |
11157 | PyObject * obj1 = 0 ; | |
11158 | PyObject * obj2 = 0 ; | |
11159 | char *kwnames[] = { | |
11160 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11161 | }; | |
11162 | ||
11163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11166 | { | |
11167 | arg2 = wxString_in_helper(obj1); | |
11168 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11169 | temp2 = true; |
d55e5bfc RD |
11170 | } |
11171 | { | |
11172 | arg3 = wxString_in_helper(obj2); | |
11173 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 11174 | temp3 = true; |
d55e5bfc RD |
11175 | } |
11176 | { | |
11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11178 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11179 | ||
11180 | wxPyEndAllowThreads(__tstate); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | Py_INCREF(Py_None); resultobj = Py_None; | |
11184 | { | |
11185 | if (temp2) | |
11186 | delete arg2; | |
11187 | } | |
11188 | { | |
11189 | if (temp3) | |
11190 | delete arg3; | |
11191 | } | |
11192 | return resultobj; | |
11193 | fail: | |
11194 | { | |
11195 | if (temp2) | |
11196 | delete arg2; | |
11197 | } | |
11198 | { | |
11199 | if (temp3) | |
11200 | delete arg3; | |
11201 | } | |
11202 | return NULL; | |
11203 | } | |
11204 | ||
11205 | ||
c32bde28 | 11206 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11207 | PyObject *resultobj; |
11208 | wxImage *arg1 = (wxImage *) 0 ; | |
11209 | wxString *arg2 = 0 ; | |
11210 | int arg3 ; | |
ae8162c8 | 11211 | bool temp2 = false ; |
d55e5bfc RD |
11212 | PyObject * obj0 = 0 ; |
11213 | PyObject * obj1 = 0 ; | |
11214 | PyObject * obj2 = 0 ; | |
11215 | char *kwnames[] = { | |
11216 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11217 | }; | |
11218 | ||
11219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11222 | { | |
11223 | arg2 = wxString_in_helper(obj1); | |
11224 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11225 | temp2 = true; |
d55e5bfc | 11226 | } |
c32bde28 | 11227 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11228 | if (PyErr_Occurred()) SWIG_fail; |
11229 | { | |
11230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11231 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11232 | ||
11233 | wxPyEndAllowThreads(__tstate); | |
11234 | if (PyErr_Occurred()) SWIG_fail; | |
11235 | } | |
11236 | Py_INCREF(Py_None); resultobj = Py_None; | |
11237 | { | |
11238 | if (temp2) | |
11239 | delete arg2; | |
11240 | } | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | { | |
11244 | if (temp2) | |
11245 | delete arg2; | |
11246 | } | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
c32bde28 | 11251 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11252 | PyObject *resultobj; |
11253 | wxImage *arg1 = (wxImage *) 0 ; | |
11254 | wxString *arg2 = 0 ; | |
11255 | wxString result; | |
ae8162c8 | 11256 | bool temp2 = false ; |
d55e5bfc RD |
11257 | PyObject * obj0 = 0 ; |
11258 | PyObject * obj1 = 0 ; | |
11259 | char *kwnames[] = { | |
11260 | (char *) "self",(char *) "name", NULL | |
11261 | }; | |
11262 | ||
11263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
11264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11266 | { | |
11267 | arg2 = wxString_in_helper(obj1); | |
11268 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11269 | temp2 = true; |
d55e5bfc RD |
11270 | } |
11271 | { | |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11273 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | { | |
11279 | #if wxUSE_UNICODE | |
11280 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11281 | #else | |
11282 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11283 | #endif | |
11284 | } | |
11285 | { | |
11286 | if (temp2) | |
11287 | delete arg2; | |
11288 | } | |
11289 | return resultobj; | |
11290 | fail: | |
11291 | { | |
11292 | if (temp2) | |
11293 | delete arg2; | |
11294 | } | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
c32bde28 | 11299 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11300 | PyObject *resultobj; |
11301 | wxImage *arg1 = (wxImage *) 0 ; | |
11302 | wxString *arg2 = 0 ; | |
11303 | int result; | |
ae8162c8 | 11304 | bool temp2 = false ; |
d55e5bfc RD |
11305 | PyObject * obj0 = 0 ; |
11306 | PyObject * obj1 = 0 ; | |
11307 | char *kwnames[] = { | |
11308 | (char *) "self",(char *) "name", NULL | |
11309 | }; | |
11310 | ||
11311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11314 | { | |
11315 | arg2 = wxString_in_helper(obj1); | |
11316 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11317 | temp2 = true; |
d55e5bfc RD |
11318 | } |
11319 | { | |
11320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11321 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11322 | ||
11323 | wxPyEndAllowThreads(__tstate); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
c32bde28 | 11326 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11327 | { |
11328 | if (temp2) | |
11329 | delete arg2; | |
11330 | } | |
11331 | return resultobj; | |
11332 | fail: | |
11333 | { | |
11334 | if (temp2) | |
11335 | delete arg2; | |
11336 | } | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
c32bde28 | 11341 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11342 | PyObject *resultobj; |
11343 | wxImage *arg1 = (wxImage *) 0 ; | |
11344 | wxString *arg2 = 0 ; | |
11345 | bool result; | |
ae8162c8 | 11346 | bool temp2 = false ; |
d55e5bfc RD |
11347 | PyObject * obj0 = 0 ; |
11348 | PyObject * obj1 = 0 ; | |
11349 | char *kwnames[] = { | |
11350 | (char *) "self",(char *) "name", NULL | |
11351 | }; | |
11352 | ||
11353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11356 | { | |
11357 | arg2 = wxString_in_helper(obj1); | |
11358 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11359 | temp2 = true; |
d55e5bfc RD |
11360 | } |
11361 | { | |
11362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11363 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11364 | ||
11365 | wxPyEndAllowThreads(__tstate); | |
11366 | if (PyErr_Occurred()) SWIG_fail; | |
11367 | } | |
11368 | { | |
11369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11370 | } | |
11371 | { | |
11372 | if (temp2) | |
11373 | delete arg2; | |
11374 | } | |
11375 | return resultobj; | |
11376 | fail: | |
11377 | { | |
11378 | if (temp2) | |
11379 | delete arg2; | |
11380 | } | |
11381 | return NULL; | |
11382 | } | |
11383 | ||
11384 | ||
c32bde28 | 11385 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11386 | PyObject *resultobj; |
11387 | wxImage *arg1 = (wxImage *) 0 ; | |
11388 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11389 | unsigned long result; | |
11390 | PyObject * obj0 = 0 ; | |
11391 | PyObject * obj1 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self",(char *) "stopafter", NULL | |
11394 | }; | |
11395 | ||
11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11399 | if (obj1) { | |
c32bde28 | 11400 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
11401 | if (PyErr_Occurred()) SWIG_fail; |
11402 | } | |
11403 | { | |
11404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11405 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11406 | ||
11407 | wxPyEndAllowThreads(__tstate); | |
11408 | if (PyErr_Occurred()) SWIG_fail; | |
11409 | } | |
c32bde28 | 11410 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11411 | return resultobj; |
11412 | fail: | |
11413 | return NULL; | |
11414 | } | |
11415 | ||
11416 | ||
c32bde28 | 11417 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11418 | PyObject *resultobj; |
11419 | wxImage *arg1 = (wxImage *) 0 ; | |
11420 | wxImageHistogram *arg2 = 0 ; | |
11421 | unsigned long result; | |
11422 | PyObject * obj0 = 0 ; | |
11423 | PyObject * obj1 = 0 ; | |
11424 | char *kwnames[] = { | |
11425 | (char *) "self",(char *) "h", NULL | |
11426 | }; | |
11427 | ||
11428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11433 | SWIG_fail; | |
11434 | if (arg2 == NULL) { | |
11435 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11436 | SWIG_fail; | |
11437 | } | |
11438 | { | |
11439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11440 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11441 | ||
11442 | wxPyEndAllowThreads(__tstate); | |
11443 | if (PyErr_Occurred()) SWIG_fail; | |
11444 | } | |
c32bde28 | 11445 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11446 | return resultobj; |
11447 | fail: | |
11448 | return NULL; | |
11449 | } | |
11450 | ||
11451 | ||
c32bde28 | 11452 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11453 | PyObject *resultobj; |
11454 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | char *kwnames[] = { | |
11457 | (char *) "handler", NULL | |
11458 | }; | |
11459 | ||
11460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11463 | { | |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | wxImage::AddHandler(arg1); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | Py_INCREF(Py_None); resultobj = Py_None; | |
11471 | return resultobj; | |
11472 | fail: | |
11473 | return NULL; | |
11474 | } | |
11475 | ||
11476 | ||
c32bde28 | 11477 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11478 | PyObject *resultobj; |
11479 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11480 | PyObject * obj0 = 0 ; | |
11481 | char *kwnames[] = { | |
11482 | (char *) "handler", NULL | |
11483 | }; | |
11484 | ||
11485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11488 | { | |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | wxImage::InsertHandler(arg1); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
11495 | Py_INCREF(Py_None); resultobj = Py_None; | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
c32bde28 | 11502 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11503 | PyObject *resultobj; |
11504 | wxString *arg1 = 0 ; | |
11505 | bool result; | |
ae8162c8 | 11506 | bool temp1 = false ; |
d55e5bfc RD |
11507 | PyObject * obj0 = 0 ; |
11508 | char *kwnames[] = { | |
11509 | (char *) "name", NULL | |
11510 | }; | |
11511 | ||
11512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11513 | { | |
11514 | arg1 = wxString_in_helper(obj0); | |
11515 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11516 | temp1 = true; |
d55e5bfc RD |
11517 | } |
11518 | { | |
11519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11520 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11521 | ||
11522 | wxPyEndAllowThreads(__tstate); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
11525 | { | |
11526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11527 | } | |
11528 | { | |
11529 | if (temp1) | |
11530 | delete arg1; | |
11531 | } | |
11532 | return resultobj; | |
11533 | fail: | |
11534 | { | |
11535 | if (temp1) | |
11536 | delete arg1; | |
11537 | } | |
11538 | return NULL; | |
11539 | } | |
11540 | ||
11541 | ||
c32bde28 | 11542 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11543 | PyObject *resultobj; |
11544 | wxString result; | |
11545 | char *kwnames[] = { | |
11546 | NULL | |
11547 | }; | |
11548 | ||
11549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11550 | { | |
11551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11552 | result = wxImage::GetImageExtWildcard(); | |
11553 | ||
11554 | wxPyEndAllowThreads(__tstate); | |
11555 | if (PyErr_Occurred()) SWIG_fail; | |
11556 | } | |
11557 | { | |
11558 | #if wxUSE_UNICODE | |
11559 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11560 | #else | |
11561 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11562 | #endif | |
11563 | } | |
11564 | return resultobj; | |
11565 | fail: | |
11566 | return NULL; | |
11567 | } | |
11568 | ||
11569 | ||
c32bde28 | 11570 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11571 | PyObject *resultobj; |
11572 | wxImage *arg1 = (wxImage *) 0 ; | |
1fbf26be | 11573 | int arg2 = (int) -1 ; |
d55e5bfc RD |
11574 | wxBitmap result; |
11575 | PyObject * obj0 = 0 ; | |
1fbf26be | 11576 | PyObject * obj1 = 0 ; |
d55e5bfc | 11577 | char *kwnames[] = { |
1fbf26be | 11578 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
11579 | }; |
11580 | ||
1fbf26be | 11581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fbf26be RD |
11584 | if (obj1) { |
11585 | arg2 = (int)SWIG_As_int(obj1); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
d55e5bfc | 11588 | { |
0439c23b | 11589 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fbf26be | 11591 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
11592 | |
11593 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11594 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11595 | } |
11596 | { | |
11597 | wxBitmap * resultptr; | |
11598 | resultptr = new wxBitmap((wxBitmap &) result); | |
11599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11600 | } | |
11601 | return resultobj; | |
11602 | fail: | |
11603 | return NULL; | |
11604 | } | |
11605 | ||
11606 | ||
c32bde28 | 11607 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11608 | PyObject *resultobj; |
11609 | wxImage *arg1 = (wxImage *) 0 ; | |
11610 | unsigned char arg2 ; | |
11611 | unsigned char arg3 ; | |
11612 | unsigned char arg4 ; | |
11613 | wxBitmap result; | |
11614 | PyObject * obj0 = 0 ; | |
11615 | PyObject * obj1 = 0 ; | |
11616 | PyObject * obj2 = 0 ; | |
11617 | PyObject * obj3 = 0 ; | |
11618 | char *kwnames[] = { | |
11619 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11620 | }; | |
11621 | ||
11622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11625 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11626 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11627 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11628 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 11629 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11630 | if (PyErr_Occurred()) SWIG_fail; |
11631 | { | |
0439c23b | 11632 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11634 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11635 | ||
11636 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11637 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11638 | } |
11639 | { | |
11640 | wxBitmap * resultptr; | |
11641 | resultptr = new wxBitmap((wxBitmap &) result); | |
11642 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11643 | } | |
11644 | return resultobj; | |
11645 | fail: | |
11646 | return NULL; | |
11647 | } | |
11648 | ||
11649 | ||
c32bde28 | 11650 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11651 | PyObject *obj; |
11652 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11653 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11654 | Py_INCREF(obj); | |
11655 | return Py_BuildValue((char *)""); | |
11656 | } | |
c32bde28 | 11657 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
11658 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11659 | return 1; | |
11660 | } | |
11661 | ||
11662 | ||
11663 | static PyObject *_wrap_NullImage_get() { | |
11664 | PyObject *pyobj; | |
11665 | ||
11666 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11667 | return pyobj; | |
11668 | } | |
11669 | ||
11670 | ||
c32bde28 | 11671 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
11672 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11673 | return 1; | |
11674 | } | |
11675 | ||
11676 | ||
11677 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11678 | PyObject *pyobj; | |
11679 | ||
11680 | { | |
11681 | #if wxUSE_UNICODE | |
11682 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11683 | #else | |
11684 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11685 | #endif | |
11686 | } | |
11687 | return pyobj; | |
11688 | } | |
11689 | ||
11690 | ||
c32bde28 | 11691 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
11692 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11693 | return 1; | |
11694 | } | |
11695 | ||
11696 | ||
11697 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11698 | PyObject *pyobj; | |
11699 | ||
11700 | { | |
11701 | #if wxUSE_UNICODE | |
11702 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11703 | #else | |
11704 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11705 | #endif | |
11706 | } | |
11707 | return pyobj; | |
11708 | } | |
11709 | ||
11710 | ||
c32bde28 | 11711 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
11712 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11713 | return 1; | |
11714 | } | |
11715 | ||
11716 | ||
11717 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11718 | PyObject *pyobj; | |
11719 | ||
11720 | { | |
11721 | #if wxUSE_UNICODE | |
11722 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11723 | #else | |
11724 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11725 | #endif | |
11726 | } | |
11727 | return pyobj; | |
11728 | } | |
11729 | ||
11730 | ||
c32bde28 | 11731 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
11732 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11733 | return 1; | |
11734 | } | |
11735 | ||
11736 | ||
11737 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11738 | PyObject *pyobj; | |
11739 | ||
11740 | { | |
11741 | #if wxUSE_UNICODE | |
11742 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11743 | #else | |
11744 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11745 | #endif | |
11746 | } | |
11747 | return pyobj; | |
11748 | } | |
11749 | ||
11750 | ||
c32bde28 | 11751 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
11752 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11753 | return 1; | |
11754 | } | |
11755 | ||
11756 | ||
11757 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11758 | PyObject *pyobj; | |
11759 | ||
11760 | { | |
11761 | #if wxUSE_UNICODE | |
11762 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11763 | #else | |
11764 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11765 | #endif | |
11766 | } | |
11767 | return pyobj; | |
11768 | } | |
11769 | ||
11770 | ||
c32bde28 | 11771 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11772 | PyObject *resultobj; |
11773 | wxBMPHandler *result; | |
11774 | char *kwnames[] = { | |
11775 | NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11782 | ||
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
11790 | } | |
11791 | ||
11792 | ||
c32bde28 | 11793 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11794 | PyObject *obj; |
11795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11796 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11797 | Py_INCREF(obj); | |
11798 | return Py_BuildValue((char *)""); | |
11799 | } | |
c32bde28 | 11800 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11801 | PyObject *resultobj; |
11802 | wxICOHandler *result; | |
11803 | char *kwnames[] = { | |
11804 | NULL | |
11805 | }; | |
11806 | ||
11807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11808 | { | |
11809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11810 | result = (wxICOHandler *)new wxICOHandler(); | |
11811 | ||
11812 | wxPyEndAllowThreads(__tstate); | |
11813 | if (PyErr_Occurred()) SWIG_fail; | |
11814 | } | |
11815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11816 | return resultobj; | |
11817 | fail: | |
11818 | return NULL; | |
11819 | } | |
11820 | ||
11821 | ||
c32bde28 | 11822 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11823 | PyObject *obj; |
11824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11825 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11826 | Py_INCREF(obj); | |
11827 | return Py_BuildValue((char *)""); | |
11828 | } | |
c32bde28 | 11829 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11830 | PyObject *resultobj; |
11831 | wxCURHandler *result; | |
11832 | char *kwnames[] = { | |
11833 | NULL | |
11834 | }; | |
11835 | ||
11836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11837 | { | |
11838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11839 | result = (wxCURHandler *)new wxCURHandler(); | |
11840 | ||
11841 | wxPyEndAllowThreads(__tstate); | |
11842 | if (PyErr_Occurred()) SWIG_fail; | |
11843 | } | |
11844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
11848 | } | |
11849 | ||
11850 | ||
c32bde28 | 11851 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11852 | PyObject *obj; |
11853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11854 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11855 | Py_INCREF(obj); | |
11856 | return Py_BuildValue((char *)""); | |
11857 | } | |
c32bde28 | 11858 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11859 | PyObject *resultobj; |
11860 | wxANIHandler *result; | |
11861 | char *kwnames[] = { | |
11862 | NULL | |
11863 | }; | |
11864 | ||
11865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | result = (wxANIHandler *)new wxANIHandler(); | |
11869 | ||
11870 | wxPyEndAllowThreads(__tstate); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11874 | return resultobj; | |
11875 | fail: | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
c32bde28 | 11880 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11881 | PyObject *obj; |
11882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11883 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11884 | Py_INCREF(obj); | |
11885 | return Py_BuildValue((char *)""); | |
11886 | } | |
c32bde28 | 11887 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11888 | PyObject *resultobj; |
11889 | wxPNGHandler *result; | |
11890 | char *kwnames[] = { | |
11891 | NULL | |
11892 | }; | |
11893 | ||
11894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11895 | { | |
11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11897 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11898 | ||
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
11902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11903 | return resultobj; | |
11904 | fail: | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
c32bde28 | 11909 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11910 | PyObject *obj; |
11911 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11912 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11913 | Py_INCREF(obj); | |
11914 | return Py_BuildValue((char *)""); | |
11915 | } | |
c32bde28 | 11916 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11917 | PyObject *resultobj; |
11918 | wxGIFHandler *result; | |
11919 | char *kwnames[] = { | |
11920 | NULL | |
11921 | }; | |
11922 | ||
11923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11924 | { | |
11925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11926 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11927 | ||
11928 | wxPyEndAllowThreads(__tstate); | |
11929 | if (PyErr_Occurred()) SWIG_fail; | |
11930 | } | |
11931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11932 | return resultobj; | |
11933 | fail: | |
11934 | return NULL; | |
11935 | } | |
11936 | ||
11937 | ||
c32bde28 | 11938 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11939 | PyObject *obj; |
11940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11941 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11942 | Py_INCREF(obj); | |
11943 | return Py_BuildValue((char *)""); | |
11944 | } | |
c32bde28 | 11945 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11946 | PyObject *resultobj; |
11947 | wxPCXHandler *result; | |
11948 | char *kwnames[] = { | |
11949 | NULL | |
11950 | }; | |
11951 | ||
11952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11953 | { | |
11954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11955 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11956 | ||
11957 | wxPyEndAllowThreads(__tstate); | |
11958 | if (PyErr_Occurred()) SWIG_fail; | |
11959 | } | |
11960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11961 | return resultobj; | |
11962 | fail: | |
11963 | return NULL; | |
11964 | } | |
11965 | ||
11966 | ||
c32bde28 | 11967 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11968 | PyObject *obj; |
11969 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11970 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11971 | Py_INCREF(obj); | |
11972 | return Py_BuildValue((char *)""); | |
11973 | } | |
c32bde28 | 11974 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11975 | PyObject *resultobj; |
11976 | wxJPEGHandler *result; | |
11977 | char *kwnames[] = { | |
11978 | NULL | |
11979 | }; | |
11980 | ||
11981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11984 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11985 | ||
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
11989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11990 | return resultobj; | |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
c32bde28 | 11996 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11997 | PyObject *obj; |
11998 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11999 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
12000 | Py_INCREF(obj); | |
12001 | return Py_BuildValue((char *)""); | |
12002 | } | |
c32bde28 | 12003 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12004 | PyObject *resultobj; |
12005 | wxPNMHandler *result; | |
12006 | char *kwnames[] = { | |
12007 | NULL | |
12008 | }; | |
12009 | ||
12010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
12011 | { | |
12012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12013 | result = (wxPNMHandler *)new wxPNMHandler(); | |
12014 | ||
12015 | wxPyEndAllowThreads(__tstate); | |
12016 | if (PyErr_Occurred()) SWIG_fail; | |
12017 | } | |
12018 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
12019 | return resultobj; | |
12020 | fail: | |
12021 | return NULL; | |
12022 | } | |
12023 | ||
12024 | ||
c32bde28 | 12025 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12026 | PyObject *obj; |
12027 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12028 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
12029 | Py_INCREF(obj); | |
12030 | return Py_BuildValue((char *)""); | |
12031 | } | |
c32bde28 | 12032 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12033 | PyObject *resultobj; |
12034 | wxXPMHandler *result; | |
12035 | char *kwnames[] = { | |
12036 | NULL | |
12037 | }; | |
12038 | ||
12039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | result = (wxXPMHandler *)new wxXPMHandler(); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
12048 | return resultobj; | |
12049 | fail: | |
12050 | return NULL; | |
12051 | } | |
12052 | ||
12053 | ||
c32bde28 | 12054 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12055 | PyObject *obj; |
12056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12057 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12058 | Py_INCREF(obj); | |
12059 | return Py_BuildValue((char *)""); | |
12060 | } | |
c32bde28 | 12061 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12062 | PyObject *resultobj; |
12063 | wxTIFFHandler *result; | |
12064 | char *kwnames[] = { | |
12065 | NULL | |
12066 | }; | |
12067 | ||
12068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12069 | { | |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12071 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12072 | ||
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
12076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
c32bde28 | 12083 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12084 | PyObject *obj; |
12085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12086 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12087 | Py_INCREF(obj); | |
12088 | return Py_BuildValue((char *)""); | |
12089 | } | |
c32bde28 | 12090 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12091 | PyObject *resultobj; |
12092 | wxImage *arg1 = 0 ; | |
12093 | wxImage *arg2 = 0 ; | |
12094 | int arg3 = (int) 236 ; | |
12095 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12096 | bool result; | |
12097 | PyObject * obj0 = 0 ; | |
12098 | PyObject * obj1 = 0 ; | |
12099 | PyObject * obj2 = 0 ; | |
12100 | PyObject * obj3 = 0 ; | |
12101 | char *kwnames[] = { | |
12102 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12103 | }; | |
12104 | ||
12105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12108 | SWIG_fail; | |
12109 | if (arg1 == NULL) { | |
12110 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12111 | SWIG_fail; | |
12112 | } | |
12113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12114 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12115 | SWIG_fail; | |
12116 | if (arg2 == NULL) { | |
12117 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12118 | SWIG_fail; | |
12119 | } | |
12120 | if (obj2) { | |
c32bde28 | 12121 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12122 | if (PyErr_Occurred()) SWIG_fail; |
12123 | } | |
12124 | if (obj3) { | |
c32bde28 | 12125 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12126 | if (PyErr_Occurred()) SWIG_fail; |
12127 | } | |
12128 | { | |
12129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12130 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12131 | ||
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
12135 | { | |
12136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12137 | } | |
12138 | return resultobj; | |
12139 | fail: | |
12140 | return NULL; | |
12141 | } | |
12142 | ||
12143 | ||
c32bde28 | 12144 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12145 | PyObject *obj; |
12146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12147 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12148 | Py_INCREF(obj); | |
12149 | return Py_BuildValue((char *)""); | |
12150 | } | |
c32bde28 | 12151 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12152 | PyObject *resultobj; |
12153 | wxEvtHandler *result; | |
12154 | char *kwnames[] = { | |
12155 | NULL | |
12156 | }; | |
12157 | ||
12158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12161 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12162 | ||
12163 | wxPyEndAllowThreads(__tstate); | |
12164 | if (PyErr_Occurred()) SWIG_fail; | |
12165 | } | |
b0f7404b | 12166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
12167 | return resultobj; |
12168 | fail: | |
12169 | return NULL; | |
12170 | } | |
12171 | ||
12172 | ||
c32bde28 | 12173 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12174 | PyObject *resultobj; |
12175 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12176 | wxEvtHandler *result; | |
12177 | PyObject * obj0 = 0 ; | |
12178 | char *kwnames[] = { | |
12179 | (char *) "self", NULL | |
12180 | }; | |
12181 | ||
12182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
12183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12185 | { | |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12187 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12188 | ||
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | { | |
412d302d | 12193 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12194 | } |
12195 | return resultobj; | |
12196 | fail: | |
12197 | return NULL; | |
12198 | } | |
12199 | ||
12200 | ||
c32bde28 | 12201 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12202 | PyObject *resultobj; |
12203 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12204 | wxEvtHandler *result; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
12211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12213 | { | |
12214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12215 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12216 | ||
12217 | wxPyEndAllowThreads(__tstate); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | { | |
412d302d | 12221 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12222 | } |
12223 | return resultobj; | |
12224 | fail: | |
12225 | return NULL; | |
12226 | } | |
12227 | ||
12228 | ||
c32bde28 | 12229 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12230 | PyObject *resultobj; |
12231 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12232 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12233 | PyObject * obj0 = 0 ; | |
12234 | PyObject * obj1 = 0 ; | |
12235 | char *kwnames[] = { | |
12236 | (char *) "self",(char *) "handler", NULL | |
12237 | }; | |
12238 | ||
12239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
12240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12242 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12244 | { | |
12245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12246 | (arg1)->SetNextHandler(arg2); | |
12247 | ||
12248 | wxPyEndAllowThreads(__tstate); | |
12249 | if (PyErr_Occurred()) SWIG_fail; | |
12250 | } | |
12251 | Py_INCREF(Py_None); resultobj = Py_None; | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | return NULL; | |
12255 | } | |
12256 | ||
12257 | ||
c32bde28 | 12258 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12259 | PyObject *resultobj; |
12260 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12261 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12262 | PyObject * obj0 = 0 ; | |
12263 | PyObject * obj1 = 0 ; | |
12264 | char *kwnames[] = { | |
12265 | (char *) "self",(char *) "handler", NULL | |
12266 | }; | |
12267 | ||
12268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
12269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12271 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12273 | { | |
12274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12275 | (arg1)->SetPreviousHandler(arg2); | |
12276 | ||
12277 | wxPyEndAllowThreads(__tstate); | |
12278 | if (PyErr_Occurred()) SWIG_fail; | |
12279 | } | |
12280 | Py_INCREF(Py_None); resultobj = Py_None; | |
12281 | return resultobj; | |
12282 | fail: | |
12283 | return NULL; | |
12284 | } | |
12285 | ||
12286 | ||
c32bde28 | 12287 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12288 | PyObject *resultobj; |
12289 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12290 | bool result; | |
12291 | PyObject * obj0 = 0 ; | |
12292 | char *kwnames[] = { | |
12293 | (char *) "self", NULL | |
12294 | }; | |
12295 | ||
12296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12299 | { | |
12300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12301 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12302 | ||
12303 | wxPyEndAllowThreads(__tstate); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | { | |
12307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12308 | } | |
12309 | return resultobj; | |
12310 | fail: | |
12311 | return NULL; | |
12312 | } | |
12313 | ||
12314 | ||
c32bde28 | 12315 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12316 | PyObject *resultobj; |
12317 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12318 | bool arg2 ; | |
12319 | PyObject * obj0 = 0 ; | |
12320 | PyObject * obj1 = 0 ; | |
12321 | char *kwnames[] = { | |
12322 | (char *) "self",(char *) "enabled", NULL | |
12323 | }; | |
12324 | ||
12325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12328 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12329 | if (PyErr_Occurred()) SWIG_fail; |
12330 | { | |
12331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12332 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12333 | ||
12334 | wxPyEndAllowThreads(__tstate); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | Py_INCREF(Py_None); resultobj = Py_None; | |
12338 | return resultobj; | |
12339 | fail: | |
12340 | return NULL; | |
12341 | } | |
12342 | ||
12343 | ||
c32bde28 | 12344 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12345 | PyObject *resultobj; |
12346 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12347 | wxEvent *arg2 = 0 ; | |
12348 | bool result; | |
12349 | PyObject * obj0 = 0 ; | |
12350 | PyObject * obj1 = 0 ; | |
12351 | char *kwnames[] = { | |
12352 | (char *) "self",(char *) "event", NULL | |
12353 | }; | |
12354 | ||
12355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12359 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12360 | SWIG_fail; | |
12361 | if (arg2 == NULL) { | |
12362 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12363 | SWIG_fail; | |
12364 | } | |
12365 | { | |
12366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12367 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12368 | ||
12369 | wxPyEndAllowThreads(__tstate); | |
12370 | if (PyErr_Occurred()) SWIG_fail; | |
12371 | } | |
12372 | { | |
12373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12374 | } | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
c32bde28 | 12381 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12382 | PyObject *resultobj; |
12383 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12384 | wxEvent *arg2 = 0 ; | |
12385 | PyObject * obj0 = 0 ; | |
12386 | PyObject * obj1 = 0 ; | |
12387 | char *kwnames[] = { | |
12388 | (char *) "self",(char *) "event", NULL | |
12389 | }; | |
12390 | ||
12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12396 | SWIG_fail; | |
12397 | if (arg2 == NULL) { | |
12398 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12399 | SWIG_fail; | |
12400 | } | |
12401 | { | |
12402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12403 | (arg1)->AddPendingEvent(*arg2); | |
12404 | ||
12405 | wxPyEndAllowThreads(__tstate); | |
12406 | if (PyErr_Occurred()) SWIG_fail; | |
12407 | } | |
12408 | Py_INCREF(Py_None); resultobj = Py_None; | |
12409 | return resultobj; | |
12410 | fail: | |
12411 | return NULL; | |
12412 | } | |
12413 | ||
12414 | ||
c32bde28 | 12415 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12416 | PyObject *resultobj; |
12417 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12418 | PyObject * obj0 = 0 ; | |
12419 | char *kwnames[] = { | |
12420 | (char *) "self", NULL | |
12421 | }; | |
12422 | ||
12423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12426 | { | |
12427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12428 | (arg1)->ProcessPendingEvents(); | |
12429 | ||
12430 | wxPyEndAllowThreads(__tstate); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | } | |
12433 | Py_INCREF(Py_None); resultobj = Py_None; | |
12434 | return resultobj; | |
12435 | fail: | |
12436 | return NULL; | |
12437 | } | |
12438 | ||
12439 | ||
c32bde28 | 12440 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12441 | PyObject *resultobj; |
12442 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12443 | int arg2 ; | |
12444 | int arg3 ; | |
12445 | int arg4 ; | |
12446 | PyObject *arg5 = (PyObject *) 0 ; | |
12447 | PyObject * obj0 = 0 ; | |
12448 | PyObject * obj1 = 0 ; | |
12449 | PyObject * obj2 = 0 ; | |
12450 | PyObject * obj3 = 0 ; | |
12451 | PyObject * obj4 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12459 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12460 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12461 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12462 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 12463 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12464 | if (PyErr_Occurred()) SWIG_fail; |
12465 | arg5 = obj4; | |
12466 | { | |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12468 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
12473 | Py_INCREF(Py_None); resultobj = Py_None; | |
12474 | return resultobj; | |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
c32bde28 | 12480 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12481 | PyObject *resultobj; |
12482 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12483 | int arg2 ; | |
12484 | int arg3 = (int) -1 ; | |
12485 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12486 | bool result; | |
12487 | PyObject * obj0 = 0 ; | |
12488 | PyObject * obj1 = 0 ; | |
12489 | PyObject * obj2 = 0 ; | |
12490 | PyObject * obj3 = 0 ; | |
12491 | char *kwnames[] = { | |
12492 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12493 | }; | |
12494 | ||
12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12498 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12499 | if (PyErr_Occurred()) SWIG_fail; |
12500 | if (obj2) { | |
c32bde28 | 12501 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12502 | if (PyErr_Occurred()) SWIG_fail; |
12503 | } | |
12504 | if (obj3) { | |
c32bde28 | 12505 | arg4 = (wxEventType)SWIG_As_int(obj3); |
d55e5bfc RD |
12506 | if (PyErr_Occurred()) SWIG_fail; |
12507 | } | |
12508 | { | |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12511 | ||
12512 | wxPyEndAllowThreads(__tstate); | |
12513 | if (PyErr_Occurred()) SWIG_fail; | |
12514 | } | |
12515 | { | |
12516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12517 | } | |
12518 | return resultobj; | |
12519 | fail: | |
12520 | return NULL; | |
12521 | } | |
12522 | ||
12523 | ||
c32bde28 | 12524 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12525 | PyObject *resultobj; |
12526 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12527 | PyObject *arg2 = (PyObject *) 0 ; | |
12528 | PyObject * obj0 = 0 ; | |
12529 | PyObject * obj1 = 0 ; | |
12530 | char *kwnames[] = { | |
12531 | (char *) "self",(char *) "_self", NULL | |
12532 | }; | |
12533 | ||
12534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12537 | arg2 = obj1; | |
12538 | { | |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12541 | ||
12542 | wxPyEndAllowThreads(__tstate); | |
12543 | if (PyErr_Occurred()) SWIG_fail; | |
12544 | } | |
12545 | Py_INCREF(Py_None); resultobj = Py_None; | |
12546 | return resultobj; | |
12547 | fail: | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
c32bde28 | 12552 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12553 | PyObject *obj; |
12554 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12555 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12556 | Py_INCREF(obj); | |
12557 | return Py_BuildValue((char *)""); | |
12558 | } | |
c32bde28 | 12559 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12560 | PyObject *resultobj; |
12561 | wxEventType result; | |
12562 | char *kwnames[] = { | |
12563 | NULL | |
12564 | }; | |
12565 | ||
12566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12567 | { | |
12568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12569 | result = (wxEventType)wxNewEventType(); | |
12570 | ||
12571 | wxPyEndAllowThreads(__tstate); | |
12572 | if (PyErr_Occurred()) SWIG_fail; | |
12573 | } | |
c32bde28 | 12574 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12575 | return resultobj; |
12576 | fail: | |
12577 | return NULL; | |
12578 | } | |
12579 | ||
12580 | ||
c32bde28 | 12581 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12582 | PyObject *resultobj; |
12583 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12584 | PyObject * obj0 = 0 ; | |
12585 | char *kwnames[] = { | |
12586 | (char *) "self", NULL | |
12587 | }; | |
12588 | ||
12589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12592 | { | |
12593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12594 | delete arg1; | |
12595 | ||
12596 | wxPyEndAllowThreads(__tstate); | |
12597 | if (PyErr_Occurred()) SWIG_fail; | |
12598 | } | |
12599 | Py_INCREF(Py_None); resultobj = Py_None; | |
12600 | return resultobj; | |
12601 | fail: | |
12602 | return NULL; | |
12603 | } | |
12604 | ||
12605 | ||
c32bde28 | 12606 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12607 | PyObject *resultobj; |
12608 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12609 | wxEventType arg2 ; | |
12610 | PyObject * obj0 = 0 ; | |
12611 | PyObject * obj1 = 0 ; | |
12612 | char *kwnames[] = { | |
12613 | (char *) "self",(char *) "typ", NULL | |
12614 | }; | |
12615 | ||
12616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12619 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
12620 | if (PyErr_Occurred()) SWIG_fail; |
12621 | { | |
12622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12623 | (arg1)->SetEventType(arg2); | |
12624 | ||
12625 | wxPyEndAllowThreads(__tstate); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | } | |
12628 | Py_INCREF(Py_None); resultobj = Py_None; | |
12629 | return resultobj; | |
12630 | fail: | |
12631 | return NULL; | |
12632 | } | |
12633 | ||
12634 | ||
c32bde28 | 12635 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12636 | PyObject *resultobj; |
12637 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12638 | wxEventType result; | |
12639 | PyObject * obj0 = 0 ; | |
12640 | char *kwnames[] = { | |
12641 | (char *) "self", NULL | |
12642 | }; | |
12643 | ||
12644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12647 | { | |
12648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12649 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12650 | ||
12651 | wxPyEndAllowThreads(__tstate); | |
12652 | if (PyErr_Occurred()) SWIG_fail; | |
12653 | } | |
c32bde28 | 12654 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12655 | return resultobj; |
12656 | fail: | |
12657 | return NULL; | |
12658 | } | |
12659 | ||
12660 | ||
c32bde28 | 12661 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12662 | PyObject *resultobj; |
12663 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12664 | wxObject *result; | |
12665 | PyObject * obj0 = 0 ; | |
12666 | char *kwnames[] = { | |
12667 | (char *) "self", NULL | |
12668 | }; | |
12669 | ||
12670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12673 | { | |
12674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12675 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12676 | ||
12677 | wxPyEndAllowThreads(__tstate); | |
12678 | if (PyErr_Occurred()) SWIG_fail; | |
12679 | } | |
12680 | { | |
412d302d | 12681 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12682 | } |
12683 | return resultobj; | |
12684 | fail: | |
12685 | return NULL; | |
12686 | } | |
12687 | ||
12688 | ||
c32bde28 | 12689 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12690 | PyObject *resultobj; |
12691 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12692 | wxObject *arg2 = (wxObject *) 0 ; | |
12693 | PyObject * obj0 = 0 ; | |
12694 | PyObject * obj1 = 0 ; | |
12695 | char *kwnames[] = { | |
12696 | (char *) "self",(char *) "obj", NULL | |
12697 | }; | |
12698 | ||
12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12704 | { | |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | (arg1)->SetEventObject(arg2); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | Py_INCREF(Py_None); resultobj = Py_None; | |
12712 | return resultobj; | |
12713 | fail: | |
12714 | return NULL; | |
12715 | } | |
12716 | ||
12717 | ||
c32bde28 | 12718 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12719 | PyObject *resultobj; |
12720 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12721 | long result; | |
12722 | PyObject * obj0 = 0 ; | |
12723 | char *kwnames[] = { | |
12724 | (char *) "self", NULL | |
12725 | }; | |
12726 | ||
12727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12730 | { | |
12731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12732 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12733 | ||
12734 | wxPyEndAllowThreads(__tstate); | |
12735 | if (PyErr_Occurred()) SWIG_fail; | |
12736 | } | |
c32bde28 | 12737 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
12738 | return resultobj; |
12739 | fail: | |
12740 | return NULL; | |
12741 | } | |
12742 | ||
12743 | ||
c32bde28 | 12744 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12745 | PyObject *resultobj; |
12746 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12747 | long arg2 = (long) 0 ; | |
12748 | PyObject * obj0 = 0 ; | |
12749 | PyObject * obj1 = 0 ; | |
12750 | char *kwnames[] = { | |
12751 | (char *) "self",(char *) "ts", NULL | |
12752 | }; | |
12753 | ||
12754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12757 | if (obj1) { | |
c32bde28 | 12758 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
12759 | if (PyErr_Occurred()) SWIG_fail; |
12760 | } | |
12761 | { | |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | (arg1)->SetTimestamp(arg2); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | Py_INCREF(Py_None); resultobj = Py_None; | |
12769 | return resultobj; | |
12770 | fail: | |
12771 | return NULL; | |
12772 | } | |
12773 | ||
12774 | ||
c32bde28 | 12775 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12776 | PyObject *resultobj; |
12777 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12778 | int result; | |
12779 | PyObject * obj0 = 0 ; | |
12780 | char *kwnames[] = { | |
12781 | (char *) "self", NULL | |
12782 | }; | |
12783 | ||
12784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12787 | { | |
12788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12789 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12790 | ||
12791 | wxPyEndAllowThreads(__tstate); | |
12792 | if (PyErr_Occurred()) SWIG_fail; | |
12793 | } | |
c32bde28 | 12794 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12795 | return resultobj; |
12796 | fail: | |
12797 | return NULL; | |
12798 | } | |
12799 | ||
12800 | ||
c32bde28 | 12801 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12802 | PyObject *resultobj; |
12803 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12804 | int arg2 ; | |
12805 | PyObject * obj0 = 0 ; | |
12806 | PyObject * obj1 = 0 ; | |
12807 | char *kwnames[] = { | |
12808 | (char *) "self",(char *) "Id", NULL | |
12809 | }; | |
12810 | ||
12811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12814 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12815 | if (PyErr_Occurred()) SWIG_fail; |
12816 | { | |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | (arg1)->SetId(arg2); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
12823 | Py_INCREF(Py_None); resultobj = Py_None; | |
12824 | return resultobj; | |
12825 | fail: | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
c32bde28 | 12830 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12831 | PyObject *resultobj; |
12832 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12833 | bool result; | |
12834 | PyObject * obj0 = 0 ; | |
12835 | char *kwnames[] = { | |
12836 | (char *) "self", NULL | |
12837 | }; | |
12838 | ||
12839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12842 | { | |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12845 | ||
12846 | wxPyEndAllowThreads(__tstate); | |
12847 | if (PyErr_Occurred()) SWIG_fail; | |
12848 | } | |
12849 | { | |
12850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12851 | } | |
12852 | return resultobj; | |
12853 | fail: | |
12854 | return NULL; | |
12855 | } | |
12856 | ||
12857 | ||
c32bde28 | 12858 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12859 | PyObject *resultobj; |
12860 | wxEvent *arg1 = (wxEvent *) 0 ; | |
ae8162c8 | 12861 | bool arg2 = (bool) true ; |
d55e5bfc RD |
12862 | PyObject * obj0 = 0 ; |
12863 | PyObject * obj1 = 0 ; | |
12864 | char *kwnames[] = { | |
12865 | (char *) "self",(char *) "skip", NULL | |
12866 | }; | |
12867 | ||
12868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12871 | if (obj1) { | |
c32bde28 | 12872 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12873 | if (PyErr_Occurred()) SWIG_fail; |
12874 | } | |
12875 | { | |
12876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12877 | (arg1)->Skip(arg2); | |
12878 | ||
12879 | wxPyEndAllowThreads(__tstate); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | } | |
12882 | Py_INCREF(Py_None); resultobj = Py_None; | |
12883 | return resultobj; | |
12884 | fail: | |
12885 | return NULL; | |
12886 | } | |
12887 | ||
12888 | ||
c32bde28 | 12889 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12890 | PyObject *resultobj; |
12891 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12892 | bool result; | |
12893 | PyObject * obj0 = 0 ; | |
12894 | char *kwnames[] = { | |
12895 | (char *) "self", NULL | |
12896 | }; | |
12897 | ||
12898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12901 | { | |
12902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12903 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12904 | ||
12905 | wxPyEndAllowThreads(__tstate); | |
12906 | if (PyErr_Occurred()) SWIG_fail; | |
12907 | } | |
12908 | { | |
12909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12910 | } | |
12911 | return resultobj; | |
12912 | fail: | |
12913 | return NULL; | |
12914 | } | |
12915 | ||
12916 | ||
c32bde28 | 12917 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12918 | PyObject *resultobj; |
12919 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12920 | bool result; | |
12921 | PyObject * obj0 = 0 ; | |
12922 | char *kwnames[] = { | |
12923 | (char *) "self", NULL | |
12924 | }; | |
12925 | ||
12926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12929 | { | |
12930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12931 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12932 | ||
12933 | wxPyEndAllowThreads(__tstate); | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | } | |
12936 | { | |
12937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12938 | } | |
12939 | return resultobj; | |
12940 | fail: | |
12941 | return NULL; | |
12942 | } | |
12943 | ||
12944 | ||
c32bde28 | 12945 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12946 | PyObject *resultobj; |
12947 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12948 | int result; | |
12949 | PyObject * obj0 = 0 ; | |
12950 | char *kwnames[] = { | |
12951 | (char *) "self", NULL | |
12952 | }; | |
12953 | ||
12954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (int)(arg1)->StopPropagation(); | |
12960 | ||
12961 | wxPyEndAllowThreads(__tstate); | |
12962 | if (PyErr_Occurred()) SWIG_fail; | |
12963 | } | |
c32bde28 | 12964 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12965 | return resultobj; |
12966 | fail: | |
12967 | return NULL; | |
12968 | } | |
12969 | ||
12970 | ||
c32bde28 | 12971 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12972 | PyObject *resultobj; |
12973 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12974 | int arg2 ; | |
12975 | PyObject * obj0 = 0 ; | |
12976 | PyObject * obj1 = 0 ; | |
12977 | char *kwnames[] = { | |
12978 | (char *) "self",(char *) "propagationLevel", NULL | |
12979 | }; | |
12980 | ||
12981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 12984 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12985 | if (PyErr_Occurred()) SWIG_fail; |
12986 | { | |
12987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12988 | (arg1)->ResumePropagation(arg2); | |
12989 | ||
12990 | wxPyEndAllowThreads(__tstate); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
12993 | Py_INCREF(Py_None); resultobj = Py_None; | |
12994 | return resultobj; | |
12995 | fail: | |
12996 | return NULL; | |
12997 | } | |
12998 | ||
12999 | ||
c32bde28 | 13000 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13001 | PyObject *resultobj; |
13002 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13003 | wxEvent *result; | |
13004 | PyObject * obj0 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self", NULL | |
13007 | }; | |
13008 | ||
13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13012 | { | |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | result = (wxEvent *)(arg1)->Clone(); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | return NULL; | |
13023 | } | |
13024 | ||
13025 | ||
c32bde28 | 13026 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13027 | PyObject *obj; |
13028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13029 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
13030 | Py_INCREF(obj); | |
13031 | return Py_BuildValue((char *)""); | |
13032 | } | |
c32bde28 | 13033 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13034 | PyObject *resultobj; |
13035 | wxEvent *arg1 = 0 ; | |
13036 | wxPropagationDisabler *result; | |
13037 | PyObject * obj0 = 0 ; | |
13038 | char *kwnames[] = { | |
13039 | (char *) "event", NULL | |
13040 | }; | |
13041 | ||
13042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13045 | SWIG_fail; | |
13046 | if (arg1 == NULL) { | |
13047 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13048 | SWIG_fail; | |
13049 | } | |
13050 | { | |
13051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13052 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13053 | ||
13054 | wxPyEndAllowThreads(__tstate); | |
13055 | if (PyErr_Occurred()) SWIG_fail; | |
13056 | } | |
13057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
13058 | return resultobj; | |
13059 | fail: | |
13060 | return NULL; | |
13061 | } | |
13062 | ||
13063 | ||
c32bde28 | 13064 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13065 | PyObject *resultobj; |
13066 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "self", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
13074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13075 | { | |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | delete arg1; | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | Py_INCREF(Py_None); resultobj = Py_None; | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | return NULL; | |
13086 | } | |
13087 | ||
13088 | ||
c32bde28 | 13089 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13090 | PyObject *obj; |
13091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13092 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13093 | Py_INCREF(obj); | |
13094 | return Py_BuildValue((char *)""); | |
13095 | } | |
c32bde28 | 13096 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13097 | PyObject *resultobj; |
13098 | wxEvent *arg1 = 0 ; | |
13099 | wxPropagateOnce *result; | |
13100 | PyObject * obj0 = 0 ; | |
13101 | char *kwnames[] = { | |
13102 | (char *) "event", NULL | |
13103 | }; | |
13104 | ||
13105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
13106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13108 | SWIG_fail; | |
13109 | if (arg1 == NULL) { | |
13110 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13111 | SWIG_fail; | |
13112 | } | |
13113 | { | |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13115 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13116 | ||
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
13120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
13121 | return resultobj; | |
13122 | fail: | |
13123 | return NULL; | |
13124 | } | |
13125 | ||
13126 | ||
c32bde28 | 13127 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13128 | PyObject *resultobj; |
13129 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13130 | PyObject * obj0 = 0 ; | |
13131 | char *kwnames[] = { | |
13132 | (char *) "self", NULL | |
13133 | }; | |
13134 | ||
13135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
13136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
13137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13138 | { | |
13139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13140 | delete arg1; | |
13141 | ||
13142 | wxPyEndAllowThreads(__tstate); | |
13143 | if (PyErr_Occurred()) SWIG_fail; | |
13144 | } | |
13145 | Py_INCREF(Py_None); resultobj = Py_None; | |
13146 | return resultobj; | |
13147 | fail: | |
13148 | return NULL; | |
13149 | } | |
13150 | ||
13151 | ||
c32bde28 | 13152 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13153 | PyObject *obj; |
13154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13155 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13156 | Py_INCREF(obj); | |
13157 | return Py_BuildValue((char *)""); | |
13158 | } | |
c32bde28 | 13159 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13160 | PyObject *resultobj; |
13161 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13162 | int arg2 = (int) 0 ; | |
13163 | wxCommandEvent *result; | |
13164 | PyObject * obj0 = 0 ; | |
13165 | PyObject * obj1 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "commandType",(char *) "winid", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
13171 | if (obj0) { | |
c32bde28 | 13172 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13173 | if (PyErr_Occurred()) SWIG_fail; |
13174 | } | |
13175 | if (obj1) { | |
c32bde28 | 13176 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13177 | if (PyErr_Occurred()) SWIG_fail; |
13178 | } | |
13179 | { | |
13180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13181 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13182 | ||
13183 | wxPyEndAllowThreads(__tstate); | |
13184 | if (PyErr_Occurred()) SWIG_fail; | |
13185 | } | |
13186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
13187 | return resultobj; | |
13188 | fail: | |
13189 | return NULL; | |
13190 | } | |
13191 | ||
13192 | ||
c32bde28 | 13193 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13194 | PyObject *resultobj; |
13195 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13196 | int result; | |
13197 | PyObject * obj0 = 0 ; | |
13198 | char *kwnames[] = { | |
13199 | (char *) "self", NULL | |
13200 | }; | |
13201 | ||
13202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13205 | { | |
13206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13207 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13208 | ||
13209 | wxPyEndAllowThreads(__tstate); | |
13210 | if (PyErr_Occurred()) SWIG_fail; | |
13211 | } | |
c32bde28 | 13212 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13213 | return resultobj; |
13214 | fail: | |
13215 | return NULL; | |
13216 | } | |
13217 | ||
13218 | ||
c32bde28 | 13219 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13220 | PyObject *resultobj; |
13221 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13222 | wxString *arg2 = 0 ; | |
ae8162c8 | 13223 | bool temp2 = false ; |
d55e5bfc RD |
13224 | PyObject * obj0 = 0 ; |
13225 | PyObject * obj1 = 0 ; | |
13226 | char *kwnames[] = { | |
13227 | (char *) "self",(char *) "s", NULL | |
13228 | }; | |
13229 | ||
13230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
13231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13233 | { | |
13234 | arg2 = wxString_in_helper(obj1); | |
13235 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13236 | temp2 = true; |
d55e5bfc RD |
13237 | } |
13238 | { | |
13239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13240 | (arg1)->SetString((wxString const &)*arg2); | |
13241 | ||
13242 | wxPyEndAllowThreads(__tstate); | |
13243 | if (PyErr_Occurred()) SWIG_fail; | |
13244 | } | |
13245 | Py_INCREF(Py_None); resultobj = Py_None; | |
13246 | { | |
13247 | if (temp2) | |
13248 | delete arg2; | |
13249 | } | |
13250 | return resultobj; | |
13251 | fail: | |
13252 | { | |
13253 | if (temp2) | |
13254 | delete arg2; | |
13255 | } | |
13256 | return NULL; | |
13257 | } | |
13258 | ||
13259 | ||
c32bde28 | 13260 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13261 | PyObject *resultobj; |
13262 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13263 | wxString result; | |
13264 | PyObject * obj0 = 0 ; | |
13265 | char *kwnames[] = { | |
13266 | (char *) "self", NULL | |
13267 | }; | |
13268 | ||
13269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
13270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13272 | { | |
13273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13274 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13275 | ||
13276 | wxPyEndAllowThreads(__tstate); | |
13277 | if (PyErr_Occurred()) SWIG_fail; | |
13278 | } | |
13279 | { | |
13280 | #if wxUSE_UNICODE | |
13281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13282 | #else | |
13283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13284 | #endif | |
13285 | } | |
13286 | return resultobj; | |
13287 | fail: | |
13288 | return NULL; | |
13289 | } | |
13290 | ||
13291 | ||
c32bde28 | 13292 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13293 | PyObject *resultobj; |
13294 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13295 | bool result; | |
13296 | PyObject * obj0 = 0 ; | |
13297 | char *kwnames[] = { | |
13298 | (char *) "self", NULL | |
13299 | }; | |
13300 | ||
13301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13304 | { | |
13305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13306 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13307 | ||
13308 | wxPyEndAllowThreads(__tstate); | |
13309 | if (PyErr_Occurred()) SWIG_fail; | |
13310 | } | |
13311 | { | |
13312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13313 | } | |
13314 | return resultobj; | |
13315 | fail: | |
13316 | return NULL; | |
13317 | } | |
13318 | ||
13319 | ||
c32bde28 | 13320 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13321 | PyObject *resultobj; |
13322 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13323 | bool result; | |
13324 | PyObject * obj0 = 0 ; | |
13325 | char *kwnames[] = { | |
13326 | (char *) "self", NULL | |
13327 | }; | |
13328 | ||
13329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13332 | { | |
13333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13334 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13335 | ||
13336 | wxPyEndAllowThreads(__tstate); | |
13337 | if (PyErr_Occurred()) SWIG_fail; | |
13338 | } | |
13339 | { | |
13340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13341 | } | |
13342 | return resultobj; | |
13343 | fail: | |
13344 | return NULL; | |
13345 | } | |
13346 | ||
13347 | ||
c32bde28 | 13348 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13349 | PyObject *resultobj; |
13350 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13351 | long arg2 ; | |
13352 | PyObject * obj0 = 0 ; | |
13353 | PyObject * obj1 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "extraLong", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13361 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
13362 | if (PyErr_Occurred()) SWIG_fail; |
13363 | { | |
13364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13365 | (arg1)->SetExtraLong(arg2); | |
13366 | ||
13367 | wxPyEndAllowThreads(__tstate); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
13370 | Py_INCREF(Py_None); resultobj = Py_None; | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | return NULL; | |
13374 | } | |
13375 | ||
13376 | ||
c32bde28 | 13377 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13378 | PyObject *resultobj; |
13379 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13380 | long result; | |
13381 | PyObject * obj0 = 0 ; | |
13382 | char *kwnames[] = { | |
13383 | (char *) "self", NULL | |
13384 | }; | |
13385 | ||
13386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13389 | { | |
13390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13391 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13392 | ||
13393 | wxPyEndAllowThreads(__tstate); | |
13394 | if (PyErr_Occurred()) SWIG_fail; | |
13395 | } | |
c32bde28 | 13396 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13397 | return resultobj; |
13398 | fail: | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
c32bde28 | 13403 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13404 | PyObject *resultobj; |
13405 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13406 | int arg2 ; | |
13407 | PyObject * obj0 = 0 ; | |
13408 | PyObject * obj1 = 0 ; | |
13409 | char *kwnames[] = { | |
13410 | (char *) "self",(char *) "i", NULL | |
13411 | }; | |
13412 | ||
13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13416 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13417 | if (PyErr_Occurred()) SWIG_fail; |
13418 | { | |
13419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13420 | (arg1)->SetInt(arg2); | |
13421 | ||
13422 | wxPyEndAllowThreads(__tstate); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | } | |
13425 | Py_INCREF(Py_None); resultobj = Py_None; | |
13426 | return resultobj; | |
13427 | fail: | |
13428 | return NULL; | |
13429 | } | |
13430 | ||
13431 | ||
c32bde28 | 13432 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13433 | PyObject *resultobj; |
13434 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13435 | long result; | |
13436 | PyObject * obj0 = 0 ; | |
13437 | char *kwnames[] = { | |
13438 | (char *) "self", NULL | |
13439 | }; | |
13440 | ||
13441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13444 | { | |
13445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13446 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13447 | ||
13448 | wxPyEndAllowThreads(__tstate); | |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
13450 | } | |
c32bde28 | 13451 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13452 | return resultobj; |
13453 | fail: | |
13454 | return NULL; | |
13455 | } | |
13456 | ||
13457 | ||
c32bde28 | 13458 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13459 | PyObject *resultobj; |
13460 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13461 | wxEvent *result; | |
13462 | PyObject * obj0 = 0 ; | |
13463 | char *kwnames[] = { | |
13464 | (char *) "self", NULL | |
13465 | }; | |
13466 | ||
13467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13470 | { | |
13471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13472 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13473 | ||
13474 | wxPyEndAllowThreads(__tstate); | |
13475 | if (PyErr_Occurred()) SWIG_fail; | |
13476 | } | |
13477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13478 | return resultobj; | |
13479 | fail: | |
13480 | return NULL; | |
13481 | } | |
13482 | ||
13483 | ||
c32bde28 | 13484 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13485 | PyObject *obj; |
13486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13487 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13488 | Py_INCREF(obj); | |
13489 | return Py_BuildValue((char *)""); | |
13490 | } | |
c32bde28 | 13491 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13492 | PyObject *resultobj; |
13493 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13494 | int arg2 = (int) 0 ; | |
13495 | wxNotifyEvent *result; | |
13496 | PyObject * obj0 = 0 ; | |
13497 | PyObject * obj1 = 0 ; | |
13498 | char *kwnames[] = { | |
13499 | (char *) "commandType",(char *) "winid", NULL | |
13500 | }; | |
13501 | ||
13502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13503 | if (obj0) { | |
c32bde28 | 13504 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13505 | if (PyErr_Occurred()) SWIG_fail; |
13506 | } | |
13507 | if (obj1) { | |
c32bde28 | 13508 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13509 | if (PyErr_Occurred()) SWIG_fail; |
13510 | } | |
13511 | { | |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13514 | ||
13515 | wxPyEndAllowThreads(__tstate); | |
13516 | if (PyErr_Occurred()) SWIG_fail; | |
13517 | } | |
13518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13519 | return resultobj; | |
13520 | fail: | |
13521 | return NULL; | |
13522 | } | |
13523 | ||
13524 | ||
c32bde28 | 13525 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13526 | PyObject *resultobj; |
13527 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13528 | PyObject * obj0 = 0 ; | |
13529 | char *kwnames[] = { | |
13530 | (char *) "self", NULL | |
13531 | }; | |
13532 | ||
13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13536 | { | |
13537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13538 | (arg1)->Veto(); | |
13539 | ||
13540 | wxPyEndAllowThreads(__tstate); | |
13541 | if (PyErr_Occurred()) SWIG_fail; | |
13542 | } | |
13543 | Py_INCREF(Py_None); resultobj = Py_None; | |
13544 | return resultobj; | |
13545 | fail: | |
13546 | return NULL; | |
13547 | } | |
13548 | ||
13549 | ||
c32bde28 | 13550 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13551 | PyObject *resultobj; |
13552 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13553 | PyObject * obj0 = 0 ; | |
13554 | char *kwnames[] = { | |
13555 | (char *) "self", NULL | |
13556 | }; | |
13557 | ||
13558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13561 | { | |
13562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13563 | (arg1)->Allow(); | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
13568 | Py_INCREF(Py_None); resultobj = Py_None; | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | return NULL; | |
13572 | } | |
13573 | ||
13574 | ||
c32bde28 | 13575 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13576 | PyObject *resultobj; |
13577 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13578 | bool result; | |
13579 | PyObject * obj0 = 0 ; | |
13580 | char *kwnames[] = { | |
13581 | (char *) "self", NULL | |
13582 | }; | |
13583 | ||
13584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13587 | { | |
13588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13589 | result = (bool)(arg1)->IsAllowed(); | |
13590 | ||
13591 | wxPyEndAllowThreads(__tstate); | |
13592 | if (PyErr_Occurred()) SWIG_fail; | |
13593 | } | |
13594 | { | |
13595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13596 | } | |
13597 | return resultobj; | |
13598 | fail: | |
13599 | return NULL; | |
13600 | } | |
13601 | ||
13602 | ||
c32bde28 | 13603 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13604 | PyObject *obj; |
13605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13606 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13607 | Py_INCREF(obj); | |
13608 | return Py_BuildValue((char *)""); | |
13609 | } | |
c32bde28 | 13610 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13611 | PyObject *resultobj; |
13612 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13613 | int arg2 = (int) 0 ; | |
13614 | int arg3 = (int) 0 ; | |
13615 | int arg4 = (int) 0 ; | |
13616 | wxScrollEvent *result; | |
13617 | PyObject * obj0 = 0 ; | |
13618 | PyObject * obj1 = 0 ; | |
13619 | PyObject * obj2 = 0 ; | |
13620 | PyObject * obj3 = 0 ; | |
13621 | char *kwnames[] = { | |
13622 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13623 | }; | |
13624 | ||
13625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13626 | if (obj0) { | |
c32bde28 | 13627 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13628 | if (PyErr_Occurred()) SWIG_fail; |
13629 | } | |
13630 | if (obj1) { | |
c32bde28 | 13631 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13632 | if (PyErr_Occurred()) SWIG_fail; |
13633 | } | |
13634 | if (obj2) { | |
c32bde28 | 13635 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13636 | if (PyErr_Occurred()) SWIG_fail; |
13637 | } | |
13638 | if (obj3) { | |
c32bde28 | 13639 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13640 | if (PyErr_Occurred()) SWIG_fail; |
13641 | } | |
13642 | { | |
13643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13644 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13645 | ||
13646 | wxPyEndAllowThreads(__tstate); | |
13647 | if (PyErr_Occurred()) SWIG_fail; | |
13648 | } | |
13649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13650 | return resultobj; | |
13651 | fail: | |
13652 | return NULL; | |
13653 | } | |
13654 | ||
13655 | ||
c32bde28 | 13656 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13657 | PyObject *resultobj; |
13658 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13659 | int result; | |
13660 | PyObject * obj0 = 0 ; | |
13661 | char *kwnames[] = { | |
13662 | (char *) "self", NULL | |
13663 | }; | |
13664 | ||
13665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13668 | { | |
13669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13670 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13671 | ||
13672 | wxPyEndAllowThreads(__tstate); | |
13673 | if (PyErr_Occurred()) SWIG_fail; | |
13674 | } | |
c32bde28 | 13675 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13676 | return resultobj; |
13677 | fail: | |
13678 | return NULL; | |
13679 | } | |
13680 | ||
13681 | ||
c32bde28 | 13682 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13683 | PyObject *resultobj; |
13684 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13685 | int result; | |
13686 | PyObject * obj0 = 0 ; | |
13687 | char *kwnames[] = { | |
13688 | (char *) "self", NULL | |
13689 | }; | |
13690 | ||
13691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13694 | { | |
13695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13696 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13697 | ||
13698 | wxPyEndAllowThreads(__tstate); | |
13699 | if (PyErr_Occurred()) SWIG_fail; | |
13700 | } | |
c32bde28 | 13701 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13702 | return resultobj; |
13703 | fail: | |
13704 | return NULL; | |
13705 | } | |
13706 | ||
13707 | ||
c32bde28 | 13708 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13709 | PyObject *resultobj; |
13710 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13711 | int arg2 ; | |
13712 | PyObject * obj0 = 0 ; | |
13713 | PyObject * obj1 = 0 ; | |
13714 | char *kwnames[] = { | |
13715 | (char *) "self",(char *) "orient", NULL | |
13716 | }; | |
13717 | ||
13718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13721 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13722 | if (PyErr_Occurred()) SWIG_fail; |
13723 | { | |
13724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13725 | (arg1)->SetOrientation(arg2); | |
13726 | ||
13727 | wxPyEndAllowThreads(__tstate); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
13730 | Py_INCREF(Py_None); resultobj = Py_None; | |
13731 | return resultobj; | |
13732 | fail: | |
13733 | return NULL; | |
13734 | } | |
13735 | ||
13736 | ||
c32bde28 | 13737 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13738 | PyObject *resultobj; |
13739 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13740 | int arg2 ; | |
13741 | PyObject * obj0 = 0 ; | |
13742 | PyObject * obj1 = 0 ; | |
13743 | char *kwnames[] = { | |
13744 | (char *) "self",(char *) "pos", NULL | |
13745 | }; | |
13746 | ||
13747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13750 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13751 | if (PyErr_Occurred()) SWIG_fail; |
13752 | { | |
13753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13754 | (arg1)->SetPosition(arg2); | |
13755 | ||
13756 | wxPyEndAllowThreads(__tstate); | |
13757 | if (PyErr_Occurred()) SWIG_fail; | |
13758 | } | |
13759 | Py_INCREF(Py_None); resultobj = Py_None; | |
13760 | return resultobj; | |
13761 | fail: | |
13762 | return NULL; | |
13763 | } | |
13764 | ||
13765 | ||
c32bde28 | 13766 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13767 | PyObject *obj; |
13768 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13769 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13770 | Py_INCREF(obj); | |
13771 | return Py_BuildValue((char *)""); | |
13772 | } | |
c32bde28 | 13773 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13774 | PyObject *resultobj; |
13775 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13776 | int arg2 = (int) 0 ; | |
13777 | int arg3 = (int) 0 ; | |
13778 | wxScrollWinEvent *result; | |
13779 | PyObject * obj0 = 0 ; | |
13780 | PyObject * obj1 = 0 ; | |
13781 | PyObject * obj2 = 0 ; | |
13782 | char *kwnames[] = { | |
13783 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13784 | }; | |
13785 | ||
13786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13787 | if (obj0) { | |
c32bde28 | 13788 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13789 | if (PyErr_Occurred()) SWIG_fail; |
13790 | } | |
13791 | if (obj1) { | |
c32bde28 | 13792 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13793 | if (PyErr_Occurred()) SWIG_fail; |
13794 | } | |
13795 | if (obj2) { | |
c32bde28 | 13796 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13797 | if (PyErr_Occurred()) SWIG_fail; |
13798 | } | |
13799 | { | |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13802 | ||
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
13806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13807 | return resultobj; | |
13808 | fail: | |
13809 | return NULL; | |
13810 | } | |
13811 | ||
13812 | ||
c32bde28 | 13813 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13814 | PyObject *resultobj; |
13815 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13816 | int result; | |
13817 | PyObject * obj0 = 0 ; | |
13818 | char *kwnames[] = { | |
13819 | (char *) "self", NULL | |
13820 | }; | |
13821 | ||
13822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13825 | { | |
13826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13827 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13828 | ||
13829 | wxPyEndAllowThreads(__tstate); | |
13830 | if (PyErr_Occurred()) SWIG_fail; | |
13831 | } | |
c32bde28 | 13832 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13833 | return resultobj; |
13834 | fail: | |
13835 | return NULL; | |
13836 | } | |
13837 | ||
13838 | ||
c32bde28 | 13839 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13840 | PyObject *resultobj; |
13841 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13842 | int result; | |
13843 | PyObject * obj0 = 0 ; | |
13844 | char *kwnames[] = { | |
13845 | (char *) "self", NULL | |
13846 | }; | |
13847 | ||
13848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13851 | { | |
13852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13853 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13854 | ||
13855 | wxPyEndAllowThreads(__tstate); | |
13856 | if (PyErr_Occurred()) SWIG_fail; | |
13857 | } | |
c32bde28 | 13858 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13859 | return resultobj; |
13860 | fail: | |
13861 | return NULL; | |
13862 | } | |
13863 | ||
13864 | ||
c32bde28 | 13865 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13866 | PyObject *resultobj; |
13867 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13868 | int arg2 ; | |
13869 | PyObject * obj0 = 0 ; | |
13870 | PyObject * obj1 = 0 ; | |
13871 | char *kwnames[] = { | |
13872 | (char *) "self",(char *) "orient", NULL | |
13873 | }; | |
13874 | ||
13875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13878 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13879 | if (PyErr_Occurred()) SWIG_fail; |
13880 | { | |
13881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13882 | (arg1)->SetOrientation(arg2); | |
13883 | ||
13884 | wxPyEndAllowThreads(__tstate); | |
13885 | if (PyErr_Occurred()) SWIG_fail; | |
13886 | } | |
13887 | Py_INCREF(Py_None); resultobj = Py_None; | |
13888 | return resultobj; | |
13889 | fail: | |
13890 | return NULL; | |
13891 | } | |
13892 | ||
13893 | ||
c32bde28 | 13894 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13895 | PyObject *resultobj; |
13896 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13897 | int arg2 ; | |
13898 | PyObject * obj0 = 0 ; | |
13899 | PyObject * obj1 = 0 ; | |
13900 | char *kwnames[] = { | |
13901 | (char *) "self",(char *) "pos", NULL | |
13902 | }; | |
13903 | ||
13904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 13907 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13908 | if (PyErr_Occurred()) SWIG_fail; |
13909 | { | |
13910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13911 | (arg1)->SetPosition(arg2); | |
13912 | ||
13913 | wxPyEndAllowThreads(__tstate); | |
13914 | if (PyErr_Occurred()) SWIG_fail; | |
13915 | } | |
13916 | Py_INCREF(Py_None); resultobj = Py_None; | |
13917 | return resultobj; | |
13918 | fail: | |
13919 | return NULL; | |
13920 | } | |
13921 | ||
13922 | ||
c32bde28 | 13923 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13924 | PyObject *obj; |
13925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13926 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13927 | Py_INCREF(obj); | |
13928 | return Py_BuildValue((char *)""); | |
13929 | } | |
c32bde28 | 13930 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13931 | PyObject *resultobj; |
13932 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13933 | wxMouseEvent *result; | |
13934 | PyObject * obj0 = 0 ; | |
13935 | char *kwnames[] = { | |
13936 | (char *) "mouseType", NULL | |
13937 | }; | |
13938 | ||
13939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13940 | if (obj0) { | |
c32bde28 | 13941 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13942 | if (PyErr_Occurred()) SWIG_fail; |
13943 | } | |
13944 | { | |
13945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13946 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13947 | ||
13948 | wxPyEndAllowThreads(__tstate); | |
13949 | if (PyErr_Occurred()) SWIG_fail; | |
13950 | } | |
13951 | { | |
412d302d | 13952 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
13953 | } |
13954 | return resultobj; | |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
c32bde28 | 13960 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13961 | PyObject *resultobj; |
13962 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13963 | bool result; | |
13964 | PyObject * obj0 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13972 | { | |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
13979 | { | |
13980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13981 | } | |
13982 | return resultobj; | |
13983 | fail: | |
13984 | return NULL; | |
13985 | } | |
13986 | ||
13987 | ||
c32bde28 | 13988 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13989 | PyObject *resultobj; |
13990 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13991 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13992 | bool result; | |
13993 | PyObject * obj0 = 0 ; | |
13994 | PyObject * obj1 = 0 ; | |
13995 | char *kwnames[] = { | |
13996 | (char *) "self",(char *) "but", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
14000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14002 | if (obj1) { | |
c32bde28 | 14003 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14004 | if (PyErr_Occurred()) SWIG_fail; |
14005 | } | |
14006 | { | |
14007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14008 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
14009 | ||
14010 | wxPyEndAllowThreads(__tstate); | |
14011 | if (PyErr_Occurred()) SWIG_fail; | |
14012 | } | |
14013 | { | |
14014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14015 | } | |
14016 | return resultobj; | |
14017 | fail: | |
14018 | return NULL; | |
14019 | } | |
14020 | ||
14021 | ||
c32bde28 | 14022 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14023 | PyObject *resultobj; |
14024 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14025 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14026 | bool result; | |
14027 | PyObject * obj0 = 0 ; | |
14028 | PyObject * obj1 = 0 ; | |
14029 | char *kwnames[] = { | |
14030 | (char *) "self",(char *) "but", NULL | |
14031 | }; | |
14032 | ||
14033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
14034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14036 | if (obj1) { | |
c32bde28 | 14037 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14038 | if (PyErr_Occurred()) SWIG_fail; |
14039 | } | |
14040 | { | |
14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14042 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
14043 | ||
14044 | wxPyEndAllowThreads(__tstate); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
14046 | } | |
14047 | { | |
14048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14049 | } | |
14050 | return resultobj; | |
14051 | fail: | |
14052 | return NULL; | |
14053 | } | |
14054 | ||
14055 | ||
c32bde28 | 14056 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14057 | PyObject *resultobj; |
14058 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14059 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14060 | bool result; | |
14061 | PyObject * obj0 = 0 ; | |
14062 | PyObject * obj1 = 0 ; | |
14063 | char *kwnames[] = { | |
14064 | (char *) "self",(char *) "but", NULL | |
14065 | }; | |
14066 | ||
14067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
14068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14070 | if (obj1) { | |
c32bde28 | 14071 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14072 | if (PyErr_Occurred()) SWIG_fail; |
14073 | } | |
14074 | { | |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14076 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14077 | ||
14078 | wxPyEndAllowThreads(__tstate); | |
14079 | if (PyErr_Occurred()) SWIG_fail; | |
14080 | } | |
14081 | { | |
14082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14083 | } | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
c32bde28 | 14090 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14091 | PyObject *resultobj; |
14092 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14093 | int arg2 ; | |
14094 | bool result; | |
14095 | PyObject * obj0 = 0 ; | |
14096 | PyObject * obj1 = 0 ; | |
14097 | char *kwnames[] = { | |
14098 | (char *) "self",(char *) "but", NULL | |
14099 | }; | |
14100 | ||
14101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
14102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14104 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14105 | if (PyErr_Occurred()) SWIG_fail; |
14106 | { | |
14107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14108 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14109 | ||
14110 | wxPyEndAllowThreads(__tstate); | |
14111 | if (PyErr_Occurred()) SWIG_fail; | |
14112 | } | |
14113 | { | |
14114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14115 | } | |
14116 | return resultobj; | |
14117 | fail: | |
14118 | return NULL; | |
14119 | } | |
14120 | ||
14121 | ||
c32bde28 | 14122 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14123 | PyObject *resultobj; |
14124 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14125 | int arg2 ; | |
14126 | bool result; | |
14127 | PyObject * obj0 = 0 ; | |
14128 | PyObject * obj1 = 0 ; | |
14129 | char *kwnames[] = { | |
14130 | (char *) "self",(char *) "but", NULL | |
14131 | }; | |
14132 | ||
14133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
14134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 14136 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14137 | if (PyErr_Occurred()) SWIG_fail; |
14138 | { | |
14139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14140 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14141 | ||
14142 | wxPyEndAllowThreads(__tstate); | |
14143 | if (PyErr_Occurred()) SWIG_fail; | |
14144 | } | |
14145 | { | |
14146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14147 | } | |
14148 | return resultobj; | |
14149 | fail: | |
14150 | return NULL; | |
14151 | } | |
14152 | ||
14153 | ||
c32bde28 | 14154 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14155 | PyObject *resultobj; |
14156 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14157 | int result; | |
14158 | PyObject * obj0 = 0 ; | |
14159 | char *kwnames[] = { | |
14160 | (char *) "self", NULL | |
14161 | }; | |
14162 | ||
14163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",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 = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14169 | ||
14170 | wxPyEndAllowThreads(__tstate); | |
14171 | if (PyErr_Occurred()) SWIG_fail; | |
14172 | } | |
c32bde28 | 14173 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14174 | return resultobj; |
14175 | fail: | |
14176 | return NULL; | |
14177 | } | |
14178 | ||
14179 | ||
c32bde28 | 14180 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14181 | PyObject *resultobj; |
14182 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14183 | bool result; | |
14184 | PyObject * obj0 = 0 ; | |
14185 | char *kwnames[] = { | |
14186 | (char *) "self", NULL | |
14187 | }; | |
14188 | ||
14189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14192 | { | |
14193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14194 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14195 | ||
14196 | wxPyEndAllowThreads(__tstate); | |
14197 | if (PyErr_Occurred()) SWIG_fail; | |
14198 | } | |
14199 | { | |
14200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14201 | } | |
14202 | return resultobj; | |
14203 | fail: | |
14204 | return NULL; | |
14205 | } | |
14206 | ||
14207 | ||
c32bde28 | 14208 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14209 | PyObject *resultobj; |
14210 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14211 | bool result; | |
14212 | PyObject * obj0 = 0 ; | |
14213 | char *kwnames[] = { | |
14214 | (char *) "self", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14220 | { | |
14221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14222 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14223 | ||
14224 | wxPyEndAllowThreads(__tstate); | |
14225 | if (PyErr_Occurred()) SWIG_fail; | |
14226 | } | |
14227 | { | |
14228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14229 | } | |
14230 | return resultobj; | |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
c32bde28 | 14236 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14237 | PyObject *resultobj; |
14238 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14239 | bool result; | |
14240 | PyObject * obj0 = 0 ; | |
14241 | char *kwnames[] = { | |
14242 | (char *) "self", NULL | |
14243 | }; | |
14244 | ||
14245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
14246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14248 | { | |
14249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14250 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14251 | ||
14252 | wxPyEndAllowThreads(__tstate); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
14255 | { | |
14256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14257 | } | |
14258 | return resultobj; | |
14259 | fail: | |
14260 | return NULL; | |
14261 | } | |
14262 | ||
14263 | ||
c32bde28 | 14264 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14265 | PyObject *resultobj; |
14266 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14267 | bool result; | |
14268 | PyObject * obj0 = 0 ; | |
14269 | char *kwnames[] = { | |
14270 | (char *) "self", NULL | |
14271 | }; | |
14272 | ||
14273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14276 | { | |
14277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14278 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14279 | ||
14280 | wxPyEndAllowThreads(__tstate); | |
14281 | if (PyErr_Occurred()) SWIG_fail; | |
14282 | } | |
14283 | { | |
14284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14285 | } | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
c32bde28 | 14292 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14293 | PyObject *resultobj; |
14294 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14295 | bool result; | |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "self", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14304 | { | |
14305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14306 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14307 | ||
14308 | wxPyEndAllowThreads(__tstate); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | { | |
14312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14313 | } | |
14314 | return resultobj; | |
14315 | fail: | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
c32bde28 | 14320 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14321 | PyObject *resultobj; |
14322 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14323 | bool result; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14332 | { | |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
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_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14349 | PyObject *resultobj; |
14350 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14351 | bool result; | |
14352 | PyObject * obj0 = 0 ; | |
14353 | char *kwnames[] = { | |
14354 | (char *) "self", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",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 = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14363 | ||
14364 | wxPyEndAllowThreads(__tstate); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | } | |
14367 | { | |
14368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14369 | } | |
14370 | return resultobj; | |
14371 | fail: | |
14372 | return NULL; | |
14373 | } | |
14374 | ||
14375 | ||
c32bde28 | 14376 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14377 | PyObject *resultobj; |
14378 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14379 | bool result; | |
14380 | PyObject * obj0 = 0 ; | |
14381 | char *kwnames[] = { | |
14382 | (char *) "self", NULL | |
14383 | }; | |
14384 | ||
14385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14388 | { | |
14389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14390 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14391 | ||
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | { | |
14396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14397 | } | |
14398 | return resultobj; | |
14399 | fail: | |
14400 | return NULL; | |
14401 | } | |
14402 | ||
14403 | ||
c32bde28 | 14404 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14405 | PyObject *resultobj; |
14406 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14407 | bool result; | |
14408 | PyObject * obj0 = 0 ; | |
14409 | char *kwnames[] = { | |
14410 | (char *) "self", NULL | |
14411 | }; | |
14412 | ||
14413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14416 | { | |
14417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14418 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14419 | ||
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | { | |
14424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14425 | } | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
c32bde28 | 14432 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14433 | PyObject *resultobj; |
14434 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14435 | bool result; | |
14436 | PyObject * obj0 = 0 ; | |
14437 | char *kwnames[] = { | |
14438 | (char *) "self", NULL | |
14439 | }; | |
14440 | ||
14441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14444 | { | |
14445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14446 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14447 | ||
14448 | wxPyEndAllowThreads(__tstate); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | } | |
14451 | { | |
14452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14453 | } | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
14457 | } | |
14458 | ||
14459 | ||
c32bde28 | 14460 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14461 | PyObject *resultobj; |
14462 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14463 | bool result; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | char *kwnames[] = { | |
14466 | (char *) "self", NULL | |
14467 | }; | |
14468 | ||
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14472 | { | |
14473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14474 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14475 | ||
14476 | wxPyEndAllowThreads(__tstate); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
14479 | { | |
14480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14481 | } | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
c32bde28 | 14488 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14489 | PyObject *resultobj; |
14490 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14491 | bool result; | |
14492 | PyObject * obj0 = 0 ; | |
14493 | char *kwnames[] = { | |
14494 | (char *) "self", NULL | |
14495 | }; | |
14496 | ||
14497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14500 | { | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14503 | ||
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
14507 | { | |
14508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14509 | } | |
14510 | return resultobj; | |
14511 | fail: | |
14512 | return NULL; | |
14513 | } | |
14514 | ||
14515 | ||
c32bde28 | 14516 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14517 | PyObject *resultobj; |
14518 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14519 | bool result; | |
14520 | PyObject * obj0 = 0 ; | |
14521 | char *kwnames[] = { | |
14522 | (char *) "self", NULL | |
14523 | }; | |
14524 | ||
14525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14528 | { | |
14529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14530 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14531 | ||
14532 | wxPyEndAllowThreads(__tstate); | |
14533 | if (PyErr_Occurred()) SWIG_fail; | |
14534 | } | |
14535 | { | |
14536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14537 | } | |
14538 | return resultobj; | |
14539 | fail: | |
14540 | return NULL; | |
14541 | } | |
14542 | ||
14543 | ||
c32bde28 | 14544 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14545 | PyObject *resultobj; |
14546 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14547 | bool result; | |
14548 | PyObject * obj0 = 0 ; | |
14549 | char *kwnames[] = { | |
14550 | (char *) "self", NULL | |
14551 | }; | |
14552 | ||
14553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14556 | { | |
14557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14558 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14559 | ||
14560 | wxPyEndAllowThreads(__tstate); | |
14561 | if (PyErr_Occurred()) SWIG_fail; | |
14562 | } | |
14563 | { | |
14564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14565 | } | |
14566 | return resultobj; | |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
c32bde28 | 14572 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14573 | PyObject *resultobj; |
14574 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14575 | bool result; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | char *kwnames[] = { | |
14578 | (char *) "self", NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14584 | { | |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | result = (bool)(arg1)->LeftIsDown(); | |
14587 | ||
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | { | |
14592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14593 | } | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
c32bde28 | 14600 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14601 | PyObject *resultobj; |
14602 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14603 | bool result; | |
14604 | PyObject * obj0 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14612 | { | |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14614 | result = (bool)(arg1)->MiddleIsDown(); | |
14615 | ||
14616 | wxPyEndAllowThreads(__tstate); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
14619 | { | |
14620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14621 | } | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
c32bde28 | 14628 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14629 | PyObject *resultobj; |
14630 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14631 | bool result; | |
14632 | PyObject * obj0 = 0 ; | |
14633 | char *kwnames[] = { | |
14634 | (char *) "self", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14640 | { | |
14641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14642 | result = (bool)(arg1)->RightIsDown(); | |
14643 | ||
14644 | wxPyEndAllowThreads(__tstate); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
14647 | { | |
14648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14649 | } | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
c32bde28 | 14656 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14657 | PyObject *resultobj; |
14658 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14659 | bool result; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | char *kwnames[] = { | |
14662 | (char *) "self", NULL | |
14663 | }; | |
14664 | ||
14665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14668 | { | |
14669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14670 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14671 | ||
14672 | wxPyEndAllowThreads(__tstate); | |
14673 | if (PyErr_Occurred()) SWIG_fail; | |
14674 | } | |
14675 | { | |
14676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14677 | } | |
14678 | return resultobj; | |
14679 | fail: | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
c32bde28 | 14684 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14685 | PyObject *resultobj; |
14686 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14687 | bool result; | |
14688 | PyObject * obj0 = 0 ; | |
14689 | char *kwnames[] = { | |
14690 | (char *) "self", NULL | |
14691 | }; | |
14692 | ||
14693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14696 | { | |
14697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14698 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14699 | ||
14700 | wxPyEndAllowThreads(__tstate); | |
14701 | if (PyErr_Occurred()) SWIG_fail; | |
14702 | } | |
14703 | { | |
14704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14705 | } | |
14706 | return resultobj; | |
14707 | fail: | |
14708 | return NULL; | |
14709 | } | |
14710 | ||
14711 | ||
c32bde28 | 14712 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14713 | PyObject *resultobj; |
14714 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14715 | bool result; | |
14716 | PyObject * obj0 = 0 ; | |
14717 | char *kwnames[] = { | |
14718 | (char *) "self", NULL | |
14719 | }; | |
14720 | ||
14721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | { | |
14732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14733 | } | |
14734 | return resultobj; | |
14735 | fail: | |
14736 | return NULL; | |
14737 | } | |
14738 | ||
14739 | ||
c32bde28 | 14740 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14741 | PyObject *resultobj; |
14742 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14743 | bool result; | |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14752 | { | |
14753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14754 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14755 | ||
14756 | wxPyEndAllowThreads(__tstate); | |
14757 | if (PyErr_Occurred()) SWIG_fail; | |
14758 | } | |
14759 | { | |
14760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14761 | } | |
14762 | return resultobj; | |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
c32bde28 | 14768 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14769 | PyObject *resultobj; |
14770 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14771 | wxPoint result; | |
14772 | PyObject * obj0 = 0 ; | |
14773 | char *kwnames[] = { | |
14774 | (char *) "self", NULL | |
14775 | }; | |
14776 | ||
14777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14780 | { | |
14781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14782 | result = (arg1)->GetPosition(); | |
14783 | ||
14784 | wxPyEndAllowThreads(__tstate); | |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
14786 | } | |
14787 | { | |
14788 | wxPoint * resultptr; | |
14789 | resultptr = new wxPoint((wxPoint &) result); | |
14790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14791 | } | |
14792 | return resultobj; | |
14793 | fail: | |
14794 | return NULL; | |
14795 | } | |
14796 | ||
14797 | ||
c32bde28 | 14798 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14799 | PyObject *resultobj; |
14800 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14801 | long *arg2 = (long *) 0 ; | |
14802 | long *arg3 = (long *) 0 ; | |
14803 | long temp2 ; | |
c32bde28 | 14804 | int res2 = 0 ; |
d55e5bfc | 14805 | long temp3 ; |
c32bde28 | 14806 | int res3 = 0 ; |
d55e5bfc RD |
14807 | PyObject * obj0 = 0 ; |
14808 | char *kwnames[] = { | |
14809 | (char *) "self", NULL | |
14810 | }; | |
14811 | ||
c32bde28 RD |
14812 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14813 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
14815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14817 | { | |
14818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14819 | (arg1)->GetPosition(arg2,arg3); | |
14820 | ||
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
14824 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
14825 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14826 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
14827 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14828 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
14829 | return resultobj; |
14830 | fail: | |
14831 | return NULL; | |
14832 | } | |
14833 | ||
14834 | ||
c32bde28 | 14835 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14836 | PyObject *resultobj; |
14837 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14838 | wxDC *arg2 = 0 ; | |
14839 | wxPoint result; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | PyObject * obj1 = 0 ; | |
14842 | char *kwnames[] = { | |
14843 | (char *) "self",(char *) "dc", NULL | |
14844 | }; | |
14845 | ||
14846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14851 | SWIG_fail; | |
14852 | if (arg2 == NULL) { | |
14853 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14854 | SWIG_fail; | |
14855 | } | |
14856 | { | |
14857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14858 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14859 | ||
14860 | wxPyEndAllowThreads(__tstate); | |
14861 | if (PyErr_Occurred()) SWIG_fail; | |
14862 | } | |
14863 | { | |
14864 | wxPoint * resultptr; | |
14865 | resultptr = new wxPoint((wxPoint &) result); | |
14866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14867 | } | |
14868 | return resultobj; | |
14869 | fail: | |
14870 | return NULL; | |
14871 | } | |
14872 | ||
14873 | ||
c32bde28 | 14874 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14875 | PyObject *resultobj; |
14876 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14877 | int result; | |
14878 | PyObject * obj0 = 0 ; | |
14879 | char *kwnames[] = { | |
14880 | (char *) "self", NULL | |
14881 | }; | |
14882 | ||
14883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14886 | { | |
14887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14888 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14889 | ||
14890 | wxPyEndAllowThreads(__tstate); | |
14891 | if (PyErr_Occurred()) SWIG_fail; | |
14892 | } | |
c32bde28 | 14893 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14894 | return resultobj; |
14895 | fail: | |
14896 | return NULL; | |
14897 | } | |
14898 | ||
14899 | ||
c32bde28 | 14900 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14901 | PyObject *resultobj; |
14902 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14903 | int result; | |
14904 | PyObject * obj0 = 0 ; | |
14905 | char *kwnames[] = { | |
14906 | (char *) "self", NULL | |
14907 | }; | |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14912 | { | |
14913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14914 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14915 | ||
14916 | wxPyEndAllowThreads(__tstate); | |
14917 | if (PyErr_Occurred()) SWIG_fail; | |
14918 | } | |
c32bde28 | 14919 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14920 | return resultobj; |
14921 | fail: | |
14922 | return NULL; | |
14923 | } | |
14924 | ||
14925 | ||
c32bde28 | 14926 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14927 | PyObject *resultobj; |
14928 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14929 | int result; | |
14930 | PyObject * obj0 = 0 ; | |
14931 | char *kwnames[] = { | |
14932 | (char *) "self", NULL | |
14933 | }; | |
14934 | ||
14935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14938 | { | |
14939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14940 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14941 | ||
14942 | wxPyEndAllowThreads(__tstate); | |
14943 | if (PyErr_Occurred()) SWIG_fail; | |
14944 | } | |
c32bde28 | 14945 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14946 | return resultobj; |
14947 | fail: | |
14948 | return NULL; | |
14949 | } | |
14950 | ||
14951 | ||
c32bde28 | 14952 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14953 | PyObject *resultobj; |
14954 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14955 | int result; | |
14956 | PyObject * obj0 = 0 ; | |
14957 | char *kwnames[] = { | |
14958 | (char *) "self", NULL | |
14959 | }; | |
14960 | ||
14961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14964 | { | |
14965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14966 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14967 | ||
14968 | wxPyEndAllowThreads(__tstate); | |
14969 | if (PyErr_Occurred()) SWIG_fail; | |
14970 | } | |
c32bde28 | 14971 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14972 | return resultobj; |
14973 | fail: | |
14974 | return NULL; | |
14975 | } | |
14976 | ||
14977 | ||
c32bde28 | 14978 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14979 | PyObject *resultobj; |
14980 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14981 | int result; | |
14982 | PyObject * obj0 = 0 ; | |
14983 | char *kwnames[] = { | |
14984 | (char *) "self", NULL | |
14985 | }; | |
14986 | ||
14987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14990 | { | |
14991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14992 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14993 | ||
14994 | wxPyEndAllowThreads(__tstate); | |
14995 | if (PyErr_Occurred()) SWIG_fail; | |
14996 | } | |
c32bde28 | 14997 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14998 | return resultobj; |
14999 | fail: | |
15000 | return NULL; | |
15001 | } | |
15002 | ||
15003 | ||
c32bde28 | 15004 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15005 | PyObject *resultobj; |
15006 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15007 | bool result; | |
15008 | PyObject * obj0 = 0 ; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "self", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15016 | { | |
15017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15018 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
15019 | ||
15020 | wxPyEndAllowThreads(__tstate); | |
15021 | if (PyErr_Occurred()) SWIG_fail; | |
15022 | } | |
15023 | { | |
15024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15025 | } | |
15026 | return resultobj; | |
15027 | fail: | |
15028 | return NULL; | |
15029 | } | |
15030 | ||
15031 | ||
c32bde28 | 15032 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15033 | PyObject *resultobj; |
15034 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15035 | int arg2 ; | |
15036 | PyObject * obj0 = 0 ; | |
15037 | PyObject * obj1 = 0 ; | |
15038 | char *kwnames[] = { | |
15039 | (char *) "self",(char *) "m_x", NULL | |
15040 | }; | |
15041 | ||
15042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15045 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15046 | if (PyErr_Occurred()) SWIG_fail; |
15047 | if (arg1) (arg1)->m_x = arg2; | |
15048 | ||
15049 | Py_INCREF(Py_None); resultobj = Py_None; | |
15050 | return resultobj; | |
15051 | fail: | |
15052 | return NULL; | |
15053 | } | |
15054 | ||
15055 | ||
c32bde28 | 15056 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15057 | PyObject *resultobj; |
15058 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15059 | int result; | |
15060 | PyObject * obj0 = 0 ; | |
15061 | char *kwnames[] = { | |
15062 | (char *) "self", NULL | |
15063 | }; | |
15064 | ||
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15068 | result = (int) ((arg1)->m_x); | |
15069 | ||
c32bde28 | 15070 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15071 | return resultobj; |
15072 | fail: | |
15073 | return NULL; | |
15074 | } | |
15075 | ||
15076 | ||
c32bde28 | 15077 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15078 | PyObject *resultobj; |
15079 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15080 | int arg2 ; | |
15081 | PyObject * obj0 = 0 ; | |
15082 | PyObject * obj1 = 0 ; | |
15083 | char *kwnames[] = { | |
15084 | (char *) "self",(char *) "m_y", NULL | |
15085 | }; | |
15086 | ||
15087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15090 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15091 | if (PyErr_Occurred()) SWIG_fail; |
15092 | if (arg1) (arg1)->m_y = arg2; | |
15093 | ||
15094 | Py_INCREF(Py_None); resultobj = Py_None; | |
15095 | return resultobj; | |
15096 | fail: | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
c32bde28 | 15101 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15102 | PyObject *resultobj; |
15103 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15104 | int result; | |
15105 | PyObject * obj0 = 0 ; | |
15106 | char *kwnames[] = { | |
15107 | (char *) "self", NULL | |
15108 | }; | |
15109 | ||
15110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15113 | result = (int) ((arg1)->m_y); | |
15114 | ||
c32bde28 | 15115 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15116 | return resultobj; |
15117 | fail: | |
15118 | return NULL; | |
15119 | } | |
15120 | ||
15121 | ||
c32bde28 | 15122 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15123 | PyObject *resultobj; |
15124 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15125 | bool arg2 ; | |
15126 | PyObject * obj0 = 0 ; | |
15127 | PyObject * obj1 = 0 ; | |
15128 | char *kwnames[] = { | |
15129 | (char *) "self",(char *) "m_leftDown", NULL | |
15130 | }; | |
15131 | ||
15132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15135 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15136 | if (PyErr_Occurred()) SWIG_fail; |
15137 | if (arg1) (arg1)->m_leftDown = arg2; | |
15138 | ||
15139 | Py_INCREF(Py_None); resultobj = Py_None; | |
15140 | return resultobj; | |
15141 | fail: | |
15142 | return NULL; | |
15143 | } | |
15144 | ||
15145 | ||
c32bde28 | 15146 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15147 | PyObject *resultobj; |
15148 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15149 | bool result; | |
15150 | PyObject * obj0 = 0 ; | |
15151 | char *kwnames[] = { | |
15152 | (char *) "self", NULL | |
15153 | }; | |
15154 | ||
15155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15158 | result = (bool) ((arg1)->m_leftDown); | |
15159 | ||
15160 | { | |
15161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15162 | } | |
15163 | return resultobj; | |
15164 | fail: | |
15165 | return NULL; | |
15166 | } | |
15167 | ||
15168 | ||
c32bde28 | 15169 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15170 | PyObject *resultobj; |
15171 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15172 | bool arg2 ; | |
15173 | PyObject * obj0 = 0 ; | |
15174 | PyObject * obj1 = 0 ; | |
15175 | char *kwnames[] = { | |
15176 | (char *) "self",(char *) "m_middleDown", NULL | |
15177 | }; | |
15178 | ||
15179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15182 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15183 | if (PyErr_Occurred()) SWIG_fail; |
15184 | if (arg1) (arg1)->m_middleDown = arg2; | |
15185 | ||
15186 | Py_INCREF(Py_None); resultobj = Py_None; | |
15187 | return resultobj; | |
15188 | fail: | |
15189 | return NULL; | |
15190 | } | |
15191 | ||
15192 | ||
c32bde28 | 15193 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15194 | PyObject *resultobj; |
15195 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15196 | bool result; | |
15197 | PyObject * obj0 = 0 ; | |
15198 | char *kwnames[] = { | |
15199 | (char *) "self", NULL | |
15200 | }; | |
15201 | ||
15202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15205 | result = (bool) ((arg1)->m_middleDown); | |
15206 | ||
15207 | { | |
15208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15209 | } | |
15210 | return resultobj; | |
15211 | fail: | |
15212 | return NULL; | |
15213 | } | |
15214 | ||
15215 | ||
c32bde28 | 15216 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15217 | PyObject *resultobj; |
15218 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15219 | bool arg2 ; | |
15220 | PyObject * obj0 = 0 ; | |
15221 | PyObject * obj1 = 0 ; | |
15222 | char *kwnames[] = { | |
15223 | (char *) "self",(char *) "m_rightDown", NULL | |
15224 | }; | |
15225 | ||
15226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15229 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15230 | if (PyErr_Occurred()) SWIG_fail; |
15231 | if (arg1) (arg1)->m_rightDown = arg2; | |
15232 | ||
15233 | Py_INCREF(Py_None); resultobj = Py_None; | |
15234 | return resultobj; | |
15235 | fail: | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
c32bde28 | 15240 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15241 | PyObject *resultobj; |
15242 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15243 | bool result; | |
15244 | PyObject * obj0 = 0 ; | |
15245 | char *kwnames[] = { | |
15246 | (char *) "self", NULL | |
15247 | }; | |
15248 | ||
15249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15252 | result = (bool) ((arg1)->m_rightDown); | |
15253 | ||
15254 | { | |
15255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15256 | } | |
15257 | return resultobj; | |
15258 | fail: | |
15259 | return NULL; | |
15260 | } | |
15261 | ||
15262 | ||
c32bde28 | 15263 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15264 | PyObject *resultobj; |
15265 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15266 | bool arg2 ; | |
15267 | PyObject * obj0 = 0 ; | |
15268 | PyObject * obj1 = 0 ; | |
15269 | char *kwnames[] = { | |
15270 | (char *) "self",(char *) "m_controlDown", NULL | |
15271 | }; | |
15272 | ||
15273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15276 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15277 | if (PyErr_Occurred()) SWIG_fail; |
15278 | if (arg1) (arg1)->m_controlDown = arg2; | |
15279 | ||
15280 | Py_INCREF(Py_None); resultobj = Py_None; | |
15281 | return resultobj; | |
15282 | fail: | |
15283 | return NULL; | |
15284 | } | |
15285 | ||
15286 | ||
c32bde28 | 15287 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15288 | PyObject *resultobj; |
15289 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15290 | bool result; | |
15291 | PyObject * obj0 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self", NULL | |
15294 | }; | |
15295 | ||
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15299 | result = (bool) ((arg1)->m_controlDown); | |
15300 | ||
15301 | { | |
15302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15303 | } | |
15304 | return resultobj; | |
15305 | fail: | |
15306 | return NULL; | |
15307 | } | |
15308 | ||
15309 | ||
c32bde28 | 15310 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15311 | PyObject *resultobj; |
15312 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15313 | bool arg2 ; | |
15314 | PyObject * obj0 = 0 ; | |
15315 | PyObject * obj1 = 0 ; | |
15316 | char *kwnames[] = { | |
15317 | (char *) "self",(char *) "m_shiftDown", NULL | |
15318 | }; | |
15319 | ||
15320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15323 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15324 | if (PyErr_Occurred()) SWIG_fail; |
15325 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15326 | ||
15327 | Py_INCREF(Py_None); resultobj = Py_None; | |
15328 | return resultobj; | |
15329 | fail: | |
15330 | return NULL; | |
15331 | } | |
15332 | ||
15333 | ||
c32bde28 | 15334 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15335 | PyObject *resultobj; |
15336 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15337 | bool result; | |
15338 | PyObject * obj0 = 0 ; | |
15339 | char *kwnames[] = { | |
15340 | (char *) "self", NULL | |
15341 | }; | |
15342 | ||
15343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15346 | result = (bool) ((arg1)->m_shiftDown); | |
15347 | ||
15348 | { | |
15349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15350 | } | |
15351 | return resultobj; | |
15352 | fail: | |
15353 | return NULL; | |
15354 | } | |
15355 | ||
15356 | ||
c32bde28 | 15357 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15358 | PyObject *resultobj; |
15359 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15360 | bool arg2 ; | |
15361 | PyObject * obj0 = 0 ; | |
15362 | PyObject * obj1 = 0 ; | |
15363 | char *kwnames[] = { | |
15364 | (char *) "self",(char *) "m_altDown", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15370 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15371 | if (PyErr_Occurred()) SWIG_fail; |
15372 | if (arg1) (arg1)->m_altDown = arg2; | |
15373 | ||
15374 | Py_INCREF(Py_None); resultobj = Py_None; | |
15375 | return resultobj; | |
15376 | fail: | |
15377 | return NULL; | |
15378 | } | |
15379 | ||
15380 | ||
c32bde28 | 15381 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15382 | PyObject *resultobj; |
15383 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15384 | bool result; | |
15385 | PyObject * obj0 = 0 ; | |
15386 | char *kwnames[] = { | |
15387 | (char *) "self", NULL | |
15388 | }; | |
15389 | ||
15390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15393 | result = (bool) ((arg1)->m_altDown); | |
15394 | ||
15395 | { | |
15396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15397 | } | |
15398 | return resultobj; | |
15399 | fail: | |
15400 | return NULL; | |
15401 | } | |
15402 | ||
15403 | ||
c32bde28 | 15404 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15405 | PyObject *resultobj; |
15406 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15407 | bool arg2 ; | |
15408 | PyObject * obj0 = 0 ; | |
15409 | PyObject * obj1 = 0 ; | |
15410 | char *kwnames[] = { | |
15411 | (char *) "self",(char *) "m_metaDown", NULL | |
15412 | }; | |
15413 | ||
15414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15417 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15418 | if (PyErr_Occurred()) SWIG_fail; |
15419 | if (arg1) (arg1)->m_metaDown = arg2; | |
15420 | ||
15421 | Py_INCREF(Py_None); resultobj = Py_None; | |
15422 | return resultobj; | |
15423 | fail: | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
c32bde28 | 15428 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15429 | PyObject *resultobj; |
15430 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15431 | bool result; | |
15432 | PyObject * obj0 = 0 ; | |
15433 | char *kwnames[] = { | |
15434 | (char *) "self", NULL | |
15435 | }; | |
15436 | ||
15437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15440 | result = (bool) ((arg1)->m_metaDown); | |
15441 | ||
15442 | { | |
15443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15444 | } | |
15445 | return resultobj; | |
15446 | fail: | |
15447 | return NULL; | |
15448 | } | |
15449 | ||
15450 | ||
c32bde28 | 15451 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15452 | PyObject *resultobj; |
15453 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15454 | int arg2 ; | |
15455 | PyObject * obj0 = 0 ; | |
15456 | PyObject * obj1 = 0 ; | |
15457 | char *kwnames[] = { | |
15458 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15459 | }; | |
15460 | ||
15461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15464 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15465 | if (PyErr_Occurred()) SWIG_fail; |
15466 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15467 | ||
15468 | Py_INCREF(Py_None); resultobj = Py_None; | |
15469 | return resultobj; | |
15470 | fail: | |
15471 | return NULL; | |
15472 | } | |
15473 | ||
15474 | ||
c32bde28 | 15475 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15476 | PyObject *resultobj; |
15477 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15478 | int result; | |
15479 | PyObject * obj0 = 0 ; | |
15480 | char *kwnames[] = { | |
15481 | (char *) "self", NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15487 | result = (int) ((arg1)->m_wheelRotation); | |
15488 | ||
c32bde28 | 15489 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15490 | return resultobj; |
15491 | fail: | |
15492 | return NULL; | |
15493 | } | |
15494 | ||
15495 | ||
c32bde28 | 15496 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15497 | PyObject *resultobj; |
15498 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15499 | int arg2 ; | |
15500 | PyObject * obj0 = 0 ; | |
15501 | PyObject * obj1 = 0 ; | |
15502 | char *kwnames[] = { | |
15503 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15504 | }; | |
15505 | ||
15506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15509 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15510 | if (PyErr_Occurred()) SWIG_fail; |
15511 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15512 | ||
15513 | Py_INCREF(Py_None); resultobj = Py_None; | |
15514 | return resultobj; | |
15515 | fail: | |
15516 | return NULL; | |
15517 | } | |
15518 | ||
15519 | ||
c32bde28 | 15520 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15521 | PyObject *resultobj; |
15522 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15523 | int result; | |
15524 | PyObject * obj0 = 0 ; | |
15525 | char *kwnames[] = { | |
15526 | (char *) "self", NULL | |
15527 | }; | |
15528 | ||
15529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15532 | result = (int) ((arg1)->m_wheelDelta); | |
15533 | ||
c32bde28 | 15534 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15535 | return resultobj; |
15536 | fail: | |
15537 | return NULL; | |
15538 | } | |
15539 | ||
15540 | ||
c32bde28 | 15541 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15542 | PyObject *resultobj; |
15543 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15544 | int arg2 ; | |
15545 | PyObject * obj0 = 0 ; | |
15546 | PyObject * obj1 = 0 ; | |
15547 | char *kwnames[] = { | |
15548 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15549 | }; | |
15550 | ||
15551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15554 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15555 | if (PyErr_Occurred()) SWIG_fail; |
15556 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15557 | ||
15558 | Py_INCREF(Py_None); resultobj = Py_None; | |
15559 | return resultobj; | |
15560 | fail: | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
c32bde28 | 15565 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15566 | PyObject *resultobj; |
15567 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15568 | int result; | |
15569 | PyObject * obj0 = 0 ; | |
15570 | char *kwnames[] = { | |
15571 | (char *) "self", NULL | |
15572 | }; | |
15573 | ||
15574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15577 | result = (int) ((arg1)->m_linesPerAction); | |
15578 | ||
c32bde28 | 15579 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15580 | return resultobj; |
15581 | fail: | |
15582 | return NULL; | |
15583 | } | |
15584 | ||
15585 | ||
c32bde28 | 15586 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15587 | PyObject *obj; |
15588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15589 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15590 | Py_INCREF(obj); | |
15591 | return Py_BuildValue((char *)""); | |
15592 | } | |
c32bde28 | 15593 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15594 | PyObject *resultobj; |
15595 | int arg1 = (int) 0 ; | |
15596 | int arg2 = (int) 0 ; | |
15597 | wxSetCursorEvent *result; | |
15598 | PyObject * obj0 = 0 ; | |
15599 | PyObject * obj1 = 0 ; | |
15600 | char *kwnames[] = { | |
15601 | (char *) "x",(char *) "y", NULL | |
15602 | }; | |
15603 | ||
15604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15605 | if (obj0) { | |
c32bde28 | 15606 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
15607 | if (PyErr_Occurred()) SWIG_fail; |
15608 | } | |
15609 | if (obj1) { | |
c32bde28 | 15610 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15611 | if (PyErr_Occurred()) SWIG_fail; |
15612 | } | |
15613 | { | |
15614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15615 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15616 | ||
15617 | wxPyEndAllowThreads(__tstate); | |
15618 | if (PyErr_Occurred()) SWIG_fail; | |
15619 | } | |
15620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15621 | return resultobj; | |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
c32bde28 | 15627 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15628 | PyObject *resultobj; |
15629 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15630 | int result; | |
15631 | PyObject * obj0 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "self", NULL | |
15634 | }; | |
15635 | ||
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15639 | { | |
15640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15641 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15642 | ||
15643 | wxPyEndAllowThreads(__tstate); | |
15644 | if (PyErr_Occurred()) SWIG_fail; | |
15645 | } | |
c32bde28 | 15646 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15647 | return resultobj; |
15648 | fail: | |
15649 | return NULL; | |
15650 | } | |
15651 | ||
15652 | ||
c32bde28 | 15653 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15654 | PyObject *resultobj; |
15655 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15656 | int result; | |
15657 | PyObject * obj0 = 0 ; | |
15658 | char *kwnames[] = { | |
15659 | (char *) "self", NULL | |
15660 | }; | |
15661 | ||
15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15665 | { | |
15666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15667 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15668 | ||
15669 | wxPyEndAllowThreads(__tstate); | |
15670 | if (PyErr_Occurred()) SWIG_fail; | |
15671 | } | |
c32bde28 | 15672 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15673 | return resultobj; |
15674 | fail: | |
15675 | return NULL; | |
15676 | } | |
15677 | ||
15678 | ||
c32bde28 | 15679 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15680 | PyObject *resultobj; |
15681 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15682 | wxCursor *arg2 = 0 ; | |
15683 | PyObject * obj0 = 0 ; | |
15684 | PyObject * obj1 = 0 ; | |
15685 | char *kwnames[] = { | |
15686 | (char *) "self",(char *) "cursor", NULL | |
15687 | }; | |
15688 | ||
15689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15693 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15694 | SWIG_fail; | |
15695 | if (arg2 == NULL) { | |
15696 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15697 | SWIG_fail; | |
15698 | } | |
15699 | { | |
15700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15701 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15702 | ||
15703 | wxPyEndAllowThreads(__tstate); | |
15704 | if (PyErr_Occurred()) SWIG_fail; | |
15705 | } | |
15706 | Py_INCREF(Py_None); resultobj = Py_None; | |
15707 | return resultobj; | |
15708 | fail: | |
15709 | return NULL; | |
15710 | } | |
15711 | ||
15712 | ||
c32bde28 | 15713 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15714 | PyObject *resultobj; |
15715 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15716 | wxCursor *result; | |
15717 | PyObject * obj0 = 0 ; | |
15718 | char *kwnames[] = { | |
15719 | (char *) "self", NULL | |
15720 | }; | |
15721 | ||
15722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15725 | { | |
15726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15727 | { | |
15728 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15729 | result = (wxCursor *) &_result_ref; | |
15730 | } | |
15731 | ||
15732 | wxPyEndAllowThreads(__tstate); | |
15733 | if (PyErr_Occurred()) SWIG_fail; | |
15734 | } | |
15735 | { | |
15736 | wxCursor* resultptr = new wxCursor(*result); | |
15737 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15738 | } | |
15739 | return resultobj; | |
15740 | fail: | |
15741 | return NULL; | |
15742 | } | |
15743 | ||
15744 | ||
c32bde28 | 15745 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15746 | PyObject *resultobj; |
15747 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15748 | bool result; | |
15749 | PyObject * obj0 = 0 ; | |
15750 | char *kwnames[] = { | |
15751 | (char *) "self", NULL | |
15752 | }; | |
15753 | ||
15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15757 | { | |
15758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15759 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15760 | ||
15761 | wxPyEndAllowThreads(__tstate); | |
15762 | if (PyErr_Occurred()) SWIG_fail; | |
15763 | } | |
15764 | { | |
15765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15766 | } | |
15767 | return resultobj; | |
15768 | fail: | |
15769 | return NULL; | |
15770 | } | |
15771 | ||
15772 | ||
c32bde28 | 15773 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15774 | PyObject *obj; |
15775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15776 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15777 | Py_INCREF(obj); | |
15778 | return Py_BuildValue((char *)""); | |
15779 | } | |
c32bde28 | 15780 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15781 | PyObject *resultobj; |
15782 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15783 | wxKeyEvent *result; | |
15784 | PyObject * obj0 = 0 ; | |
15785 | char *kwnames[] = { | |
15786 | (char *) "keyType", NULL | |
15787 | }; | |
15788 | ||
15789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15790 | if (obj0) { | |
c32bde28 | 15791 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15792 | if (PyErr_Occurred()) SWIG_fail; |
15793 | } | |
15794 | { | |
15795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15796 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15797 | ||
15798 | wxPyEndAllowThreads(__tstate); | |
15799 | if (PyErr_Occurred()) SWIG_fail; | |
15800 | } | |
15801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15802 | return resultobj; | |
15803 | fail: | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
c32bde28 | 15808 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15809 | PyObject *resultobj; |
15810 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15811 | bool result; | |
15812 | PyObject * obj0 = 0 ; | |
15813 | char *kwnames[] = { | |
15814 | (char *) "self", NULL | |
15815 | }; | |
15816 | ||
15817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15820 | { | |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15822 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15823 | ||
15824 | wxPyEndAllowThreads(__tstate); | |
15825 | if (PyErr_Occurred()) SWIG_fail; | |
15826 | } | |
15827 | { | |
15828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15829 | } | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
c32bde28 | 15836 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15837 | PyObject *resultobj; |
15838 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15839 | bool result; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | char *kwnames[] = { | |
15842 | (char *) "self", NULL | |
15843 | }; | |
15844 | ||
15845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15848 | { | |
15849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15850 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15851 | ||
15852 | wxPyEndAllowThreads(__tstate); | |
15853 | if (PyErr_Occurred()) SWIG_fail; | |
15854 | } | |
15855 | { | |
15856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15857 | } | |
15858 | return resultobj; | |
15859 | fail: | |
15860 | return NULL; | |
15861 | } | |
15862 | ||
15863 | ||
c32bde28 | 15864 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15865 | PyObject *resultobj; |
15866 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15867 | bool result; | |
15868 | PyObject * obj0 = 0 ; | |
15869 | char *kwnames[] = { | |
15870 | (char *) "self", NULL | |
15871 | }; | |
15872 | ||
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15876 | { | |
15877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15878 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15879 | ||
15880 | wxPyEndAllowThreads(__tstate); | |
15881 | if (PyErr_Occurred()) SWIG_fail; | |
15882 | } | |
15883 | { | |
15884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15885 | } | |
15886 | return resultobj; | |
15887 | fail: | |
15888 | return NULL; | |
15889 | } | |
15890 | ||
15891 | ||
c32bde28 | 15892 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15893 | PyObject *resultobj; |
15894 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15895 | bool result; | |
15896 | PyObject * obj0 = 0 ; | |
15897 | char *kwnames[] = { | |
15898 | (char *) "self", NULL | |
15899 | }; | |
15900 | ||
15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15904 | { | |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15906 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15907 | ||
15908 | wxPyEndAllowThreads(__tstate); | |
15909 | if (PyErr_Occurred()) SWIG_fail; | |
15910 | } | |
15911 | { | |
15912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15913 | } | |
15914 | return resultobj; | |
15915 | fail: | |
15916 | return NULL; | |
15917 | } | |
15918 | ||
15919 | ||
c32bde28 | 15920 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
15921 | PyObject *resultobj; |
15922 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15923 | bool result; | |
15924 | PyObject * obj0 = 0 ; | |
15925 | char *kwnames[] = { | |
15926 | (char *) "self", NULL | |
15927 | }; | |
15928 | ||
15929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
15930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15932 | { | |
15933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15934 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
15935 | ||
15936 | wxPyEndAllowThreads(__tstate); | |
15937 | if (PyErr_Occurred()) SWIG_fail; | |
15938 | } | |
15939 | { | |
15940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15941 | } | |
15942 | return resultobj; | |
15943 | fail: | |
15944 | return NULL; | |
15945 | } | |
15946 | ||
15947 | ||
c32bde28 | 15948 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15949 | PyObject *resultobj; |
15950 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15951 | bool result; | |
15952 | PyObject * obj0 = 0 ; | |
15953 | char *kwnames[] = { | |
15954 | (char *) "self", NULL | |
15955 | }; | |
15956 | ||
15957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15960 | { | |
15961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15962 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15963 | ||
15964 | wxPyEndAllowThreads(__tstate); | |
15965 | if (PyErr_Occurred()) SWIG_fail; | |
15966 | } | |
15967 | { | |
15968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15969 | } | |
15970 | return resultobj; | |
15971 | fail: | |
15972 | return NULL; | |
15973 | } | |
15974 | ||
15975 | ||
c32bde28 | 15976 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15977 | PyObject *resultobj; |
15978 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15979 | int result; | |
15980 | PyObject * obj0 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "self", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15988 | { | |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15990 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
c32bde28 | 15995 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15996 | return resultobj; |
15997 | fail: | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
c32bde28 | 16002 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16003 | PyObject *resultobj; |
16004 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16005 | int result; | |
16006 | PyObject * obj0 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "self", NULL | |
16009 | }; | |
16010 | ||
19272049 | 16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16014 | { | |
16015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 16016 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
16017 | |
16018 | wxPyEndAllowThreads(__tstate); | |
16019 | if (PyErr_Occurred()) SWIG_fail; | |
16020 | } | |
c32bde28 | 16021 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16022 | return resultobj; |
16023 | fail: | |
16024 | return NULL; | |
16025 | } | |
16026 | ||
16027 | ||
c32bde28 | 16028 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16029 | PyObject *resultobj; |
16030 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16031 | unsigned int result; | |
16032 | PyObject * obj0 = 0 ; | |
16033 | char *kwnames[] = { | |
16034 | (char *) "self", NULL | |
16035 | }; | |
16036 | ||
16037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
16038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16040 | { | |
16041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16042 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
16043 | ||
16044 | wxPyEndAllowThreads(__tstate); | |
16045 | if (PyErr_Occurred()) SWIG_fail; | |
16046 | } | |
c32bde28 | 16047 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16048 | return resultobj; |
16049 | fail: | |
16050 | return NULL; | |
16051 | } | |
16052 | ||
16053 | ||
c32bde28 | 16054 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16055 | PyObject *resultobj; |
16056 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16057 | unsigned int result; | |
16058 | PyObject * obj0 = 0 ; | |
16059 | char *kwnames[] = { | |
16060 | (char *) "self", NULL | |
16061 | }; | |
16062 | ||
16063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
16064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16066 | { | |
16067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16068 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
16069 | ||
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
c32bde28 | 16073 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16074 | return resultobj; |
16075 | fail: | |
16076 | return NULL; | |
16077 | } | |
16078 | ||
16079 | ||
c32bde28 | 16080 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16081 | PyObject *resultobj; |
16082 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16083 | wxPoint result; | |
16084 | PyObject * obj0 = 0 ; | |
16085 | char *kwnames[] = { | |
16086 | (char *) "self", NULL | |
16087 | }; | |
16088 | ||
16089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16092 | { | |
16093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16094 | result = (arg1)->GetPosition(); | |
16095 | ||
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | { | |
16100 | wxPoint * resultptr; | |
16101 | resultptr = new wxPoint((wxPoint &) result); | |
16102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16103 | } | |
16104 | return resultobj; | |
16105 | fail: | |
16106 | return NULL; | |
16107 | } | |
16108 | ||
16109 | ||
c32bde28 | 16110 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16111 | PyObject *resultobj; |
16112 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16113 | long *arg2 = (long *) 0 ; | |
16114 | long *arg3 = (long *) 0 ; | |
16115 | long temp2 ; | |
c32bde28 | 16116 | int res2 = 0 ; |
d55e5bfc | 16117 | long temp3 ; |
c32bde28 | 16118 | int res3 = 0 ; |
d55e5bfc RD |
16119 | PyObject * obj0 = 0 ; |
16120 | char *kwnames[] = { | |
16121 | (char *) "self", NULL | |
16122 | }; | |
16123 | ||
c32bde28 RD |
16124 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16125 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
16127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16129 | { | |
16130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16131 | (arg1)->GetPosition(arg2,arg3); | |
16132 | ||
16133 | wxPyEndAllowThreads(__tstate); | |
16134 | if (PyErr_Occurred()) SWIG_fail; | |
16135 | } | |
16136 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
16137 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16138 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16139 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16140 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16141 | return resultobj; |
16142 | fail: | |
16143 | return NULL; | |
16144 | } | |
16145 | ||
16146 | ||
c32bde28 | 16147 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16148 | PyObject *resultobj; |
16149 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16150 | int result; | |
16151 | PyObject * obj0 = 0 ; | |
16152 | char *kwnames[] = { | |
16153 | (char *) "self", NULL | |
16154 | }; | |
16155 | ||
16156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
16157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16159 | { | |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
c32bde28 | 16166 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16167 | return resultobj; |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
c32bde28 | 16173 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16174 | PyObject *resultobj; |
16175 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16176 | int result; | |
16177 | PyObject * obj0 = 0 ; | |
16178 | char *kwnames[] = { | |
16179 | (char *) "self", NULL | |
16180 | }; | |
16181 | ||
16182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
16183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16185 | { | |
16186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16187 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
16188 | ||
16189 | wxPyEndAllowThreads(__tstate); | |
16190 | if (PyErr_Occurred()) SWIG_fail; | |
16191 | } | |
c32bde28 | 16192 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16193 | return resultobj; |
16194 | fail: | |
16195 | return NULL; | |
16196 | } | |
16197 | ||
16198 | ||
c32bde28 | 16199 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16200 | PyObject *resultobj; |
16201 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16202 | int arg2 ; | |
16203 | PyObject * obj0 = 0 ; | |
16204 | PyObject * obj1 = 0 ; | |
16205 | char *kwnames[] = { | |
16206 | (char *) "self",(char *) "m_x", NULL | |
16207 | }; | |
16208 | ||
16209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
16210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16212 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16213 | if (PyErr_Occurred()) SWIG_fail; |
16214 | if (arg1) (arg1)->m_x = arg2; | |
16215 | ||
16216 | Py_INCREF(Py_None); resultobj = Py_None; | |
16217 | return resultobj; | |
16218 | fail: | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
c32bde28 | 16223 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16224 | PyObject *resultobj; |
16225 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16226 | int result; | |
16227 | PyObject * obj0 = 0 ; | |
16228 | char *kwnames[] = { | |
16229 | (char *) "self", NULL | |
16230 | }; | |
16231 | ||
16232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
16233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16235 | result = (int) ((arg1)->m_x); | |
16236 | ||
c32bde28 | 16237 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16238 | return resultobj; |
16239 | fail: | |
16240 | return NULL; | |
16241 | } | |
16242 | ||
16243 | ||
c32bde28 | 16244 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16245 | PyObject *resultobj; |
16246 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16247 | int arg2 ; | |
16248 | PyObject * obj0 = 0 ; | |
16249 | PyObject * obj1 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self",(char *) "m_y", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
16255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16257 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16258 | if (PyErr_Occurred()) SWIG_fail; |
16259 | if (arg1) (arg1)->m_y = arg2; | |
16260 | ||
16261 | Py_INCREF(Py_None); resultobj = Py_None; | |
16262 | return resultobj; | |
16263 | fail: | |
16264 | return NULL; | |
16265 | } | |
16266 | ||
16267 | ||
c32bde28 | 16268 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16269 | PyObject *resultobj; |
16270 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16271 | int result; | |
16272 | PyObject * obj0 = 0 ; | |
16273 | char *kwnames[] = { | |
16274 | (char *) "self", NULL | |
16275 | }; | |
16276 | ||
16277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16280 | result = (int) ((arg1)->m_y); | |
16281 | ||
c32bde28 | 16282 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16283 | return resultobj; |
16284 | fail: | |
16285 | return NULL; | |
16286 | } | |
16287 | ||
16288 | ||
c32bde28 | 16289 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16290 | PyObject *resultobj; |
16291 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16292 | long arg2 ; | |
16293 | PyObject * obj0 = 0 ; | |
16294 | PyObject * obj1 = 0 ; | |
16295 | char *kwnames[] = { | |
16296 | (char *) "self",(char *) "m_keyCode", NULL | |
16297 | }; | |
16298 | ||
16299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16302 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16303 | if (PyErr_Occurred()) SWIG_fail; |
16304 | if (arg1) (arg1)->m_keyCode = arg2; | |
16305 | ||
16306 | Py_INCREF(Py_None); resultobj = Py_None; | |
16307 | return resultobj; | |
16308 | fail: | |
16309 | return NULL; | |
16310 | } | |
16311 | ||
16312 | ||
c32bde28 | 16313 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16314 | PyObject *resultobj; |
16315 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16316 | long result; | |
16317 | PyObject * obj0 = 0 ; | |
16318 | char *kwnames[] = { | |
16319 | (char *) "self", NULL | |
16320 | }; | |
16321 | ||
16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16325 | result = (long) ((arg1)->m_keyCode); | |
16326 | ||
c32bde28 | 16327 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16328 | return resultobj; |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
c32bde28 | 16334 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16335 | PyObject *resultobj; |
16336 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16337 | bool arg2 ; | |
16338 | PyObject * obj0 = 0 ; | |
16339 | PyObject * obj1 = 0 ; | |
16340 | char *kwnames[] = { | |
16341 | (char *) "self",(char *) "m_controlDown", NULL | |
16342 | }; | |
16343 | ||
16344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16347 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16348 | if (PyErr_Occurred()) SWIG_fail; |
16349 | if (arg1) (arg1)->m_controlDown = arg2; | |
16350 | ||
16351 | Py_INCREF(Py_None); resultobj = Py_None; | |
16352 | return resultobj; | |
16353 | fail: | |
16354 | return NULL; | |
16355 | } | |
16356 | ||
16357 | ||
c32bde28 | 16358 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16359 | PyObject *resultobj; |
16360 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16361 | bool result; | |
16362 | PyObject * obj0 = 0 ; | |
16363 | char *kwnames[] = { | |
16364 | (char *) "self", NULL | |
16365 | }; | |
16366 | ||
16367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16370 | result = (bool) ((arg1)->m_controlDown); | |
16371 | ||
16372 | { | |
16373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16374 | } | |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
c32bde28 | 16381 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16382 | PyObject *resultobj; |
16383 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16384 | bool arg2 ; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | PyObject * obj1 = 0 ; | |
16387 | char *kwnames[] = { | |
16388 | (char *) "self",(char *) "m_shiftDown", NULL | |
16389 | }; | |
16390 | ||
16391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16394 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16395 | if (PyErr_Occurred()) SWIG_fail; |
16396 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16397 | ||
16398 | Py_INCREF(Py_None); resultobj = Py_None; | |
16399 | return resultobj; | |
16400 | fail: | |
16401 | return NULL; | |
16402 | } | |
16403 | ||
16404 | ||
c32bde28 | 16405 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16406 | PyObject *resultobj; |
16407 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16408 | bool result; | |
16409 | PyObject * obj0 = 0 ; | |
16410 | char *kwnames[] = { | |
16411 | (char *) "self", NULL | |
16412 | }; | |
16413 | ||
16414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16417 | result = (bool) ((arg1)->m_shiftDown); | |
16418 | ||
16419 | { | |
16420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16421 | } | |
16422 | return resultobj; | |
16423 | fail: | |
16424 | return NULL; | |
16425 | } | |
16426 | ||
16427 | ||
c32bde28 | 16428 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16429 | PyObject *resultobj; |
16430 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16431 | bool arg2 ; | |
16432 | PyObject * obj0 = 0 ; | |
16433 | PyObject * obj1 = 0 ; | |
16434 | char *kwnames[] = { | |
16435 | (char *) "self",(char *) "m_altDown", NULL | |
16436 | }; | |
16437 | ||
16438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16441 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16442 | if (PyErr_Occurred()) SWIG_fail; |
16443 | if (arg1) (arg1)->m_altDown = arg2; | |
16444 | ||
16445 | Py_INCREF(Py_None); resultobj = Py_None; | |
16446 | return resultobj; | |
16447 | fail: | |
16448 | return NULL; | |
16449 | } | |
16450 | ||
16451 | ||
c32bde28 | 16452 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16453 | PyObject *resultobj; |
16454 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16455 | bool result; | |
16456 | PyObject * obj0 = 0 ; | |
16457 | char *kwnames[] = { | |
16458 | (char *) "self", NULL | |
16459 | }; | |
16460 | ||
16461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16464 | result = (bool) ((arg1)->m_altDown); | |
16465 | ||
16466 | { | |
16467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16468 | } | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
c32bde28 | 16475 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16476 | PyObject *resultobj; |
16477 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16478 | bool arg2 ; | |
16479 | PyObject * obj0 = 0 ; | |
16480 | PyObject * obj1 = 0 ; | |
16481 | char *kwnames[] = { | |
16482 | (char *) "self",(char *) "m_metaDown", NULL | |
16483 | }; | |
16484 | ||
16485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16488 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16489 | if (PyErr_Occurred()) SWIG_fail; |
16490 | if (arg1) (arg1)->m_metaDown = arg2; | |
16491 | ||
16492 | Py_INCREF(Py_None); resultobj = Py_None; | |
16493 | return resultobj; | |
16494 | fail: | |
16495 | return NULL; | |
16496 | } | |
16497 | ||
16498 | ||
c32bde28 | 16499 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16500 | PyObject *resultobj; |
16501 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16502 | bool result; | |
16503 | PyObject * obj0 = 0 ; | |
16504 | char *kwnames[] = { | |
16505 | (char *) "self", NULL | |
16506 | }; | |
16507 | ||
16508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16511 | result = (bool) ((arg1)->m_metaDown); | |
16512 | ||
16513 | { | |
16514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16515 | } | |
16516 | return resultobj; | |
16517 | fail: | |
16518 | return NULL; | |
16519 | } | |
16520 | ||
16521 | ||
c32bde28 | 16522 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16523 | PyObject *resultobj; |
16524 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16525 | bool arg2 ; | |
16526 | PyObject * obj0 = 0 ; | |
16527 | PyObject * obj1 = 0 ; | |
16528 | char *kwnames[] = { | |
16529 | (char *) "self",(char *) "m_scanCode", NULL | |
16530 | }; | |
16531 | ||
16532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16535 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16536 | if (PyErr_Occurred()) SWIG_fail; |
16537 | if (arg1) (arg1)->m_scanCode = arg2; | |
16538 | ||
16539 | Py_INCREF(Py_None); resultobj = Py_None; | |
16540 | return resultobj; | |
16541 | fail: | |
16542 | return NULL; | |
16543 | } | |
16544 | ||
16545 | ||
c32bde28 | 16546 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16547 | PyObject *resultobj; |
16548 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16549 | bool result; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | char *kwnames[] = { | |
16552 | (char *) "self", NULL | |
16553 | }; | |
16554 | ||
16555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16558 | result = (bool) ((arg1)->m_scanCode); | |
16559 | ||
16560 | { | |
16561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16562 | } | |
16563 | return resultobj; | |
16564 | fail: | |
16565 | return NULL; | |
16566 | } | |
16567 | ||
16568 | ||
c32bde28 | 16569 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16570 | PyObject *resultobj; |
16571 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16572 | unsigned int arg2 ; | |
16573 | PyObject * obj0 = 0 ; | |
16574 | PyObject * obj1 = 0 ; | |
16575 | char *kwnames[] = { | |
16576 | (char *) "self",(char *) "m_rawCode", NULL | |
16577 | }; | |
16578 | ||
16579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16582 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16583 | if (PyErr_Occurred()) SWIG_fail; |
16584 | if (arg1) (arg1)->m_rawCode = arg2; | |
16585 | ||
16586 | Py_INCREF(Py_None); resultobj = Py_None; | |
16587 | return resultobj; | |
16588 | fail: | |
16589 | return NULL; | |
16590 | } | |
16591 | ||
16592 | ||
c32bde28 | 16593 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16594 | PyObject *resultobj; |
16595 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16596 | unsigned int result; | |
16597 | PyObject * obj0 = 0 ; | |
16598 | char *kwnames[] = { | |
16599 | (char *) "self", NULL | |
16600 | }; | |
16601 | ||
16602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16605 | result = (unsigned int) ((arg1)->m_rawCode); | |
16606 | ||
c32bde28 | 16607 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16608 | return resultobj; |
16609 | fail: | |
16610 | return NULL; | |
16611 | } | |
16612 | ||
16613 | ||
c32bde28 | 16614 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16615 | PyObject *resultobj; |
16616 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16617 | unsigned int arg2 ; | |
16618 | PyObject * obj0 = 0 ; | |
16619 | PyObject * obj1 = 0 ; | |
16620 | char *kwnames[] = { | |
16621 | (char *) "self",(char *) "m_rawFlags", NULL | |
16622 | }; | |
16623 | ||
16624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16627 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16628 | if (PyErr_Occurred()) SWIG_fail; |
16629 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16630 | ||
16631 | Py_INCREF(Py_None); resultobj = Py_None; | |
16632 | return resultobj; | |
16633 | fail: | |
16634 | return NULL; | |
16635 | } | |
16636 | ||
16637 | ||
c32bde28 | 16638 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16639 | PyObject *resultobj; |
16640 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16641 | unsigned int result; | |
16642 | PyObject * obj0 = 0 ; | |
16643 | char *kwnames[] = { | |
16644 | (char *) "self", NULL | |
16645 | }; | |
16646 | ||
16647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16650 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16651 | ||
c32bde28 | 16652 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16653 | return resultobj; |
16654 | fail: | |
16655 | return NULL; | |
16656 | } | |
16657 | ||
16658 | ||
c32bde28 | 16659 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16660 | PyObject *obj; |
16661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16662 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16663 | Py_INCREF(obj); | |
16664 | return Py_BuildValue((char *)""); | |
16665 | } | |
c32bde28 | 16666 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16667 | PyObject *resultobj; |
16668 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16669 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16670 | int arg2 = (int) 0 ; | |
16671 | wxSizeEvent *result; | |
16672 | wxSize temp1 ; | |
16673 | PyObject * obj0 = 0 ; | |
16674 | PyObject * obj1 = 0 ; | |
16675 | char *kwnames[] = { | |
16676 | (char *) "sz",(char *) "winid", NULL | |
16677 | }; | |
16678 | ||
16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16680 | if (obj0) { | |
16681 | { | |
16682 | arg1 = &temp1; | |
16683 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16684 | } | |
16685 | } | |
16686 | if (obj1) { | |
c32bde28 | 16687 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16688 | if (PyErr_Occurred()) SWIG_fail; |
16689 | } | |
16690 | { | |
16691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16692 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16693 | ||
16694 | wxPyEndAllowThreads(__tstate); | |
16695 | if (PyErr_Occurred()) SWIG_fail; | |
16696 | } | |
16697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16698 | return resultobj; | |
16699 | fail: | |
16700 | return NULL; | |
16701 | } | |
16702 | ||
16703 | ||
c32bde28 | 16704 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16705 | PyObject *resultobj; |
16706 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16707 | wxSize result; | |
16708 | PyObject * obj0 = 0 ; | |
16709 | char *kwnames[] = { | |
16710 | (char *) "self", NULL | |
16711 | }; | |
16712 | ||
16713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16716 | { | |
16717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16718 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16719 | ||
16720 | wxPyEndAllowThreads(__tstate); | |
16721 | if (PyErr_Occurred()) SWIG_fail; | |
16722 | } | |
16723 | { | |
16724 | wxSize * resultptr; | |
16725 | resultptr = new wxSize((wxSize &) result); | |
16726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16727 | } | |
16728 | return resultobj; | |
16729 | fail: | |
16730 | return NULL; | |
16731 | } | |
16732 | ||
16733 | ||
c32bde28 | 16734 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16735 | PyObject *resultobj; |
16736 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16737 | wxRect result; | |
16738 | PyObject * obj0 = 0 ; | |
16739 | char *kwnames[] = { | |
16740 | (char *) "self", NULL | |
16741 | }; | |
16742 | ||
16743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16746 | { | |
16747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16748 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16749 | ||
16750 | wxPyEndAllowThreads(__tstate); | |
16751 | if (PyErr_Occurred()) SWIG_fail; | |
16752 | } | |
16753 | { | |
16754 | wxRect * resultptr; | |
16755 | resultptr = new wxRect((wxRect &) result); | |
16756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16757 | } | |
16758 | return resultobj; | |
16759 | fail: | |
16760 | return NULL; | |
16761 | } | |
16762 | ||
16763 | ||
c32bde28 | 16764 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16765 | PyObject *resultobj; |
16766 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16767 | wxRect arg2 ; | |
16768 | wxRect *argp2 ; | |
16769 | PyObject * obj0 = 0 ; | |
16770 | PyObject * obj1 = 0 ; | |
16771 | char *kwnames[] = { | |
16772 | (char *) "self",(char *) "rect", NULL | |
16773 | }; | |
16774 | ||
16775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16778 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16779 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16780 | arg2 = *argp2; | |
16781 | { | |
16782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16783 | (arg1)->SetRect(arg2); | |
16784 | ||
16785 | wxPyEndAllowThreads(__tstate); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
16788 | Py_INCREF(Py_None); resultobj = Py_None; | |
16789 | return resultobj; | |
16790 | fail: | |
16791 | return NULL; | |
16792 | } | |
16793 | ||
16794 | ||
c32bde28 | 16795 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16796 | PyObject *resultobj; |
16797 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16798 | wxSize arg2 ; | |
16799 | wxSize *argp2 ; | |
16800 | PyObject * obj0 = 0 ; | |
16801 | PyObject * obj1 = 0 ; | |
16802 | char *kwnames[] = { | |
16803 | (char *) "self",(char *) "size", NULL | |
16804 | }; | |
16805 | ||
16806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16809 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16810 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16811 | arg2 = *argp2; | |
16812 | { | |
16813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16814 | wxSizeEvent_SetSize(arg1,arg2); | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | Py_INCREF(Py_None); resultobj = Py_None; | |
16820 | return resultobj; | |
16821 | fail: | |
16822 | return NULL; | |
16823 | } | |
16824 | ||
16825 | ||
c32bde28 | 16826 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16827 | PyObject *resultobj; |
16828 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16829 | wxSize *arg2 = (wxSize *) 0 ; | |
16830 | PyObject * obj0 = 0 ; | |
16831 | PyObject * obj1 = 0 ; | |
16832 | char *kwnames[] = { | |
16833 | (char *) "self",(char *) "m_size", NULL | |
16834 | }; | |
16835 | ||
16836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16841 | if (arg1) (arg1)->m_size = *arg2; | |
16842 | ||
16843 | Py_INCREF(Py_None); resultobj = Py_None; | |
16844 | return resultobj; | |
16845 | fail: | |
16846 | return NULL; | |
16847 | } | |
16848 | ||
16849 | ||
c32bde28 | 16850 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16851 | PyObject *resultobj; |
16852 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16853 | wxSize *result; | |
16854 | PyObject * obj0 = 0 ; | |
16855 | char *kwnames[] = { | |
16856 | (char *) "self", NULL | |
16857 | }; | |
16858 | ||
16859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16862 | result = (wxSize *)& ((arg1)->m_size); | |
16863 | ||
16864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16865 | return resultobj; | |
16866 | fail: | |
16867 | return NULL; | |
16868 | } | |
16869 | ||
16870 | ||
c32bde28 | 16871 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16872 | PyObject *resultobj; |
16873 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16874 | wxRect *arg2 = (wxRect *) 0 ; | |
16875 | PyObject * obj0 = 0 ; | |
16876 | PyObject * obj1 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self",(char *) "m_rect", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16886 | if (arg1) (arg1)->m_rect = *arg2; | |
16887 | ||
16888 | Py_INCREF(Py_None); resultobj = Py_None; | |
16889 | return resultobj; | |
16890 | fail: | |
16891 | return NULL; | |
16892 | } | |
16893 | ||
16894 | ||
c32bde28 | 16895 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16896 | PyObject *resultobj; |
16897 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16898 | wxRect *result; | |
16899 | PyObject * obj0 = 0 ; | |
16900 | char *kwnames[] = { | |
16901 | (char *) "self", NULL | |
16902 | }; | |
16903 | ||
16904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16907 | result = (wxRect *)& ((arg1)->m_rect); | |
16908 | ||
16909 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16910 | return resultobj; | |
16911 | fail: | |
16912 | return NULL; | |
16913 | } | |
16914 | ||
16915 | ||
c32bde28 | 16916 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16917 | PyObject *obj; |
16918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16919 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16920 | Py_INCREF(obj); | |
16921 | return Py_BuildValue((char *)""); | |
16922 | } | |
c32bde28 | 16923 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16924 | PyObject *resultobj; |
16925 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16926 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16927 | int arg2 = (int) 0 ; | |
16928 | wxMoveEvent *result; | |
16929 | wxPoint temp1 ; | |
16930 | PyObject * obj0 = 0 ; | |
16931 | PyObject * obj1 = 0 ; | |
16932 | char *kwnames[] = { | |
16933 | (char *) "pos",(char *) "winid", NULL | |
16934 | }; | |
16935 | ||
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16937 | if (obj0) { | |
16938 | { | |
16939 | arg1 = &temp1; | |
16940 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16941 | } | |
16942 | } | |
16943 | if (obj1) { | |
c32bde28 | 16944 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16945 | if (PyErr_Occurred()) SWIG_fail; |
16946 | } | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16955 | return resultobj; | |
16956 | fail: | |
16957 | return NULL; | |
16958 | } | |
16959 | ||
16960 | ||
c32bde28 | 16961 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16962 | PyObject *resultobj; |
16963 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16964 | wxPoint result; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | char *kwnames[] = { | |
16967 | (char *) "self", NULL | |
16968 | }; | |
16969 | ||
16970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16973 | { | |
16974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16975 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16976 | ||
16977 | wxPyEndAllowThreads(__tstate); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
16979 | } | |
16980 | { | |
16981 | wxPoint * resultptr; | |
16982 | resultptr = new wxPoint((wxPoint &) result); | |
16983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16984 | } | |
16985 | return resultobj; | |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
c32bde28 | 16991 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16992 | PyObject *resultobj; |
16993 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16994 | wxRect result; | |
16995 | PyObject * obj0 = 0 ; | |
16996 | char *kwnames[] = { | |
16997 | (char *) "self", NULL | |
16998 | }; | |
16999 | ||
17000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
17001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17003 | { | |
17004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17005 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
17006 | ||
17007 | wxPyEndAllowThreads(__tstate); | |
17008 | if (PyErr_Occurred()) SWIG_fail; | |
17009 | } | |
17010 | { | |
17011 | wxRect * resultptr; | |
17012 | resultptr = new wxRect((wxRect &) result); | |
17013 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
17014 | } | |
17015 | return resultobj; | |
17016 | fail: | |
17017 | return NULL; | |
17018 | } | |
17019 | ||
17020 | ||
c32bde28 | 17021 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17022 | PyObject *resultobj; |
17023 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17024 | wxRect arg2 ; | |
17025 | wxRect *argp2 ; | |
17026 | PyObject * obj0 = 0 ; | |
17027 | PyObject * obj1 = 0 ; | |
17028 | char *kwnames[] = { | |
17029 | (char *) "self",(char *) "rect", NULL | |
17030 | }; | |
17031 | ||
17032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
17033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17035 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
17036 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17037 | arg2 = *argp2; | |
17038 | { | |
17039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17040 | (arg1)->SetRect(arg2); | |
17041 | ||
17042 | wxPyEndAllowThreads(__tstate); | |
17043 | if (PyErr_Occurred()) SWIG_fail; | |
17044 | } | |
17045 | Py_INCREF(Py_None); resultobj = Py_None; | |
17046 | return resultobj; | |
17047 | fail: | |
17048 | return NULL; | |
17049 | } | |
17050 | ||
17051 | ||
c32bde28 | 17052 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17053 | PyObject *resultobj; |
17054 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17055 | wxPoint arg2 ; | |
17056 | wxPoint *argp2 ; | |
17057 | PyObject * obj0 = 0 ; | |
17058 | PyObject * obj1 = 0 ; | |
17059 | char *kwnames[] = { | |
17060 | (char *) "self",(char *) "pos", NULL | |
17061 | }; | |
17062 | ||
17063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17066 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17067 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17068 | arg2 = *argp2; | |
17069 | { | |
17070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17071 | wxMoveEvent_SetPosition(arg1,arg2); | |
17072 | ||
17073 | wxPyEndAllowThreads(__tstate); | |
17074 | if (PyErr_Occurred()) SWIG_fail; | |
17075 | } | |
17076 | Py_INCREF(Py_None); resultobj = Py_None; | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
c32bde28 | 17083 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17084 | PyObject *resultobj; |
17085 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17086 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17087 | PyObject * obj0 = 0 ; | |
17088 | PyObject * obj1 = 0 ; | |
17089 | char *kwnames[] = { | |
17090 | (char *) "self",(char *) "m_pos", NULL | |
17091 | }; | |
17092 | ||
17093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
17094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17098 | if (arg1) (arg1)->m_pos = *arg2; | |
17099 | ||
17100 | Py_INCREF(Py_None); resultobj = Py_None; | |
17101 | return resultobj; | |
17102 | fail: | |
17103 | return NULL; | |
17104 | } | |
17105 | ||
17106 | ||
c32bde28 | 17107 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17108 | PyObject *resultobj; |
17109 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17110 | wxPoint *result; | |
17111 | PyObject * obj0 = 0 ; | |
17112 | char *kwnames[] = { | |
17113 | (char *) "self", NULL | |
17114 | }; | |
17115 | ||
17116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
17117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17119 | result = (wxPoint *)& ((arg1)->m_pos); | |
17120 | ||
17121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
17122 | return resultobj; | |
17123 | fail: | |
17124 | return NULL; | |
17125 | } | |
17126 | ||
17127 | ||
c32bde28 | 17128 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17129 | PyObject *resultobj; |
17130 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17131 | wxRect *arg2 = (wxRect *) 0 ; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | PyObject * obj1 = 0 ; | |
17134 | char *kwnames[] = { | |
17135 | (char *) "self",(char *) "m_rect", NULL | |
17136 | }; | |
17137 | ||
17138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17143 | if (arg1) (arg1)->m_rect = *arg2; | |
17144 | ||
17145 | Py_INCREF(Py_None); resultobj = Py_None; | |
17146 | return resultobj; | |
17147 | fail: | |
17148 | return NULL; | |
17149 | } | |
17150 | ||
17151 | ||
c32bde28 | 17152 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17153 | PyObject *resultobj; |
17154 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17155 | wxRect *result; | |
17156 | PyObject * obj0 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17164 | result = (wxRect *)& ((arg1)->m_rect); | |
17165 | ||
17166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17167 | return resultobj; | |
17168 | fail: | |
17169 | return NULL; | |
17170 | } | |
17171 | ||
17172 | ||
c32bde28 | 17173 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17174 | PyObject *obj; |
17175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17176 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17177 | Py_INCREF(obj); | |
17178 | return Py_BuildValue((char *)""); | |
17179 | } | |
c32bde28 | 17180 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17181 | PyObject *resultobj; |
17182 | int arg1 = (int) 0 ; | |
17183 | wxPaintEvent *result; | |
17184 | PyObject * obj0 = 0 ; | |
17185 | char *kwnames[] = { | |
17186 | (char *) "Id", NULL | |
17187 | }; | |
17188 | ||
17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
17190 | if (obj0) { | |
c32bde28 | 17191 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17192 | if (PyErr_Occurred()) SWIG_fail; |
17193 | } | |
17194 | { | |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17197 | ||
17198 | wxPyEndAllowThreads(__tstate); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | } | |
17201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
17202 | return resultobj; | |
17203 | fail: | |
17204 | return NULL; | |
17205 | } | |
17206 | ||
17207 | ||
c32bde28 | 17208 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17209 | PyObject *obj; |
17210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17211 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17212 | Py_INCREF(obj); | |
17213 | return Py_BuildValue((char *)""); | |
17214 | } | |
c32bde28 | 17215 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17216 | PyObject *resultobj; |
17217 | int arg1 = (int) 0 ; | |
17218 | wxNcPaintEvent *result; | |
17219 | PyObject * obj0 = 0 ; | |
17220 | char *kwnames[] = { | |
17221 | (char *) "winid", NULL | |
17222 | }; | |
17223 | ||
17224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
17225 | if (obj0) { | |
c32bde28 | 17226 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17227 | if (PyErr_Occurred()) SWIG_fail; |
17228 | } | |
17229 | { | |
17230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17231 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17232 | ||
17233 | wxPyEndAllowThreads(__tstate); | |
17234 | if (PyErr_Occurred()) SWIG_fail; | |
17235 | } | |
17236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
17237 | return resultobj; | |
17238 | fail: | |
17239 | return NULL; | |
17240 | } | |
17241 | ||
17242 | ||
c32bde28 | 17243 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17244 | PyObject *obj; |
17245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17246 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17247 | Py_INCREF(obj); | |
17248 | return Py_BuildValue((char *)""); | |
17249 | } | |
c32bde28 | 17250 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17251 | PyObject *resultobj; |
17252 | int arg1 = (int) 0 ; | |
17253 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17254 | wxEraseEvent *result; | |
17255 | PyObject * obj0 = 0 ; | |
17256 | PyObject * obj1 = 0 ; | |
17257 | char *kwnames[] = { | |
17258 | (char *) "Id",(char *) "dc", NULL | |
17259 | }; | |
17260 | ||
17261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17262 | if (obj0) { | |
c32bde28 | 17263 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17264 | if (PyErr_Occurred()) SWIG_fail; |
17265 | } | |
17266 | if (obj1) { | |
17267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17269 | } | |
17270 | { | |
17271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17272 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17273 | ||
17274 | wxPyEndAllowThreads(__tstate); | |
17275 | if (PyErr_Occurred()) SWIG_fail; | |
17276 | } | |
17277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17278 | return resultobj; | |
17279 | fail: | |
17280 | return NULL; | |
17281 | } | |
17282 | ||
17283 | ||
c32bde28 | 17284 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17285 | PyObject *resultobj; |
17286 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17287 | wxDC *result; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | char *kwnames[] = { | |
17290 | (char *) "self", NULL | |
17291 | }; | |
17292 | ||
17293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17296 | { | |
17297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17298 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17299 | ||
17300 | wxPyEndAllowThreads(__tstate); | |
17301 | if (PyErr_Occurred()) SWIG_fail; | |
17302 | } | |
17303 | { | |
412d302d | 17304 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17305 | } |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
c32bde28 | 17312 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17313 | PyObject *obj; |
17314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17315 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17316 | Py_INCREF(obj); | |
17317 | return Py_BuildValue((char *)""); | |
17318 | } | |
c32bde28 | 17319 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17320 | PyObject *resultobj; |
17321 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17322 | int arg2 = (int) 0 ; | |
17323 | wxFocusEvent *result; | |
17324 | PyObject * obj0 = 0 ; | |
17325 | PyObject * obj1 = 0 ; | |
17326 | char *kwnames[] = { | |
17327 | (char *) "type",(char *) "winid", NULL | |
17328 | }; | |
17329 | ||
17330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17331 | if (obj0) { | |
c32bde28 | 17332 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17333 | if (PyErr_Occurred()) SWIG_fail; |
17334 | } | |
17335 | if (obj1) { | |
c32bde28 | 17336 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17337 | if (PyErr_Occurred()) SWIG_fail; |
17338 | } | |
17339 | { | |
17340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17341 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17342 | ||
17343 | wxPyEndAllowThreads(__tstate); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | } | |
17346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17347 | return resultobj; | |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
c32bde28 | 17353 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17354 | PyObject *resultobj; |
17355 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17356 | wxWindow *result; | |
17357 | PyObject * obj0 = 0 ; | |
17358 | char *kwnames[] = { | |
17359 | (char *) "self", NULL | |
17360 | }; | |
17361 | ||
17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17365 | { | |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
17372 | { | |
412d302d | 17373 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17374 | } |
17375 | return resultobj; | |
17376 | fail: | |
17377 | return NULL; | |
17378 | } | |
17379 | ||
17380 | ||
c32bde28 | 17381 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17382 | PyObject *resultobj; |
17383 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17384 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17385 | PyObject * obj0 = 0 ; | |
17386 | PyObject * obj1 = 0 ; | |
17387 | char *kwnames[] = { | |
17388 | (char *) "self",(char *) "win", NULL | |
17389 | }; | |
17390 | ||
17391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17396 | { | |
17397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17398 | (arg1)->SetWindow(arg2); | |
17399 | ||
17400 | wxPyEndAllowThreads(__tstate); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
17403 | Py_INCREF(Py_None); resultobj = Py_None; | |
17404 | return resultobj; | |
17405 | fail: | |
17406 | return NULL; | |
17407 | } | |
17408 | ||
17409 | ||
c32bde28 | 17410 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17411 | PyObject *obj; |
17412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17413 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17414 | Py_INCREF(obj); | |
17415 | return Py_BuildValue((char *)""); | |
17416 | } | |
c32bde28 | 17417 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17418 | PyObject *resultobj; |
17419 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17420 | wxChildFocusEvent *result; | |
17421 | PyObject * obj0 = 0 ; | |
17422 | char *kwnames[] = { | |
17423 | (char *) "win", NULL | |
17424 | }; | |
17425 | ||
17426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17427 | if (obj0) { | |
17428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17430 | } | |
17431 | { | |
17432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17433 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17434 | ||
17435 | wxPyEndAllowThreads(__tstate); | |
17436 | if (PyErr_Occurred()) SWIG_fail; | |
17437 | } | |
17438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17439 | return resultobj; | |
17440 | fail: | |
17441 | return NULL; | |
17442 | } | |
17443 | ||
17444 | ||
c32bde28 | 17445 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17446 | PyObject *resultobj; |
17447 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17448 | wxWindow *result; | |
17449 | PyObject * obj0 = 0 ; | |
17450 | char *kwnames[] = { | |
17451 | (char *) "self", NULL | |
17452 | }; | |
17453 | ||
17454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17457 | { | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | { | |
412d302d | 17465 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17466 | } |
17467 | return resultobj; | |
17468 | fail: | |
17469 | return NULL; | |
17470 | } | |
17471 | ||
17472 | ||
c32bde28 | 17473 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17474 | PyObject *obj; |
17475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17476 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17477 | Py_INCREF(obj); | |
17478 | return Py_BuildValue((char *)""); | |
17479 | } | |
c32bde28 | 17480 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17481 | PyObject *resultobj; |
17482 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
ae8162c8 | 17483 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17484 | int arg3 = (int) 0 ; |
17485 | wxActivateEvent *result; | |
17486 | PyObject * obj0 = 0 ; | |
17487 | PyObject * obj1 = 0 ; | |
17488 | PyObject * obj2 = 0 ; | |
17489 | char *kwnames[] = { | |
17490 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17491 | }; | |
17492 | ||
17493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17494 | if (obj0) { | |
c32bde28 | 17495 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17496 | if (PyErr_Occurred()) SWIG_fail; |
17497 | } | |
17498 | if (obj1) { | |
c32bde28 | 17499 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17500 | if (PyErr_Occurred()) SWIG_fail; |
17501 | } | |
17502 | if (obj2) { | |
c32bde28 | 17503 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17504 | if (PyErr_Occurred()) SWIG_fail; |
17505 | } | |
17506 | { | |
17507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17508 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17509 | ||
17510 | wxPyEndAllowThreads(__tstate); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | } | |
17513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17514 | return resultobj; | |
17515 | fail: | |
17516 | return NULL; | |
17517 | } | |
17518 | ||
17519 | ||
c32bde28 | 17520 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17521 | PyObject *resultobj; |
17522 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17523 | bool result; | |
17524 | PyObject * obj0 = 0 ; | |
17525 | char *kwnames[] = { | |
17526 | (char *) "self", NULL | |
17527 | }; | |
17528 | ||
17529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17532 | { | |
17533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17534 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17535 | ||
17536 | wxPyEndAllowThreads(__tstate); | |
17537 | if (PyErr_Occurred()) SWIG_fail; | |
17538 | } | |
17539 | { | |
17540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17541 | } | |
17542 | return resultobj; | |
17543 | fail: | |
17544 | return NULL; | |
17545 | } | |
17546 | ||
17547 | ||
c32bde28 | 17548 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17549 | PyObject *obj; |
17550 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17551 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17552 | Py_INCREF(obj); | |
17553 | return Py_BuildValue((char *)""); | |
17554 | } | |
c32bde28 | 17555 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17556 | PyObject *resultobj; |
17557 | int arg1 = (int) 0 ; | |
17558 | wxInitDialogEvent *result; | |
17559 | PyObject * obj0 = 0 ; | |
17560 | char *kwnames[] = { | |
17561 | (char *) "Id", NULL | |
17562 | }; | |
17563 | ||
17564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17565 | if (obj0) { | |
c32bde28 | 17566 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17567 | if (PyErr_Occurred()) SWIG_fail; |
17568 | } | |
17569 | { | |
17570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17571 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17572 | ||
17573 | wxPyEndAllowThreads(__tstate); | |
17574 | if (PyErr_Occurred()) SWIG_fail; | |
17575 | } | |
17576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17577 | return resultobj; | |
17578 | fail: | |
17579 | return NULL; | |
17580 | } | |
17581 | ||
17582 | ||
c32bde28 | 17583 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17584 | PyObject *obj; |
17585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17586 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17587 | Py_INCREF(obj); | |
17588 | return Py_BuildValue((char *)""); | |
17589 | } | |
c32bde28 | 17590 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17591 | PyObject *resultobj; |
17592 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17593 | int arg2 = (int) 0 ; | |
17594 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17595 | wxMenuEvent *result; | |
17596 | PyObject * obj0 = 0 ; | |
17597 | PyObject * obj1 = 0 ; | |
17598 | PyObject * obj2 = 0 ; | |
17599 | char *kwnames[] = { | |
17600 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17601 | }; | |
17602 | ||
17603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17604 | if (obj0) { | |
c32bde28 | 17605 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17606 | if (PyErr_Occurred()) SWIG_fail; |
17607 | } | |
17608 | if (obj1) { | |
c32bde28 | 17609 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17610 | if (PyErr_Occurred()) SWIG_fail; |
17611 | } | |
17612 | if (obj2) { | |
17613 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17615 | } | |
17616 | { | |
17617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17618 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17619 | ||
17620 | wxPyEndAllowThreads(__tstate); | |
17621 | if (PyErr_Occurred()) SWIG_fail; | |
17622 | } | |
17623 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17624 | return resultobj; | |
17625 | fail: | |
17626 | return NULL; | |
17627 | } | |
17628 | ||
17629 | ||
c32bde28 | 17630 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17631 | PyObject *resultobj; |
17632 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17633 | int result; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | char *kwnames[] = { | |
17636 | (char *) "self", NULL | |
17637 | }; | |
17638 | ||
17639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17642 | { | |
17643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17644 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17645 | ||
17646 | wxPyEndAllowThreads(__tstate); | |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
17648 | } | |
c32bde28 | 17649 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17650 | return resultobj; |
17651 | fail: | |
17652 | return NULL; | |
17653 | } | |
17654 | ||
17655 | ||
c32bde28 | 17656 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17657 | PyObject *resultobj; |
17658 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17659 | bool result; | |
17660 | PyObject * obj0 = 0 ; | |
17661 | char *kwnames[] = { | |
17662 | (char *) "self", NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17668 | { | |
17669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17670 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17671 | ||
17672 | wxPyEndAllowThreads(__tstate); | |
17673 | if (PyErr_Occurred()) SWIG_fail; | |
17674 | } | |
17675 | { | |
17676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17677 | } | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
c32bde28 | 17684 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17685 | PyObject *resultobj; |
17686 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17687 | wxMenu *result; | |
17688 | PyObject * obj0 = 0 ; | |
17689 | char *kwnames[] = { | |
17690 | (char *) "self", NULL | |
17691 | }; | |
17692 | ||
17693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17696 | { | |
17697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17698 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17699 | ||
17700 | wxPyEndAllowThreads(__tstate); | |
17701 | if (PyErr_Occurred()) SWIG_fail; | |
17702 | } | |
17703 | { | |
412d302d | 17704 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17705 | } |
17706 | return resultobj; | |
17707 | fail: | |
17708 | return NULL; | |
17709 | } | |
17710 | ||
17711 | ||
c32bde28 | 17712 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17713 | PyObject *obj; |
17714 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17715 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17716 | Py_INCREF(obj); | |
17717 | return Py_BuildValue((char *)""); | |
17718 | } | |
c32bde28 | 17719 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17720 | PyObject *resultobj; |
17721 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17722 | int arg2 = (int) 0 ; | |
17723 | wxCloseEvent *result; | |
17724 | PyObject * obj0 = 0 ; | |
17725 | PyObject * obj1 = 0 ; | |
17726 | char *kwnames[] = { | |
17727 | (char *) "type",(char *) "winid", NULL | |
17728 | }; | |
17729 | ||
17730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17731 | if (obj0) { | |
c32bde28 | 17732 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17733 | if (PyErr_Occurred()) SWIG_fail; |
17734 | } | |
17735 | if (obj1) { | |
c32bde28 | 17736 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17737 | if (PyErr_Occurred()) SWIG_fail; |
17738 | } | |
17739 | { | |
17740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17741 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17742 | ||
17743 | wxPyEndAllowThreads(__tstate); | |
17744 | if (PyErr_Occurred()) SWIG_fail; | |
17745 | } | |
17746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17747 | return resultobj; | |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
c32bde28 | 17753 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17754 | PyObject *resultobj; |
17755 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17756 | bool arg2 ; | |
17757 | PyObject * obj0 = 0 ; | |
17758 | PyObject * obj1 = 0 ; | |
17759 | char *kwnames[] = { | |
17760 | (char *) "self",(char *) "logOff", NULL | |
17761 | }; | |
17762 | ||
17763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17766 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17767 | if (PyErr_Occurred()) SWIG_fail; |
17768 | { | |
17769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17770 | (arg1)->SetLoggingOff(arg2); | |
17771 | ||
17772 | wxPyEndAllowThreads(__tstate); | |
17773 | if (PyErr_Occurred()) SWIG_fail; | |
17774 | } | |
17775 | Py_INCREF(Py_None); resultobj = Py_None; | |
17776 | return resultobj; | |
17777 | fail: | |
17778 | return NULL; | |
17779 | } | |
17780 | ||
17781 | ||
c32bde28 | 17782 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17783 | PyObject *resultobj; |
17784 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17785 | bool result; | |
17786 | PyObject * obj0 = 0 ; | |
17787 | char *kwnames[] = { | |
17788 | (char *) "self", NULL | |
17789 | }; | |
17790 | ||
17791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17794 | { | |
17795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17796 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17797 | ||
17798 | wxPyEndAllowThreads(__tstate); | |
17799 | if (PyErr_Occurred()) SWIG_fail; | |
17800 | } | |
17801 | { | |
17802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17803 | } | |
17804 | return resultobj; | |
17805 | fail: | |
17806 | return NULL; | |
17807 | } | |
17808 | ||
17809 | ||
c32bde28 | 17810 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17811 | PyObject *resultobj; |
17812 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
ae8162c8 | 17813 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17814 | PyObject * obj0 = 0 ; |
17815 | PyObject * obj1 = 0 ; | |
17816 | char *kwnames[] = { | |
17817 | (char *) "self",(char *) "veto", NULL | |
17818 | }; | |
17819 | ||
17820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17823 | if (obj1) { | |
c32bde28 | 17824 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17825 | if (PyErr_Occurred()) SWIG_fail; |
17826 | } | |
17827 | { | |
17828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17829 | (arg1)->Veto(arg2); | |
17830 | ||
17831 | wxPyEndAllowThreads(__tstate); | |
17832 | if (PyErr_Occurred()) SWIG_fail; | |
17833 | } | |
17834 | Py_INCREF(Py_None); resultobj = Py_None; | |
17835 | return resultobj; | |
17836 | fail: | |
17837 | return NULL; | |
17838 | } | |
17839 | ||
17840 | ||
c32bde28 | 17841 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17842 | PyObject *resultobj; |
17843 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17844 | bool arg2 ; | |
17845 | PyObject * obj0 = 0 ; | |
17846 | PyObject * obj1 = 0 ; | |
17847 | char *kwnames[] = { | |
17848 | (char *) "self",(char *) "canVeto", NULL | |
17849 | }; | |
17850 | ||
17851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17854 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17855 | if (PyErr_Occurred()) SWIG_fail; |
17856 | { | |
17857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17858 | (arg1)->SetCanVeto(arg2); | |
17859 | ||
17860 | wxPyEndAllowThreads(__tstate); | |
17861 | if (PyErr_Occurred()) SWIG_fail; | |
17862 | } | |
17863 | Py_INCREF(Py_None); resultobj = Py_None; | |
17864 | return resultobj; | |
17865 | fail: | |
17866 | return NULL; | |
17867 | } | |
17868 | ||
17869 | ||
c32bde28 | 17870 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17871 | PyObject *resultobj; |
17872 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17873 | bool result; | |
17874 | PyObject * obj0 = 0 ; | |
17875 | char *kwnames[] = { | |
17876 | (char *) "self", NULL | |
17877 | }; | |
17878 | ||
17879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17882 | { | |
17883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17884 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17885 | ||
17886 | wxPyEndAllowThreads(__tstate); | |
17887 | if (PyErr_Occurred()) SWIG_fail; | |
17888 | } | |
17889 | { | |
17890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17891 | } | |
17892 | return resultobj; | |
17893 | fail: | |
17894 | return NULL; | |
17895 | } | |
17896 | ||
17897 | ||
c32bde28 | 17898 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17899 | PyObject *resultobj; |
17900 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17901 | bool result; | |
17902 | PyObject * obj0 = 0 ; | |
17903 | char *kwnames[] = { | |
17904 | (char *) "self", NULL | |
17905 | }; | |
17906 | ||
17907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17910 | { | |
17911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17912 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17913 | ||
17914 | wxPyEndAllowThreads(__tstate); | |
17915 | if (PyErr_Occurred()) SWIG_fail; | |
17916 | } | |
17917 | { | |
17918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17919 | } | |
17920 | return resultobj; | |
17921 | fail: | |
17922 | return NULL; | |
17923 | } | |
17924 | ||
17925 | ||
c32bde28 | 17926 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17927 | PyObject *obj; |
17928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17929 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17930 | Py_INCREF(obj); | |
17931 | return Py_BuildValue((char *)""); | |
17932 | } | |
c32bde28 | 17933 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17934 | PyObject *resultobj; |
17935 | int arg1 = (int) 0 ; | |
ae8162c8 | 17936 | bool arg2 = (bool) false ; |
d55e5bfc RD |
17937 | wxShowEvent *result; |
17938 | PyObject * obj0 = 0 ; | |
17939 | PyObject * obj1 = 0 ; | |
17940 | char *kwnames[] = { | |
17941 | (char *) "winid",(char *) "show", NULL | |
17942 | }; | |
17943 | ||
17944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17945 | if (obj0) { | |
c32bde28 | 17946 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17947 | if (PyErr_Occurred()) SWIG_fail; |
17948 | } | |
17949 | if (obj1) { | |
c32bde28 | 17950 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17951 | if (PyErr_Occurred()) SWIG_fail; |
17952 | } | |
17953 | { | |
17954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17955 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17956 | ||
17957 | wxPyEndAllowThreads(__tstate); | |
17958 | if (PyErr_Occurred()) SWIG_fail; | |
17959 | } | |
17960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17961 | return resultobj; | |
17962 | fail: | |
17963 | return NULL; | |
17964 | } | |
17965 | ||
17966 | ||
c32bde28 | 17967 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17968 | PyObject *resultobj; |
17969 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17970 | bool arg2 ; | |
17971 | PyObject * obj0 = 0 ; | |
17972 | PyObject * obj1 = 0 ; | |
17973 | char *kwnames[] = { | |
17974 | (char *) "self",(char *) "show", NULL | |
17975 | }; | |
17976 | ||
17977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17980 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17981 | if (PyErr_Occurred()) SWIG_fail; |
17982 | { | |
17983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17984 | (arg1)->SetShow(arg2); | |
17985 | ||
17986 | wxPyEndAllowThreads(__tstate); | |
17987 | if (PyErr_Occurred()) SWIG_fail; | |
17988 | } | |
17989 | Py_INCREF(Py_None); resultobj = Py_None; | |
17990 | return resultobj; | |
17991 | fail: | |
17992 | return NULL; | |
17993 | } | |
17994 | ||
17995 | ||
c32bde28 | 17996 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17997 | PyObject *resultobj; |
17998 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17999 | bool result; | |
18000 | PyObject * obj0 = 0 ; | |
18001 | char *kwnames[] = { | |
18002 | (char *) "self", NULL | |
18003 | }; | |
18004 | ||
18005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
18006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18008 | { | |
18009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18010 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
18011 | ||
18012 | wxPyEndAllowThreads(__tstate); | |
18013 | if (PyErr_Occurred()) SWIG_fail; | |
18014 | } | |
18015 | { | |
18016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18017 | } | |
18018 | return resultobj; | |
18019 | fail: | |
18020 | return NULL; | |
18021 | } | |
18022 | ||
18023 | ||
c32bde28 | 18024 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18025 | PyObject *obj; |
18026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18027 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
18028 | Py_INCREF(obj); | |
18029 | return Py_BuildValue((char *)""); | |
18030 | } | |
c32bde28 | 18031 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18032 | PyObject *resultobj; |
18033 | int arg1 = (int) 0 ; | |
ae8162c8 | 18034 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18035 | wxIconizeEvent *result; |
18036 | PyObject * obj0 = 0 ; | |
18037 | PyObject * obj1 = 0 ; | |
18038 | char *kwnames[] = { | |
18039 | (char *) "id",(char *) "iconized", NULL | |
18040 | }; | |
18041 | ||
18042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
18043 | if (obj0) { | |
c32bde28 | 18044 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18045 | if (PyErr_Occurred()) SWIG_fail; |
18046 | } | |
18047 | if (obj1) { | |
c32bde28 | 18048 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18049 | if (PyErr_Occurred()) SWIG_fail; |
18050 | } | |
18051 | { | |
18052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18053 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18054 | ||
18055 | wxPyEndAllowThreads(__tstate); | |
18056 | if (PyErr_Occurred()) SWIG_fail; | |
18057 | } | |
18058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
18059 | return resultobj; | |
18060 | fail: | |
18061 | return NULL; | |
18062 | } | |
18063 | ||
18064 | ||
c32bde28 | 18065 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18066 | PyObject *resultobj; |
18067 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18068 | bool result; | |
18069 | PyObject * obj0 = 0 ; | |
18070 | char *kwnames[] = { | |
18071 | (char *) "self", NULL | |
18072 | }; | |
18073 | ||
18074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
18075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
18076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18077 | { | |
18078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18079 | result = (bool)(arg1)->Iconized(); | |
18080 | ||
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | { | |
18085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18086 | } | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
c32bde28 | 18093 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18094 | PyObject *obj; |
18095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18096 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18097 | Py_INCREF(obj); | |
18098 | return Py_BuildValue((char *)""); | |
18099 | } | |
c32bde28 | 18100 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18101 | PyObject *resultobj; |
18102 | int arg1 = (int) 0 ; | |
18103 | wxMaximizeEvent *result; | |
18104 | PyObject * obj0 = 0 ; | |
18105 | char *kwnames[] = { | |
18106 | (char *) "id", NULL | |
18107 | }; | |
18108 | ||
18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
18110 | if (obj0) { | |
c32bde28 | 18111 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18112 | if (PyErr_Occurred()) SWIG_fail; |
18113 | } | |
18114 | { | |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18117 | ||
18118 | wxPyEndAllowThreads(__tstate); | |
18119 | if (PyErr_Occurred()) SWIG_fail; | |
18120 | } | |
18121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
18122 | return resultobj; | |
18123 | fail: | |
18124 | return NULL; | |
18125 | } | |
18126 | ||
18127 | ||
c32bde28 | 18128 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18129 | PyObject *obj; |
18130 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18131 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18132 | Py_INCREF(obj); | |
18133 | return Py_BuildValue((char *)""); | |
18134 | } | |
c32bde28 | 18135 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18136 | PyObject *resultobj; |
18137 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18138 | wxPoint result; | |
18139 | PyObject * obj0 = 0 ; | |
18140 | char *kwnames[] = { | |
18141 | (char *) "self", NULL | |
18142 | }; | |
18143 | ||
18144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18147 | { | |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | result = (arg1)->GetPosition(); | |
18150 | ||
18151 | wxPyEndAllowThreads(__tstate); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | { | |
18155 | wxPoint * resultptr; | |
18156 | resultptr = new wxPoint((wxPoint &) result); | |
18157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
18158 | } | |
18159 | return resultobj; | |
18160 | fail: | |
18161 | return NULL; | |
18162 | } | |
18163 | ||
18164 | ||
c32bde28 | 18165 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18166 | PyObject *resultobj; |
18167 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18168 | int result; | |
18169 | PyObject * obj0 = 0 ; | |
18170 | char *kwnames[] = { | |
18171 | (char *) "self", NULL | |
18172 | }; | |
18173 | ||
18174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
18175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18177 | { | |
18178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18179 | result = (int)(arg1)->GetNumberOfFiles(); | |
18180 | ||
18181 | wxPyEndAllowThreads(__tstate); | |
18182 | if (PyErr_Occurred()) SWIG_fail; | |
18183 | } | |
c32bde28 | 18184 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18185 | return resultobj; |
18186 | fail: | |
18187 | return NULL; | |
18188 | } | |
18189 | ||
18190 | ||
c32bde28 | 18191 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18192 | PyObject *resultobj; |
18193 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18194 | PyObject *result; | |
18195 | PyObject * obj0 = 0 ; | |
18196 | char *kwnames[] = { | |
18197 | (char *) "self", NULL | |
18198 | }; | |
18199 | ||
18200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
18201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18203 | { | |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
18210 | resultobj = result; | |
18211 | return resultobj; | |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
c32bde28 | 18217 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18218 | PyObject *obj; |
18219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18220 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18221 | Py_INCREF(obj); | |
18222 | return Py_BuildValue((char *)""); | |
18223 | } | |
c32bde28 | 18224 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18225 | PyObject *resultobj; |
18226 | int arg1 = (int) 0 ; | |
18227 | wxUpdateUIEvent *result; | |
18228 | PyObject * obj0 = 0 ; | |
18229 | char *kwnames[] = { | |
18230 | (char *) "commandId", NULL | |
18231 | }; | |
18232 | ||
18233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
18234 | if (obj0) { | |
c32bde28 | 18235 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18236 | if (PyErr_Occurred()) SWIG_fail; |
18237 | } | |
18238 | { | |
18239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18240 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18241 | ||
18242 | wxPyEndAllowThreads(__tstate); | |
18243 | if (PyErr_Occurred()) SWIG_fail; | |
18244 | } | |
18245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
18246 | return resultobj; | |
18247 | fail: | |
18248 | return NULL; | |
18249 | } | |
18250 | ||
18251 | ||
c32bde28 | 18252 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18253 | PyObject *resultobj; |
18254 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18255 | bool result; | |
18256 | PyObject * obj0 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "self", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
18262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18264 | { | |
18265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18266 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18267 | ||
18268 | wxPyEndAllowThreads(__tstate); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | } | |
18271 | { | |
18272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18273 | } | |
18274 | return resultobj; | |
18275 | fail: | |
18276 | return NULL; | |
18277 | } | |
18278 | ||
18279 | ||
c32bde28 | 18280 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18281 | PyObject *resultobj; |
18282 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18283 | bool result; | |
18284 | PyObject * obj0 = 0 ; | |
18285 | char *kwnames[] = { | |
18286 | (char *) "self", NULL | |
18287 | }; | |
18288 | ||
18289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18292 | { | |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18295 | ||
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
18299 | { | |
18300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18301 | } | |
18302 | return resultobj; | |
18303 | fail: | |
18304 | return NULL; | |
18305 | } | |
18306 | ||
18307 | ||
c32bde28 | 18308 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18309 | PyObject *resultobj; |
18310 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18311 | wxString result; | |
18312 | PyObject * obj0 = 0 ; | |
18313 | char *kwnames[] = { | |
18314 | (char *) "self", NULL | |
18315 | }; | |
18316 | ||
18317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18320 | { | |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | { | |
18328 | #if wxUSE_UNICODE | |
18329 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18330 | #else | |
18331 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18332 | #endif | |
18333 | } | |
18334 | return resultobj; | |
18335 | fail: | |
18336 | return NULL; | |
18337 | } | |
18338 | ||
18339 | ||
c32bde28 | 18340 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18341 | PyObject *resultobj; |
18342 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18343 | bool result; | |
18344 | PyObject * obj0 = 0 ; | |
18345 | char *kwnames[] = { | |
18346 | (char *) "self", NULL | |
18347 | }; | |
18348 | ||
18349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18352 | { | |
18353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18354 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18355 | ||
18356 | wxPyEndAllowThreads(__tstate); | |
18357 | if (PyErr_Occurred()) SWIG_fail; | |
18358 | } | |
18359 | { | |
18360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18361 | } | |
18362 | return resultobj; | |
18363 | fail: | |
18364 | return NULL; | |
18365 | } | |
18366 | ||
18367 | ||
c32bde28 | 18368 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18369 | PyObject *resultobj; |
18370 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18371 | bool result; | |
18372 | PyObject * obj0 = 0 ; | |
18373 | char *kwnames[] = { | |
18374 | (char *) "self", NULL | |
18375 | }; | |
18376 | ||
18377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18380 | { | |
18381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18382 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18383 | ||
18384 | wxPyEndAllowThreads(__tstate); | |
18385 | if (PyErr_Occurred()) SWIG_fail; | |
18386 | } | |
18387 | { | |
18388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18389 | } | |
18390 | return resultobj; | |
18391 | fail: | |
18392 | return NULL; | |
18393 | } | |
18394 | ||
18395 | ||
c32bde28 | 18396 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18397 | PyObject *resultobj; |
18398 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18399 | bool result; | |
18400 | PyObject * obj0 = 0 ; | |
18401 | char *kwnames[] = { | |
18402 | (char *) "self", NULL | |
18403 | }; | |
18404 | ||
18405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18408 | { | |
18409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18410 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18411 | ||
18412 | wxPyEndAllowThreads(__tstate); | |
18413 | if (PyErr_Occurred()) SWIG_fail; | |
18414 | } | |
18415 | { | |
18416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18417 | } | |
18418 | return resultobj; | |
18419 | fail: | |
18420 | return NULL; | |
18421 | } | |
18422 | ||
18423 | ||
c32bde28 | 18424 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18425 | PyObject *resultobj; |
18426 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18427 | bool arg2 ; | |
18428 | PyObject * obj0 = 0 ; | |
18429 | PyObject * obj1 = 0 ; | |
18430 | char *kwnames[] = { | |
18431 | (char *) "self",(char *) "check", NULL | |
18432 | }; | |
18433 | ||
18434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18437 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18438 | if (PyErr_Occurred()) SWIG_fail; |
18439 | { | |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | (arg1)->Check(arg2); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
18446 | Py_INCREF(Py_None); resultobj = Py_None; | |
18447 | return resultobj; | |
18448 | fail: | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
c32bde28 | 18453 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18454 | PyObject *resultobj; |
18455 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18456 | bool arg2 ; | |
18457 | PyObject * obj0 = 0 ; | |
18458 | PyObject * obj1 = 0 ; | |
18459 | char *kwnames[] = { | |
18460 | (char *) "self",(char *) "enable", NULL | |
18461 | }; | |
18462 | ||
18463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18466 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18467 | if (PyErr_Occurred()) SWIG_fail; |
18468 | { | |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | (arg1)->Enable(arg2); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
18475 | Py_INCREF(Py_None); resultobj = Py_None; | |
18476 | return resultobj; | |
18477 | fail: | |
18478 | return NULL; | |
18479 | } | |
18480 | ||
18481 | ||
c32bde28 | 18482 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18483 | PyObject *resultobj; |
18484 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18485 | wxString *arg2 = 0 ; | |
ae8162c8 | 18486 | bool temp2 = false ; |
d55e5bfc RD |
18487 | PyObject * obj0 = 0 ; |
18488 | PyObject * obj1 = 0 ; | |
18489 | char *kwnames[] = { | |
18490 | (char *) "self",(char *) "text", NULL | |
18491 | }; | |
18492 | ||
18493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18496 | { | |
18497 | arg2 = wxString_in_helper(obj1); | |
18498 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18499 | temp2 = true; |
d55e5bfc RD |
18500 | } |
18501 | { | |
18502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18503 | (arg1)->SetText((wxString const &)*arg2); | |
18504 | ||
18505 | wxPyEndAllowThreads(__tstate); | |
18506 | if (PyErr_Occurred()) SWIG_fail; | |
18507 | } | |
18508 | Py_INCREF(Py_None); resultobj = Py_None; | |
18509 | { | |
18510 | if (temp2) | |
18511 | delete arg2; | |
18512 | } | |
18513 | return resultobj; | |
18514 | fail: | |
18515 | { | |
18516 | if (temp2) | |
18517 | delete arg2; | |
18518 | } | |
18519 | return NULL; | |
18520 | } | |
18521 | ||
18522 | ||
c32bde28 | 18523 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18524 | PyObject *resultobj; |
18525 | long arg1 ; | |
18526 | PyObject * obj0 = 0 ; | |
18527 | char *kwnames[] = { | |
18528 | (char *) "updateInterval", NULL | |
18529 | }; | |
18530 | ||
18531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
c32bde28 | 18532 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
18533 | if (PyErr_Occurred()) SWIG_fail; |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | Py_INCREF(Py_None); resultobj = Py_None; | |
18542 | return resultobj; | |
18543 | fail: | |
18544 | return NULL; | |
18545 | } | |
18546 | ||
18547 | ||
c32bde28 | 18548 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18549 | PyObject *resultobj; |
18550 | long result; | |
18551 | char *kwnames[] = { | |
18552 | NULL | |
18553 | }; | |
18554 | ||
18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18556 | { | |
18557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18558 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18559 | ||
18560 | wxPyEndAllowThreads(__tstate); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | } | |
c32bde28 | 18563 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
18564 | return resultobj; |
18565 | fail: | |
18566 | return NULL; | |
18567 | } | |
18568 | ||
18569 | ||
c32bde28 | 18570 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18571 | PyObject *resultobj; |
18572 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18573 | bool result; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | char *kwnames[] = { | |
18576 | (char *) "win", NULL | |
18577 | }; | |
18578 | ||
18579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18582 | { | |
18583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18584 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18585 | ||
18586 | wxPyEndAllowThreads(__tstate); | |
18587 | if (PyErr_Occurred()) SWIG_fail; | |
18588 | } | |
18589 | { | |
18590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18591 | } | |
18592 | return resultobj; | |
18593 | fail: | |
18594 | return NULL; | |
18595 | } | |
18596 | ||
18597 | ||
c32bde28 | 18598 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18599 | PyObject *resultobj; |
18600 | char *kwnames[] = { | |
18601 | NULL | |
18602 | }; | |
18603 | ||
18604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18605 | { | |
18606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18607 | wxUpdateUIEvent::ResetUpdateTime(); | |
18608 | ||
18609 | wxPyEndAllowThreads(__tstate); | |
18610 | if (PyErr_Occurred()) SWIG_fail; | |
18611 | } | |
18612 | Py_INCREF(Py_None); resultobj = Py_None; | |
18613 | return resultobj; | |
18614 | fail: | |
18615 | return NULL; | |
18616 | } | |
18617 | ||
18618 | ||
c32bde28 | 18619 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18620 | PyObject *resultobj; |
18621 | int arg1 ; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | char *kwnames[] = { | |
18624 | (char *) "mode", NULL | |
18625 | }; | |
18626 | ||
18627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 18628 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18629 | if (PyErr_Occurred()) SWIG_fail; |
18630 | { | |
18631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18632 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18633 | ||
18634 | wxPyEndAllowThreads(__tstate); | |
18635 | if (PyErr_Occurred()) SWIG_fail; | |
18636 | } | |
18637 | Py_INCREF(Py_None); resultobj = Py_None; | |
18638 | return resultobj; | |
18639 | fail: | |
18640 | return NULL; | |
18641 | } | |
18642 | ||
18643 | ||
c32bde28 | 18644 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18645 | PyObject *resultobj; |
18646 | int result; | |
18647 | char *kwnames[] = { | |
18648 | NULL | |
18649 | }; | |
18650 | ||
18651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18652 | { | |
18653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18654 | result = (int)wxUpdateUIEvent::GetMode(); | |
18655 | ||
18656 | wxPyEndAllowThreads(__tstate); | |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
18658 | } | |
c32bde28 | 18659 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18660 | return resultobj; |
18661 | fail: | |
18662 | return NULL; | |
18663 | } | |
18664 | ||
18665 | ||
c32bde28 | 18666 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18667 | PyObject *obj; |
18668 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18669 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18670 | Py_INCREF(obj); | |
18671 | return Py_BuildValue((char *)""); | |
18672 | } | |
c32bde28 | 18673 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18674 | PyObject *resultobj; |
18675 | wxSysColourChangedEvent *result; | |
18676 | char *kwnames[] = { | |
18677 | NULL | |
18678 | }; | |
18679 | ||
18680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18681 | { | |
18682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18683 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18684 | ||
18685 | wxPyEndAllowThreads(__tstate); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18689 | return resultobj; | |
18690 | fail: | |
18691 | return NULL; | |
18692 | } | |
18693 | ||
18694 | ||
c32bde28 | 18695 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18696 | PyObject *obj; |
18697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18698 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18699 | Py_INCREF(obj); | |
18700 | return Py_BuildValue((char *)""); | |
18701 | } | |
c32bde28 | 18702 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18703 | PyObject *resultobj; |
18704 | int arg1 = (int) 0 ; | |
18705 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18706 | wxMouseCaptureChangedEvent *result; | |
18707 | PyObject * obj0 = 0 ; | |
18708 | PyObject * obj1 = 0 ; | |
18709 | char *kwnames[] = { | |
18710 | (char *) "winid",(char *) "gainedCapture", NULL | |
18711 | }; | |
18712 | ||
18713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18714 | if (obj0) { | |
c32bde28 | 18715 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18716 | if (PyErr_Occurred()) SWIG_fail; |
18717 | } | |
18718 | if (obj1) { | |
18719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18721 | } | |
18722 | { | |
18723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18724 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18725 | ||
18726 | wxPyEndAllowThreads(__tstate); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
18729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18730 | return resultobj; | |
18731 | fail: | |
18732 | return NULL; | |
18733 | } | |
18734 | ||
18735 | ||
c32bde28 | 18736 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18737 | PyObject *resultobj; |
18738 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18739 | wxWindow *result; | |
18740 | PyObject * obj0 = 0 ; | |
18741 | char *kwnames[] = { | |
18742 | (char *) "self", NULL | |
18743 | }; | |
18744 | ||
18745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18748 | { | |
18749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18750 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18751 | ||
18752 | wxPyEndAllowThreads(__tstate); | |
18753 | if (PyErr_Occurred()) SWIG_fail; | |
18754 | } | |
18755 | { | |
412d302d | 18756 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18757 | } |
18758 | return resultobj; | |
18759 | fail: | |
18760 | return NULL; | |
18761 | } | |
18762 | ||
18763 | ||
c32bde28 | 18764 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18765 | PyObject *obj; |
18766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18767 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18768 | Py_INCREF(obj); | |
18769 | return Py_BuildValue((char *)""); | |
18770 | } | |
c32bde28 | 18771 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18772 | PyObject *resultobj; |
18773 | wxDisplayChangedEvent *result; | |
18774 | char *kwnames[] = { | |
18775 | NULL | |
18776 | }; | |
18777 | ||
18778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18779 | { | |
18780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18781 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18782 | ||
18783 | wxPyEndAllowThreads(__tstate); | |
18784 | if (PyErr_Occurred()) SWIG_fail; | |
18785 | } | |
18786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18787 | return resultobj; | |
18788 | fail: | |
18789 | return NULL; | |
18790 | } | |
18791 | ||
18792 | ||
c32bde28 | 18793 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18794 | PyObject *obj; |
18795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18796 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18797 | Py_INCREF(obj); | |
18798 | return Py_BuildValue((char *)""); | |
18799 | } | |
c32bde28 | 18800 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18801 | PyObject *resultobj; |
18802 | int arg1 = (int) 0 ; | |
18803 | wxPaletteChangedEvent *result; | |
18804 | PyObject * obj0 = 0 ; | |
18805 | char *kwnames[] = { | |
18806 | (char *) "id", NULL | |
18807 | }; | |
18808 | ||
18809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18810 | if (obj0) { | |
c32bde28 | 18811 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18812 | if (PyErr_Occurred()) SWIG_fail; |
18813 | } | |
18814 | { | |
18815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18816 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18817 | ||
18818 | wxPyEndAllowThreads(__tstate); | |
18819 | if (PyErr_Occurred()) SWIG_fail; | |
18820 | } | |
18821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18822 | return resultobj; | |
18823 | fail: | |
18824 | return NULL; | |
18825 | } | |
18826 | ||
18827 | ||
c32bde28 | 18828 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18829 | PyObject *resultobj; |
18830 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18831 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18832 | PyObject * obj0 = 0 ; | |
18833 | PyObject * obj1 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "self",(char *) "win", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18843 | { | |
18844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18845 | (arg1)->SetChangedWindow(arg2); | |
18846 | ||
18847 | wxPyEndAllowThreads(__tstate); | |
18848 | if (PyErr_Occurred()) SWIG_fail; | |
18849 | } | |
18850 | Py_INCREF(Py_None); resultobj = Py_None; | |
18851 | return resultobj; | |
18852 | fail: | |
18853 | return NULL; | |
18854 | } | |
18855 | ||
18856 | ||
c32bde28 | 18857 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18858 | PyObject *resultobj; |
18859 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18860 | wxWindow *result; | |
18861 | PyObject * obj0 = 0 ; | |
18862 | char *kwnames[] = { | |
18863 | (char *) "self", NULL | |
18864 | }; | |
18865 | ||
18866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18869 | { | |
18870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18871 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18872 | ||
18873 | wxPyEndAllowThreads(__tstate); | |
18874 | if (PyErr_Occurred()) SWIG_fail; | |
18875 | } | |
18876 | { | |
412d302d | 18877 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18878 | } |
18879 | return resultobj; | |
18880 | fail: | |
18881 | return NULL; | |
18882 | } | |
18883 | ||
18884 | ||
c32bde28 | 18885 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18886 | PyObject *obj; |
18887 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18888 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18889 | Py_INCREF(obj); | |
18890 | return Py_BuildValue((char *)""); | |
18891 | } | |
c32bde28 | 18892 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18893 | PyObject *resultobj; |
18894 | int arg1 = (int) 0 ; | |
18895 | wxQueryNewPaletteEvent *result; | |
18896 | PyObject * obj0 = 0 ; | |
18897 | char *kwnames[] = { | |
18898 | (char *) "winid", NULL | |
18899 | }; | |
18900 | ||
18901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18902 | if (obj0) { | |
c32bde28 | 18903 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18904 | if (PyErr_Occurred()) SWIG_fail; |
18905 | } | |
18906 | { | |
18907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18908 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18909 | ||
18910 | wxPyEndAllowThreads(__tstate); | |
18911 | if (PyErr_Occurred()) SWIG_fail; | |
18912 | } | |
18913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18914 | return resultobj; | |
18915 | fail: | |
18916 | return NULL; | |
18917 | } | |
18918 | ||
18919 | ||
c32bde28 | 18920 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18921 | PyObject *resultobj; |
18922 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18923 | bool arg2 ; | |
18924 | PyObject * obj0 = 0 ; | |
18925 | PyObject * obj1 = 0 ; | |
18926 | char *kwnames[] = { | |
18927 | (char *) "self",(char *) "realized", NULL | |
18928 | }; | |
18929 | ||
18930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18933 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18934 | if (PyErr_Occurred()) SWIG_fail; |
18935 | { | |
18936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18937 | (arg1)->SetPaletteRealized(arg2); | |
18938 | ||
18939 | wxPyEndAllowThreads(__tstate); | |
18940 | if (PyErr_Occurred()) SWIG_fail; | |
18941 | } | |
18942 | Py_INCREF(Py_None); resultobj = Py_None; | |
18943 | return resultobj; | |
18944 | fail: | |
18945 | return NULL; | |
18946 | } | |
18947 | ||
18948 | ||
c32bde28 | 18949 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18950 | PyObject *resultobj; |
18951 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18952 | bool result; | |
18953 | PyObject * obj0 = 0 ; | |
18954 | char *kwnames[] = { | |
18955 | (char *) "self", NULL | |
18956 | }; | |
18957 | ||
18958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18961 | { | |
18962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18963 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18964 | ||
18965 | wxPyEndAllowThreads(__tstate); | |
18966 | if (PyErr_Occurred()) SWIG_fail; | |
18967 | } | |
18968 | { | |
18969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18970 | } | |
18971 | return resultobj; | |
18972 | fail: | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
c32bde28 | 18977 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18978 | PyObject *obj; |
18979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18980 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18981 | Py_INCREF(obj); | |
18982 | return Py_BuildValue((char *)""); | |
18983 | } | |
c32bde28 | 18984 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18985 | PyObject *resultobj; |
18986 | wxNavigationKeyEvent *result; | |
18987 | char *kwnames[] = { | |
18988 | NULL | |
18989 | }; | |
18990 | ||
18991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18994 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18995 | ||
18996 | wxPyEndAllowThreads(__tstate); | |
18997 | if (PyErr_Occurred()) SWIG_fail; | |
18998 | } | |
18999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
19000 | return resultobj; | |
19001 | fail: | |
19002 | return NULL; | |
19003 | } | |
19004 | ||
19005 | ||
c32bde28 | 19006 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19007 | PyObject *resultobj; |
19008 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19009 | bool result; | |
19010 | PyObject * obj0 = 0 ; | |
19011 | char *kwnames[] = { | |
19012 | (char *) "self", NULL | |
19013 | }; | |
19014 | ||
19015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
19016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19018 | { | |
19019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19020 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
19021 | ||
19022 | wxPyEndAllowThreads(__tstate); | |
19023 | if (PyErr_Occurred()) SWIG_fail; | |
19024 | } | |
19025 | { | |
19026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19027 | } | |
19028 | return resultobj; | |
19029 | fail: | |
19030 | return NULL; | |
19031 | } | |
19032 | ||
19033 | ||
c32bde28 | 19034 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19035 | PyObject *resultobj; |
19036 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19037 | bool arg2 ; | |
19038 | PyObject * obj0 = 0 ; | |
19039 | PyObject * obj1 = 0 ; | |
19040 | char *kwnames[] = { | |
908b74cd | 19041 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
19042 | }; |
19043 | ||
19044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
19045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19047 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19048 | if (PyErr_Occurred()) SWIG_fail; |
19049 | { | |
19050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19051 | (arg1)->SetDirection(arg2); | |
19052 | ||
19053 | wxPyEndAllowThreads(__tstate); | |
19054 | if (PyErr_Occurred()) SWIG_fail; | |
19055 | } | |
19056 | Py_INCREF(Py_None); resultobj = Py_None; | |
19057 | return resultobj; | |
19058 | fail: | |
19059 | return NULL; | |
19060 | } | |
19061 | ||
19062 | ||
c32bde28 | 19063 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19064 | PyObject *resultobj; |
19065 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19066 | bool result; | |
19067 | PyObject * obj0 = 0 ; | |
19068 | char *kwnames[] = { | |
19069 | (char *) "self", NULL | |
19070 | }; | |
19071 | ||
19072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
19073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19075 | { | |
19076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19077 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19078 | ||
19079 | wxPyEndAllowThreads(__tstate); | |
19080 | if (PyErr_Occurred()) SWIG_fail; | |
19081 | } | |
19082 | { | |
19083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19084 | } | |
19085 | return resultobj; | |
19086 | fail: | |
19087 | return NULL; | |
19088 | } | |
19089 | ||
19090 | ||
c32bde28 | 19091 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19092 | PyObject *resultobj; |
19093 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19094 | bool arg2 ; | |
19095 | PyObject * obj0 = 0 ; | |
19096 | PyObject * obj1 = 0 ; | |
19097 | char *kwnames[] = { | |
908b74cd | 19098 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
19099 | }; |
19100 | ||
19101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
19102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19104 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19105 | if (PyErr_Occurred()) SWIG_fail; |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | (arg1)->SetWindowChange(arg2); | |
19109 | ||
19110 | wxPyEndAllowThreads(__tstate); | |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
19112 | } | |
19113 | Py_INCREF(Py_None); resultobj = Py_None; | |
19114 | return resultobj; | |
19115 | fail: | |
19116 | return NULL; | |
19117 | } | |
19118 | ||
19119 | ||
c32bde28 | 19120 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19121 | PyObject *resultobj; |
19122 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19123 | long arg2 ; | |
19124 | PyObject * obj0 = 0 ; | |
19125 | PyObject * obj1 = 0 ; | |
19126 | char *kwnames[] = { | |
19127 | (char *) "self",(char *) "flags", NULL | |
19128 | }; | |
19129 | ||
19130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19133 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19134 | if (PyErr_Occurred()) SWIG_fail; |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | (arg1)->SetFlags(arg2); | |
19138 | ||
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | Py_INCREF(Py_None); resultobj = Py_None; | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
c32bde28 | 19149 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19150 | PyObject *resultobj; |
19151 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19152 | wxWindow *result; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | char *kwnames[] = { | |
19155 | (char *) "self", NULL | |
19156 | }; | |
19157 | ||
19158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
19159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19161 | { | |
19162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19163 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19164 | ||
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
19168 | { | |
412d302d | 19169 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19170 | } |
19171 | return resultobj; | |
19172 | fail: | |
19173 | return NULL; | |
19174 | } | |
19175 | ||
19176 | ||
c32bde28 | 19177 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19178 | PyObject *resultobj; |
19179 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19180 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19181 | PyObject * obj0 = 0 ; | |
19182 | PyObject * obj1 = 0 ; | |
19183 | char *kwnames[] = { | |
19184 | (char *) "self",(char *) "win", NULL | |
19185 | }; | |
19186 | ||
19187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
19188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | (arg1)->SetCurrentFocus(arg2); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
19199 | Py_INCREF(Py_None); resultobj = Py_None; | |
19200 | return resultobj; | |
19201 | fail: | |
19202 | return NULL; | |
19203 | } | |
19204 | ||
19205 | ||
c32bde28 | 19206 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19207 | PyObject *obj; |
19208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19209 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19210 | Py_INCREF(obj); | |
19211 | return Py_BuildValue((char *)""); | |
19212 | } | |
c32bde28 | 19213 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19214 | PyObject *resultobj; |
19215 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19216 | wxWindowCreateEvent *result; | |
19217 | PyObject * obj0 = 0 ; | |
19218 | char *kwnames[] = { | |
19219 | (char *) "win", NULL | |
19220 | }; | |
19221 | ||
19222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19223 | if (obj0) { | |
19224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19226 | } | |
19227 | { | |
19228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19229 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19230 | ||
19231 | wxPyEndAllowThreads(__tstate); | |
19232 | if (PyErr_Occurred()) SWIG_fail; | |
19233 | } | |
19234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
19235 | return resultobj; | |
19236 | fail: | |
19237 | return NULL; | |
19238 | } | |
19239 | ||
19240 | ||
c32bde28 | 19241 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19242 | PyObject *resultobj; |
19243 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19244 | wxWindow *result; | |
19245 | PyObject * obj0 = 0 ; | |
19246 | char *kwnames[] = { | |
19247 | (char *) "self", NULL | |
19248 | }; | |
19249 | ||
19250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
19252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19253 | { | |
19254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19255 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19256 | ||
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | { | |
412d302d | 19261 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19262 | } |
19263 | return resultobj; | |
19264 | fail: | |
19265 | return NULL; | |
19266 | } | |
19267 | ||
19268 | ||
c32bde28 | 19269 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19270 | PyObject *obj; |
19271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19272 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19273 | Py_INCREF(obj); | |
19274 | return Py_BuildValue((char *)""); | |
19275 | } | |
c32bde28 | 19276 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19277 | PyObject *resultobj; |
19278 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19279 | wxWindowDestroyEvent *result; | |
19280 | PyObject * obj0 = 0 ; | |
19281 | char *kwnames[] = { | |
19282 | (char *) "win", NULL | |
19283 | }; | |
19284 | ||
19285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19286 | if (obj0) { | |
19287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19289 | } | |
19290 | { | |
19291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19292 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19293 | ||
19294 | wxPyEndAllowThreads(__tstate); | |
19295 | if (PyErr_Occurred()) SWIG_fail; | |
19296 | } | |
19297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19298 | return resultobj; | |
19299 | fail: | |
19300 | return NULL; | |
19301 | } | |
19302 | ||
19303 | ||
c32bde28 | 19304 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19305 | PyObject *resultobj; |
19306 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19307 | wxWindow *result; | |
19308 | PyObject * obj0 = 0 ; | |
19309 | char *kwnames[] = { | |
19310 | (char *) "self", NULL | |
19311 | }; | |
19312 | ||
19313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19316 | { | |
19317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19318 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19319 | ||
19320 | wxPyEndAllowThreads(__tstate); | |
19321 | if (PyErr_Occurred()) SWIG_fail; | |
19322 | } | |
19323 | { | |
412d302d | 19324 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19325 | } |
19326 | return resultobj; | |
19327 | fail: | |
19328 | return NULL; | |
19329 | } | |
19330 | ||
19331 | ||
c32bde28 | 19332 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19333 | PyObject *obj; |
19334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19335 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19336 | Py_INCREF(obj); | |
19337 | return Py_BuildValue((char *)""); | |
19338 | } | |
c32bde28 | 19339 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19340 | PyObject *resultobj; |
19341 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19342 | int arg2 = (int) 0 ; | |
19343 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19344 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19345 | wxContextMenuEvent *result; | |
19346 | wxPoint temp3 ; | |
19347 | PyObject * obj0 = 0 ; | |
19348 | PyObject * obj1 = 0 ; | |
19349 | PyObject * obj2 = 0 ; | |
19350 | char *kwnames[] = { | |
19351 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19352 | }; | |
19353 | ||
19354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19355 | if (obj0) { | |
c32bde28 | 19356 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19357 | if (PyErr_Occurred()) SWIG_fail; |
19358 | } | |
19359 | if (obj1) { | |
c32bde28 | 19360 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19361 | if (PyErr_Occurred()) SWIG_fail; |
19362 | } | |
19363 | if (obj2) { | |
19364 | { | |
19365 | arg3 = &temp3; | |
19366 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19367 | } | |
19368 | } | |
19369 | { | |
19370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19371 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19372 | ||
19373 | wxPyEndAllowThreads(__tstate); | |
19374 | if (PyErr_Occurred()) SWIG_fail; | |
19375 | } | |
19376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19377 | return resultobj; | |
19378 | fail: | |
19379 | return NULL; | |
19380 | } | |
19381 | ||
19382 | ||
c32bde28 | 19383 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19384 | PyObject *resultobj; |
19385 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19386 | wxPoint *result; | |
19387 | PyObject * obj0 = 0 ; | |
19388 | char *kwnames[] = { | |
19389 | (char *) "self", NULL | |
19390 | }; | |
19391 | ||
19392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19395 | { | |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | { | |
19398 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19399 | result = (wxPoint *) &_result_ref; | |
19400 | } | |
19401 | ||
19402 | wxPyEndAllowThreads(__tstate); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | } | |
19405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19406 | return resultobj; | |
19407 | fail: | |
19408 | return NULL; | |
19409 | } | |
19410 | ||
19411 | ||
c32bde28 | 19412 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19413 | PyObject *resultobj; |
19414 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19415 | wxPoint *arg2 = 0 ; | |
19416 | wxPoint temp2 ; | |
19417 | PyObject * obj0 = 0 ; | |
19418 | PyObject * obj1 = 0 ; | |
19419 | char *kwnames[] = { | |
19420 | (char *) "self",(char *) "pos", NULL | |
19421 | }; | |
19422 | ||
19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19426 | { | |
19427 | arg2 = &temp2; | |
19428 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19429 | } | |
19430 | { | |
19431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19432 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19433 | ||
19434 | wxPyEndAllowThreads(__tstate); | |
19435 | if (PyErr_Occurred()) SWIG_fail; | |
19436 | } | |
19437 | Py_INCREF(Py_None); resultobj = Py_None; | |
19438 | return resultobj; | |
19439 | fail: | |
19440 | return NULL; | |
19441 | } | |
19442 | ||
19443 | ||
c32bde28 | 19444 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19445 | PyObject *obj; |
19446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19447 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19448 | Py_INCREF(obj); | |
19449 | return Py_BuildValue((char *)""); | |
19450 | } | |
c32bde28 | 19451 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19452 | PyObject *resultobj; |
19453 | wxIdleEvent *result; | |
19454 | char *kwnames[] = { | |
19455 | NULL | |
19456 | }; | |
19457 | ||
19458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19459 | { | |
19460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19461 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19462 | ||
19463 | wxPyEndAllowThreads(__tstate); | |
19464 | if (PyErr_Occurred()) SWIG_fail; | |
19465 | } | |
19466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19467 | return resultobj; | |
19468 | fail: | |
19469 | return NULL; | |
19470 | } | |
19471 | ||
19472 | ||
c32bde28 | 19473 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19474 | PyObject *resultobj; |
19475 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
ae8162c8 | 19476 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19477 | PyObject * obj0 = 0 ; |
19478 | PyObject * obj1 = 0 ; | |
19479 | char *kwnames[] = { | |
19480 | (char *) "self",(char *) "needMore", NULL | |
19481 | }; | |
19482 | ||
19483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19486 | if (obj1) { | |
c32bde28 | 19487 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19488 | if (PyErr_Occurred()) SWIG_fail; |
19489 | } | |
19490 | { | |
19491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19492 | (arg1)->RequestMore(arg2); | |
19493 | ||
19494 | wxPyEndAllowThreads(__tstate); | |
19495 | if (PyErr_Occurred()) SWIG_fail; | |
19496 | } | |
19497 | Py_INCREF(Py_None); resultobj = Py_None; | |
19498 | return resultobj; | |
19499 | fail: | |
19500 | return NULL; | |
19501 | } | |
19502 | ||
19503 | ||
c32bde28 | 19504 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19505 | PyObject *resultobj; |
19506 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19507 | bool result; | |
19508 | PyObject * obj0 = 0 ; | |
19509 | char *kwnames[] = { | |
19510 | (char *) "self", NULL | |
19511 | }; | |
19512 | ||
19513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19516 | { | |
19517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19518 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19519 | ||
19520 | wxPyEndAllowThreads(__tstate); | |
19521 | if (PyErr_Occurred()) SWIG_fail; | |
19522 | } | |
19523 | { | |
19524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19525 | } | |
19526 | return resultobj; | |
19527 | fail: | |
19528 | return NULL; | |
19529 | } | |
19530 | ||
19531 | ||
c32bde28 | 19532 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19533 | PyObject *resultobj; |
19534 | int arg1 ; | |
19535 | PyObject * obj0 = 0 ; | |
19536 | char *kwnames[] = { | |
19537 | (char *) "mode", NULL | |
19538 | }; | |
19539 | ||
19540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
c32bde28 | 19541 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19542 | if (PyErr_Occurred()) SWIG_fail; |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | Py_INCREF(Py_None); resultobj = Py_None; | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
c32bde28 | 19557 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19558 | PyObject *resultobj; |
19559 | int result; | |
19560 | char *kwnames[] = { | |
19561 | NULL | |
19562 | }; | |
19563 | ||
19564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19565 | { | |
19566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19567 | result = (int)wxIdleEvent::GetMode(); | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
c32bde28 | 19572 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19573 | return resultobj; |
19574 | fail: | |
19575 | return NULL; | |
19576 | } | |
19577 | ||
19578 | ||
c32bde28 | 19579 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19580 | PyObject *resultobj; |
19581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19582 | bool result; | |
19583 | PyObject * obj0 = 0 ; | |
19584 | char *kwnames[] = { | |
19585 | (char *) "win", NULL | |
19586 | }; | |
19587 | ||
19588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19591 | { | |
19592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19593 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19594 | ||
19595 | wxPyEndAllowThreads(__tstate); | |
19596 | if (PyErr_Occurred()) SWIG_fail; | |
19597 | } | |
19598 | { | |
19599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19600 | } | |
19601 | return resultobj; | |
19602 | fail: | |
19603 | return NULL; | |
19604 | } | |
19605 | ||
19606 | ||
c32bde28 | 19607 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19608 | PyObject *obj; |
19609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19610 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19611 | Py_INCREF(obj); | |
19612 | return Py_BuildValue((char *)""); | |
19613 | } | |
c32bde28 | 19614 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19615 | PyObject *resultobj; |
19616 | int arg1 = (int) 0 ; | |
19617 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19618 | wxPyEvent *result; | |
19619 | PyObject * obj0 = 0 ; | |
19620 | PyObject * obj1 = 0 ; | |
19621 | char *kwnames[] = { | |
19622 | (char *) "winid",(char *) "commandType", NULL | |
19623 | }; | |
19624 | ||
19625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19626 | if (obj0) { | |
c32bde28 | 19627 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19628 | if (PyErr_Occurred()) SWIG_fail; |
19629 | } | |
19630 | if (obj1) { | |
c32bde28 | 19631 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
19632 | if (PyErr_Occurred()) SWIG_fail; |
19633 | } | |
19634 | { | |
19635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19636 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | return NULL; | |
19645 | } | |
19646 | ||
19647 | ||
c32bde28 | 19648 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19649 | PyObject *resultobj; |
19650 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19651 | PyObject * obj0 = 0 ; | |
19652 | char *kwnames[] = { | |
19653 | (char *) "self", NULL | |
19654 | }; | |
19655 | ||
19656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19659 | { | |
19660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19661 | delete arg1; | |
19662 | ||
19663 | wxPyEndAllowThreads(__tstate); | |
19664 | if (PyErr_Occurred()) SWIG_fail; | |
19665 | } | |
19666 | Py_INCREF(Py_None); resultobj = Py_None; | |
19667 | return resultobj; | |
19668 | fail: | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
c32bde28 | 19673 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19674 | PyObject *resultobj; |
19675 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19676 | PyObject *arg2 = (PyObject *) 0 ; | |
19677 | PyObject * obj0 = 0 ; | |
19678 | PyObject * obj1 = 0 ; | |
19679 | char *kwnames[] = { | |
19680 | (char *) "self",(char *) "self", NULL | |
19681 | }; | |
19682 | ||
19683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19686 | arg2 = obj1; | |
19687 | { | |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19689 | (arg1)->SetSelf(arg2); | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
19694 | Py_INCREF(Py_None); resultobj = Py_None; | |
19695 | return resultobj; | |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
c32bde28 | 19701 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19702 | PyObject *resultobj; |
19703 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19704 | PyObject *result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19713 | { | |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | result = (PyObject *)(arg1)->GetSelf(); | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
19720 | resultobj = result; | |
19721 | return resultobj; | |
19722 | fail: | |
19723 | return NULL; | |
19724 | } | |
19725 | ||
19726 | ||
c32bde28 | 19727 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19728 | PyObject *obj; |
19729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19730 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19731 | Py_INCREF(obj); | |
19732 | return Py_BuildValue((char *)""); | |
19733 | } | |
c32bde28 | 19734 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19735 | PyObject *resultobj; |
19736 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19737 | int arg2 = (int) 0 ; | |
19738 | wxPyCommandEvent *result; | |
19739 | PyObject * obj0 = 0 ; | |
19740 | PyObject * obj1 = 0 ; | |
19741 | char *kwnames[] = { | |
19742 | (char *) "commandType",(char *) "id", NULL | |
19743 | }; | |
19744 | ||
19745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19746 | if (obj0) { | |
c32bde28 | 19747 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19748 | if (PyErr_Occurred()) SWIG_fail; |
19749 | } | |
19750 | if (obj1) { | |
c32bde28 | 19751 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19752 | if (PyErr_Occurred()) SWIG_fail; |
19753 | } | |
19754 | { | |
19755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19756 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19757 | ||
19758 | wxPyEndAllowThreads(__tstate); | |
19759 | if (PyErr_Occurred()) SWIG_fail; | |
19760 | } | |
19761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19762 | return resultobj; | |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
c32bde28 | 19768 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19769 | PyObject *resultobj; |
19770 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19771 | PyObject * obj0 = 0 ; | |
19772 | char *kwnames[] = { | |
19773 | (char *) "self", NULL | |
19774 | }; | |
19775 | ||
19776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | delete arg1; | |
19782 | ||
19783 | wxPyEndAllowThreads(__tstate); | |
19784 | if (PyErr_Occurred()) SWIG_fail; | |
19785 | } | |
19786 | Py_INCREF(Py_None); resultobj = Py_None; | |
19787 | return resultobj; | |
19788 | fail: | |
19789 | return NULL; | |
19790 | } | |
19791 | ||
19792 | ||
c32bde28 | 19793 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19794 | PyObject *resultobj; |
19795 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19796 | PyObject *arg2 = (PyObject *) 0 ; | |
19797 | PyObject * obj0 = 0 ; | |
19798 | PyObject * obj1 = 0 ; | |
19799 | char *kwnames[] = { | |
19800 | (char *) "self",(char *) "self", NULL | |
19801 | }; | |
19802 | ||
19803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19806 | arg2 = obj1; | |
19807 | { | |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | (arg1)->SetSelf(arg2); | |
19810 | ||
19811 | wxPyEndAllowThreads(__tstate); | |
19812 | if (PyErr_Occurred()) SWIG_fail; | |
19813 | } | |
19814 | Py_INCREF(Py_None); resultobj = Py_None; | |
19815 | return resultobj; | |
19816 | fail: | |
19817 | return NULL; | |
19818 | } | |
19819 | ||
19820 | ||
c32bde28 | 19821 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19822 | PyObject *resultobj; |
19823 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19824 | PyObject *result; | |
19825 | PyObject * obj0 = 0 ; | |
19826 | char *kwnames[] = { | |
19827 | (char *) "self", NULL | |
19828 | }; | |
19829 | ||
19830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19833 | { | |
19834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19835 | result = (PyObject *)(arg1)->GetSelf(); | |
19836 | ||
19837 | wxPyEndAllowThreads(__tstate); | |
19838 | if (PyErr_Occurred()) SWIG_fail; | |
19839 | } | |
19840 | resultobj = result; | |
19841 | return resultobj; | |
19842 | fail: | |
19843 | return NULL; | |
19844 | } | |
19845 | ||
19846 | ||
c32bde28 | 19847 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19848 | PyObject *obj; |
19849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19850 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19851 | Py_INCREF(obj); | |
19852 | return Py_BuildValue((char *)""); | |
19853 | } | |
c32bde28 | 19854 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19855 | PyObject *resultobj; |
19856 | wxPyApp *result; | |
19857 | char *kwnames[] = { | |
19858 | NULL | |
19859 | }; | |
19860 | ||
19861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19862 | { | |
19863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19864 | result = (wxPyApp *)new_wxPyApp(); | |
19865 | ||
19866 | wxPyEndAllowThreads(__tstate); | |
19867 | if (PyErr_Occurred()) SWIG_fail; | |
19868 | } | |
b0f7404b | 19869 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
19870 | return resultobj; |
19871 | fail: | |
19872 | return NULL; | |
19873 | } | |
19874 | ||
19875 | ||
c32bde28 | 19876 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19877 | PyObject *resultobj; |
19878 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19879 | PyObject * obj0 = 0 ; | |
19880 | char *kwnames[] = { | |
19881 | (char *) "self", NULL | |
19882 | }; | |
19883 | ||
19884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19887 | { | |
19888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19889 | delete arg1; | |
19890 | ||
19891 | wxPyEndAllowThreads(__tstate); | |
19892 | if (PyErr_Occurred()) SWIG_fail; | |
19893 | } | |
19894 | Py_INCREF(Py_None); resultobj = Py_None; | |
19895 | return resultobj; | |
19896 | fail: | |
19897 | return NULL; | |
19898 | } | |
19899 | ||
19900 | ||
c32bde28 | 19901 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19902 | PyObject *resultobj; |
19903 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19904 | PyObject *arg2 = (PyObject *) 0 ; | |
19905 | PyObject *arg3 = (PyObject *) 0 ; | |
19906 | PyObject * obj0 = 0 ; | |
19907 | PyObject * obj1 = 0 ; | |
19908 | PyObject * obj2 = 0 ; | |
19909 | char *kwnames[] = { | |
19910 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19911 | }; | |
19912 | ||
19913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19916 | arg2 = obj1; | |
19917 | arg3 = obj2; | |
19918 | { | |
19919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19920 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19921 | ||
19922 | wxPyEndAllowThreads(__tstate); | |
19923 | if (PyErr_Occurred()) SWIG_fail; | |
19924 | } | |
19925 | Py_INCREF(Py_None); resultobj = Py_None; | |
19926 | return resultobj; | |
19927 | fail: | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
c32bde28 | 19932 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19933 | PyObject *resultobj; |
19934 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19935 | wxString result; | |
19936 | PyObject * obj0 = 0 ; | |
19937 | char *kwnames[] = { | |
19938 | (char *) "self", NULL | |
19939 | }; | |
19940 | ||
19941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19944 | { | |
19945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19946 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19947 | ||
19948 | wxPyEndAllowThreads(__tstate); | |
19949 | if (PyErr_Occurred()) SWIG_fail; | |
19950 | } | |
19951 | { | |
19952 | #if wxUSE_UNICODE | |
19953 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19954 | #else | |
19955 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19956 | #endif | |
19957 | } | |
19958 | return resultobj; | |
19959 | fail: | |
19960 | return NULL; | |
19961 | } | |
19962 | ||
19963 | ||
c32bde28 | 19964 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19965 | PyObject *resultobj; |
19966 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19967 | wxString *arg2 = 0 ; | |
ae8162c8 | 19968 | bool temp2 = false ; |
d55e5bfc RD |
19969 | PyObject * obj0 = 0 ; |
19970 | PyObject * obj1 = 0 ; | |
19971 | char *kwnames[] = { | |
19972 | (char *) "self",(char *) "name", NULL | |
19973 | }; | |
19974 | ||
19975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19978 | { | |
19979 | arg2 = wxString_in_helper(obj1); | |
19980 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19981 | temp2 = true; |
d55e5bfc RD |
19982 | } |
19983 | { | |
19984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19985 | (arg1)->SetAppName((wxString const &)*arg2); | |
19986 | ||
19987 | wxPyEndAllowThreads(__tstate); | |
19988 | if (PyErr_Occurred()) SWIG_fail; | |
19989 | } | |
19990 | Py_INCREF(Py_None); resultobj = Py_None; | |
19991 | { | |
19992 | if (temp2) | |
19993 | delete arg2; | |
19994 | } | |
19995 | return resultobj; | |
19996 | fail: | |
19997 | { | |
19998 | if (temp2) | |
19999 | delete arg2; | |
20000 | } | |
20001 | return NULL; | |
20002 | } | |
20003 | ||
20004 | ||
c32bde28 | 20005 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20006 | PyObject *resultobj; |
20007 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20008 | wxString result; | |
20009 | PyObject * obj0 = 0 ; | |
20010 | char *kwnames[] = { | |
20011 | (char *) "self", NULL | |
20012 | }; | |
20013 | ||
20014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
20015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20017 | { | |
20018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20019 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
20020 | ||
20021 | wxPyEndAllowThreads(__tstate); | |
20022 | if (PyErr_Occurred()) SWIG_fail; | |
20023 | } | |
20024 | { | |
20025 | #if wxUSE_UNICODE | |
20026 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20027 | #else | |
20028 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20029 | #endif | |
20030 | } | |
20031 | return resultobj; | |
20032 | fail: | |
20033 | return NULL; | |
20034 | } | |
20035 | ||
20036 | ||
c32bde28 | 20037 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20038 | PyObject *resultobj; |
20039 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20040 | wxString *arg2 = 0 ; | |
ae8162c8 | 20041 | bool temp2 = false ; |
d55e5bfc RD |
20042 | PyObject * obj0 = 0 ; |
20043 | PyObject * obj1 = 0 ; | |
20044 | char *kwnames[] = { | |
20045 | (char *) "self",(char *) "name", NULL | |
20046 | }; | |
20047 | ||
20048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
20049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20051 | { | |
20052 | arg2 = wxString_in_helper(obj1); | |
20053 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20054 | temp2 = true; |
d55e5bfc RD |
20055 | } |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | (arg1)->SetClassName((wxString const &)*arg2); | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | Py_INCREF(Py_None); resultobj = Py_None; | |
20064 | { | |
20065 | if (temp2) | |
20066 | delete arg2; | |
20067 | } | |
20068 | return resultobj; | |
20069 | fail: | |
20070 | { | |
20071 | if (temp2) | |
20072 | delete arg2; | |
20073 | } | |
20074 | return NULL; | |
20075 | } | |
20076 | ||
20077 | ||
c32bde28 | 20078 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20079 | PyObject *resultobj; |
20080 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20081 | wxString *result; | |
20082 | PyObject * obj0 = 0 ; | |
20083 | char *kwnames[] = { | |
20084 | (char *) "self", NULL | |
20085 | }; | |
20086 | ||
20087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
20088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20090 | { | |
20091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20092 | { | |
20093 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20094 | result = (wxString *) &_result_ref; | |
20095 | } | |
20096 | ||
20097 | wxPyEndAllowThreads(__tstate); | |
20098 | if (PyErr_Occurred()) SWIG_fail; | |
20099 | } | |
20100 | { | |
20101 | #if wxUSE_UNICODE | |
20102 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20103 | #else | |
20104 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20105 | #endif | |
20106 | } | |
20107 | return resultobj; | |
20108 | fail: | |
20109 | return NULL; | |
20110 | } | |
20111 | ||
20112 | ||
c32bde28 | 20113 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20114 | PyObject *resultobj; |
20115 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20116 | wxString *arg2 = 0 ; | |
ae8162c8 | 20117 | bool temp2 = false ; |
d55e5bfc RD |
20118 | PyObject * obj0 = 0 ; |
20119 | PyObject * obj1 = 0 ; | |
20120 | char *kwnames[] = { | |
20121 | (char *) "self",(char *) "name", NULL | |
20122 | }; | |
20123 | ||
20124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
20125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20127 | { | |
20128 | arg2 = wxString_in_helper(obj1); | |
20129 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20130 | temp2 = true; |
d55e5bfc RD |
20131 | } |
20132 | { | |
20133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20134 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20135 | ||
20136 | wxPyEndAllowThreads(__tstate); | |
20137 | if (PyErr_Occurred()) SWIG_fail; | |
20138 | } | |
20139 | Py_INCREF(Py_None); resultobj = Py_None; | |
20140 | { | |
20141 | if (temp2) | |
20142 | delete arg2; | |
20143 | } | |
20144 | return resultobj; | |
20145 | fail: | |
20146 | { | |
20147 | if (temp2) | |
20148 | delete arg2; | |
20149 | } | |
20150 | return NULL; | |
20151 | } | |
20152 | ||
20153 | ||
c32bde28 | 20154 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20155 | PyObject *resultobj; |
20156 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20157 | wxAppTraits *result; | |
20158 | PyObject * obj0 = 0 ; | |
20159 | char *kwnames[] = { | |
20160 | (char *) "self", NULL | |
20161 | }; | |
20162 | ||
20163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
20164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20166 | { | |
20167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20168 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20169 | ||
20170 | wxPyEndAllowThreads(__tstate); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
20172 | } | |
20173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
20174 | return resultobj; | |
20175 | fail: | |
20176 | return NULL; | |
20177 | } | |
20178 | ||
20179 | ||
c32bde28 | 20180 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20181 | PyObject *resultobj; |
20182 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
20189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20191 | { | |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | (arg1)->ProcessPendingEvents(); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
20198 | Py_INCREF(Py_None); resultobj = Py_None; | |
20199 | return resultobj; | |
20200 | fail: | |
20201 | return NULL; | |
20202 | } | |
20203 | ||
20204 | ||
c32bde28 | 20205 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20206 | PyObject *resultobj; |
20207 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
ae8162c8 | 20208 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20209 | bool result; |
20210 | PyObject * obj0 = 0 ; | |
20211 | PyObject * obj1 = 0 ; | |
20212 | char *kwnames[] = { | |
20213 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20214 | }; | |
20215 | ||
20216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
20217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20219 | if (obj1) { | |
c32bde28 | 20220 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20221 | if (PyErr_Occurred()) SWIG_fail; |
20222 | } | |
20223 | { | |
20224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20225 | result = (bool)(arg1)->Yield(arg2); | |
20226 | ||
20227 | wxPyEndAllowThreads(__tstate); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
20230 | { | |
20231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20232 | } | |
20233 | return resultobj; | |
20234 | fail: | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
c32bde28 | 20239 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20240 | PyObject *resultobj; |
20241 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20242 | PyObject * obj0 = 0 ; | |
20243 | char *kwnames[] = { | |
20244 | (char *) "self", NULL | |
20245 | }; | |
20246 | ||
20247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
20248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20250 | { | |
20251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20252 | (arg1)->WakeUpIdle(); | |
20253 | ||
20254 | wxPyEndAllowThreads(__tstate); | |
20255 | if (PyErr_Occurred()) SWIG_fail; | |
20256 | } | |
20257 | Py_INCREF(Py_None); resultobj = Py_None; | |
20258 | return resultobj; | |
20259 | fail: | |
20260 | return NULL; | |
20261 | } | |
20262 | ||
20263 | ||
84f85550 RD |
20264 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
20265 | PyObject *resultobj; | |
20266 | bool result; | |
20267 | char *kwnames[] = { | |
20268 | NULL | |
20269 | }; | |
20270 | ||
20271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
20272 | { | |
20273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20274 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
20275 | ||
20276 | wxPyEndAllowThreads(__tstate); | |
20277 | if (PyErr_Occurred()) SWIG_fail; | |
20278 | } | |
20279 | { | |
20280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20281 | } | |
20282 | return resultobj; | |
20283 | fail: | |
20284 | return NULL; | |
20285 | } | |
20286 | ||
20287 | ||
c32bde28 | 20288 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20289 | PyObject *resultobj; |
20290 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20291 | int result; | |
20292 | PyObject * obj0 = 0 ; | |
20293 | char *kwnames[] = { | |
20294 | (char *) "self", NULL | |
20295 | }; | |
20296 | ||
20297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20300 | { | |
20301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20302 | result = (int)(arg1)->MainLoop(); | |
20303 | ||
20304 | wxPyEndAllowThreads(__tstate); | |
20305 | if (PyErr_Occurred()) SWIG_fail; | |
20306 | } | |
c32bde28 | 20307 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20308 | return resultobj; |
20309 | fail: | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
c32bde28 | 20314 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20315 | PyObject *resultobj; |
20316 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20317 | PyObject * obj0 = 0 ; | |
20318 | char *kwnames[] = { | |
20319 | (char *) "self", NULL | |
20320 | }; | |
20321 | ||
20322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20325 | { | |
20326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20327 | (arg1)->Exit(); | |
20328 | ||
20329 | wxPyEndAllowThreads(__tstate); | |
20330 | if (PyErr_Occurred()) SWIG_fail; | |
20331 | } | |
20332 | Py_INCREF(Py_None); resultobj = Py_None; | |
20333 | return resultobj; | |
20334 | fail: | |
20335 | return NULL; | |
20336 | } | |
20337 | ||
20338 | ||
c32bde28 | 20339 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20340 | PyObject *resultobj; |
20341 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20342 | PyObject * obj0 = 0 ; | |
20343 | char *kwnames[] = { | |
20344 | (char *) "self", NULL | |
20345 | }; | |
20346 | ||
20347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20350 | { | |
20351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20352 | (arg1)->ExitMainLoop(); | |
20353 | ||
20354 | wxPyEndAllowThreads(__tstate); | |
20355 | if (PyErr_Occurred()) SWIG_fail; | |
20356 | } | |
20357 | Py_INCREF(Py_None); resultobj = Py_None; | |
20358 | return resultobj; | |
20359 | fail: | |
20360 | return NULL; | |
20361 | } | |
20362 | ||
20363 | ||
c32bde28 | 20364 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20365 | PyObject *resultobj; |
20366 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20367 | bool result; | |
20368 | PyObject * obj0 = 0 ; | |
20369 | char *kwnames[] = { | |
20370 | (char *) "self", NULL | |
20371 | }; | |
20372 | ||
20373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20376 | { | |
20377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20378 | result = (bool)(arg1)->Pending(); | |
20379 | ||
20380 | wxPyEndAllowThreads(__tstate); | |
20381 | if (PyErr_Occurred()) SWIG_fail; | |
20382 | } | |
20383 | { | |
20384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20385 | } | |
20386 | return resultobj; | |
20387 | fail: | |
20388 | return NULL; | |
20389 | } | |
20390 | ||
20391 | ||
c32bde28 | 20392 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20393 | PyObject *resultobj; |
20394 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20395 | bool result; | |
20396 | PyObject * obj0 = 0 ; | |
20397 | char *kwnames[] = { | |
20398 | (char *) "self", NULL | |
20399 | }; | |
20400 | ||
20401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20404 | { | |
20405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20406 | result = (bool)(arg1)->Dispatch(); | |
20407 | ||
20408 | wxPyEndAllowThreads(__tstate); | |
20409 | if (PyErr_Occurred()) SWIG_fail; | |
20410 | } | |
20411 | { | |
20412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20413 | } | |
20414 | return resultobj; | |
20415 | fail: | |
20416 | return NULL; | |
20417 | } | |
20418 | ||
20419 | ||
c32bde28 | 20420 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20421 | PyObject *resultobj; |
20422 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20423 | bool result; | |
20424 | PyObject * obj0 = 0 ; | |
20425 | char *kwnames[] = { | |
20426 | (char *) "self", NULL | |
20427 | }; | |
20428 | ||
20429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20432 | { | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | result = (bool)(arg1)->ProcessIdle(); | |
20435 | ||
20436 | wxPyEndAllowThreads(__tstate); | |
20437 | if (PyErr_Occurred()) SWIG_fail; | |
20438 | } | |
20439 | { | |
20440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20441 | } | |
20442 | return resultobj; | |
20443 | fail: | |
20444 | return NULL; | |
20445 | } | |
20446 | ||
20447 | ||
c32bde28 | 20448 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20449 | PyObject *resultobj; |
20450 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20451 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20452 | wxIdleEvent *arg3 = 0 ; | |
20453 | bool result; | |
20454 | PyObject * obj0 = 0 ; | |
20455 | PyObject * obj1 = 0 ; | |
20456 | PyObject * obj2 = 0 ; | |
20457 | char *kwnames[] = { | |
20458 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20459 | }; | |
20460 | ||
20461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20466 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20468 | SWIG_fail; | |
20469 | if (arg3 == NULL) { | |
20470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20471 | SWIG_fail; | |
20472 | } | |
20473 | { | |
20474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20475 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20476 | ||
20477 | wxPyEndAllowThreads(__tstate); | |
20478 | if (PyErr_Occurred()) SWIG_fail; | |
20479 | } | |
20480 | { | |
20481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20482 | } | |
20483 | return resultobj; | |
20484 | fail: | |
20485 | return NULL; | |
20486 | } | |
20487 | ||
20488 | ||
c32bde28 | 20489 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20490 | PyObject *resultobj; |
20491 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20492 | bool result; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | char *kwnames[] = { | |
20495 | (char *) "self", NULL | |
20496 | }; | |
20497 | ||
20498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20501 | { | |
20502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20503 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20504 | ||
20505 | wxPyEndAllowThreads(__tstate); | |
20506 | if (PyErr_Occurred()) SWIG_fail; | |
20507 | } | |
20508 | { | |
20509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20510 | } | |
20511 | return resultobj; | |
20512 | fail: | |
20513 | return NULL; | |
20514 | } | |
20515 | ||
20516 | ||
c32bde28 | 20517 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20518 | PyObject *resultobj; |
20519 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20520 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20521 | PyObject * obj0 = 0 ; | |
20522 | PyObject * obj1 = 0 ; | |
20523 | char *kwnames[] = { | |
20524 | (char *) "self",(char *) "win", NULL | |
20525 | }; | |
20526 | ||
20527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20532 | { | |
20533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20534 | (arg1)->SetTopWindow(arg2); | |
20535 | ||
20536 | wxPyEndAllowThreads(__tstate); | |
20537 | if (PyErr_Occurred()) SWIG_fail; | |
20538 | } | |
20539 | Py_INCREF(Py_None); resultobj = Py_None; | |
20540 | return resultobj; | |
20541 | fail: | |
20542 | return NULL; | |
20543 | } | |
20544 | ||
20545 | ||
c32bde28 | 20546 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20547 | PyObject *resultobj; |
20548 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20549 | wxWindow *result; | |
20550 | PyObject * obj0 = 0 ; | |
20551 | char *kwnames[] = { | |
20552 | (char *) "self", NULL | |
20553 | }; | |
20554 | ||
20555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20558 | { | |
20559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20560 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20561 | ||
20562 | wxPyEndAllowThreads(__tstate); | |
20563 | if (PyErr_Occurred()) SWIG_fail; | |
20564 | } | |
20565 | { | |
412d302d | 20566 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20567 | } |
20568 | return resultobj; | |
20569 | fail: | |
20570 | return NULL; | |
20571 | } | |
20572 | ||
20573 | ||
c32bde28 | 20574 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20575 | PyObject *resultobj; |
20576 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20577 | bool arg2 ; | |
20578 | PyObject * obj0 = 0 ; | |
20579 | PyObject * obj1 = 0 ; | |
20580 | char *kwnames[] = { | |
20581 | (char *) "self",(char *) "flag", NULL | |
20582 | }; | |
20583 | ||
20584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20587 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20588 | if (PyErr_Occurred()) SWIG_fail; |
20589 | { | |
20590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20591 | (arg1)->SetExitOnFrameDelete(arg2); | |
20592 | ||
20593 | wxPyEndAllowThreads(__tstate); | |
20594 | if (PyErr_Occurred()) SWIG_fail; | |
20595 | } | |
20596 | Py_INCREF(Py_None); resultobj = Py_None; | |
20597 | return resultobj; | |
20598 | fail: | |
20599 | return NULL; | |
20600 | } | |
20601 | ||
20602 | ||
c32bde28 | 20603 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20604 | PyObject *resultobj; |
20605 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20606 | bool result; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | char *kwnames[] = { | |
20609 | (char *) "self", NULL | |
20610 | }; | |
20611 | ||
20612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20615 | { | |
20616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20617 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20618 | ||
20619 | wxPyEndAllowThreads(__tstate); | |
20620 | if (PyErr_Occurred()) SWIG_fail; | |
20621 | } | |
20622 | { | |
20623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20624 | } | |
20625 | return resultobj; | |
20626 | fail: | |
20627 | return NULL; | |
20628 | } | |
20629 | ||
20630 | ||
c32bde28 | 20631 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20632 | PyObject *resultobj; |
20633 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20634 | bool arg2 ; | |
20635 | PyObject * obj0 = 0 ; | |
20636 | PyObject * obj1 = 0 ; | |
20637 | char *kwnames[] = { | |
20638 | (char *) "self",(char *) "flag", NULL | |
20639 | }; | |
20640 | ||
20641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20644 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20645 | if (PyErr_Occurred()) SWIG_fail; |
20646 | { | |
20647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20648 | (arg1)->SetUseBestVisual(arg2); | |
20649 | ||
20650 | wxPyEndAllowThreads(__tstate); | |
20651 | if (PyErr_Occurred()) SWIG_fail; | |
20652 | } | |
20653 | Py_INCREF(Py_None); resultobj = Py_None; | |
20654 | return resultobj; | |
20655 | fail: | |
20656 | return NULL; | |
20657 | } | |
20658 | ||
20659 | ||
c32bde28 | 20660 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20661 | PyObject *resultobj; |
20662 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20663 | bool result; | |
20664 | PyObject * obj0 = 0 ; | |
20665 | char *kwnames[] = { | |
20666 | (char *) "self", NULL | |
20667 | }; | |
20668 | ||
20669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20672 | { | |
20673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20674 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20675 | ||
20676 | wxPyEndAllowThreads(__tstate); | |
20677 | if (PyErr_Occurred()) SWIG_fail; | |
20678 | } | |
20679 | { | |
20680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20681 | } | |
20682 | return resultobj; | |
20683 | fail: | |
20684 | return NULL; | |
20685 | } | |
20686 | ||
20687 | ||
c32bde28 | 20688 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20689 | PyObject *resultobj; |
20690 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20691 | int arg2 ; | |
20692 | PyObject * obj0 = 0 ; | |
20693 | PyObject * obj1 = 0 ; | |
20694 | char *kwnames[] = { | |
20695 | (char *) "self",(char *) "mode", NULL | |
20696 | }; | |
20697 | ||
20698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20701 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20702 | if (PyErr_Occurred()) SWIG_fail; |
20703 | { | |
20704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20705 | (arg1)->SetPrintMode(arg2); | |
20706 | ||
20707 | wxPyEndAllowThreads(__tstate); | |
20708 | if (PyErr_Occurred()) SWIG_fail; | |
20709 | } | |
20710 | Py_INCREF(Py_None); resultobj = Py_None; | |
20711 | return resultobj; | |
20712 | fail: | |
20713 | return NULL; | |
20714 | } | |
20715 | ||
20716 | ||
c32bde28 | 20717 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20718 | PyObject *resultobj; |
20719 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20720 | int result; | |
20721 | PyObject * obj0 = 0 ; | |
20722 | char *kwnames[] = { | |
20723 | (char *) "self", NULL | |
20724 | }; | |
20725 | ||
20726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20729 | { | |
20730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20731 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20732 | ||
20733 | wxPyEndAllowThreads(__tstate); | |
20734 | if (PyErr_Occurred()) SWIG_fail; | |
20735 | } | |
c32bde28 | 20736 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20737 | return resultobj; |
20738 | fail: | |
20739 | return NULL; | |
20740 | } | |
20741 | ||
20742 | ||
c32bde28 | 20743 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20744 | PyObject *resultobj; |
20745 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20746 | int arg2 ; | |
20747 | PyObject * obj0 = 0 ; | |
20748 | PyObject * obj1 = 0 ; | |
20749 | char *kwnames[] = { | |
20750 | (char *) "self",(char *) "mode", NULL | |
20751 | }; | |
20752 | ||
20753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 20756 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20757 | if (PyErr_Occurred()) SWIG_fail; |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | (arg1)->SetAssertMode(arg2); | |
20761 | ||
20762 | wxPyEndAllowThreads(__tstate); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | } | |
20765 | Py_INCREF(Py_None); resultobj = Py_None; | |
20766 | return resultobj; | |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
c32bde28 | 20772 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20773 | PyObject *resultobj; |
20774 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20775 | int result; | |
20776 | PyObject * obj0 = 0 ; | |
20777 | char *kwnames[] = { | |
20778 | (char *) "self", NULL | |
20779 | }; | |
20780 | ||
20781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20784 | { | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (int)(arg1)->GetAssertMode(); | |
20787 | ||
20788 | wxPyEndAllowThreads(__tstate); | |
20789 | if (PyErr_Occurred()) SWIG_fail; | |
20790 | } | |
c32bde28 | 20791 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20792 | return resultobj; |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
c32bde28 | 20798 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20799 | PyObject *resultobj; |
20800 | bool result; | |
20801 | char *kwnames[] = { | |
20802 | NULL | |
20803 | }; | |
20804 | ||
20805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20806 | { | |
20807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20808 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20809 | ||
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
20813 | { | |
20814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20815 | } | |
20816 | return resultobj; | |
20817 | fail: | |
20818 | return NULL; | |
20819 | } | |
20820 | ||
20821 | ||
c32bde28 | 20822 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20823 | PyObject *resultobj; |
20824 | long result; | |
20825 | char *kwnames[] = { | |
20826 | NULL | |
20827 | }; | |
20828 | ||
20829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20830 | { | |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
c32bde28 | 20837 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20838 | return resultobj; |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
c32bde28 | 20844 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20845 | PyObject *resultobj; |
20846 | long result; | |
20847 | char *kwnames[] = { | |
20848 | NULL | |
20849 | }; | |
20850 | ||
20851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20852 | { | |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
c32bde28 | 20859 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20860 | return resultobj; |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
c32bde28 | 20866 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20867 | PyObject *resultobj; |
20868 | long result; | |
20869 | char *kwnames[] = { | |
20870 | NULL | |
20871 | }; | |
20872 | ||
20873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20874 | { | |
20875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20876 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20877 | ||
20878 | wxPyEndAllowThreads(__tstate); | |
20879 | if (PyErr_Occurred()) SWIG_fail; | |
20880 | } | |
c32bde28 | 20881 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20882 | return resultobj; |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
c32bde28 | 20888 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20889 | PyObject *resultobj; |
20890 | wxString result; | |
20891 | char *kwnames[] = { | |
20892 | NULL | |
20893 | }; | |
20894 | ||
20895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20896 | { | |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | { | |
20904 | #if wxUSE_UNICODE | |
20905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20906 | #else | |
20907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20908 | #endif | |
20909 | } | |
20910 | return resultobj; | |
20911 | fail: | |
20912 | return NULL; | |
20913 | } | |
20914 | ||
20915 | ||
c32bde28 | 20916 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20917 | PyObject *resultobj; |
20918 | bool arg1 ; | |
20919 | PyObject * obj0 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "val", NULL | |
20922 | }; | |
20923 | ||
20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c32bde28 | 20925 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
20926 | if (PyErr_Occurred()) SWIG_fail; |
20927 | { | |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20930 | ||
20931 | wxPyEndAllowThreads(__tstate); | |
20932 | if (PyErr_Occurred()) SWIG_fail; | |
20933 | } | |
20934 | Py_INCREF(Py_None); resultobj = Py_None; | |
20935 | return resultobj; | |
20936 | fail: | |
20937 | return NULL; | |
20938 | } | |
20939 | ||
20940 | ||
c32bde28 | 20941 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20942 | PyObject *resultobj; |
20943 | long arg1 ; | |
20944 | PyObject * obj0 = 0 ; | |
20945 | char *kwnames[] = { | |
20946 | (char *) "val", NULL | |
20947 | }; | |
20948 | ||
20949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 20950 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20951 | if (PyErr_Occurred()) SWIG_fail; |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
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_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20967 | PyObject *resultobj; |
20968 | long arg1 ; | |
20969 | PyObject * obj0 = 0 ; | |
20970 | char *kwnames[] = { | |
20971 | (char *) "val", NULL | |
20972 | }; | |
20973 | ||
20974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 20975 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20976 | if (PyErr_Occurred()) SWIG_fail; |
20977 | { | |
20978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20979 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20980 | ||
20981 | wxPyEndAllowThreads(__tstate); | |
20982 | if (PyErr_Occurred()) SWIG_fail; | |
20983 | } | |
20984 | Py_INCREF(Py_None); resultobj = Py_None; | |
20985 | return resultobj; | |
20986 | fail: | |
20987 | return NULL; | |
20988 | } | |
20989 | ||
20990 | ||
c32bde28 | 20991 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20992 | PyObject *resultobj; |
20993 | long arg1 ; | |
20994 | PyObject * obj0 = 0 ; | |
20995 | char *kwnames[] = { | |
20996 | (char *) "val", NULL | |
20997 | }; | |
20998 | ||
20999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c32bde28 | 21000 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21001 | if (PyErr_Occurred()) SWIG_fail; |
21002 | { | |
21003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21004 | wxPyApp::SetMacExitMenuItemId(arg1); | |
21005 | ||
21006 | wxPyEndAllowThreads(__tstate); | |
21007 | if (PyErr_Occurred()) SWIG_fail; | |
21008 | } | |
21009 | Py_INCREF(Py_None); resultobj = Py_None; | |
21010 | return resultobj; | |
21011 | fail: | |
21012 | return NULL; | |
21013 | } | |
21014 | ||
21015 | ||
c32bde28 | 21016 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21017 | PyObject *resultobj; |
21018 | wxString *arg1 = 0 ; | |
ae8162c8 | 21019 | bool temp1 = false ; |
d55e5bfc RD |
21020 | PyObject * obj0 = 0 ; |
21021 | char *kwnames[] = { | |
21022 | (char *) "val", NULL | |
21023 | }; | |
21024 | ||
21025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
21026 | { | |
21027 | arg1 = wxString_in_helper(obj0); | |
21028 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21029 | temp1 = true; |
d55e5bfc RD |
21030 | } |
21031 | { | |
21032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21033 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
21034 | ||
21035 | wxPyEndAllowThreads(__tstate); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
21038 | Py_INCREF(Py_None); resultobj = Py_None; | |
21039 | { | |
21040 | if (temp1) | |
21041 | delete arg1; | |
21042 | } | |
21043 | return resultobj; | |
21044 | fail: | |
21045 | { | |
21046 | if (temp1) | |
21047 | delete arg1; | |
21048 | } | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
c32bde28 | 21053 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21054 | PyObject *resultobj; |
21055 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21056 | PyObject * obj0 = 0 ; | |
21057 | char *kwnames[] = { | |
21058 | (char *) "self", NULL | |
21059 | }; | |
21060 | ||
21061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
21062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
21063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21064 | { | |
21065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21066 | (arg1)->_BootstrapApp(); | |
21067 | ||
21068 | wxPyEndAllowThreads(__tstate); | |
21069 | if (PyErr_Occurred()) SWIG_fail; | |
21070 | } | |
21071 | Py_INCREF(Py_None); resultobj = Py_None; | |
21072 | return resultobj; | |
21073 | fail: | |
21074 | return NULL; | |
21075 | } | |
21076 | ||
21077 | ||
c32bde28 | 21078 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21079 | PyObject *resultobj; |
21080 | int result; | |
21081 | char *kwnames[] = { | |
21082 | NULL | |
21083 | }; | |
21084 | ||
21085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21086 | { | |
21087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21088 | result = (int)wxPyApp::GetComCtl32Version(); | |
21089 | ||
21090 | wxPyEndAllowThreads(__tstate); | |
21091 | if (PyErr_Occurred()) SWIG_fail; | |
21092 | } | |
c32bde28 | 21093 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21094 | return resultobj; |
21095 | fail: | |
21096 | return NULL; | |
21097 | } | |
21098 | ||
21099 | ||
c32bde28 | 21100 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21101 | PyObject *obj; |
21102 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21103 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21104 | Py_INCREF(obj); | |
21105 | return Py_BuildValue((char *)""); | |
21106 | } | |
c32bde28 | 21107 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21108 | PyObject *resultobj; |
21109 | char *kwnames[] = { | |
21110 | NULL | |
21111 | }; | |
21112 | ||
21113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | wxExit(); | |
21117 | ||
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
21121 | Py_INCREF(Py_None); resultobj = Py_None; | |
21122 | return resultobj; | |
21123 | fail: | |
21124 | return NULL; | |
21125 | } | |
21126 | ||
21127 | ||
c32bde28 | 21128 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21129 | PyObject *resultobj; |
21130 | bool result; | |
21131 | char *kwnames[] = { | |
21132 | NULL | |
21133 | }; | |
21134 | ||
21135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21136 | { | |
21137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21138 | result = (bool)wxYield(); | |
21139 | ||
21140 | wxPyEndAllowThreads(__tstate); | |
21141 | if (PyErr_Occurred()) SWIG_fail; | |
21142 | } | |
21143 | { | |
21144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21145 | } | |
21146 | return resultobj; | |
21147 | fail: | |
21148 | return NULL; | |
21149 | } | |
21150 | ||
21151 | ||
c32bde28 | 21152 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21153 | PyObject *resultobj; |
21154 | bool result; | |
21155 | char *kwnames[] = { | |
21156 | NULL | |
21157 | }; | |
21158 | ||
21159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21160 | { | |
21161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21162 | result = (bool)wxYieldIfNeeded(); | |
21163 | ||
21164 | wxPyEndAllowThreads(__tstate); | |
21165 | if (PyErr_Occurred()) SWIG_fail; | |
21166 | } | |
21167 | { | |
21168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21169 | } | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
c32bde28 | 21176 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21177 | PyObject *resultobj; |
21178 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 21179 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21180 | bool result; |
21181 | PyObject * obj0 = 0 ; | |
21182 | PyObject * obj1 = 0 ; | |
21183 | char *kwnames[] = { | |
21184 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21185 | }; | |
21186 | ||
21187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21188 | if (obj0) { | |
21189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21191 | } | |
21192 | if (obj1) { | |
c32bde28 | 21193 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21194 | if (PyErr_Occurred()) SWIG_fail; |
21195 | } | |
21196 | { | |
21197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21198 | result = (bool)wxSafeYield(arg1,arg2); | |
21199 | ||
21200 | wxPyEndAllowThreads(__tstate); | |
21201 | if (PyErr_Occurred()) SWIG_fail; | |
21202 | } | |
21203 | { | |
21204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21205 | } | |
21206 | return resultobj; | |
21207 | fail: | |
21208 | return NULL; | |
21209 | } | |
21210 | ||
21211 | ||
c32bde28 | 21212 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21213 | PyObject *resultobj; |
21214 | char *kwnames[] = { | |
21215 | NULL | |
21216 | }; | |
21217 | ||
21218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21219 | { | |
21220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21221 | wxWakeUpIdle(); | |
21222 | ||
21223 | wxPyEndAllowThreads(__tstate); | |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
21225 | } | |
21226 | Py_INCREF(Py_None); resultobj = Py_None; | |
21227 | return resultobj; | |
21228 | fail: | |
21229 | return NULL; | |
21230 | } | |
21231 | ||
21232 | ||
c32bde28 | 21233 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21234 | PyObject *resultobj; |
21235 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21236 | wxEvent *arg2 = 0 ; | |
21237 | PyObject * obj0 = 0 ; | |
21238 | PyObject * obj1 = 0 ; | |
21239 | char *kwnames[] = { | |
21240 | (char *) "dest",(char *) "event", NULL | |
21241 | }; | |
21242 | ||
21243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21247 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21248 | SWIG_fail; | |
21249 | if (arg2 == NULL) { | |
21250 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21251 | SWIG_fail; | |
21252 | } | |
21253 | { | |
21254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21255 | wxPostEvent(arg1,*arg2); | |
21256 | ||
21257 | wxPyEndAllowThreads(__tstate); | |
21258 | if (PyErr_Occurred()) SWIG_fail; | |
21259 | } | |
21260 | Py_INCREF(Py_None); resultobj = Py_None; | |
21261 | return resultobj; | |
21262 | fail: | |
21263 | return NULL; | |
21264 | } | |
21265 | ||
21266 | ||
c32bde28 | 21267 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21268 | PyObject *resultobj; |
21269 | char *kwnames[] = { | |
21270 | NULL | |
21271 | }; | |
21272 | ||
21273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21274 | { | |
21275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21276 | wxApp_CleanUp(); | |
21277 | ||
21278 | wxPyEndAllowThreads(__tstate); | |
21279 | if (PyErr_Occurred()) SWIG_fail; | |
21280 | } | |
21281 | Py_INCREF(Py_None); resultobj = Py_None; | |
21282 | return resultobj; | |
21283 | fail: | |
21284 | return NULL; | |
21285 | } | |
21286 | ||
21287 | ||
c32bde28 | 21288 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21289 | PyObject *resultobj; |
21290 | wxPyApp *result; | |
21291 | char *kwnames[] = { | |
21292 | NULL | |
21293 | }; | |
21294 | ||
21295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21296 | { | |
21297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 21298 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21299 | |
21300 | wxPyEndAllowThreads(__tstate); | |
21301 | if (PyErr_Occurred()) SWIG_fail; | |
21302 | } | |
21303 | { | |
412d302d | 21304 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21305 | } |
21306 | return resultobj; | |
21307 | fail: | |
21308 | return NULL; | |
21309 | } | |
21310 | ||
21311 | ||
ae8162c8 RD |
21312 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21313 | PyObject *resultobj; | |
21314 | wxEventLoop *result; | |
21315 | char *kwnames[] = { | |
21316 | NULL | |
21317 | }; | |
21318 | ||
21319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21320 | { | |
21321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21322 | result = (wxEventLoop *)new wxEventLoop(); | |
21323 | ||
21324 | wxPyEndAllowThreads(__tstate); | |
21325 | if (PyErr_Occurred()) SWIG_fail; | |
21326 | } | |
21327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21328 | return resultobj; | |
21329 | fail: | |
21330 | return NULL; | |
21331 | } | |
21332 | ||
21333 | ||
21334 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21335 | PyObject *resultobj; | |
21336 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21337 | PyObject * obj0 = 0 ; | |
21338 | char *kwnames[] = { | |
21339 | (char *) "self", NULL | |
21340 | }; | |
21341 | ||
21342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21345 | { | |
21346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21347 | delete arg1; | |
21348 | ||
21349 | wxPyEndAllowThreads(__tstate); | |
21350 | if (PyErr_Occurred()) SWIG_fail; | |
21351 | } | |
21352 | Py_INCREF(Py_None); resultobj = Py_None; | |
21353 | return resultobj; | |
21354 | fail: | |
21355 | return NULL; | |
21356 | } | |
21357 | ||
21358 | ||
21359 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21360 | PyObject *resultobj; | |
21361 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21362 | int result; | |
21363 | PyObject * obj0 = 0 ; | |
21364 | char *kwnames[] = { | |
21365 | (char *) "self", NULL | |
21366 | }; | |
21367 | ||
21368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | result = (int)(arg1)->Run(); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | resultobj = SWIG_From_int((int)result); | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj; | |
21387 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21388 | int arg2 = (int) 0 ; | |
21389 | PyObject * obj0 = 0 ; | |
21390 | PyObject * obj1 = 0 ; | |
21391 | char *kwnames[] = { | |
21392 | (char *) "self",(char *) "rc", NULL | |
21393 | }; | |
21394 | ||
21395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21398 | if (obj1) { | |
21399 | arg2 = (int)SWIG_As_int(obj1); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
21402 | { | |
21403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21404 | (arg1)->Exit(arg2); | |
21405 | ||
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | Py_INCREF(Py_None); resultobj = Py_None; | |
21410 | return resultobj; | |
21411 | fail: | |
21412 | return NULL; | |
21413 | } | |
21414 | ||
21415 | ||
21416 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21417 | PyObject *resultobj; | |
21418 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21419 | bool result; | |
21420 | PyObject * obj0 = 0 ; | |
21421 | char *kwnames[] = { | |
21422 | (char *) "self", NULL | |
21423 | }; | |
21424 | ||
21425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21428 | { | |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21431 | ||
21432 | wxPyEndAllowThreads(__tstate); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
21435 | { | |
21436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21437 | } | |
21438 | return resultobj; | |
21439 | fail: | |
21440 | return NULL; | |
21441 | } | |
21442 | ||
21443 | ||
21444 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21445 | PyObject *resultobj; | |
21446 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21447 | bool result; | |
21448 | PyObject * obj0 = 0 ; | |
21449 | char *kwnames[] = { | |
21450 | (char *) "self", NULL | |
21451 | }; | |
21452 | ||
21453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21456 | { | |
21457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21458 | result = (bool)(arg1)->Dispatch(); | |
21459 | ||
21460 | wxPyEndAllowThreads(__tstate); | |
21461 | if (PyErr_Occurred()) SWIG_fail; | |
21462 | } | |
21463 | { | |
21464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21465 | } | |
21466 | return resultobj; | |
21467 | fail: | |
21468 | return NULL; | |
21469 | } | |
21470 | ||
21471 | ||
21472 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21473 | PyObject *resultobj; | |
21474 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21475 | bool result; | |
21476 | PyObject * obj0 = 0 ; | |
21477 | char *kwnames[] = { | |
21478 | (char *) "self", NULL | |
21479 | }; | |
21480 | ||
21481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21484 | { | |
21485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21486 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21487 | ||
21488 | wxPyEndAllowThreads(__tstate); | |
21489 | if (PyErr_Occurred()) SWIG_fail; | |
21490 | } | |
21491 | { | |
21492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21493 | } | |
21494 | return resultobj; | |
21495 | fail: | |
21496 | return NULL; | |
21497 | } | |
21498 | ||
21499 | ||
21500 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21501 | PyObject *resultobj; | |
21502 | wxEventLoop *result; | |
21503 | char *kwnames[] = { | |
21504 | NULL | |
21505 | }; | |
21506 | ||
21507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21508 | { | |
21509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21510 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21511 | ||
21512 | wxPyEndAllowThreads(__tstate); | |
21513 | if (PyErr_Occurred()) SWIG_fail; | |
21514 | } | |
21515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21516 | return resultobj; | |
21517 | fail: | |
21518 | return NULL; | |
21519 | } | |
21520 | ||
21521 | ||
21522 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21523 | PyObject *resultobj; | |
21524 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21525 | PyObject * obj0 = 0 ; | |
21526 | char *kwnames[] = { | |
21527 | (char *) "loop", NULL | |
21528 | }; | |
21529 | ||
21530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21533 | { | |
21534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21535 | wxEventLoop::SetActive(arg1); | |
21536 | ||
21537 | wxPyEndAllowThreads(__tstate); | |
21538 | if (PyErr_Occurred()) SWIG_fail; | |
21539 | } | |
21540 | Py_INCREF(Py_None); resultobj = Py_None; | |
21541 | return resultobj; | |
21542 | fail: | |
21543 | return NULL; | |
21544 | } | |
21545 | ||
21546 | ||
21547 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21548 | PyObject *obj; | |
21549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21550 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21551 | Py_INCREF(obj); | |
21552 | return Py_BuildValue((char *)""); | |
21553 | } | |
c32bde28 | 21554 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21555 | PyObject *resultobj; |
21556 | int arg1 = (int) 0 ; | |
21557 | int arg2 = (int) 0 ; | |
21558 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21559 | wxAcceleratorEntry *result; |
21560 | PyObject * obj0 = 0 ; | |
21561 | PyObject * obj1 = 0 ; | |
21562 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21563 | char *kwnames[] = { |
c24da6d6 | 21564 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21565 | }; |
21566 | ||
c24da6d6 | 21567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21568 | if (obj0) { |
c32bde28 | 21569 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21570 | if (PyErr_Occurred()) SWIG_fail; |
21571 | } | |
21572 | if (obj1) { | |
c32bde28 | 21573 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21574 | if (PyErr_Occurred()) SWIG_fail; |
21575 | } | |
21576 | if (obj2) { | |
c32bde28 | 21577 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21578 | if (PyErr_Occurred()) SWIG_fail; |
21579 | } | |
d55e5bfc RD |
21580 | { |
21581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21582 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21583 | |
21584 | wxPyEndAllowThreads(__tstate); | |
21585 | if (PyErr_Occurred()) SWIG_fail; | |
21586 | } | |
21587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21588 | return resultobj; | |
21589 | fail: | |
21590 | return NULL; | |
21591 | } | |
21592 | ||
21593 | ||
c32bde28 | 21594 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21595 | PyObject *resultobj; |
21596 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21597 | PyObject * obj0 = 0 ; | |
21598 | char *kwnames[] = { | |
21599 | (char *) "self", NULL | |
21600 | }; | |
21601 | ||
21602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21605 | { | |
21606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21607 | delete arg1; | |
21608 | ||
21609 | wxPyEndAllowThreads(__tstate); | |
21610 | if (PyErr_Occurred()) SWIG_fail; | |
21611 | } | |
21612 | Py_INCREF(Py_None); resultobj = Py_None; | |
21613 | return resultobj; | |
21614 | fail: | |
21615 | return NULL; | |
21616 | } | |
21617 | ||
21618 | ||
c32bde28 | 21619 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21620 | PyObject *resultobj; |
21621 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21622 | int arg2 ; | |
21623 | int arg3 ; | |
21624 | int arg4 ; | |
d55e5bfc RD |
21625 | PyObject * obj0 = 0 ; |
21626 | PyObject * obj1 = 0 ; | |
21627 | PyObject * obj2 = 0 ; | |
21628 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21629 | char *kwnames[] = { |
c24da6d6 | 21630 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21631 | }; |
21632 | ||
c24da6d6 | 21633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 21636 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21637 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21638 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21639 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 21640 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21641 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21642 | { |
21643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 21644 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
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 | ||
c32bde28 | 21656 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21657 | PyObject *resultobj; |
21658 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21659 | int result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21668 | { | |
21669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21670 | result = (int)(arg1)->GetFlags(); | |
21671 | ||
21672 | wxPyEndAllowThreads(__tstate); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
c32bde28 | 21675 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21676 | return resultobj; |
21677 | fail: | |
21678 | return NULL; | |
21679 | } | |
21680 | ||
21681 | ||
c32bde28 | 21682 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21683 | PyObject *resultobj; |
21684 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21685 | int result; | |
21686 | PyObject * obj0 = 0 ; | |
21687 | char *kwnames[] = { | |
21688 | (char *) "self", NULL | |
21689 | }; | |
21690 | ||
21691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21694 | { | |
21695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21696 | result = (int)(arg1)->GetKeyCode(); | |
21697 | ||
21698 | wxPyEndAllowThreads(__tstate); | |
21699 | if (PyErr_Occurred()) SWIG_fail; | |
21700 | } | |
c32bde28 | 21701 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21702 | return resultobj; |
21703 | fail: | |
21704 | return NULL; | |
21705 | } | |
21706 | ||
21707 | ||
c32bde28 | 21708 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21709 | PyObject *resultobj; |
21710 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21711 | int result; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | char *kwnames[] = { | |
21714 | (char *) "self", NULL | |
21715 | }; | |
21716 | ||
21717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21720 | { | |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | result = (int)(arg1)->GetCommand(); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
c32bde28 | 21727 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21728 | return resultobj; |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
c32bde28 | 21734 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21735 | PyObject *obj; |
21736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21737 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21738 | Py_INCREF(obj); | |
21739 | return Py_BuildValue((char *)""); | |
21740 | } | |
c32bde28 | 21741 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21742 | PyObject *resultobj; |
21743 | int arg1 ; | |
21744 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21745 | wxAcceleratorTable *result; | |
21746 | PyObject * obj0 = 0 ; | |
21747 | char *kwnames[] = { | |
21748 | (char *) "n", NULL | |
21749 | }; | |
21750 | ||
21751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21752 | { | |
21753 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21754 | if (arg2) arg1 = PyList_Size(obj0); | |
21755 | else arg1 = 0; | |
21756 | } | |
21757 | { | |
21758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21759 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21760 | ||
21761 | wxPyEndAllowThreads(__tstate); | |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
21763 | } | |
21764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21765 | { | |
21766 | delete [] arg2; | |
21767 | } | |
21768 | return resultobj; | |
21769 | fail: | |
21770 | { | |
21771 | delete [] arg2; | |
21772 | } | |
21773 | return NULL; | |
21774 | } | |
21775 | ||
21776 | ||
c32bde28 | 21777 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21778 | PyObject *resultobj; |
21779 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21780 | PyObject * obj0 = 0 ; | |
21781 | char *kwnames[] = { | |
21782 | (char *) "self", NULL | |
21783 | }; | |
21784 | ||
21785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21788 | { | |
21789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21790 | delete arg1; | |
21791 | ||
21792 | wxPyEndAllowThreads(__tstate); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | } | |
21795 | Py_INCREF(Py_None); resultobj = Py_None; | |
21796 | return resultobj; | |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
c32bde28 | 21802 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21803 | PyObject *resultobj; |
21804 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21805 | bool result; | |
21806 | PyObject * obj0 = 0 ; | |
21807 | char *kwnames[] = { | |
21808 | (char *) "self", NULL | |
21809 | }; | |
21810 | ||
21811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21814 | { | |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
21821 | { | |
21822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21823 | } | |
21824 | return resultobj; | |
21825 | fail: | |
21826 | return NULL; | |
21827 | } | |
21828 | ||
21829 | ||
c32bde28 | 21830 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21831 | PyObject *obj; |
21832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21833 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21834 | Py_INCREF(obj); | |
21835 | return Py_BuildValue((char *)""); | |
21836 | } | |
c32bde28 | 21837 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
21838 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21839 | return 1; | |
21840 | } | |
21841 | ||
21842 | ||
21843 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21844 | PyObject *pyobj; | |
21845 | ||
21846 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21847 | return pyobj; | |
21848 | } | |
21849 | ||
21850 | ||
c32bde28 | 21851 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21852 | PyObject *resultobj; |
21853 | wxString *arg1 = 0 ; | |
21854 | wxAcceleratorEntry *result; | |
ae8162c8 | 21855 | bool temp1 = false ; |
d55e5bfc RD |
21856 | PyObject * obj0 = 0 ; |
21857 | char *kwnames[] = { | |
21858 | (char *) "label", NULL | |
21859 | }; | |
21860 | ||
21861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21862 | { | |
21863 | arg1 = wxString_in_helper(obj0); | |
21864 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 21865 | temp1 = true; |
d55e5bfc RD |
21866 | } |
21867 | { | |
21868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21869 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21870 | ||
21871 | wxPyEndAllowThreads(__tstate); | |
21872 | if (PyErr_Occurred()) SWIG_fail; | |
21873 | } | |
21874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21875 | { | |
21876 | if (temp1) | |
21877 | delete arg1; | |
21878 | } | |
21879 | return resultobj; | |
21880 | fail: | |
21881 | { | |
21882 | if (temp1) | |
21883 | delete arg1; | |
21884 | } | |
21885 | return NULL; | |
21886 | } | |
21887 | ||
21888 | ||
c32bde28 | 21889 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
21890 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21891 | return 1; | |
21892 | } | |
21893 | ||
21894 | ||
21895 | static PyObject *_wrap_PanelNameStr_get() { | |
21896 | PyObject *pyobj; | |
21897 | ||
21898 | { | |
21899 | #if wxUSE_UNICODE | |
21900 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21901 | #else | |
21902 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21903 | #endif | |
21904 | } | |
21905 | return pyobj; | |
21906 | } | |
21907 | ||
21908 | ||
c32bde28 | 21909 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21910 | PyObject *resultobj; |
21911 | wxVisualAttributes *result; | |
21912 | char *kwnames[] = { | |
21913 | NULL | |
21914 | }; | |
21915 | ||
21916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21917 | { | |
21918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21919 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21920 | ||
21921 | wxPyEndAllowThreads(__tstate); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
21923 | } | |
21924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21925 | return resultobj; | |
21926 | fail: | |
21927 | return NULL; | |
21928 | } | |
21929 | ||
21930 | ||
c32bde28 | 21931 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21932 | PyObject *resultobj; |
21933 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21942 | { | |
21943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21944 | delete_wxVisualAttributes(arg1); | |
21945 | ||
21946 | wxPyEndAllowThreads(__tstate); | |
21947 | if (PyErr_Occurred()) SWIG_fail; | |
21948 | } | |
21949 | Py_INCREF(Py_None); resultobj = Py_None; | |
21950 | return resultobj; | |
21951 | fail: | |
21952 | return NULL; | |
21953 | } | |
21954 | ||
21955 | ||
c32bde28 | 21956 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21957 | PyObject *resultobj; |
21958 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21959 | wxFont *arg2 = (wxFont *) 0 ; | |
21960 | PyObject * obj0 = 0 ; | |
21961 | PyObject * obj1 = 0 ; | |
21962 | char *kwnames[] = { | |
21963 | (char *) "self",(char *) "font", NULL | |
21964 | }; | |
21965 | ||
21966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21971 | if (arg1) (arg1)->font = *arg2; | |
21972 | ||
21973 | Py_INCREF(Py_None); resultobj = Py_None; | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
c32bde28 | 21980 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21981 | PyObject *resultobj; |
21982 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21983 | wxFont *result; | |
21984 | PyObject * obj0 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21992 | result = (wxFont *)& ((arg1)->font); | |
21993 | ||
21994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21995 | return resultobj; | |
21996 | fail: | |
21997 | return NULL; | |
21998 | } | |
21999 | ||
22000 | ||
c32bde28 | 22001 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22002 | PyObject *resultobj; |
22003 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22004 | wxColour *arg2 = (wxColour *) 0 ; | |
22005 | PyObject * obj0 = 0 ; | |
22006 | PyObject * obj1 = 0 ; | |
22007 | char *kwnames[] = { | |
22008 | (char *) "self",(char *) "colFg", NULL | |
22009 | }; | |
22010 | ||
22011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
22012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22014 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22016 | if (arg1) (arg1)->colFg = *arg2; | |
22017 | ||
22018 | Py_INCREF(Py_None); resultobj = Py_None; | |
22019 | return resultobj; | |
22020 | fail: | |
22021 | return NULL; | |
22022 | } | |
22023 | ||
22024 | ||
c32bde28 | 22025 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22026 | PyObject *resultobj; |
22027 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22028 | wxColour *result; | |
22029 | PyObject * obj0 = 0 ; | |
22030 | char *kwnames[] = { | |
22031 | (char *) "self", NULL | |
22032 | }; | |
22033 | ||
22034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
22035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22037 | result = (wxColour *)& ((arg1)->colFg); | |
22038 | ||
22039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22040 | return resultobj; | |
22041 | fail: | |
22042 | return NULL; | |
22043 | } | |
22044 | ||
22045 | ||
c32bde28 | 22046 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22047 | PyObject *resultobj; |
22048 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22049 | wxColour *arg2 = (wxColour *) 0 ; | |
22050 | PyObject * obj0 = 0 ; | |
22051 | PyObject * obj1 = 0 ; | |
22052 | char *kwnames[] = { | |
22053 | (char *) "self",(char *) "colBg", NULL | |
22054 | }; | |
22055 | ||
22056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
22057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22061 | if (arg1) (arg1)->colBg = *arg2; | |
22062 | ||
22063 | Py_INCREF(Py_None); resultobj = Py_None; | |
22064 | return resultobj; | |
22065 | fail: | |
22066 | return NULL; | |
22067 | } | |
22068 | ||
22069 | ||
c32bde28 | 22070 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22071 | PyObject *resultobj; |
22072 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22073 | wxColour *result; | |
22074 | PyObject * obj0 = 0 ; | |
22075 | char *kwnames[] = { | |
22076 | (char *) "self", NULL | |
22077 | }; | |
22078 | ||
22079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22082 | result = (wxColour *)& ((arg1)->colBg); | |
22083 | ||
22084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22085 | return resultobj; | |
22086 | fail: | |
22087 | return NULL; | |
22088 | } | |
22089 | ||
22090 | ||
c32bde28 | 22091 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22092 | PyObject *obj; |
22093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22094 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22095 | Py_INCREF(obj); | |
22096 | return Py_BuildValue((char *)""); | |
22097 | } | |
c32bde28 | 22098 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22099 | PyObject *resultobj; |
22100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22101 | int arg2 = (int) (int)-1 ; | |
22102 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22103 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22104 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22105 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22106 | long arg5 = (long) 0 ; | |
22107 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22108 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22109 | wxWindow *result; | |
22110 | wxPoint temp3 ; | |
22111 | wxSize temp4 ; | |
ae8162c8 | 22112 | bool temp6 = false ; |
d55e5bfc RD |
22113 | PyObject * obj0 = 0 ; |
22114 | PyObject * obj1 = 0 ; | |
22115 | PyObject * obj2 = 0 ; | |
22116 | PyObject * obj3 = 0 ; | |
22117 | PyObject * obj4 = 0 ; | |
22118 | PyObject * obj5 = 0 ; | |
22119 | char *kwnames[] = { | |
22120 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22121 | }; | |
22122 | ||
22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22126 | if (obj1) { | |
c32bde28 | 22127 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22128 | if (PyErr_Occurred()) SWIG_fail; |
22129 | } | |
22130 | if (obj2) { | |
22131 | { | |
22132 | arg3 = &temp3; | |
22133 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22134 | } | |
22135 | } | |
22136 | if (obj3) { | |
22137 | { | |
22138 | arg4 = &temp4; | |
22139 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22140 | } | |
22141 | } | |
22142 | if (obj4) { | |
c32bde28 | 22143 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22144 | if (PyErr_Occurred()) SWIG_fail; |
22145 | } | |
22146 | if (obj5) { | |
22147 | { | |
22148 | arg6 = wxString_in_helper(obj5); | |
22149 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 22150 | temp6 = true; |
d55e5bfc RD |
22151 | } |
22152 | } | |
22153 | { | |
0439c23b | 22154 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22156 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22157 | ||
22158 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22159 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22160 | } |
b0f7404b | 22161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22162 | { |
22163 | if (temp6) | |
22164 | delete arg6; | |
22165 | } | |
22166 | return resultobj; | |
22167 | fail: | |
22168 | { | |
22169 | if (temp6) | |
22170 | delete arg6; | |
22171 | } | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
c32bde28 | 22176 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22177 | PyObject *resultobj; |
22178 | wxWindow *result; | |
22179 | char *kwnames[] = { | |
22180 | NULL | |
22181 | }; | |
22182 | ||
22183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22184 | { | |
0439c23b | 22185 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22187 | result = (wxWindow *)new wxWindow(); | |
22188 | ||
22189 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22190 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22191 | } |
b0f7404b | 22192 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22193 | return resultobj; |
22194 | fail: | |
22195 | return NULL; | |
22196 | } | |
22197 | ||
22198 | ||
c32bde28 | 22199 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22200 | PyObject *resultobj; |
22201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22202 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22203 | int arg3 = (int) (int)-1 ; | |
22204 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22205 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22206 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22207 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22208 | long arg6 = (long) 0 ; | |
22209 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22210 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22211 | bool result; | |
22212 | wxPoint temp4 ; | |
22213 | wxSize temp5 ; | |
ae8162c8 | 22214 | bool temp7 = false ; |
d55e5bfc RD |
22215 | PyObject * obj0 = 0 ; |
22216 | PyObject * obj1 = 0 ; | |
22217 | PyObject * obj2 = 0 ; | |
22218 | PyObject * obj3 = 0 ; | |
22219 | PyObject * obj4 = 0 ; | |
22220 | PyObject * obj5 = 0 ; | |
22221 | PyObject * obj6 = 0 ; | |
22222 | char *kwnames[] = { | |
22223 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22224 | }; | |
22225 | ||
22226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22229 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22231 | if (obj2) { | |
c32bde28 | 22232 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22233 | if (PyErr_Occurred()) SWIG_fail; |
22234 | } | |
22235 | if (obj3) { | |
22236 | { | |
22237 | arg4 = &temp4; | |
22238 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22239 | } | |
22240 | } | |
22241 | if (obj4) { | |
22242 | { | |
22243 | arg5 = &temp5; | |
22244 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22245 | } | |
22246 | } | |
22247 | if (obj5) { | |
c32bde28 | 22248 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22249 | if (PyErr_Occurred()) SWIG_fail; |
22250 | } | |
22251 | if (obj6) { | |
22252 | { | |
22253 | arg7 = wxString_in_helper(obj6); | |
22254 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 22255 | temp7 = true; |
d55e5bfc RD |
22256 | } |
22257 | } | |
22258 | { | |
22259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22260 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22261 | ||
22262 | wxPyEndAllowThreads(__tstate); | |
22263 | if (PyErr_Occurred()) SWIG_fail; | |
22264 | } | |
22265 | { | |
22266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22267 | } | |
22268 | { | |
22269 | if (temp7) | |
22270 | delete arg7; | |
22271 | } | |
22272 | return resultobj; | |
22273 | fail: | |
22274 | { | |
22275 | if (temp7) | |
22276 | delete arg7; | |
22277 | } | |
22278 | return NULL; | |
22279 | } | |
22280 | ||
22281 | ||
c32bde28 | 22282 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22283 | PyObject *resultobj; |
22284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 22285 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22286 | bool result; |
22287 | PyObject * obj0 = 0 ; | |
22288 | PyObject * obj1 = 0 ; | |
22289 | char *kwnames[] = { | |
22290 | (char *) "self",(char *) "force", NULL | |
22291 | }; | |
22292 | ||
22293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22296 | if (obj1) { | |
c32bde28 | 22297 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22298 | if (PyErr_Occurred()) SWIG_fail; |
22299 | } | |
22300 | { | |
22301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22302 | result = (bool)(arg1)->Close(arg2); | |
22303 | ||
22304 | wxPyEndAllowThreads(__tstate); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | { | |
22308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22309 | } | |
22310 | return resultobj; | |
22311 | fail: | |
22312 | return NULL; | |
22313 | } | |
22314 | ||
22315 | ||
c32bde28 | 22316 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22317 | PyObject *resultobj; |
22318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22319 | bool result; | |
22320 | PyObject * obj0 = 0 ; | |
22321 | char *kwnames[] = { | |
22322 | (char *) "self", NULL | |
22323 | }; | |
22324 | ||
22325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22328 | { | |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22330 | result = (bool)(arg1)->Destroy(); | |
22331 | ||
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
22335 | { | |
22336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22337 | } | |
22338 | return resultobj; | |
22339 | fail: | |
22340 | return NULL; | |
22341 | } | |
22342 | ||
22343 | ||
c32bde28 | 22344 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22345 | PyObject *resultobj; |
22346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22347 | bool result; | |
22348 | PyObject * obj0 = 0 ; | |
22349 | char *kwnames[] = { | |
22350 | (char *) "self", NULL | |
22351 | }; | |
22352 | ||
22353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22356 | { | |
22357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22358 | result = (bool)(arg1)->DestroyChildren(); | |
22359 | ||
22360 | wxPyEndAllowThreads(__tstate); | |
22361 | if (PyErr_Occurred()) SWIG_fail; | |
22362 | } | |
22363 | { | |
22364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22365 | } | |
22366 | return resultobj; | |
22367 | fail: | |
22368 | return NULL; | |
22369 | } | |
22370 | ||
22371 | ||
c32bde28 | 22372 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22373 | PyObject *resultobj; |
22374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22375 | bool result; | |
22376 | PyObject * obj0 = 0 ; | |
22377 | char *kwnames[] = { | |
22378 | (char *) "self", NULL | |
22379 | }; | |
22380 | ||
22381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22384 | { | |
22385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22386 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22387 | ||
22388 | wxPyEndAllowThreads(__tstate); | |
22389 | if (PyErr_Occurred()) SWIG_fail; | |
22390 | } | |
22391 | { | |
22392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22393 | } | |
22394 | return resultobj; | |
22395 | fail: | |
22396 | return NULL; | |
22397 | } | |
22398 | ||
22399 | ||
c32bde28 | 22400 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22401 | PyObject *resultobj; |
22402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22403 | wxString *arg2 = 0 ; | |
ae8162c8 | 22404 | bool temp2 = false ; |
d55e5bfc RD |
22405 | PyObject * obj0 = 0 ; |
22406 | PyObject * obj1 = 0 ; | |
22407 | char *kwnames[] = { | |
22408 | (char *) "self",(char *) "title", NULL | |
22409 | }; | |
22410 | ||
22411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22414 | { | |
22415 | arg2 = wxString_in_helper(obj1); | |
22416 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22417 | temp2 = true; |
d55e5bfc RD |
22418 | } |
22419 | { | |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | (arg1)->SetTitle((wxString const &)*arg2); | |
22422 | ||
22423 | wxPyEndAllowThreads(__tstate); | |
22424 | if (PyErr_Occurred()) SWIG_fail; | |
22425 | } | |
22426 | Py_INCREF(Py_None); resultobj = Py_None; | |
22427 | { | |
22428 | if (temp2) | |
22429 | delete arg2; | |
22430 | } | |
22431 | return resultobj; | |
22432 | fail: | |
22433 | { | |
22434 | if (temp2) | |
22435 | delete arg2; | |
22436 | } | |
22437 | return NULL; | |
22438 | } | |
22439 | ||
22440 | ||
c32bde28 | 22441 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22442 | PyObject *resultobj; |
22443 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22444 | wxString result; | |
22445 | PyObject * obj0 = 0 ; | |
22446 | char *kwnames[] = { | |
22447 | (char *) "self", NULL | |
22448 | }; | |
22449 | ||
22450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22453 | { | |
22454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22455 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22456 | ||
22457 | wxPyEndAllowThreads(__tstate); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | } | |
22460 | { | |
22461 | #if wxUSE_UNICODE | |
22462 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22463 | #else | |
22464 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22465 | #endif | |
22466 | } | |
22467 | return resultobj; | |
22468 | fail: | |
22469 | return NULL; | |
22470 | } | |
22471 | ||
22472 | ||
c32bde28 | 22473 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22474 | PyObject *resultobj; |
22475 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22476 | wxString *arg2 = 0 ; | |
ae8162c8 | 22477 | bool temp2 = false ; |
d55e5bfc RD |
22478 | PyObject * obj0 = 0 ; |
22479 | PyObject * obj1 = 0 ; | |
22480 | char *kwnames[] = { | |
22481 | (char *) "self",(char *) "label", NULL | |
22482 | }; | |
22483 | ||
22484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22487 | { | |
22488 | arg2 = wxString_in_helper(obj1); | |
22489 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22490 | temp2 = true; |
d55e5bfc RD |
22491 | } |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | (arg1)->SetLabel((wxString const &)*arg2); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | Py_INCREF(Py_None); resultobj = Py_None; | |
22500 | { | |
22501 | if (temp2) | |
22502 | delete arg2; | |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | { | |
22507 | if (temp2) | |
22508 | delete arg2; | |
22509 | } | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
c32bde28 | 22514 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22515 | PyObject *resultobj; |
22516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22517 | wxString result; | |
22518 | PyObject * obj0 = 0 ; | |
22519 | char *kwnames[] = { | |
22520 | (char *) "self", NULL | |
22521 | }; | |
22522 | ||
22523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22526 | { | |
22527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22528 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22529 | ||
22530 | wxPyEndAllowThreads(__tstate); | |
22531 | if (PyErr_Occurred()) SWIG_fail; | |
22532 | } | |
22533 | { | |
22534 | #if wxUSE_UNICODE | |
22535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22536 | #else | |
22537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22538 | #endif | |
22539 | } | |
22540 | return resultobj; | |
22541 | fail: | |
22542 | return NULL; | |
22543 | } | |
22544 | ||
22545 | ||
c32bde28 | 22546 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22547 | PyObject *resultobj; |
22548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22549 | wxString *arg2 = 0 ; | |
ae8162c8 | 22550 | bool temp2 = false ; |
d55e5bfc RD |
22551 | PyObject * obj0 = 0 ; |
22552 | PyObject * obj1 = 0 ; | |
22553 | char *kwnames[] = { | |
22554 | (char *) "self",(char *) "name", NULL | |
22555 | }; | |
22556 | ||
22557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22560 | { | |
22561 | arg2 = wxString_in_helper(obj1); | |
22562 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22563 | temp2 = true; |
d55e5bfc RD |
22564 | } |
22565 | { | |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22567 | (arg1)->SetName((wxString const &)*arg2); | |
22568 | ||
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
22572 | Py_INCREF(Py_None); resultobj = Py_None; | |
22573 | { | |
22574 | if (temp2) | |
22575 | delete arg2; | |
22576 | } | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | { | |
22580 | if (temp2) | |
22581 | delete arg2; | |
22582 | } | |
22583 | return NULL; | |
22584 | } | |
22585 | ||
22586 | ||
c32bde28 | 22587 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22588 | PyObject *resultobj; |
22589 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22590 | wxString result; | |
22591 | PyObject * obj0 = 0 ; | |
22592 | char *kwnames[] = { | |
22593 | (char *) "self", NULL | |
22594 | }; | |
22595 | ||
22596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22599 | { | |
22600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22601 | result = ((wxWindow const *)arg1)->GetName(); | |
22602 | ||
22603 | wxPyEndAllowThreads(__tstate); | |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
22606 | { | |
22607 | #if wxUSE_UNICODE | |
22608 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22609 | #else | |
22610 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22611 | #endif | |
22612 | } | |
22613 | return resultobj; | |
22614 | fail: | |
22615 | return NULL; | |
22616 | } | |
22617 | ||
22618 | ||
c32bde28 | 22619 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22620 | PyObject *resultobj; |
22621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22622 | int arg2 ; | |
22623 | PyObject * obj0 = 0 ; | |
22624 | PyObject * obj1 = 0 ; | |
22625 | char *kwnames[] = { | |
22626 | (char *) "self",(char *) "variant", NULL | |
22627 | }; | |
22628 | ||
22629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22632 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22633 | if (PyErr_Occurred()) SWIG_fail; |
22634 | { | |
22635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22636 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22637 | ||
22638 | wxPyEndAllowThreads(__tstate); | |
22639 | if (PyErr_Occurred()) SWIG_fail; | |
22640 | } | |
22641 | Py_INCREF(Py_None); resultobj = Py_None; | |
22642 | return resultobj; | |
22643 | fail: | |
22644 | return NULL; | |
22645 | } | |
22646 | ||
22647 | ||
c32bde28 | 22648 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22649 | PyObject *resultobj; |
22650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22651 | int result; | |
22652 | PyObject * obj0 = 0 ; | |
22653 | char *kwnames[] = { | |
22654 | (char *) "self", NULL | |
22655 | }; | |
22656 | ||
22657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22660 | { | |
22661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22662 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22663 | ||
22664 | wxPyEndAllowThreads(__tstate); | |
22665 | if (PyErr_Occurred()) SWIG_fail; | |
22666 | } | |
c32bde28 | 22667 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22668 | return resultobj; |
22669 | fail: | |
22670 | return NULL; | |
22671 | } | |
22672 | ||
22673 | ||
c32bde28 | 22674 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22675 | PyObject *resultobj; |
22676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22677 | int arg2 ; | |
22678 | PyObject * obj0 = 0 ; | |
22679 | PyObject * obj1 = 0 ; | |
22680 | char *kwnames[] = { | |
22681 | (char *) "self",(char *) "winid", NULL | |
22682 | }; | |
22683 | ||
22684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22687 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22688 | if (PyErr_Occurred()) SWIG_fail; |
22689 | { | |
22690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22691 | (arg1)->SetId(arg2); | |
22692 | ||
22693 | wxPyEndAllowThreads(__tstate); | |
22694 | if (PyErr_Occurred()) SWIG_fail; | |
22695 | } | |
22696 | Py_INCREF(Py_None); resultobj = Py_None; | |
22697 | return resultobj; | |
22698 | fail: | |
22699 | return NULL; | |
22700 | } | |
22701 | ||
22702 | ||
c32bde28 | 22703 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22704 | PyObject *resultobj; |
22705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22706 | int result; | |
22707 | PyObject * obj0 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self", NULL | |
22710 | }; | |
22711 | ||
22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22715 | { | |
22716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22717 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22718 | ||
22719 | wxPyEndAllowThreads(__tstate); | |
22720 | if (PyErr_Occurred()) SWIG_fail; | |
22721 | } | |
c32bde28 | 22722 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22723 | return resultobj; |
22724 | fail: | |
22725 | return NULL; | |
22726 | } | |
22727 | ||
22728 | ||
c32bde28 | 22729 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22730 | PyObject *resultobj; |
22731 | int result; | |
22732 | char *kwnames[] = { | |
22733 | NULL | |
22734 | }; | |
22735 | ||
22736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22737 | { | |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22739 | result = (int)wxWindow::NewControlId(); | |
22740 | ||
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
c32bde28 | 22744 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22745 | return resultobj; |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
c32bde28 | 22751 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22752 | PyObject *resultobj; |
22753 | int arg1 ; | |
22754 | int result; | |
22755 | PyObject * obj0 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "winid", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 22761 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22762 | if (PyErr_Occurred()) SWIG_fail; |
22763 | { | |
22764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22765 | result = (int)wxWindow::NextControlId(arg1); | |
22766 | ||
22767 | wxPyEndAllowThreads(__tstate); | |
22768 | if (PyErr_Occurred()) SWIG_fail; | |
22769 | } | |
c32bde28 | 22770 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22771 | return resultobj; |
22772 | fail: | |
22773 | return NULL; | |
22774 | } | |
22775 | ||
22776 | ||
c32bde28 | 22777 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22778 | PyObject *resultobj; |
22779 | int arg1 ; | |
22780 | int result; | |
22781 | PyObject * obj0 = 0 ; | |
22782 | char *kwnames[] = { | |
22783 | (char *) "winid", NULL | |
22784 | }; | |
22785 | ||
22786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c32bde28 | 22787 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22788 | if (PyErr_Occurred()) SWIG_fail; |
22789 | { | |
22790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22791 | result = (int)wxWindow::PrevControlId(arg1); | |
22792 | ||
22793 | wxPyEndAllowThreads(__tstate); | |
22794 | if (PyErr_Occurred()) SWIG_fail; | |
22795 | } | |
c32bde28 | 22796 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22797 | return resultobj; |
22798 | fail: | |
22799 | return NULL; | |
22800 | } | |
22801 | ||
22802 | ||
c32bde28 | 22803 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22804 | PyObject *resultobj; |
22805 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22806 | wxSize *arg2 = 0 ; | |
22807 | wxSize temp2 ; | |
22808 | PyObject * obj0 = 0 ; | |
22809 | PyObject * obj1 = 0 ; | |
22810 | char *kwnames[] = { | |
22811 | (char *) "self",(char *) "size", NULL | |
22812 | }; | |
22813 | ||
22814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22817 | { | |
22818 | arg2 = &temp2; | |
22819 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22820 | } | |
22821 | { | |
22822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22823 | (arg1)->SetSize((wxSize const &)*arg2); | |
22824 | ||
22825 | wxPyEndAllowThreads(__tstate); | |
22826 | if (PyErr_Occurred()) SWIG_fail; | |
22827 | } | |
22828 | Py_INCREF(Py_None); resultobj = Py_None; | |
22829 | return resultobj; | |
22830 | fail: | |
22831 | return NULL; | |
22832 | } | |
22833 | ||
22834 | ||
c32bde28 | 22835 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22836 | PyObject *resultobj; |
22837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22838 | int arg2 ; | |
22839 | int arg3 ; | |
22840 | int arg4 ; | |
22841 | int arg5 ; | |
22842 | int arg6 = (int) wxSIZE_AUTO ; | |
22843 | PyObject * obj0 = 0 ; | |
22844 | PyObject * obj1 = 0 ; | |
22845 | PyObject * obj2 = 0 ; | |
22846 | PyObject * obj3 = 0 ; | |
22847 | PyObject * obj4 = 0 ; | |
22848 | PyObject * obj5 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22856 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22857 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22858 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 22859 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22860 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 22861 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22862 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
22863 | if (PyErr_Occurred()) SWIG_fail; |
22864 | if (obj5) { | |
c32bde28 | 22865 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
22866 | if (PyErr_Occurred()) SWIG_fail; |
22867 | } | |
22868 | { | |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | Py_INCREF(Py_None); resultobj = Py_None; | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
c32bde28 | 22882 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22883 | PyObject *resultobj; |
22884 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22885 | wxRect *arg2 = 0 ; | |
22886 | int arg3 = (int) wxSIZE_AUTO ; | |
22887 | wxRect temp2 ; | |
22888 | PyObject * obj0 = 0 ; | |
22889 | PyObject * obj1 = 0 ; | |
22890 | PyObject * obj2 = 0 ; | |
22891 | char *kwnames[] = { | |
22892 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22893 | }; | |
22894 | ||
22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22898 | { | |
22899 | arg2 = &temp2; | |
22900 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22901 | } | |
22902 | if (obj2) { | |
c32bde28 | 22903 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22904 | if (PyErr_Occurred()) SWIG_fail; |
22905 | } | |
22906 | { | |
22907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22908 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22909 | ||
22910 | wxPyEndAllowThreads(__tstate); | |
22911 | if (PyErr_Occurred()) SWIG_fail; | |
22912 | } | |
22913 | Py_INCREF(Py_None); resultobj = Py_None; | |
22914 | return resultobj; | |
22915 | fail: | |
22916 | return NULL; | |
22917 | } | |
22918 | ||
22919 | ||
c32bde28 | 22920 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22921 | PyObject *resultobj; |
22922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22923 | int arg2 ; | |
22924 | int arg3 ; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | PyObject * obj1 = 0 ; | |
22927 | PyObject * obj2 = 0 ; | |
22928 | char *kwnames[] = { | |
22929 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22930 | }; | |
22931 | ||
22932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22935 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22936 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 22937 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22938 | if (PyErr_Occurred()) SWIG_fail; |
22939 | { | |
22940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22941 | (arg1)->SetSize(arg2,arg3); | |
22942 | ||
22943 | wxPyEndAllowThreads(__tstate); | |
22944 | if (PyErr_Occurred()) SWIG_fail; | |
22945 | } | |
22946 | Py_INCREF(Py_None); resultobj = Py_None; | |
22947 | return resultobj; | |
22948 | fail: | |
22949 | return NULL; | |
22950 | } | |
22951 | ||
22952 | ||
c32bde28 | 22953 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22954 | PyObject *resultobj; |
22955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22956 | wxPoint *arg2 = 0 ; | |
22957 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22958 | wxPoint temp2 ; | |
22959 | PyObject * obj0 = 0 ; | |
22960 | PyObject * obj1 = 0 ; | |
22961 | PyObject * obj2 = 0 ; | |
22962 | char *kwnames[] = { | |
22963 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22964 | }; | |
22965 | ||
22966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22969 | { | |
22970 | arg2 = &temp2; | |
22971 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22972 | } | |
22973 | if (obj2) { | |
c32bde28 | 22974 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22975 | if (PyErr_Occurred()) SWIG_fail; |
22976 | } | |
22977 | { | |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
22984 | Py_INCREF(Py_None); resultobj = Py_None; | |
22985 | return resultobj; | |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
c32bde28 | 22991 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22992 | PyObject *resultobj; |
22993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22994 | int arg2 ; | |
22995 | int arg3 ; | |
22996 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22997 | PyObject * obj0 = 0 ; | |
22998 | PyObject * obj1 = 0 ; | |
22999 | PyObject * obj2 = 0 ; | |
23000 | PyObject * obj3 = 0 ; | |
23001 | char *kwnames[] = { | |
23002 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
23003 | }; | |
23004 | ||
23005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23008 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23009 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23010 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23011 | if (PyErr_Occurred()) SWIG_fail; |
23012 | if (obj3) { | |
c32bde28 | 23013 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23014 | if (PyErr_Occurred()) SWIG_fail; |
23015 | } | |
23016 | { | |
23017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23018 | (arg1)->Move(arg2,arg3,arg4); | |
23019 | ||
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
23023 | Py_INCREF(Py_None); resultobj = Py_None; | |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
c32bde28 | 23030 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
23031 | PyObject *resultobj; |
23032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23033 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
23034 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
23035 | wxSize temp2 ; | |
23036 | PyObject * obj0 = 0 ; | |
23037 | PyObject * obj1 = 0 ; | |
23038 | char *kwnames[] = { | |
23039 | (char *) "self",(char *) "size", NULL | |
23040 | }; | |
23041 | ||
23042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
23043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23045 | if (obj1) { | |
23046 | { | |
23047 | arg2 = &temp2; | |
23048 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23049 | } | |
23050 | } | |
23051 | { | |
23052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23053 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
23054 | ||
23055 | wxPyEndAllowThreads(__tstate); | |
23056 | if (PyErr_Occurred()) SWIG_fail; | |
23057 | } | |
23058 | Py_INCREF(Py_None); resultobj = Py_None; | |
23059 | return resultobj; | |
23060 | fail: | |
23061 | return NULL; | |
23062 | } | |
23063 | ||
23064 | ||
c32bde28 | 23065 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23066 | PyObject *resultobj; |
23067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23068 | PyObject * obj0 = 0 ; | |
23069 | char *kwnames[] = { | |
23070 | (char *) "self", NULL | |
23071 | }; | |
23072 | ||
23073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23076 | { | |
23077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23078 | (arg1)->Raise(); | |
23079 | ||
23080 | wxPyEndAllowThreads(__tstate); | |
23081 | if (PyErr_Occurred()) SWIG_fail; | |
23082 | } | |
23083 | Py_INCREF(Py_None); resultobj = Py_None; | |
23084 | return resultobj; | |
23085 | fail: | |
23086 | return NULL; | |
23087 | } | |
23088 | ||
23089 | ||
c32bde28 | 23090 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23091 | PyObject *resultobj; |
23092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23093 | PyObject * obj0 = 0 ; | |
23094 | char *kwnames[] = { | |
23095 | (char *) "self", NULL | |
23096 | }; | |
23097 | ||
23098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23101 | { | |
23102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23103 | (arg1)->Lower(); | |
23104 | ||
23105 | wxPyEndAllowThreads(__tstate); | |
23106 | if (PyErr_Occurred()) SWIG_fail; | |
23107 | } | |
23108 | Py_INCREF(Py_None); resultobj = Py_None; | |
23109 | return resultobj; | |
23110 | fail: | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
c32bde28 | 23115 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23116 | PyObject *resultobj; |
23117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23118 | wxSize *arg2 = 0 ; | |
23119 | wxSize temp2 ; | |
23120 | PyObject * obj0 = 0 ; | |
23121 | PyObject * obj1 = 0 ; | |
23122 | char *kwnames[] = { | |
23123 | (char *) "self",(char *) "size", NULL | |
23124 | }; | |
23125 | ||
23126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23129 | { | |
23130 | arg2 = &temp2; | |
23131 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23132 | } | |
23133 | { | |
23134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23135 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23136 | ||
23137 | wxPyEndAllowThreads(__tstate); | |
23138 | if (PyErr_Occurred()) SWIG_fail; | |
23139 | } | |
23140 | Py_INCREF(Py_None); resultobj = Py_None; | |
23141 | return resultobj; | |
23142 | fail: | |
23143 | return NULL; | |
23144 | } | |
23145 | ||
23146 | ||
c32bde28 | 23147 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23148 | PyObject *resultobj; |
23149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23150 | int arg2 ; | |
23151 | int arg3 ; | |
23152 | PyObject * obj0 = 0 ; | |
23153 | PyObject * obj1 = 0 ; | |
23154 | PyObject * obj2 = 0 ; | |
23155 | char *kwnames[] = { | |
23156 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23157 | }; | |
23158 | ||
23159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23162 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23163 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23164 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23165 | if (PyErr_Occurred()) SWIG_fail; |
23166 | { | |
23167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23168 | (arg1)->SetClientSize(arg2,arg3); | |
23169 | ||
23170 | wxPyEndAllowThreads(__tstate); | |
23171 | if (PyErr_Occurred()) SWIG_fail; | |
23172 | } | |
23173 | Py_INCREF(Py_None); resultobj = Py_None; | |
23174 | return resultobj; | |
23175 | fail: | |
23176 | return NULL; | |
23177 | } | |
23178 | ||
23179 | ||
c32bde28 | 23180 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23181 | PyObject *resultobj; |
23182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23183 | wxRect *arg2 = 0 ; | |
23184 | wxRect temp2 ; | |
23185 | PyObject * obj0 = 0 ; | |
23186 | PyObject * obj1 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self",(char *) "rect", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23194 | { | |
23195 | arg2 = &temp2; | |
23196 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23197 | } | |
23198 | { | |
23199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23200 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23201 | ||
23202 | wxPyEndAllowThreads(__tstate); | |
23203 | if (PyErr_Occurred()) SWIG_fail; | |
23204 | } | |
23205 | Py_INCREF(Py_None); resultobj = Py_None; | |
23206 | return resultobj; | |
23207 | fail: | |
23208 | return NULL; | |
23209 | } | |
23210 | ||
23211 | ||
c32bde28 | 23212 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23213 | PyObject *resultobj; |
23214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23215 | wxPoint result; | |
23216 | PyObject * obj0 = 0 ; | |
23217 | char *kwnames[] = { | |
23218 | (char *) "self", NULL | |
23219 | }; | |
23220 | ||
23221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23224 | { | |
23225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23226 | result = (arg1)->GetPosition(); | |
23227 | ||
23228 | wxPyEndAllowThreads(__tstate); | |
23229 | if (PyErr_Occurred()) SWIG_fail; | |
23230 | } | |
23231 | { | |
23232 | wxPoint * resultptr; | |
23233 | resultptr = new wxPoint((wxPoint &) result); | |
23234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23235 | } | |
23236 | return resultobj; | |
23237 | fail: | |
23238 | return NULL; | |
23239 | } | |
23240 | ||
23241 | ||
c32bde28 | 23242 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23243 | PyObject *resultobj; |
23244 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23245 | int *arg2 = (int *) 0 ; | |
23246 | int *arg3 = (int *) 0 ; | |
23247 | int temp2 ; | |
c32bde28 | 23248 | int res2 = 0 ; |
d55e5bfc | 23249 | int temp3 ; |
c32bde28 | 23250 | int res3 = 0 ; |
d55e5bfc RD |
23251 | PyObject * obj0 = 0 ; |
23252 | char *kwnames[] = { | |
23253 | (char *) "self", NULL | |
23254 | }; | |
23255 | ||
c32bde28 RD |
23256 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23257 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23261 | { | |
23262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23263 | (arg1)->GetPosition(arg2,arg3); | |
23264 | ||
23265 | wxPyEndAllowThreads(__tstate); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
23268 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23269 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23270 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23271 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23272 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23273 | return resultobj; |
23274 | fail: | |
23275 | return NULL; | |
23276 | } | |
23277 | ||
23278 | ||
c32bde28 | 23279 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23280 | PyObject *resultobj; |
23281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23282 | wxSize result; | |
23283 | PyObject * obj0 = 0 ; | |
23284 | char *kwnames[] = { | |
23285 | (char *) "self", NULL | |
23286 | }; | |
23287 | ||
23288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23291 | { | |
23292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23293 | result = ((wxWindow const *)arg1)->GetSize(); | |
23294 | ||
23295 | wxPyEndAllowThreads(__tstate); | |
23296 | if (PyErr_Occurred()) SWIG_fail; | |
23297 | } | |
23298 | { | |
23299 | wxSize * resultptr; | |
23300 | resultptr = new wxSize((wxSize &) result); | |
23301 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23302 | } | |
23303 | return resultobj; | |
23304 | fail: | |
23305 | return NULL; | |
23306 | } | |
23307 | ||
23308 | ||
c32bde28 | 23309 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23310 | PyObject *resultobj; |
23311 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23312 | int *arg2 = (int *) 0 ; | |
23313 | int *arg3 = (int *) 0 ; | |
23314 | int temp2 ; | |
c32bde28 | 23315 | int res2 = 0 ; |
d55e5bfc | 23316 | int temp3 ; |
c32bde28 | 23317 | int res3 = 0 ; |
d55e5bfc RD |
23318 | PyObject * obj0 = 0 ; |
23319 | char *kwnames[] = { | |
23320 | (char *) "self", NULL | |
23321 | }; | |
23322 | ||
c32bde28 RD |
23323 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23324 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23328 | { | |
23329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23330 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23331 | ||
23332 | wxPyEndAllowThreads(__tstate); | |
23333 | if (PyErr_Occurred()) SWIG_fail; | |
23334 | } | |
23335 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23336 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23337 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23338 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23339 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23340 | return resultobj; |
23341 | fail: | |
23342 | return NULL; | |
23343 | } | |
23344 | ||
23345 | ||
c32bde28 | 23346 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23347 | PyObject *resultobj; |
23348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23349 | wxRect result; | |
23350 | PyObject * obj0 = 0 ; | |
23351 | char *kwnames[] = { | |
23352 | (char *) "self", NULL | |
23353 | }; | |
23354 | ||
23355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23358 | { | |
23359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23360 | result = ((wxWindow const *)arg1)->GetRect(); | |
23361 | ||
23362 | wxPyEndAllowThreads(__tstate); | |
23363 | if (PyErr_Occurred()) SWIG_fail; | |
23364 | } | |
23365 | { | |
23366 | wxRect * resultptr; | |
23367 | resultptr = new wxRect((wxRect &) result); | |
23368 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23369 | } | |
23370 | return resultobj; | |
23371 | fail: | |
23372 | return NULL; | |
23373 | } | |
23374 | ||
23375 | ||
c32bde28 | 23376 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23377 | PyObject *resultobj; |
23378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23379 | wxSize result; | |
23380 | PyObject * obj0 = 0 ; | |
23381 | char *kwnames[] = { | |
23382 | (char *) "self", NULL | |
23383 | }; | |
23384 | ||
23385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23388 | { | |
23389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23390 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23391 | ||
23392 | wxPyEndAllowThreads(__tstate); | |
23393 | if (PyErr_Occurred()) SWIG_fail; | |
23394 | } | |
23395 | { | |
23396 | wxSize * resultptr; | |
23397 | resultptr = new wxSize((wxSize &) result); | |
23398 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23399 | } | |
23400 | return resultobj; | |
23401 | fail: | |
23402 | return NULL; | |
23403 | } | |
23404 | ||
23405 | ||
c32bde28 | 23406 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23407 | PyObject *resultobj; |
23408 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23409 | int *arg2 = (int *) 0 ; | |
23410 | int *arg3 = (int *) 0 ; | |
23411 | int temp2 ; | |
c32bde28 | 23412 | int res2 = 0 ; |
d55e5bfc | 23413 | int temp3 ; |
c32bde28 | 23414 | int res3 = 0 ; |
d55e5bfc RD |
23415 | PyObject * obj0 = 0 ; |
23416 | char *kwnames[] = { | |
23417 | (char *) "self", NULL | |
23418 | }; | |
23419 | ||
c32bde28 RD |
23420 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23421 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23425 | { | |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23433 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23434 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23435 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23436 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23437 | return resultobj; |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
c32bde28 | 23443 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23444 | PyObject *resultobj; |
23445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23446 | wxPoint result; | |
23447 | PyObject * obj0 = 0 ; | |
23448 | char *kwnames[] = { | |
23449 | (char *) "self", NULL | |
23450 | }; | |
23451 | ||
23452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23455 | { | |
23456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23457 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23458 | ||
23459 | wxPyEndAllowThreads(__tstate); | |
23460 | if (PyErr_Occurred()) SWIG_fail; | |
23461 | } | |
23462 | { | |
23463 | wxPoint * resultptr; | |
23464 | resultptr = new wxPoint((wxPoint &) result); | |
23465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23466 | } | |
23467 | return resultobj; | |
23468 | fail: | |
23469 | return NULL; | |
23470 | } | |
23471 | ||
23472 | ||
c32bde28 | 23473 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23474 | PyObject *resultobj; |
23475 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23476 | wxRect result; | |
23477 | PyObject * obj0 = 0 ; | |
23478 | char *kwnames[] = { | |
23479 | (char *) "self", NULL | |
23480 | }; | |
23481 | ||
23482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23485 | { | |
23486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23487 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23488 | ||
23489 | wxPyEndAllowThreads(__tstate); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
23492 | { | |
23493 | wxRect * resultptr; | |
23494 | resultptr = new wxRect((wxRect &) result); | |
23495 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23496 | } | |
23497 | return resultobj; | |
23498 | fail: | |
23499 | return NULL; | |
23500 | } | |
23501 | ||
23502 | ||
c32bde28 | 23503 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23504 | PyObject *resultobj; |
23505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23506 | wxSize result; | |
23507 | PyObject * obj0 = 0 ; | |
23508 | char *kwnames[] = { | |
23509 | (char *) "self", NULL | |
23510 | }; | |
23511 | ||
23512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23515 | { | |
23516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23517 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23518 | ||
23519 | wxPyEndAllowThreads(__tstate); | |
23520 | if (PyErr_Occurred()) SWIG_fail; | |
23521 | } | |
23522 | { | |
23523 | wxSize * resultptr; | |
23524 | resultptr = new wxSize((wxSize &) result); | |
23525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23526 | } | |
23527 | return resultobj; | |
23528 | fail: | |
23529 | return NULL; | |
23530 | } | |
23531 | ||
23532 | ||
c32bde28 | 23533 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23534 | PyObject *resultobj; |
23535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23536 | int *arg2 = (int *) 0 ; | |
23537 | int *arg3 = (int *) 0 ; | |
23538 | int temp2 ; | |
c32bde28 | 23539 | int res2 = 0 ; |
d55e5bfc | 23540 | int temp3 ; |
c32bde28 | 23541 | int res3 = 0 ; |
d55e5bfc RD |
23542 | PyObject * obj0 = 0 ; |
23543 | char *kwnames[] = { | |
23544 | (char *) "self", NULL | |
23545 | }; | |
23546 | ||
c32bde28 RD |
23547 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23548 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23552 | { | |
23553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23554 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23555 | ||
23556 | wxPyEndAllowThreads(__tstate); | |
23557 | if (PyErr_Occurred()) SWIG_fail; | |
23558 | } | |
23559 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
23560 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23561 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23562 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23563 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23564 | return resultobj; |
23565 | fail: | |
23566 | return NULL; | |
23567 | } | |
23568 | ||
23569 | ||
c32bde28 | 23570 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23571 | PyObject *resultobj; |
23572 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23573 | PyObject * obj0 = 0 ; | |
23574 | char *kwnames[] = { | |
23575 | (char *) "self", NULL | |
23576 | }; | |
23577 | ||
23578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23581 | { | |
23582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23583 | (arg1)->InvalidateBestSize(); | |
23584 | ||
23585 | wxPyEndAllowThreads(__tstate); | |
23586 | if (PyErr_Occurred()) SWIG_fail; | |
23587 | } | |
23588 | Py_INCREF(Py_None); resultobj = Py_None; | |
23589 | return resultobj; | |
23590 | fail: | |
23591 | return NULL; | |
23592 | } | |
23593 | ||
23594 | ||
c32bde28 | 23595 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23596 | PyObject *resultobj; |
23597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23598 | wxSize result; | |
23599 | PyObject * obj0 = 0 ; | |
23600 | char *kwnames[] = { | |
23601 | (char *) "self", NULL | |
23602 | }; | |
23603 | ||
23604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23607 | { | |
23608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23609 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23610 | ||
23611 | wxPyEndAllowThreads(__tstate); | |
23612 | if (PyErr_Occurred()) SWIG_fail; | |
23613 | } | |
23614 | { | |
23615 | wxSize * resultptr; | |
23616 | resultptr = new wxSize((wxSize &) result); | |
23617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23618 | } | |
23619 | return resultobj; | |
23620 | fail: | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
c32bde28 | 23625 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23626 | PyObject *resultobj; |
23627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23628 | wxSize result; | |
23629 | PyObject * obj0 = 0 ; | |
23630 | char *kwnames[] = { | |
23631 | (char *) "self", NULL | |
23632 | }; | |
23633 | ||
23634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23637 | { | |
23638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23639 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23640 | ||
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | { | |
23645 | wxSize * resultptr; | |
23646 | resultptr = new wxSize((wxSize &) result); | |
23647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23648 | } | |
23649 | return resultobj; | |
23650 | fail: | |
23651 | return NULL; | |
23652 | } | |
23653 | ||
23654 | ||
c32bde28 | 23655 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23656 | PyObject *resultobj; |
23657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23658 | int arg2 = (int) wxBOTH ; | |
23659 | PyObject * obj0 = 0 ; | |
23660 | PyObject * obj1 = 0 ; | |
23661 | char *kwnames[] = { | |
23662 | (char *) "self",(char *) "direction", NULL | |
23663 | }; | |
23664 | ||
23665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23668 | if (obj1) { | |
c32bde28 | 23669 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23670 | if (PyErr_Occurred()) SWIG_fail; |
23671 | } | |
23672 | { | |
23673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23674 | (arg1)->Center(arg2); | |
23675 | ||
23676 | wxPyEndAllowThreads(__tstate); | |
23677 | if (PyErr_Occurred()) SWIG_fail; | |
23678 | } | |
23679 | Py_INCREF(Py_None); resultobj = Py_None; | |
23680 | return resultobj; | |
23681 | fail: | |
23682 | return NULL; | |
23683 | } | |
23684 | ||
23685 | ||
c32bde28 | 23686 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23687 | PyObject *resultobj; |
23688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23689 | int arg2 = (int) wxBOTH ; | |
23690 | PyObject * obj0 = 0 ; | |
23691 | PyObject * obj1 = 0 ; | |
23692 | char *kwnames[] = { | |
23693 | (char *) "self",(char *) "dir", NULL | |
23694 | }; | |
23695 | ||
23696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23699 | if (obj1) { | |
c32bde28 | 23700 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23701 | if (PyErr_Occurred()) SWIG_fail; |
23702 | } | |
23703 | { | |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | (arg1)->CenterOnScreen(arg2); | |
23706 | ||
23707 | wxPyEndAllowThreads(__tstate); | |
23708 | if (PyErr_Occurred()) SWIG_fail; | |
23709 | } | |
23710 | Py_INCREF(Py_None); resultobj = Py_None; | |
23711 | return resultobj; | |
23712 | fail: | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
c32bde28 | 23717 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23718 | PyObject *resultobj; |
23719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23720 | int arg2 = (int) wxBOTH ; | |
23721 | PyObject * obj0 = 0 ; | |
23722 | PyObject * obj1 = 0 ; | |
23723 | char *kwnames[] = { | |
23724 | (char *) "self",(char *) "dir", NULL | |
23725 | }; | |
23726 | ||
23727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23730 | if (obj1) { | |
c32bde28 | 23731 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23732 | if (PyErr_Occurred()) SWIG_fail; |
23733 | } | |
23734 | { | |
23735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23736 | (arg1)->CenterOnParent(arg2); | |
23737 | ||
23738 | wxPyEndAllowThreads(__tstate); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
23740 | } | |
23741 | Py_INCREF(Py_None); resultobj = Py_None; | |
23742 | return resultobj; | |
23743 | fail: | |
23744 | return NULL; | |
23745 | } | |
23746 | ||
23747 | ||
c32bde28 | 23748 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23749 | PyObject *resultobj; |
23750 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23751 | PyObject * obj0 = 0 ; | |
23752 | char *kwnames[] = { | |
23753 | (char *) "self", NULL | |
23754 | }; | |
23755 | ||
23756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23759 | { | |
23760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23761 | (arg1)->Fit(); | |
23762 | ||
23763 | wxPyEndAllowThreads(__tstate); | |
23764 | if (PyErr_Occurred()) SWIG_fail; | |
23765 | } | |
23766 | Py_INCREF(Py_None); resultobj = Py_None; | |
23767 | return resultobj; | |
23768 | fail: | |
23769 | return NULL; | |
23770 | } | |
23771 | ||
23772 | ||
c32bde28 | 23773 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23774 | PyObject *resultobj; |
23775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23776 | PyObject * obj0 = 0 ; | |
23777 | char *kwnames[] = { | |
23778 | (char *) "self", NULL | |
23779 | }; | |
23780 | ||
23781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
23782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23784 | { | |
23785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23786 | (arg1)->FitInside(); | |
23787 | ||
23788 | wxPyEndAllowThreads(__tstate); | |
23789 | if (PyErr_Occurred()) SWIG_fail; | |
23790 | } | |
23791 | Py_INCREF(Py_None); resultobj = Py_None; | |
23792 | return resultobj; | |
23793 | fail: | |
23794 | return NULL; | |
23795 | } | |
23796 | ||
23797 | ||
c32bde28 | 23798 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23799 | PyObject *resultobj; |
23800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23801 | int arg2 ; | |
23802 | int arg3 ; | |
23803 | int arg4 = (int) -1 ; | |
23804 | int arg5 = (int) -1 ; | |
23805 | int arg6 = (int) -1 ; | |
23806 | int arg7 = (int) -1 ; | |
23807 | PyObject * obj0 = 0 ; | |
23808 | PyObject * obj1 = 0 ; | |
23809 | PyObject * obj2 = 0 ; | |
23810 | PyObject * obj3 = 0 ; | |
23811 | PyObject * obj4 = 0 ; | |
23812 | PyObject * obj5 = 0 ; | |
23813 | PyObject * obj6 = 0 ; | |
03837c5c RD |
23814 | char *kwnames[] = { |
23815 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23816 | }; | |
d55e5bfc | 23817 | |
03837c5c | 23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
23819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23821 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23822 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23823 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23824 | if (PyErr_Occurred()) SWIG_fail; |
23825 | if (obj3) { | |
c32bde28 | 23826 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23827 | if (PyErr_Occurred()) SWIG_fail; |
23828 | } | |
23829 | if (obj4) { | |
c32bde28 | 23830 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23831 | if (PyErr_Occurred()) SWIG_fail; |
23832 | } | |
23833 | if (obj5) { | |
c32bde28 | 23834 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23835 | if (PyErr_Occurred()) SWIG_fail; |
23836 | } | |
23837 | if (obj6) { | |
c32bde28 | 23838 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
23839 | if (PyErr_Occurred()) SWIG_fail; |
23840 | } | |
23841 | { | |
23842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23843 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23844 | ||
23845 | wxPyEndAllowThreads(__tstate); | |
23846 | if (PyErr_Occurred()) SWIG_fail; | |
23847 | } | |
23848 | Py_INCREF(Py_None); resultobj = Py_None; | |
23849 | return resultobj; | |
23850 | fail: | |
23851 | return NULL; | |
23852 | } | |
23853 | ||
23854 | ||
c32bde28 | 23855 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23856 | PyObject *resultobj; |
23857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23858 | wxSize *arg2 = 0 ; |
23859 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23860 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
23861 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23862 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23863 | wxSize temp2 ; |
23864 | wxSize temp3 ; | |
03837c5c | 23865 | wxSize temp4 ; |
d55e5bfc RD |
23866 | PyObject * obj0 = 0 ; |
23867 | PyObject * obj1 = 0 ; | |
23868 | PyObject * obj2 = 0 ; | |
03837c5c RD |
23869 | PyObject * obj3 = 0 ; |
23870 | char *kwnames[] = { | |
23871 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23872 | }; | |
d55e5bfc | 23873 | |
03837c5c | 23874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
23875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23877 | { |
23878 | arg2 = &temp2; | |
23879 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23880 | } |
908b74cd RD |
23881 | if (obj2) { |
23882 | { | |
23883 | arg3 = &temp3; | |
23884 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23885 | } | |
d55e5bfc | 23886 | } |
03837c5c RD |
23887 | if (obj3) { |
23888 | { | |
23889 | arg4 = &temp4; | |
23890 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23891 | } | |
23892 | } | |
d55e5bfc RD |
23893 | { |
23894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 23895 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
23896 | |
23897 | wxPyEndAllowThreads(__tstate); | |
23898 | if (PyErr_Occurred()) SWIG_fail; | |
23899 | } | |
23900 | Py_INCREF(Py_None); resultobj = Py_None; | |
23901 | return resultobj; | |
23902 | fail: | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
c32bde28 | 23907 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23908 | PyObject *resultobj; |
23909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23910 | int arg2 ; |
23911 | int arg3 ; | |
23912 | int arg4 = (int) -1 ; | |
23913 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
23914 | PyObject * obj0 = 0 ; |
23915 | PyObject * obj1 = 0 ; | |
23916 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23917 | PyObject * obj3 = 0 ; |
23918 | PyObject * obj4 = 0 ; | |
03837c5c RD |
23919 | char *kwnames[] = { |
23920 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
23921 | }; | |
d55e5bfc | 23922 | |
03837c5c | 23923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
23924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23926 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 23927 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 23928 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
23929 | if (PyErr_Occurred()) SWIG_fail; |
23930 | if (obj3) { | |
c32bde28 | 23931 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 23932 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 23933 | } |
908b74cd | 23934 | if (obj4) { |
c32bde28 | 23935 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 23936 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23937 | } |
23938 | { | |
23939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23940 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
23941 | |
23942 | wxPyEndAllowThreads(__tstate); | |
23943 | if (PyErr_Occurred()) SWIG_fail; | |
23944 | } | |
23945 | Py_INCREF(Py_None); resultobj = Py_None; | |
23946 | return resultobj; | |
23947 | fail: | |
23948 | return NULL; | |
23949 | } | |
23950 | ||
23951 | ||
c32bde28 | 23952 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
23953 | PyObject *resultobj; |
23954 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23955 | wxSize *arg2 = 0 ; | |
23956 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23957 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23958 | wxSize temp2 ; | |
23959 | wxSize temp3 ; | |
23960 | PyObject * obj0 = 0 ; | |
23961 | PyObject * obj1 = 0 ; | |
23962 | PyObject * obj2 = 0 ; | |
23963 | char *kwnames[] = { | |
23964 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
23965 | }; | |
d55e5bfc | 23966 | |
03837c5c RD |
23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23970 | { | |
23971 | arg2 = &temp2; | |
23972 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23973 | } |
03837c5c | 23974 | if (obj2) { |
d55e5bfc | 23975 | { |
03837c5c RD |
23976 | arg3 = &temp3; |
23977 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
23978 | } |
23979 | } | |
03837c5c RD |
23980 | { |
23981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23982 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23983 | ||
23984 | wxPyEndAllowThreads(__tstate); | |
23985 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 23986 | } |
03837c5c RD |
23987 | Py_INCREF(Py_None); resultobj = Py_None; |
23988 | return resultobj; | |
23989 | fail: | |
d55e5bfc RD |
23990 | return NULL; |
23991 | } | |
23992 | ||
23993 | ||
c32bde28 | 23994 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23995 | PyObject *resultobj; |
23996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23997 | wxSize result; |
d55e5bfc RD |
23998 | PyObject * obj0 = 0 ; |
23999 | char *kwnames[] = { | |
24000 | (char *) "self", NULL | |
24001 | }; | |
24002 | ||
908b74cd | 24003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24006 | { | |
24007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24008 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
24009 | |
24010 | wxPyEndAllowThreads(__tstate); | |
24011 | if (PyErr_Occurred()) SWIG_fail; | |
24012 | } | |
908b74cd RD |
24013 | { |
24014 | wxSize * resultptr; | |
24015 | resultptr = new wxSize((wxSize &) result); | |
24016 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24017 | } | |
d55e5bfc RD |
24018 | return resultobj; |
24019 | fail: | |
24020 | return NULL; | |
24021 | } | |
24022 | ||
24023 | ||
c32bde28 | 24024 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24025 | PyObject *resultobj; |
24026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24027 | wxSize result; |
d55e5bfc RD |
24028 | PyObject * obj0 = 0 ; |
24029 | char *kwnames[] = { | |
24030 | (char *) "self", NULL | |
24031 | }; | |
24032 | ||
908b74cd | 24033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24036 | { | |
24037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24038 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
24039 | |
24040 | wxPyEndAllowThreads(__tstate); | |
24041 | if (PyErr_Occurred()) SWIG_fail; | |
24042 | } | |
908b74cd RD |
24043 | { |
24044 | wxSize * resultptr; | |
24045 | resultptr = new wxSize((wxSize &) result); | |
24046 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24047 | } | |
d55e5bfc RD |
24048 | return resultobj; |
24049 | fail: | |
24050 | return NULL; | |
24051 | } | |
24052 | ||
24053 | ||
c32bde28 | 24054 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24055 | PyObject *resultobj; |
24056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24057 | wxSize *arg2 = 0 ; | |
24058 | wxSize temp2 ; | |
24059 | PyObject * obj0 = 0 ; | |
24060 | PyObject * obj1 = 0 ; | |
24061 | char *kwnames[] = { | |
24062 | (char *) "self",(char *) "minSize", NULL | |
24063 | }; | |
24064 | ||
24065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
24066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24068 | { | |
24069 | arg2 = &temp2; | |
24070 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24071 | } | |
24072 | { | |
24073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24074 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24075 | ||
24076 | wxPyEndAllowThreads(__tstate); | |
24077 | if (PyErr_Occurred()) SWIG_fail; | |
24078 | } | |
24079 | Py_INCREF(Py_None); resultobj = Py_None; | |
24080 | return resultobj; | |
24081 | fail: | |
24082 | return NULL; | |
24083 | } | |
24084 | ||
24085 | ||
c32bde28 | 24086 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24087 | PyObject *resultobj; |
24088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24089 | wxSize *arg2 = 0 ; | |
24090 | wxSize temp2 ; | |
24091 | PyObject * obj0 = 0 ; | |
24092 | PyObject * obj1 = 0 ; | |
24093 | char *kwnames[] = { | |
24094 | (char *) "self",(char *) "maxSize", NULL | |
24095 | }; | |
24096 | ||
24097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24100 | { | |
24101 | arg2 = &temp2; | |
24102 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24103 | } | |
24104 | { | |
24105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24106 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24107 | ||
24108 | wxPyEndAllowThreads(__tstate); | |
24109 | if (PyErr_Occurred()) SWIG_fail; | |
24110 | } | |
24111 | Py_INCREF(Py_None); resultobj = Py_None; | |
24112 | return resultobj; | |
24113 | fail: | |
24114 | return NULL; | |
24115 | } | |
24116 | ||
24117 | ||
c32bde28 | 24118 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24119 | PyObject *resultobj; |
24120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24121 | int result; | |
24122 | PyObject * obj0 = 0 ; | |
24123 | char *kwnames[] = { | |
24124 | (char *) "self", NULL | |
24125 | }; | |
24126 | ||
908b74cd | 24127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24130 | { | |
24131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24132 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24133 | |
24134 | wxPyEndAllowThreads(__tstate); | |
24135 | if (PyErr_Occurred()) SWIG_fail; | |
24136 | } | |
c32bde28 | 24137 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24138 | return resultobj; |
24139 | fail: | |
24140 | return NULL; | |
24141 | } | |
24142 | ||
24143 | ||
c32bde28 | 24144 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24145 | PyObject *resultobj; |
24146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24147 | int result; | |
24148 | PyObject * obj0 = 0 ; | |
24149 | char *kwnames[] = { | |
24150 | (char *) "self", NULL | |
24151 | }; | |
24152 | ||
908b74cd | 24153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24156 | { | |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24158 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24159 | |
24160 | wxPyEndAllowThreads(__tstate); | |
24161 | if (PyErr_Occurred()) SWIG_fail; | |
24162 | } | |
c32bde28 | 24163 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24164 | return resultobj; |
24165 | fail: | |
24166 | return NULL; | |
24167 | } | |
24168 | ||
24169 | ||
c32bde28 | 24170 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24171 | PyObject *resultobj; |
24172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24173 | int result; |
d55e5bfc RD |
24174 | PyObject * obj0 = 0 ; |
24175 | char *kwnames[] = { | |
24176 | (char *) "self", NULL | |
24177 | }; | |
24178 | ||
908b74cd | 24179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24182 | { | |
24183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24184 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24185 | |
24186 | wxPyEndAllowThreads(__tstate); | |
24187 | if (PyErr_Occurred()) SWIG_fail; | |
24188 | } | |
c32bde28 | 24189 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24190 | return resultobj; |
24191 | fail: | |
24192 | return NULL; | |
24193 | } | |
24194 | ||
24195 | ||
c32bde28 | 24196 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24197 | PyObject *resultobj; |
24198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24199 | int result; |
d55e5bfc RD |
24200 | PyObject * obj0 = 0 ; |
24201 | char *kwnames[] = { | |
24202 | (char *) "self", NULL | |
24203 | }; | |
24204 | ||
908b74cd | 24205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24208 | { | |
24209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24210 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24211 | |
24212 | wxPyEndAllowThreads(__tstate); | |
24213 | if (PyErr_Occurred()) SWIG_fail; | |
24214 | } | |
c32bde28 | 24215 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24216 | return resultobj; |
24217 | fail: | |
24218 | return NULL; | |
24219 | } | |
24220 | ||
24221 | ||
c32bde28 | 24222 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24223 | PyObject *resultobj; |
24224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24225 | wxSize *arg2 = 0 ; | |
24226 | wxSize temp2 ; | |
24227 | PyObject * obj0 = 0 ; | |
24228 | PyObject * obj1 = 0 ; | |
24229 | char *kwnames[] = { | |
24230 | (char *) "self",(char *) "size", NULL | |
24231 | }; | |
24232 | ||
24233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24236 | { | |
24237 | arg2 = &temp2; | |
24238 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24239 | } | |
24240 | { | |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | Py_INCREF(Py_None); resultobj = Py_None; | |
24248 | return resultobj; | |
24249 | fail: | |
24250 | return NULL; | |
24251 | } | |
24252 | ||
24253 | ||
c32bde28 | 24254 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24255 | PyObject *resultobj; |
24256 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24257 | int arg2 ; | |
24258 | int arg3 ; | |
24259 | PyObject * obj0 = 0 ; | |
24260 | PyObject * obj1 = 0 ; | |
24261 | PyObject * obj2 = 0 ; | |
24262 | char *kwnames[] = { | |
24263 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24264 | }; | |
24265 | ||
24266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24269 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24270 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 24271 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24272 | if (PyErr_Occurred()) SWIG_fail; |
24273 | { | |
24274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24275 | (arg1)->SetVirtualSize(arg2,arg3); | |
24276 | ||
24277 | wxPyEndAllowThreads(__tstate); | |
24278 | if (PyErr_Occurred()) SWIG_fail; | |
24279 | } | |
24280 | Py_INCREF(Py_None); resultobj = Py_None; | |
24281 | return resultobj; | |
24282 | fail: | |
24283 | return NULL; | |
24284 | } | |
24285 | ||
24286 | ||
c32bde28 | 24287 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24288 | PyObject *resultobj; |
24289 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24290 | wxSize result; | |
24291 | PyObject * obj0 = 0 ; | |
24292 | char *kwnames[] = { | |
24293 | (char *) "self", NULL | |
24294 | }; | |
24295 | ||
24296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24299 | { | |
24300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24301 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24302 | ||
24303 | wxPyEndAllowThreads(__tstate); | |
24304 | if (PyErr_Occurred()) SWIG_fail; | |
24305 | } | |
24306 | { | |
24307 | wxSize * resultptr; | |
24308 | resultptr = new wxSize((wxSize &) result); | |
24309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24310 | } | |
24311 | return resultobj; | |
24312 | fail: | |
24313 | return NULL; | |
24314 | } | |
24315 | ||
24316 | ||
c32bde28 | 24317 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24318 | PyObject *resultobj; |
24319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24320 | int *arg2 = (int *) 0 ; | |
24321 | int *arg3 = (int *) 0 ; | |
24322 | int temp2 ; | |
c32bde28 | 24323 | int res2 = 0 ; |
d55e5bfc | 24324 | int temp3 ; |
c32bde28 | 24325 | int res3 = 0 ; |
d55e5bfc RD |
24326 | PyObject * obj0 = 0 ; |
24327 | char *kwnames[] = { | |
24328 | (char *) "self", NULL | |
24329 | }; | |
24330 | ||
c32bde28 RD |
24331 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24332 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24336 | { | |
24337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24338 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24339 | ||
24340 | wxPyEndAllowThreads(__tstate); | |
24341 | if (PyErr_Occurred()) SWIG_fail; | |
24342 | } | |
24343 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
24344 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24345 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24346 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24347 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24348 | return resultobj; |
24349 | fail: | |
24350 | return NULL; | |
24351 | } | |
24352 | ||
24353 | ||
c32bde28 | 24354 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24355 | PyObject *resultobj; |
24356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24357 | wxSize result; | |
24358 | PyObject * obj0 = 0 ; | |
24359 | char *kwnames[] = { | |
24360 | (char *) "self", NULL | |
24361 | }; | |
24362 | ||
24363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24366 | { | |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24369 | ||
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
24373 | { | |
24374 | wxSize * resultptr; | |
24375 | resultptr = new wxSize((wxSize &) result); | |
24376 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24377 | } | |
24378 | return resultobj; | |
24379 | fail: | |
24380 | return NULL; | |
24381 | } | |
24382 | ||
24383 | ||
c32bde28 | 24384 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24385 | PyObject *resultobj; |
24386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24387 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24388 | bool result; |
24389 | PyObject * obj0 = 0 ; | |
24390 | PyObject * obj1 = 0 ; | |
24391 | char *kwnames[] = { | |
24392 | (char *) "self",(char *) "show", NULL | |
24393 | }; | |
24394 | ||
24395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24398 | if (obj1) { | |
c32bde28 | 24399 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24400 | if (PyErr_Occurred()) SWIG_fail; |
24401 | } | |
24402 | { | |
24403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24404 | result = (bool)(arg1)->Show(arg2); | |
24405 | ||
24406 | wxPyEndAllowThreads(__tstate); | |
24407 | if (PyErr_Occurred()) SWIG_fail; | |
24408 | } | |
24409 | { | |
24410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24411 | } | |
24412 | return resultobj; | |
24413 | fail: | |
24414 | return NULL; | |
24415 | } | |
24416 | ||
24417 | ||
c32bde28 | 24418 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24419 | PyObject *resultobj; |
24420 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24421 | bool result; | |
24422 | PyObject * obj0 = 0 ; | |
24423 | char *kwnames[] = { | |
24424 | (char *) "self", NULL | |
24425 | }; | |
24426 | ||
24427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
24428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24430 | { | |
24431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24432 | result = (bool)(arg1)->Hide(); | |
24433 | ||
24434 | wxPyEndAllowThreads(__tstate); | |
24435 | if (PyErr_Occurred()) SWIG_fail; | |
24436 | } | |
24437 | { | |
24438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24439 | } | |
24440 | return resultobj; | |
24441 | fail: | |
24442 | return NULL; | |
24443 | } | |
24444 | ||
24445 | ||
c32bde28 | 24446 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24447 | PyObject *resultobj; |
24448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24449 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24450 | bool result; |
24451 | PyObject * obj0 = 0 ; | |
24452 | PyObject * obj1 = 0 ; | |
24453 | char *kwnames[] = { | |
24454 | (char *) "self",(char *) "enable", NULL | |
24455 | }; | |
24456 | ||
24457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24460 | if (obj1) { | |
c32bde28 | 24461 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24462 | if (PyErr_Occurred()) SWIG_fail; |
24463 | } | |
24464 | { | |
24465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24466 | result = (bool)(arg1)->Enable(arg2); | |
24467 | ||
24468 | wxPyEndAllowThreads(__tstate); | |
24469 | if (PyErr_Occurred()) SWIG_fail; | |
24470 | } | |
24471 | { | |
24472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24473 | } | |
24474 | return resultobj; | |
24475 | fail: | |
24476 | return NULL; | |
24477 | } | |
24478 | ||
24479 | ||
c32bde28 | 24480 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24481 | PyObject *resultobj; |
24482 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24483 | bool result; | |
24484 | PyObject * obj0 = 0 ; | |
24485 | char *kwnames[] = { | |
24486 | (char *) "self", NULL | |
24487 | }; | |
24488 | ||
24489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24492 | { | |
24493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24494 | result = (bool)(arg1)->Disable(); | |
24495 | ||
24496 | wxPyEndAllowThreads(__tstate); | |
24497 | if (PyErr_Occurred()) SWIG_fail; | |
24498 | } | |
24499 | { | |
24500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24501 | } | |
24502 | return resultobj; | |
24503 | fail: | |
24504 | return NULL; | |
24505 | } | |
24506 | ||
24507 | ||
c32bde28 | 24508 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24509 | PyObject *resultobj; |
24510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24511 | bool result; | |
24512 | PyObject * obj0 = 0 ; | |
24513 | char *kwnames[] = { | |
24514 | (char *) "self", NULL | |
24515 | }; | |
24516 | ||
24517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24520 | { | |
24521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24522 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24523 | ||
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
24527 | { | |
24528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24529 | } | |
24530 | return resultobj; | |
24531 | fail: | |
24532 | return NULL; | |
24533 | } | |
24534 | ||
24535 | ||
c32bde28 | 24536 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24537 | PyObject *resultobj; |
24538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24539 | bool result; | |
24540 | PyObject * obj0 = 0 ; | |
24541 | char *kwnames[] = { | |
24542 | (char *) "self", NULL | |
24543 | }; | |
24544 | ||
24545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24548 | { | |
24549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24550 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24551 | ||
24552 | wxPyEndAllowThreads(__tstate); | |
24553 | if (PyErr_Occurred()) SWIG_fail; | |
24554 | } | |
24555 | { | |
24556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24557 | } | |
24558 | return resultobj; | |
24559 | fail: | |
24560 | return NULL; | |
24561 | } | |
24562 | ||
24563 | ||
c32bde28 | 24564 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24565 | PyObject *resultobj; |
24566 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24567 | long arg2 ; | |
24568 | PyObject * obj0 = 0 ; | |
24569 | PyObject * obj1 = 0 ; | |
24570 | char *kwnames[] = { | |
24571 | (char *) "self",(char *) "style", NULL | |
24572 | }; | |
24573 | ||
24574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24577 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24578 | if (PyErr_Occurred()) SWIG_fail; |
24579 | { | |
24580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24581 | (arg1)->SetWindowStyleFlag(arg2); | |
24582 | ||
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
24586 | Py_INCREF(Py_None); resultobj = Py_None; | |
24587 | return resultobj; | |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
c32bde28 | 24593 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24594 | PyObject *resultobj; |
24595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24596 | long result; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | char *kwnames[] = { | |
24599 | (char *) "self", NULL | |
24600 | }; | |
24601 | ||
24602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24605 | { | |
24606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24607 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24608 | ||
24609 | wxPyEndAllowThreads(__tstate); | |
24610 | if (PyErr_Occurred()) SWIG_fail; | |
24611 | } | |
c32bde28 | 24612 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24613 | return resultobj; |
24614 | fail: | |
24615 | return NULL; | |
24616 | } | |
24617 | ||
24618 | ||
c32bde28 | 24619 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24620 | PyObject *resultobj; |
24621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24622 | int arg2 ; | |
24623 | bool result; | |
24624 | PyObject * obj0 = 0 ; | |
24625 | PyObject * obj1 = 0 ; | |
24626 | char *kwnames[] = { | |
24627 | (char *) "self",(char *) "flag", NULL | |
24628 | }; | |
24629 | ||
24630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24633 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24634 | if (PyErr_Occurred()) SWIG_fail; |
24635 | { | |
24636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24637 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24638 | ||
24639 | wxPyEndAllowThreads(__tstate); | |
24640 | if (PyErr_Occurred()) SWIG_fail; | |
24641 | } | |
24642 | { | |
24643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24644 | } | |
24645 | return resultobj; | |
24646 | fail: | |
24647 | return NULL; | |
24648 | } | |
24649 | ||
24650 | ||
c32bde28 | 24651 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24652 | PyObject *resultobj; |
24653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24654 | bool result; | |
24655 | PyObject * obj0 = 0 ; | |
24656 | char *kwnames[] = { | |
24657 | (char *) "self", NULL | |
24658 | }; | |
24659 | ||
24660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24663 | { | |
24664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24665 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24666 | ||
24667 | wxPyEndAllowThreads(__tstate); | |
24668 | if (PyErr_Occurred()) SWIG_fail; | |
24669 | } | |
24670 | { | |
24671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24672 | } | |
24673 | return resultobj; | |
24674 | fail: | |
24675 | return NULL; | |
24676 | } | |
24677 | ||
24678 | ||
c32bde28 | 24679 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24680 | PyObject *resultobj; |
24681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24682 | long arg2 ; | |
24683 | PyObject * obj0 = 0 ; | |
24684 | PyObject * obj1 = 0 ; | |
24685 | char *kwnames[] = { | |
24686 | (char *) "self",(char *) "exStyle", NULL | |
24687 | }; | |
24688 | ||
24689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24692 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24693 | if (PyErr_Occurred()) SWIG_fail; |
24694 | { | |
24695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24696 | (arg1)->SetExtraStyle(arg2); | |
24697 | ||
24698 | wxPyEndAllowThreads(__tstate); | |
24699 | if (PyErr_Occurred()) SWIG_fail; | |
24700 | } | |
24701 | Py_INCREF(Py_None); resultobj = Py_None; | |
24702 | return resultobj; | |
24703 | fail: | |
24704 | return NULL; | |
24705 | } | |
24706 | ||
24707 | ||
c32bde28 | 24708 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24709 | PyObject *resultobj; |
24710 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24711 | long result; | |
24712 | PyObject * obj0 = 0 ; | |
24713 | char *kwnames[] = { | |
24714 | (char *) "self", NULL | |
24715 | }; | |
24716 | ||
24717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24720 | { | |
24721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24722 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24723 | ||
24724 | wxPyEndAllowThreads(__tstate); | |
24725 | if (PyErr_Occurred()) SWIG_fail; | |
24726 | } | |
c32bde28 | 24727 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24728 | return resultobj; |
24729 | fail: | |
24730 | return NULL; | |
24731 | } | |
24732 | ||
24733 | ||
c32bde28 | 24734 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24735 | PyObject *resultobj; |
24736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 24737 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24738 | PyObject * obj0 = 0 ; |
24739 | PyObject * obj1 = 0 ; | |
24740 | char *kwnames[] = { | |
24741 | (char *) "self",(char *) "modal", NULL | |
24742 | }; | |
24743 | ||
24744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24747 | if (obj1) { | |
c32bde28 | 24748 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24749 | if (PyErr_Occurred()) SWIG_fail; |
24750 | } | |
24751 | { | |
24752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24753 | (arg1)->MakeModal(arg2); | |
24754 | ||
24755 | wxPyEndAllowThreads(__tstate); | |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
24757 | } | |
24758 | Py_INCREF(Py_None); resultobj = Py_None; | |
24759 | return resultobj; | |
24760 | fail: | |
24761 | return NULL; | |
24762 | } | |
24763 | ||
24764 | ||
c32bde28 | 24765 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24766 | PyObject *resultobj; |
24767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24768 | bool arg2 ; | |
24769 | PyObject * obj0 = 0 ; | |
24770 | PyObject * obj1 = 0 ; | |
24771 | char *kwnames[] = { | |
24772 | (char *) "self",(char *) "enableTheme", NULL | |
24773 | }; | |
24774 | ||
24775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24778 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24779 | if (PyErr_Occurred()) SWIG_fail; |
24780 | { | |
24781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24782 | (arg1)->SetThemeEnabled(arg2); | |
24783 | ||
24784 | wxPyEndAllowThreads(__tstate); | |
24785 | if (PyErr_Occurred()) SWIG_fail; | |
24786 | } | |
24787 | Py_INCREF(Py_None); resultobj = Py_None; | |
24788 | return resultobj; | |
24789 | fail: | |
24790 | return NULL; | |
24791 | } | |
24792 | ||
24793 | ||
c32bde28 | 24794 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24795 | PyObject *resultobj; |
24796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24797 | bool result; | |
24798 | PyObject * obj0 = 0 ; | |
24799 | char *kwnames[] = { | |
24800 | (char *) "self", NULL | |
24801 | }; | |
24802 | ||
24803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24806 | { | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24809 | ||
24810 | wxPyEndAllowThreads(__tstate); | |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
24812 | } | |
24813 | { | |
24814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24815 | } | |
24816 | return resultobj; | |
24817 | fail: | |
24818 | return NULL; | |
24819 | } | |
24820 | ||
24821 | ||
c32bde28 | 24822 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24823 | PyObject *resultobj; |
24824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | char *kwnames[] = { | |
24827 | (char *) "self", NULL | |
24828 | }; | |
24829 | ||
24830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24833 | { | |
24834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24835 | (arg1)->SetFocus(); | |
24836 | ||
24837 | wxPyEndAllowThreads(__tstate); | |
24838 | if (PyErr_Occurred()) SWIG_fail; | |
24839 | } | |
24840 | Py_INCREF(Py_None); resultobj = Py_None; | |
24841 | return resultobj; | |
24842 | fail: | |
24843 | return NULL; | |
24844 | } | |
24845 | ||
24846 | ||
c32bde28 | 24847 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24848 | PyObject *resultobj; |
24849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24850 | PyObject * obj0 = 0 ; | |
24851 | char *kwnames[] = { | |
24852 | (char *) "self", NULL | |
24853 | }; | |
24854 | ||
24855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24858 | { | |
24859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24860 | (arg1)->SetFocusFromKbd(); | |
24861 | ||
24862 | wxPyEndAllowThreads(__tstate); | |
24863 | if (PyErr_Occurred()) SWIG_fail; | |
24864 | } | |
24865 | Py_INCREF(Py_None); resultobj = Py_None; | |
24866 | return resultobj; | |
24867 | fail: | |
24868 | return NULL; | |
24869 | } | |
24870 | ||
24871 | ||
c32bde28 | 24872 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24873 | PyObject *resultobj; |
24874 | wxWindow *result; | |
24875 | char *kwnames[] = { | |
24876 | NULL | |
24877 | }; | |
24878 | ||
24879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24880 | { | |
0439c23b | 24881 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24883 | result = (wxWindow *)wxWindow::FindFocus(); | |
24884 | ||
24885 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24886 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24887 | } |
24888 | { | |
412d302d | 24889 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24890 | } |
24891 | return resultobj; | |
24892 | fail: | |
24893 | return NULL; | |
24894 | } | |
24895 | ||
24896 | ||
c32bde28 | 24897 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24898 | PyObject *resultobj; |
24899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24900 | bool result; | |
24901 | PyObject * obj0 = 0 ; | |
24902 | char *kwnames[] = { | |
24903 | (char *) "self", NULL | |
24904 | }; | |
24905 | ||
24906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24909 | { | |
24910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24911 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24912 | ||
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | { | |
24917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24918 | } | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
c32bde28 | 24925 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24926 | PyObject *resultobj; |
24927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24928 | bool result; | |
24929 | PyObject * obj0 = 0 ; | |
24930 | char *kwnames[] = { | |
24931 | (char *) "self", NULL | |
24932 | }; | |
24933 | ||
24934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24937 | { | |
24938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24939 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24940 | ||
24941 | wxPyEndAllowThreads(__tstate); | |
24942 | if (PyErr_Occurred()) SWIG_fail; | |
24943 | } | |
24944 | { | |
24945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24946 | } | |
24947 | return resultobj; | |
24948 | fail: | |
24949 | return NULL; | |
24950 | } | |
24951 | ||
24952 | ||
c32bde28 | 24953 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24954 | PyObject *resultobj; |
24955 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24956 | wxWindow *result; | |
24957 | PyObject * obj0 = 0 ; | |
24958 | char *kwnames[] = { | |
24959 | (char *) "self", NULL | |
24960 | }; | |
24961 | ||
24962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24965 | { | |
24966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24967 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24968 | ||
24969 | wxPyEndAllowThreads(__tstate); | |
24970 | if (PyErr_Occurred()) SWIG_fail; | |
24971 | } | |
24972 | { | |
412d302d | 24973 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24974 | } |
24975 | return resultobj; | |
24976 | fail: | |
24977 | return NULL; | |
24978 | } | |
24979 | ||
24980 | ||
c32bde28 | 24981 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24982 | PyObject *resultobj; |
24983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24984 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24985 | wxWindow *result; | |
24986 | PyObject * obj0 = 0 ; | |
24987 | PyObject * obj1 = 0 ; | |
24988 | char *kwnames[] = { | |
24989 | (char *) "self",(char *) "child", NULL | |
24990 | }; | |
24991 | ||
24992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24997 | { | |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24999 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
25004 | { | |
412d302d | 25005 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25006 | } |
25007 | return resultobj; | |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
c32bde28 | 25013 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25014 | PyObject *resultobj; |
25015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25016 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25017 | PyObject * obj0 = 0 ; | |
25018 | PyObject * obj1 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self",(char *) "win", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25028 | { | |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25030 | (arg1)->SetTmpDefaultItem(arg2); | |
25031 | ||
25032 | wxPyEndAllowThreads(__tstate); | |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
25034 | } | |
25035 | Py_INCREF(Py_None); resultobj = Py_None; | |
25036 | return resultobj; | |
25037 | fail: | |
25038 | return NULL; | |
25039 | } | |
25040 | ||
25041 | ||
c32bde28 | 25042 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
25043 | PyObject *resultobj; |
25044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25045 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
25046 | bool result; | |
25047 | PyObject * obj0 = 0 ; | |
25048 | PyObject * obj1 = 0 ; | |
25049 | char *kwnames[] = { | |
25050 | (char *) "self",(char *) "flags", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
25054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25056 | if (obj1) { | |
c32bde28 | 25057 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
25058 | if (PyErr_Occurred()) SWIG_fail; |
25059 | } | |
25060 | { | |
25061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25062 | result = (bool)(arg1)->Navigate(arg2); | |
25063 | ||
25064 | wxPyEndAllowThreads(__tstate); | |
25065 | if (PyErr_Occurred()) SWIG_fail; | |
25066 | } | |
25067 | { | |
25068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25069 | } | |
25070 | return resultobj; | |
25071 | fail: | |
25072 | return NULL; | |
25073 | } | |
25074 | ||
25075 | ||
c32bde28 | 25076 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25077 | PyObject *resultobj; |
25078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25079 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25080 | PyObject * obj0 = 0 ; | |
25081 | PyObject * obj1 = 0 ; | |
25082 | char *kwnames[] = { | |
25083 | (char *) "self",(char *) "win", NULL | |
25084 | }; | |
25085 | ||
25086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25091 | { | |
25092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25093 | (arg1)->MoveAfterInTabOrder(arg2); | |
25094 | ||
25095 | wxPyEndAllowThreads(__tstate); | |
25096 | if (PyErr_Occurred()) SWIG_fail; | |
25097 | } | |
25098 | Py_INCREF(Py_None); resultobj = Py_None; | |
25099 | return resultobj; | |
25100 | fail: | |
25101 | return NULL; | |
25102 | } | |
25103 | ||
25104 | ||
c32bde28 | 25105 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25106 | PyObject *resultobj; |
25107 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25108 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25109 | PyObject * obj0 = 0 ; | |
25110 | PyObject * obj1 = 0 ; | |
25111 | char *kwnames[] = { | |
25112 | (char *) "self",(char *) "win", NULL | |
25113 | }; | |
25114 | ||
25115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25118 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25120 | { | |
25121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25122 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25123 | ||
25124 | wxPyEndAllowThreads(__tstate); | |
25125 | if (PyErr_Occurred()) SWIG_fail; | |
25126 | } | |
25127 | Py_INCREF(Py_None); resultobj = Py_None; | |
25128 | return resultobj; | |
25129 | fail: | |
25130 | return NULL; | |
25131 | } | |
25132 | ||
25133 | ||
c32bde28 | 25134 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25135 | PyObject *resultobj; |
25136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25137 | PyObject *result; | |
25138 | PyObject * obj0 = 0 ; | |
25139 | char *kwnames[] = { | |
25140 | (char *) "self", NULL | |
25141 | }; | |
25142 | ||
25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25146 | { | |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25149 | ||
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
25153 | resultobj = result; | |
25154 | return resultobj; | |
25155 | fail: | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
c32bde28 | 25160 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25161 | PyObject *resultobj; |
25162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25163 | wxWindow *result; | |
25164 | PyObject * obj0 = 0 ; | |
25165 | char *kwnames[] = { | |
25166 | (char *) "self", NULL | |
25167 | }; | |
25168 | ||
25169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25172 | { | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25175 | ||
25176 | wxPyEndAllowThreads(__tstate); | |
25177 | if (PyErr_Occurred()) SWIG_fail; | |
25178 | } | |
25179 | { | |
412d302d | 25180 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25181 | } |
25182 | return resultobj; | |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
c32bde28 | 25188 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25189 | PyObject *resultobj; |
25190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25191 | wxWindow *result; | |
25192 | PyObject * obj0 = 0 ; | |
25193 | char *kwnames[] = { | |
25194 | (char *) "self", NULL | |
25195 | }; | |
25196 | ||
25197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25200 | { | |
25201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25202 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25203 | ||
25204 | wxPyEndAllowThreads(__tstate); | |
25205 | if (PyErr_Occurred()) SWIG_fail; | |
25206 | } | |
25207 | { | |
412d302d | 25208 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25209 | } |
25210 | return resultobj; | |
25211 | fail: | |
25212 | return NULL; | |
25213 | } | |
25214 | ||
25215 | ||
c32bde28 | 25216 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25217 | PyObject *resultobj; |
25218 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25219 | bool result; | |
25220 | PyObject * obj0 = 0 ; | |
25221 | char *kwnames[] = { | |
25222 | (char *) "self", NULL | |
25223 | }; | |
25224 | ||
25225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25228 | { | |
25229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25230 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25231 | ||
25232 | wxPyEndAllowThreads(__tstate); | |
25233 | if (PyErr_Occurred()) SWIG_fail; | |
25234 | } | |
25235 | { | |
25236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25237 | } | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | return NULL; | |
25241 | } | |
25242 | ||
25243 | ||
c32bde28 | 25244 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25245 | PyObject *resultobj; |
25246 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25248 | bool result; | |
25249 | PyObject * obj0 = 0 ; | |
25250 | PyObject * obj1 = 0 ; | |
25251 | char *kwnames[] = { | |
25252 | (char *) "self",(char *) "newParent", NULL | |
25253 | }; | |
25254 | ||
25255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25260 | { | |
25261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25262 | result = (bool)(arg1)->Reparent(arg2); | |
25263 | ||
25264 | wxPyEndAllowThreads(__tstate); | |
25265 | if (PyErr_Occurred()) SWIG_fail; | |
25266 | } | |
25267 | { | |
25268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25269 | } | |
25270 | return resultobj; | |
25271 | fail: | |
25272 | return NULL; | |
25273 | } | |
25274 | ||
25275 | ||
c32bde28 | 25276 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25277 | PyObject *resultobj; |
25278 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25280 | PyObject * obj0 = 0 ; | |
25281 | PyObject * obj1 = 0 ; | |
25282 | char *kwnames[] = { | |
25283 | (char *) "self",(char *) "child", NULL | |
25284 | }; | |
25285 | ||
25286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25291 | { | |
25292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25293 | (arg1)->AddChild(arg2); | |
25294 | ||
25295 | wxPyEndAllowThreads(__tstate); | |
25296 | if (PyErr_Occurred()) SWIG_fail; | |
25297 | } | |
25298 | Py_INCREF(Py_None); resultobj = Py_None; | |
25299 | return resultobj; | |
25300 | fail: | |
25301 | return NULL; | |
25302 | } | |
25303 | ||
25304 | ||
c32bde28 | 25305 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25306 | PyObject *resultobj; |
25307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25308 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25309 | PyObject * obj0 = 0 ; | |
25310 | PyObject * obj1 = 0 ; | |
25311 | char *kwnames[] = { | |
25312 | (char *) "self",(char *) "child", NULL | |
25313 | }; | |
25314 | ||
25315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25320 | { | |
25321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25322 | (arg1)->RemoveChild(arg2); | |
25323 | ||
25324 | wxPyEndAllowThreads(__tstate); | |
25325 | if (PyErr_Occurred()) SWIG_fail; | |
25326 | } | |
25327 | Py_INCREF(Py_None); resultobj = Py_None; | |
25328 | return resultobj; | |
25329 | fail: | |
25330 | return NULL; | |
25331 | } | |
25332 | ||
25333 | ||
c32bde28 | 25334 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25335 | PyObject *resultobj; |
25336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25337 | long arg2 ; | |
25338 | wxWindow *result; | |
25339 | PyObject * obj0 = 0 ; | |
25340 | PyObject * obj1 = 0 ; | |
25341 | char *kwnames[] = { | |
25342 | (char *) "self",(char *) "winid", NULL | |
25343 | }; | |
25344 | ||
25345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25348 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25349 | if (PyErr_Occurred()) SWIG_fail; |
25350 | { | |
25351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25352 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25353 | ||
25354 | wxPyEndAllowThreads(__tstate); | |
25355 | if (PyErr_Occurred()) SWIG_fail; | |
25356 | } | |
25357 | { | |
412d302d | 25358 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25359 | } |
25360 | return resultobj; | |
25361 | fail: | |
25362 | return NULL; | |
25363 | } | |
25364 | ||
25365 | ||
c32bde28 | 25366 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25367 | PyObject *resultobj; |
25368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25369 | wxString *arg2 = 0 ; | |
25370 | wxWindow *result; | |
ae8162c8 | 25371 | bool temp2 = false ; |
d55e5bfc RD |
25372 | PyObject * obj0 = 0 ; |
25373 | PyObject * obj1 = 0 ; | |
25374 | char *kwnames[] = { | |
25375 | (char *) "self",(char *) "name", NULL | |
25376 | }; | |
25377 | ||
25378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25381 | { | |
25382 | arg2 = wxString_in_helper(obj1); | |
25383 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25384 | temp2 = true; |
d55e5bfc RD |
25385 | } |
25386 | { | |
25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25388 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25389 | ||
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
25393 | { | |
412d302d | 25394 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25395 | } |
25396 | { | |
25397 | if (temp2) | |
25398 | delete arg2; | |
25399 | } | |
25400 | return resultobj; | |
25401 | fail: | |
25402 | { | |
25403 | if (temp2) | |
25404 | delete arg2; | |
25405 | } | |
25406 | return NULL; | |
25407 | } | |
25408 | ||
25409 | ||
c32bde28 | 25410 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25411 | PyObject *resultobj; |
25412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25413 | wxEvtHandler *result; | |
25414 | PyObject * obj0 = 0 ; | |
25415 | char *kwnames[] = { | |
25416 | (char *) "self", NULL | |
25417 | }; | |
25418 | ||
25419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25422 | { | |
25423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25424 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25425 | ||
25426 | wxPyEndAllowThreads(__tstate); | |
25427 | if (PyErr_Occurred()) SWIG_fail; | |
25428 | } | |
25429 | { | |
412d302d | 25430 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25431 | } |
25432 | return resultobj; | |
25433 | fail: | |
25434 | return NULL; | |
25435 | } | |
25436 | ||
25437 | ||
c32bde28 | 25438 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25439 | PyObject *resultobj; |
25440 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25441 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25442 | PyObject * obj0 = 0 ; | |
25443 | PyObject * obj1 = 0 ; | |
25444 | char *kwnames[] = { | |
25445 | (char *) "self",(char *) "handler", NULL | |
25446 | }; | |
25447 | ||
25448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25451 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25453 | { | |
25454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25455 | (arg1)->SetEventHandler(arg2); | |
25456 | ||
25457 | wxPyEndAllowThreads(__tstate); | |
25458 | if (PyErr_Occurred()) SWIG_fail; | |
25459 | } | |
25460 | Py_INCREF(Py_None); resultobj = Py_None; | |
25461 | return resultobj; | |
25462 | fail: | |
25463 | return NULL; | |
25464 | } | |
25465 | ||
25466 | ||
c32bde28 | 25467 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25468 | PyObject *resultobj; |
25469 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25470 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25471 | PyObject * obj0 = 0 ; | |
25472 | PyObject * obj1 = 0 ; | |
25473 | char *kwnames[] = { | |
25474 | (char *) "self",(char *) "handler", NULL | |
25475 | }; | |
25476 | ||
25477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25482 | { | |
25483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25484 | (arg1)->PushEventHandler(arg2); | |
25485 | ||
25486 | wxPyEndAllowThreads(__tstate); | |
25487 | if (PyErr_Occurred()) SWIG_fail; | |
25488 | } | |
25489 | Py_INCREF(Py_None); resultobj = Py_None; | |
25490 | return resultobj; | |
25491 | fail: | |
25492 | return NULL; | |
25493 | } | |
25494 | ||
25495 | ||
c32bde28 | 25496 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25497 | PyObject *resultobj; |
25498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 25499 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25500 | wxEvtHandler *result; |
25501 | PyObject * obj0 = 0 ; | |
25502 | PyObject * obj1 = 0 ; | |
25503 | char *kwnames[] = { | |
25504 | (char *) "self",(char *) "deleteHandler", NULL | |
25505 | }; | |
25506 | ||
25507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25510 | if (obj1) { | |
c32bde28 | 25511 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25512 | if (PyErr_Occurred()) SWIG_fail; |
25513 | } | |
25514 | { | |
25515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25516 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25517 | ||
25518 | wxPyEndAllowThreads(__tstate); | |
25519 | if (PyErr_Occurred()) SWIG_fail; | |
25520 | } | |
25521 | { | |
412d302d | 25522 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25523 | } |
25524 | return resultobj; | |
25525 | fail: | |
25526 | return NULL; | |
25527 | } | |
25528 | ||
25529 | ||
c32bde28 | 25530 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25531 | PyObject *resultobj; |
25532 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25533 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25534 | bool result; | |
25535 | PyObject * obj0 = 0 ; | |
25536 | PyObject * obj1 = 0 ; | |
25537 | char *kwnames[] = { | |
25538 | (char *) "self",(char *) "handler", NULL | |
25539 | }; | |
25540 | ||
25541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25546 | { | |
25547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25548 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25549 | ||
25550 | wxPyEndAllowThreads(__tstate); | |
25551 | if (PyErr_Occurred()) SWIG_fail; | |
25552 | } | |
25553 | { | |
25554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25555 | } | |
25556 | return resultobj; | |
25557 | fail: | |
25558 | return NULL; | |
25559 | } | |
25560 | ||
25561 | ||
c32bde28 | 25562 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25563 | PyObject *resultobj; |
25564 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25565 | wxValidator *arg2 = 0 ; | |
25566 | PyObject * obj0 = 0 ; | |
25567 | PyObject * obj1 = 0 ; | |
25568 | char *kwnames[] = { | |
25569 | (char *) "self",(char *) "validator", NULL | |
25570 | }; | |
25571 | ||
25572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25575 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25576 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25577 | SWIG_fail; | |
25578 | if (arg2 == NULL) { | |
25579 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25580 | SWIG_fail; | |
25581 | } | |
25582 | { | |
25583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25584 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25585 | ||
25586 | wxPyEndAllowThreads(__tstate); | |
25587 | if (PyErr_Occurred()) SWIG_fail; | |
25588 | } | |
25589 | Py_INCREF(Py_None); resultobj = Py_None; | |
25590 | return resultobj; | |
25591 | fail: | |
25592 | return NULL; | |
25593 | } | |
25594 | ||
25595 | ||
c32bde28 | 25596 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25597 | PyObject *resultobj; |
25598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25599 | wxValidator *result; | |
25600 | PyObject * obj0 = 0 ; | |
25601 | char *kwnames[] = { | |
25602 | (char *) "self", NULL | |
25603 | }; | |
25604 | ||
25605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25608 | { | |
25609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25610 | result = (wxValidator *)(arg1)->GetValidator(); | |
25611 | ||
25612 | wxPyEndAllowThreads(__tstate); | |
25613 | if (PyErr_Occurred()) SWIG_fail; | |
25614 | } | |
25615 | { | |
412d302d | 25616 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25617 | } |
25618 | return resultobj; | |
25619 | fail: | |
25620 | return NULL; | |
25621 | } | |
25622 | ||
25623 | ||
c32bde28 | 25624 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25625 | PyObject *resultobj; |
25626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25627 | bool result; | |
25628 | PyObject * obj0 = 0 ; | |
25629 | char *kwnames[] = { | |
25630 | (char *) "self", NULL | |
25631 | }; | |
25632 | ||
25633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25636 | { | |
25637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25638 | result = (bool)(arg1)->Validate(); | |
25639 | ||
25640 | wxPyEndAllowThreads(__tstate); | |
25641 | if (PyErr_Occurred()) SWIG_fail; | |
25642 | } | |
25643 | { | |
25644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25645 | } | |
25646 | return resultobj; | |
25647 | fail: | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
c32bde28 | 25652 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25653 | PyObject *resultobj; |
25654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25655 | bool result; | |
25656 | PyObject * obj0 = 0 ; | |
25657 | char *kwnames[] = { | |
25658 | (char *) "self", NULL | |
25659 | }; | |
25660 | ||
25661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25664 | { | |
25665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25666 | result = (bool)(arg1)->TransferDataToWindow(); | |
25667 | ||
25668 | wxPyEndAllowThreads(__tstate); | |
25669 | if (PyErr_Occurred()) SWIG_fail; | |
25670 | } | |
25671 | { | |
25672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25673 | } | |
25674 | return resultobj; | |
25675 | fail: | |
25676 | return NULL; | |
25677 | } | |
25678 | ||
25679 | ||
c32bde28 | 25680 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25681 | PyObject *resultobj; |
25682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25683 | bool result; | |
25684 | PyObject * obj0 = 0 ; | |
25685 | char *kwnames[] = { | |
25686 | (char *) "self", NULL | |
25687 | }; | |
25688 | ||
25689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25692 | { | |
25693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25694 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25695 | ||
25696 | wxPyEndAllowThreads(__tstate); | |
25697 | if (PyErr_Occurred()) SWIG_fail; | |
25698 | } | |
25699 | { | |
25700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25701 | } | |
25702 | return resultobj; | |
25703 | fail: | |
25704 | return NULL; | |
25705 | } | |
25706 | ||
25707 | ||
c32bde28 | 25708 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25709 | PyObject *resultobj; |
25710 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25711 | PyObject * obj0 = 0 ; | |
25712 | char *kwnames[] = { | |
25713 | (char *) "self", NULL | |
25714 | }; | |
25715 | ||
25716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25719 | { | |
25720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25721 | (arg1)->InitDialog(); | |
25722 | ||
25723 | wxPyEndAllowThreads(__tstate); | |
25724 | if (PyErr_Occurred()) SWIG_fail; | |
25725 | } | |
25726 | Py_INCREF(Py_None); resultobj = Py_None; | |
25727 | return resultobj; | |
25728 | fail: | |
25729 | return NULL; | |
25730 | } | |
25731 | ||
25732 | ||
c32bde28 | 25733 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25734 | PyObject *resultobj; |
25735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25736 | wxAcceleratorTable *arg2 = 0 ; | |
25737 | PyObject * obj0 = 0 ; | |
25738 | PyObject * obj1 = 0 ; | |
25739 | char *kwnames[] = { | |
25740 | (char *) "self",(char *) "accel", NULL | |
25741 | }; | |
25742 | ||
25743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25747 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25748 | SWIG_fail; | |
25749 | if (arg2 == NULL) { | |
25750 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25751 | SWIG_fail; | |
25752 | } | |
25753 | { | |
25754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25755 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25756 | ||
25757 | wxPyEndAllowThreads(__tstate); | |
25758 | if (PyErr_Occurred()) SWIG_fail; | |
25759 | } | |
25760 | Py_INCREF(Py_None); resultobj = Py_None; | |
25761 | return resultobj; | |
25762 | fail: | |
25763 | return NULL; | |
25764 | } | |
25765 | ||
25766 | ||
c32bde28 | 25767 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25768 | PyObject *resultobj; |
25769 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25770 | wxAcceleratorTable *result; | |
25771 | PyObject * obj0 = 0 ; | |
25772 | char *kwnames[] = { | |
25773 | (char *) "self", NULL | |
25774 | }; | |
25775 | ||
25776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
25777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25779 | { | |
25780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25781 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25782 | ||
25783 | wxPyEndAllowThreads(__tstate); | |
25784 | if (PyErr_Occurred()) SWIG_fail; | |
25785 | } | |
25786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
25787 | return resultobj; | |
25788 | fail: | |
25789 | return NULL; | |
25790 | } | |
25791 | ||
25792 | ||
c32bde28 | 25793 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25794 | PyObject *resultobj; |
25795 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25796 | int arg2 ; | |
25797 | int arg3 ; | |
25798 | int arg4 ; | |
25799 | bool result; | |
25800 | PyObject * obj0 = 0 ; | |
25801 | PyObject * obj1 = 0 ; | |
25802 | PyObject * obj2 = 0 ; | |
25803 | PyObject * obj3 = 0 ; | |
25804 | char *kwnames[] = { | |
25805 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25806 | }; | |
25807 | ||
25808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25811 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 25812 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25813 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 25814 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 25815 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
25816 | if (PyErr_Occurred()) SWIG_fail; |
25817 | { | |
25818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25819 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25820 | ||
25821 | wxPyEndAllowThreads(__tstate); | |
25822 | if (PyErr_Occurred()) SWIG_fail; | |
25823 | } | |
25824 | { | |
25825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25826 | } | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
c32bde28 | 25833 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25834 | PyObject *resultobj; |
25835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25836 | int arg2 ; | |
25837 | bool result; | |
25838 | PyObject * obj0 = 0 ; | |
25839 | PyObject * obj1 = 0 ; | |
25840 | char *kwnames[] = { | |
25841 | (char *) "self",(char *) "hotkeyId", NULL | |
25842 | }; | |
25843 | ||
25844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 25847 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25848 | if (PyErr_Occurred()) SWIG_fail; |
25849 | { | |
25850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25851 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25852 | ||
25853 | wxPyEndAllowThreads(__tstate); | |
25854 | if (PyErr_Occurred()) SWIG_fail; | |
25855 | } | |
25856 | { | |
25857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25858 | } | |
25859 | return resultobj; | |
25860 | fail: | |
25861 | return NULL; | |
25862 | } | |
25863 | ||
25864 | ||
c32bde28 | 25865 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25866 | PyObject *resultobj; |
25867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25868 | wxPoint *arg2 = 0 ; | |
25869 | wxPoint result; | |
25870 | wxPoint temp2 ; | |
25871 | PyObject * obj0 = 0 ; | |
25872 | PyObject * obj1 = 0 ; | |
25873 | char *kwnames[] = { | |
25874 | (char *) "self",(char *) "pt", NULL | |
25875 | }; | |
25876 | ||
25877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25880 | { | |
25881 | arg2 = &temp2; | |
25882 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25883 | } | |
25884 | { | |
25885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25886 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25887 | ||
25888 | wxPyEndAllowThreads(__tstate); | |
25889 | if (PyErr_Occurred()) SWIG_fail; | |
25890 | } | |
25891 | { | |
25892 | wxPoint * resultptr; | |
25893 | resultptr = new wxPoint((wxPoint &) result); | |
25894 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25895 | } | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
c32bde28 | 25902 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25903 | PyObject *resultobj; |
25904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25905 | wxSize *arg2 = 0 ; | |
25906 | wxSize result; | |
25907 | wxSize temp2 ; | |
25908 | PyObject * obj0 = 0 ; | |
25909 | PyObject * obj1 = 0 ; | |
25910 | char *kwnames[] = { | |
25911 | (char *) "self",(char *) "sz", NULL | |
25912 | }; | |
25913 | ||
25914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25917 | { | |
25918 | arg2 = &temp2; | |
25919 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25920 | } | |
25921 | { | |
25922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25923 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25924 | ||
25925 | wxPyEndAllowThreads(__tstate); | |
25926 | if (PyErr_Occurred()) SWIG_fail; | |
25927 | } | |
25928 | { | |
25929 | wxSize * resultptr; | |
25930 | resultptr = new wxSize((wxSize &) result); | |
25931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25932 | } | |
25933 | return resultobj; | |
25934 | fail: | |
25935 | return NULL; | |
25936 | } | |
25937 | ||
25938 | ||
c32bde28 | 25939 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25940 | PyObject *resultobj; |
25941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25942 | wxPoint *arg2 = 0 ; | |
25943 | wxPoint result; | |
25944 | wxPoint temp2 ; | |
25945 | PyObject * obj0 = 0 ; | |
25946 | PyObject * obj1 = 0 ; | |
25947 | char *kwnames[] = { | |
25948 | (char *) "self",(char *) "pt", NULL | |
25949 | }; | |
25950 | ||
25951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25954 | { | |
25955 | arg2 = &temp2; | |
25956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25957 | } | |
25958 | { | |
25959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25960 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25961 | ||
25962 | wxPyEndAllowThreads(__tstate); | |
25963 | if (PyErr_Occurred()) SWIG_fail; | |
25964 | } | |
25965 | { | |
25966 | wxPoint * resultptr; | |
25967 | resultptr = new wxPoint((wxPoint &) result); | |
25968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25969 | } | |
25970 | return resultobj; | |
25971 | fail: | |
25972 | return NULL; | |
25973 | } | |
25974 | ||
25975 | ||
c32bde28 | 25976 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25977 | PyObject *resultobj; |
25978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25979 | wxSize *arg2 = 0 ; | |
25980 | wxSize result; | |
25981 | wxSize temp2 ; | |
25982 | PyObject * obj0 = 0 ; | |
25983 | PyObject * obj1 = 0 ; | |
25984 | char *kwnames[] = { | |
25985 | (char *) "self",(char *) "sz", NULL | |
25986 | }; | |
25987 | ||
25988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25991 | { | |
25992 | arg2 = &temp2; | |
25993 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25994 | } | |
25995 | { | |
25996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25997 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25998 | ||
25999 | wxPyEndAllowThreads(__tstate); | |
26000 | if (PyErr_Occurred()) SWIG_fail; | |
26001 | } | |
26002 | { | |
26003 | wxSize * resultptr; | |
26004 | resultptr = new wxSize((wxSize &) result); | |
26005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26006 | } | |
26007 | return resultobj; | |
26008 | fail: | |
26009 | return NULL; | |
26010 | } | |
26011 | ||
26012 | ||
c32bde28 | 26013 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26014 | PyObject *resultobj; |
26015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26016 | wxPoint *arg2 = 0 ; | |
26017 | wxPoint result; | |
26018 | wxPoint temp2 ; | |
26019 | PyObject * obj0 = 0 ; | |
26020 | PyObject * obj1 = 0 ; | |
26021 | char *kwnames[] = { | |
26022 | (char *) "self",(char *) "pt", NULL | |
26023 | }; | |
26024 | ||
26025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26028 | { | |
26029 | arg2 = &temp2; | |
26030 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26031 | } | |
26032 | { | |
26033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26034 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
26035 | ||
26036 | wxPyEndAllowThreads(__tstate); | |
26037 | if (PyErr_Occurred()) SWIG_fail; | |
26038 | } | |
26039 | { | |
26040 | wxPoint * resultptr; | |
26041 | resultptr = new wxPoint((wxPoint &) result); | |
26042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26043 | } | |
26044 | return resultobj; | |
26045 | fail: | |
26046 | return NULL; | |
26047 | } | |
26048 | ||
26049 | ||
c32bde28 | 26050 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26051 | PyObject *resultobj; |
26052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26053 | wxSize *arg2 = 0 ; | |
26054 | wxSize result; | |
26055 | wxSize temp2 ; | |
26056 | PyObject * obj0 = 0 ; | |
26057 | PyObject * obj1 = 0 ; | |
26058 | char *kwnames[] = { | |
26059 | (char *) "self",(char *) "sz", NULL | |
26060 | }; | |
26061 | ||
26062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26065 | { | |
26066 | arg2 = &temp2; | |
26067 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26068 | } | |
26069 | { | |
26070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26071 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26072 | ||
26073 | wxPyEndAllowThreads(__tstate); | |
26074 | if (PyErr_Occurred()) SWIG_fail; | |
26075 | } | |
26076 | { | |
26077 | wxSize * resultptr; | |
26078 | resultptr = new wxSize((wxSize &) result); | |
26079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26080 | } | |
26081 | return resultobj; | |
26082 | fail: | |
26083 | return NULL; | |
26084 | } | |
26085 | ||
26086 | ||
c32bde28 | 26087 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26088 | PyObject *resultobj; |
26089 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26090 | int arg2 ; | |
26091 | int arg3 ; | |
26092 | PyObject * obj0 = 0 ; | |
26093 | PyObject * obj1 = 0 ; | |
26094 | PyObject * obj2 = 0 ; | |
26095 | char *kwnames[] = { | |
26096 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26097 | }; | |
26098 | ||
26099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26102 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26103 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26104 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26105 | if (PyErr_Occurred()) SWIG_fail; |
26106 | { | |
26107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26108 | (arg1)->WarpPointer(arg2,arg3); | |
26109 | ||
26110 | wxPyEndAllowThreads(__tstate); | |
26111 | if (PyErr_Occurred()) SWIG_fail; | |
26112 | } | |
26113 | Py_INCREF(Py_None); resultobj = Py_None; | |
26114 | return resultobj; | |
26115 | fail: | |
26116 | return NULL; | |
26117 | } | |
26118 | ||
26119 | ||
c32bde28 | 26120 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26121 | PyObject *resultobj; |
26122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26123 | PyObject * obj0 = 0 ; | |
26124 | char *kwnames[] = { | |
26125 | (char *) "self", NULL | |
26126 | }; | |
26127 | ||
26128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26131 | { | |
26132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26133 | (arg1)->CaptureMouse(); | |
26134 | ||
26135 | wxPyEndAllowThreads(__tstate); | |
26136 | if (PyErr_Occurred()) SWIG_fail; | |
26137 | } | |
26138 | Py_INCREF(Py_None); resultobj = Py_None; | |
26139 | return resultobj; | |
26140 | fail: | |
26141 | return NULL; | |
26142 | } | |
26143 | ||
26144 | ||
c32bde28 | 26145 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26146 | PyObject *resultobj; |
26147 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26148 | PyObject * obj0 = 0 ; | |
26149 | char *kwnames[] = { | |
26150 | (char *) "self", NULL | |
26151 | }; | |
26152 | ||
26153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26156 | { | |
26157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26158 | (arg1)->ReleaseMouse(); | |
26159 | ||
26160 | wxPyEndAllowThreads(__tstate); | |
26161 | if (PyErr_Occurred()) SWIG_fail; | |
26162 | } | |
26163 | Py_INCREF(Py_None); resultobj = Py_None; | |
26164 | return resultobj; | |
26165 | fail: | |
26166 | return NULL; | |
26167 | } | |
26168 | ||
26169 | ||
c32bde28 | 26170 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26171 | PyObject *resultobj; |
26172 | wxWindow *result; | |
26173 | char *kwnames[] = { | |
26174 | NULL | |
26175 | }; | |
26176 | ||
26177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26178 | { | |
0439c23b | 26179 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26181 | result = (wxWindow *)wxWindow::GetCapture(); | |
26182 | ||
26183 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26184 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26185 | } |
26186 | { | |
412d302d | 26187 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26188 | } |
26189 | return resultobj; | |
26190 | fail: | |
26191 | return NULL; | |
26192 | } | |
26193 | ||
26194 | ||
c32bde28 | 26195 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26196 | PyObject *resultobj; |
26197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26198 | bool result; | |
26199 | PyObject * obj0 = 0 ; | |
26200 | char *kwnames[] = { | |
26201 | (char *) "self", NULL | |
26202 | }; | |
26203 | ||
26204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26207 | { | |
26208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26209 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26210 | ||
26211 | wxPyEndAllowThreads(__tstate); | |
26212 | if (PyErr_Occurred()) SWIG_fail; | |
26213 | } | |
26214 | { | |
26215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26216 | } | |
26217 | return resultobj; | |
26218 | fail: | |
26219 | return NULL; | |
26220 | } | |
26221 | ||
26222 | ||
c32bde28 | 26223 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26224 | PyObject *resultobj; |
26225 | wxWindow *arg1 = (wxWindow *) 0 ; | |
ae8162c8 | 26226 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26227 | wxRect *arg3 = (wxRect *) NULL ; |
26228 | PyObject * obj0 = 0 ; | |
26229 | PyObject * obj1 = 0 ; | |
26230 | PyObject * obj2 = 0 ; | |
26231 | char *kwnames[] = { | |
26232 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26233 | }; | |
26234 | ||
26235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26238 | if (obj1) { | |
c32bde28 | 26239 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26240 | if (PyErr_Occurred()) SWIG_fail; |
26241 | } | |
26242 | if (obj2) { | |
26243 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26245 | } | |
26246 | { | |
26247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26248 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26249 | ||
26250 | wxPyEndAllowThreads(__tstate); | |
26251 | if (PyErr_Occurred()) SWIG_fail; | |
26252 | } | |
26253 | Py_INCREF(Py_None); resultobj = Py_None; | |
26254 | return resultobj; | |
26255 | fail: | |
26256 | return NULL; | |
26257 | } | |
26258 | ||
26259 | ||
c32bde28 | 26260 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26261 | PyObject *resultobj; |
26262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26263 | wxRect *arg2 = 0 ; | |
26264 | wxRect temp2 ; | |
26265 | PyObject * obj0 = 0 ; | |
26266 | PyObject * obj1 = 0 ; | |
26267 | char *kwnames[] = { | |
26268 | (char *) "self",(char *) "rect", NULL | |
26269 | }; | |
26270 | ||
26271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26274 | { | |
26275 | arg2 = &temp2; | |
26276 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26277 | } | |
26278 | { | |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26281 | ||
26282 | wxPyEndAllowThreads(__tstate); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | } | |
26285 | Py_INCREF(Py_None); resultobj = Py_None; | |
26286 | return resultobj; | |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
c32bde28 | 26292 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26293 | PyObject *resultobj; |
26294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26295 | PyObject * obj0 = 0 ; | |
26296 | char *kwnames[] = { | |
26297 | (char *) "self", NULL | |
26298 | }; | |
26299 | ||
26300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26303 | { | |
26304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26305 | (arg1)->Update(); | |
26306 | ||
26307 | wxPyEndAllowThreads(__tstate); | |
26308 | if (PyErr_Occurred()) SWIG_fail; | |
26309 | } | |
26310 | Py_INCREF(Py_None); resultobj = Py_None; | |
26311 | return resultobj; | |
26312 | fail: | |
26313 | return NULL; | |
26314 | } | |
26315 | ||
26316 | ||
c32bde28 | 26317 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26318 | PyObject *resultobj; |
26319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26320 | PyObject * obj0 = 0 ; | |
26321 | char *kwnames[] = { | |
26322 | (char *) "self", NULL | |
26323 | }; | |
26324 | ||
26325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26328 | { | |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26330 | (arg1)->ClearBackground(); | |
26331 | ||
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
26335 | Py_INCREF(Py_None); resultobj = Py_None; | |
26336 | return resultobj; | |
26337 | fail: | |
26338 | return NULL; | |
26339 | } | |
26340 | ||
26341 | ||
c32bde28 | 26342 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26343 | PyObject *resultobj; |
26344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26345 | PyObject * obj0 = 0 ; | |
26346 | char *kwnames[] = { | |
26347 | (char *) "self", NULL | |
26348 | }; | |
26349 | ||
26350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26353 | { | |
26354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26355 | (arg1)->Freeze(); | |
26356 | ||
26357 | wxPyEndAllowThreads(__tstate); | |
26358 | if (PyErr_Occurred()) SWIG_fail; | |
26359 | } | |
26360 | Py_INCREF(Py_None); resultobj = Py_None; | |
26361 | return resultobj; | |
26362 | fail: | |
26363 | return NULL; | |
26364 | } | |
26365 | ||
26366 | ||
c32bde28 | 26367 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26368 | PyObject *resultobj; |
26369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26370 | PyObject * obj0 = 0 ; | |
26371 | char *kwnames[] = { | |
26372 | (char *) "self", NULL | |
26373 | }; | |
26374 | ||
26375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26378 | { | |
26379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26380 | (arg1)->Thaw(); | |
26381 | ||
26382 | wxPyEndAllowThreads(__tstate); | |
26383 | if (PyErr_Occurred()) SWIG_fail; | |
26384 | } | |
26385 | Py_INCREF(Py_None); resultobj = Py_None; | |
26386 | return resultobj; | |
26387 | fail: | |
26388 | return NULL; | |
26389 | } | |
26390 | ||
26391 | ||
c32bde28 | 26392 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26393 | PyObject *resultobj; |
26394 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26395 | wxDC *arg2 = 0 ; | |
26396 | PyObject * obj0 = 0 ; | |
26397 | PyObject * obj1 = 0 ; | |
26398 | char *kwnames[] = { | |
26399 | (char *) "self",(char *) "dc", NULL | |
26400 | }; | |
26401 | ||
26402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26407 | SWIG_fail; | |
26408 | if (arg2 == NULL) { | |
26409 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26410 | SWIG_fail; | |
26411 | } | |
26412 | { | |
26413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26414 | (arg1)->PrepareDC(*arg2); | |
26415 | ||
26416 | wxPyEndAllowThreads(__tstate); | |
26417 | if (PyErr_Occurred()) SWIG_fail; | |
26418 | } | |
26419 | Py_INCREF(Py_None); resultobj = Py_None; | |
26420 | return resultobj; | |
26421 | fail: | |
26422 | return NULL; | |
26423 | } | |
26424 | ||
26425 | ||
c32bde28 | 26426 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26427 | PyObject *resultobj; |
26428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26429 | wxRegion *result; | |
26430 | PyObject * obj0 = 0 ; | |
26431 | char *kwnames[] = { | |
26432 | (char *) "self", NULL | |
26433 | }; | |
26434 | ||
26435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26438 | { | |
26439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26440 | { | |
26441 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26442 | result = (wxRegion *) &_result_ref; | |
26443 | } | |
26444 | ||
26445 | wxPyEndAllowThreads(__tstate); | |
26446 | if (PyErr_Occurred()) SWIG_fail; | |
26447 | } | |
26448 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
c32bde28 | 26455 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26456 | PyObject *resultobj; |
26457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26458 | wxRect result; | |
26459 | PyObject * obj0 = 0 ; | |
26460 | char *kwnames[] = { | |
26461 | (char *) "self", NULL | |
26462 | }; | |
26463 | ||
26464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26467 | { | |
26468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26469 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26470 | ||
26471 | wxPyEndAllowThreads(__tstate); | |
26472 | if (PyErr_Occurred()) SWIG_fail; | |
26473 | } | |
26474 | { | |
26475 | wxRect * resultptr; | |
26476 | resultptr = new wxRect((wxRect &) result); | |
26477 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26478 | } | |
26479 | return resultobj; | |
26480 | fail: | |
26481 | return NULL; | |
26482 | } | |
26483 | ||
26484 | ||
c32bde28 | 26485 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26486 | PyObject *resultobj; |
26487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26488 | int arg2 ; | |
26489 | int arg3 ; | |
26490 | int arg4 = (int) 1 ; | |
26491 | int arg5 = (int) 1 ; | |
26492 | bool result; | |
26493 | PyObject * obj0 = 0 ; | |
26494 | PyObject * obj1 = 0 ; | |
26495 | PyObject * obj2 = 0 ; | |
26496 | PyObject * obj3 = 0 ; | |
26497 | PyObject * obj4 = 0 ; | |
26498 | char *kwnames[] = { | |
26499 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26500 | }; | |
26501 | ||
26502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26505 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26506 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26507 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26508 | if (PyErr_Occurred()) SWIG_fail; |
26509 | if (obj3) { | |
c32bde28 | 26510 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26511 | if (PyErr_Occurred()) SWIG_fail; |
26512 | } | |
26513 | if (obj4) { | |
c32bde28 | 26514 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26515 | if (PyErr_Occurred()) SWIG_fail; |
26516 | } | |
26517 | { | |
26518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26519 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26520 | ||
26521 | wxPyEndAllowThreads(__tstate); | |
26522 | if (PyErr_Occurred()) SWIG_fail; | |
26523 | } | |
26524 | { | |
26525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26526 | } | |
26527 | return resultobj; | |
26528 | fail: | |
26529 | return NULL; | |
26530 | } | |
26531 | ||
26532 | ||
c32bde28 | 26533 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26534 | PyObject *resultobj; |
26535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26536 | wxPoint *arg2 = 0 ; | |
26537 | bool result; | |
26538 | wxPoint temp2 ; | |
26539 | PyObject * obj0 = 0 ; | |
26540 | PyObject * obj1 = 0 ; | |
26541 | char *kwnames[] = { | |
26542 | (char *) "self",(char *) "pt", NULL | |
26543 | }; | |
26544 | ||
26545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26548 | { | |
26549 | arg2 = &temp2; | |
26550 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26551 | } | |
26552 | { | |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26555 | ||
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
26559 | { | |
26560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26561 | } | |
26562 | return resultobj; | |
26563 | fail: | |
26564 | return NULL; | |
26565 | } | |
26566 | ||
26567 | ||
c32bde28 | 26568 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26569 | PyObject *resultobj; |
26570 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26571 | wxRect *arg2 = 0 ; | |
26572 | bool result; | |
26573 | wxRect temp2 ; | |
26574 | PyObject * obj0 = 0 ; | |
26575 | PyObject * obj1 = 0 ; | |
26576 | char *kwnames[] = { | |
26577 | (char *) "self",(char *) "rect", NULL | |
26578 | }; | |
26579 | ||
26580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26583 | { | |
26584 | arg2 = &temp2; | |
26585 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26586 | } | |
26587 | { | |
26588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26589 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26590 | ||
26591 | wxPyEndAllowThreads(__tstate); | |
26592 | if (PyErr_Occurred()) SWIG_fail; | |
26593 | } | |
26594 | { | |
26595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26596 | } | |
26597 | return resultobj; | |
26598 | fail: | |
26599 | return NULL; | |
26600 | } | |
26601 | ||
26602 | ||
c32bde28 | 26603 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26604 | PyObject *resultobj; |
26605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26606 | wxVisualAttributes result; | |
26607 | PyObject * obj0 = 0 ; | |
26608 | char *kwnames[] = { | |
26609 | (char *) "self", NULL | |
26610 | }; | |
26611 | ||
26612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26615 | { | |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26617 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26618 | ||
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | { | |
26623 | wxVisualAttributes * resultptr; | |
26624 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26626 | } | |
26627 | return resultobj; | |
26628 | fail: | |
26629 | return NULL; | |
26630 | } | |
26631 | ||
26632 | ||
c32bde28 | 26633 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26634 | PyObject *resultobj; |
26635 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26636 | wxVisualAttributes result; | |
26637 | PyObject * obj0 = 0 ; | |
26638 | char *kwnames[] = { | |
26639 | (char *) "variant", NULL | |
26640 | }; | |
26641 | ||
26642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26643 | if (obj0) { | |
c32bde28 | 26644 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26645 | if (PyErr_Occurred()) SWIG_fail; |
26646 | } | |
26647 | { | |
0439c23b | 26648 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26650 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26651 | ||
26652 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26653 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26654 | } |
26655 | { | |
26656 | wxVisualAttributes * resultptr; | |
26657 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26659 | } | |
26660 | return resultobj; | |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
c32bde28 | 26666 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26667 | PyObject *resultobj; |
26668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26669 | wxColour *arg2 = 0 ; | |
26670 | bool result; | |
26671 | wxColour temp2 ; | |
26672 | PyObject * obj0 = 0 ; | |
26673 | PyObject * obj1 = 0 ; | |
26674 | char *kwnames[] = { | |
26675 | (char *) "self",(char *) "colour", NULL | |
26676 | }; | |
26677 | ||
26678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26681 | { | |
26682 | arg2 = &temp2; | |
26683 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26684 | } | |
26685 | { | |
26686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26687 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26688 | ||
26689 | wxPyEndAllowThreads(__tstate); | |
26690 | if (PyErr_Occurred()) SWIG_fail; | |
26691 | } | |
26692 | { | |
26693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26694 | } | |
26695 | return resultobj; | |
26696 | fail: | |
26697 | return NULL; | |
26698 | } | |
26699 | ||
26700 | ||
c32bde28 | 26701 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26702 | PyObject *resultobj; |
26703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26704 | wxColour *arg2 = 0 ; | |
26705 | wxColour temp2 ; | |
26706 | PyObject * obj0 = 0 ; | |
26707 | PyObject * obj1 = 0 ; | |
26708 | char *kwnames[] = { | |
26709 | (char *) "self",(char *) "colour", NULL | |
26710 | }; | |
26711 | ||
412d302d | 26712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26715 | { | |
26716 | arg2 = &temp2; | |
26717 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26718 | } | |
26719 | { | |
26720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26721 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26722 | |
26723 | wxPyEndAllowThreads(__tstate); | |
26724 | if (PyErr_Occurred()) SWIG_fail; | |
26725 | } | |
26726 | Py_INCREF(Py_None); resultobj = Py_None; | |
26727 | return resultobj; | |
26728 | fail: | |
26729 | return NULL; | |
26730 | } | |
26731 | ||
26732 | ||
c32bde28 | 26733 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26734 | PyObject *resultobj; |
26735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26736 | wxColour *arg2 = 0 ; | |
26737 | bool result; | |
26738 | wxColour temp2 ; | |
26739 | PyObject * obj0 = 0 ; | |
26740 | PyObject * obj1 = 0 ; | |
26741 | char *kwnames[] = { | |
26742 | (char *) "self",(char *) "colour", NULL | |
26743 | }; | |
26744 | ||
26745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26748 | { | |
26749 | arg2 = &temp2; | |
26750 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26751 | } | |
26752 | { | |
26753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26754 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26755 | ||
26756 | wxPyEndAllowThreads(__tstate); | |
26757 | if (PyErr_Occurred()) SWIG_fail; | |
26758 | } | |
26759 | { | |
26760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26761 | } | |
26762 | return resultobj; | |
26763 | fail: | |
26764 | return NULL; | |
26765 | } | |
26766 | ||
26767 | ||
c32bde28 | 26768 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26769 | PyObject *resultobj; |
26770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26771 | wxColour *arg2 = 0 ; | |
26772 | wxColour temp2 ; | |
26773 | PyObject * obj0 = 0 ; | |
26774 | PyObject * obj1 = 0 ; | |
26775 | char *kwnames[] = { | |
26776 | (char *) "self",(char *) "colour", NULL | |
26777 | }; | |
26778 | ||
fa47d7a7 | 26779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26782 | { | |
26783 | arg2 = &temp2; | |
26784 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26785 | } | |
26786 | { | |
26787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26788 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26789 | |
26790 | wxPyEndAllowThreads(__tstate); | |
26791 | if (PyErr_Occurred()) SWIG_fail; | |
26792 | } | |
26793 | Py_INCREF(Py_None); resultobj = Py_None; | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | return NULL; | |
26797 | } | |
26798 | ||
26799 | ||
c32bde28 | 26800 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26801 | PyObject *resultobj; |
26802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26803 | wxColour result; | |
26804 | PyObject * obj0 = 0 ; | |
26805 | char *kwnames[] = { | |
26806 | (char *) "self", NULL | |
26807 | }; | |
26808 | ||
26809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
26810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26812 | { | |
26813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26814 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26815 | ||
26816 | wxPyEndAllowThreads(__tstate); | |
26817 | if (PyErr_Occurred()) SWIG_fail; | |
26818 | } | |
26819 | { | |
26820 | wxColour * resultptr; | |
26821 | resultptr = new wxColour((wxColour &) result); | |
26822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26823 | } | |
26824 | return resultobj; | |
26825 | fail: | |
26826 | return NULL; | |
26827 | } | |
26828 | ||
26829 | ||
c32bde28 | 26830 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26831 | PyObject *resultobj; |
26832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26833 | wxColour result; | |
26834 | PyObject * obj0 = 0 ; | |
26835 | char *kwnames[] = { | |
26836 | (char *) "self", NULL | |
26837 | }; | |
26838 | ||
26839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
26840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26842 | { | |
26843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26844 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26845 | ||
26846 | wxPyEndAllowThreads(__tstate); | |
26847 | if (PyErr_Occurred()) SWIG_fail; | |
26848 | } | |
26849 | { | |
26850 | wxColour * resultptr; | |
26851 | resultptr = new wxColour((wxColour &) result); | |
26852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26853 | } | |
26854 | return resultobj; | |
26855 | fail: | |
26856 | return NULL; | |
26857 | } | |
26858 | ||
26859 | ||
c32bde28 | 26860 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26861 | PyObject *resultobj; |
26862 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26863 | int arg2 ; | |
26864 | bool result; | |
26865 | PyObject * obj0 = 0 ; | |
26866 | PyObject * obj1 = 0 ; | |
26867 | char *kwnames[] = { | |
26868 | (char *) "self",(char *) "style", NULL | |
26869 | }; | |
26870 | ||
26871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
26872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26874 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
26875 | if (PyErr_Occurred()) SWIG_fail; |
26876 | { | |
26877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26878 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
26879 | ||
26880 | wxPyEndAllowThreads(__tstate); | |
26881 | if (PyErr_Occurred()) SWIG_fail; | |
26882 | } | |
26883 | { | |
26884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26885 | } | |
26886 | return resultobj; | |
26887 | fail: | |
26888 | return NULL; | |
26889 | } | |
26890 | ||
26891 | ||
c32bde28 | 26892 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26893 | PyObject *resultobj; |
26894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26895 | int result; | |
26896 | PyObject * obj0 = 0 ; | |
26897 | char *kwnames[] = { | |
26898 | (char *) "self", NULL | |
26899 | }; | |
26900 | ||
26901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
26902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26904 | { | |
26905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26906 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
26907 | ||
26908 | wxPyEndAllowThreads(__tstate); | |
26909 | if (PyErr_Occurred()) SWIG_fail; | |
26910 | } | |
c32bde28 | 26911 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
26912 | return resultobj; |
26913 | fail: | |
26914 | return NULL; | |
26915 | } | |
26916 | ||
26917 | ||
c32bde28 | 26918 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26919 | PyObject *resultobj; |
26920 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26921 | wxCursor *arg2 = 0 ; | |
26922 | bool result; | |
26923 | PyObject * obj0 = 0 ; | |
26924 | PyObject * obj1 = 0 ; | |
26925 | char *kwnames[] = { | |
26926 | (char *) "self",(char *) "cursor", NULL | |
26927 | }; | |
26928 | ||
26929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26932 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26934 | SWIG_fail; | |
26935 | if (arg2 == NULL) { | |
26936 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26937 | SWIG_fail; | |
26938 | } | |
26939 | { | |
26940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26941 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26942 | ||
26943 | wxPyEndAllowThreads(__tstate); | |
26944 | if (PyErr_Occurred()) SWIG_fail; | |
26945 | } | |
26946 | { | |
26947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26948 | } | |
26949 | return resultobj; | |
26950 | fail: | |
26951 | return NULL; | |
26952 | } | |
26953 | ||
26954 | ||
c32bde28 | 26955 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26956 | PyObject *resultobj; |
26957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26958 | wxCursor result; |
d55e5bfc RD |
26959 | PyObject * obj0 = 0 ; |
26960 | char *kwnames[] = { | |
26961 | (char *) "self", NULL | |
26962 | }; | |
26963 | ||
26964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26967 | { | |
26968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26969 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
26970 | |
26971 | wxPyEndAllowThreads(__tstate); | |
26972 | if (PyErr_Occurred()) SWIG_fail; | |
26973 | } | |
26974 | { | |
a001823c RD |
26975 | wxCursor * resultptr; |
26976 | resultptr = new wxCursor((wxCursor &) result); | |
26977 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
26978 | } |
26979 | return resultobj; | |
26980 | fail: | |
26981 | return NULL; | |
26982 | } | |
26983 | ||
26984 | ||
c32bde28 | 26985 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26986 | PyObject *resultobj; |
26987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26988 | wxFont *arg2 = 0 ; | |
26989 | bool result; | |
26990 | PyObject * obj0 = 0 ; | |
26991 | PyObject * obj1 = 0 ; | |
26992 | char *kwnames[] = { | |
26993 | (char *) "self",(char *) "font", NULL | |
26994 | }; | |
26995 | ||
26996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27000 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27001 | SWIG_fail; | |
27002 | if (arg2 == NULL) { | |
27003 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27004 | SWIG_fail; | |
27005 | } | |
27006 | { | |
27007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27008 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
27009 | ||
27010 | wxPyEndAllowThreads(__tstate); | |
27011 | if (PyErr_Occurred()) SWIG_fail; | |
27012 | } | |
27013 | { | |
27014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27015 | } | |
27016 | return resultobj; | |
27017 | fail: | |
27018 | return NULL; | |
27019 | } | |
27020 | ||
27021 | ||
c32bde28 | 27022 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27023 | PyObject *resultobj; |
27024 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27025 | wxFont *arg2 = 0 ; | |
27026 | PyObject * obj0 = 0 ; | |
27027 | PyObject * obj1 = 0 ; | |
27028 | char *kwnames[] = { | |
27029 | (char *) "self",(char *) "font", NULL | |
27030 | }; | |
27031 | ||
fa47d7a7 | 27032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
27033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27036 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27037 | SWIG_fail; | |
27038 | if (arg2 == NULL) { | |
27039 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27040 | SWIG_fail; | |
27041 | } | |
27042 | { | |
27043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27044 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
27045 | |
27046 | wxPyEndAllowThreads(__tstate); | |
27047 | if (PyErr_Occurred()) SWIG_fail; | |
27048 | } | |
27049 | Py_INCREF(Py_None); resultobj = Py_None; | |
27050 | return resultobj; | |
27051 | fail: | |
27052 | return NULL; | |
27053 | } | |
27054 | ||
27055 | ||
c32bde28 | 27056 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27057 | PyObject *resultobj; |
27058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27059 | wxFont result; |
d55e5bfc RD |
27060 | PyObject * obj0 = 0 ; |
27061 | char *kwnames[] = { | |
27062 | (char *) "self", NULL | |
27063 | }; | |
27064 | ||
27065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
27066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27068 | { | |
27069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27070 | result = (arg1)->GetFont(); |
d55e5bfc RD |
27071 | |
27072 | wxPyEndAllowThreads(__tstate); | |
27073 | if (PyErr_Occurred()) SWIG_fail; | |
27074 | } | |
27075 | { | |
a001823c RD |
27076 | wxFont * resultptr; |
27077 | resultptr = new wxFont((wxFont &) result); | |
27078 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27079 | } |
27080 | return resultobj; | |
27081 | fail: | |
27082 | return NULL; | |
27083 | } | |
27084 | ||
27085 | ||
c32bde28 | 27086 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27087 | PyObject *resultobj; |
27088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27089 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27090 | PyObject * obj0 = 0 ; | |
27091 | PyObject * obj1 = 0 ; | |
27092 | char *kwnames[] = { | |
27093 | (char *) "self",(char *) "caret", NULL | |
27094 | }; | |
27095 | ||
27096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27101 | { | |
27102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27103 | (arg1)->SetCaret(arg2); | |
27104 | ||
27105 | wxPyEndAllowThreads(__tstate); | |
27106 | if (PyErr_Occurred()) SWIG_fail; | |
27107 | } | |
27108 | Py_INCREF(Py_None); resultobj = Py_None; | |
27109 | return resultobj; | |
27110 | fail: | |
27111 | return NULL; | |
27112 | } | |
27113 | ||
27114 | ||
c32bde28 | 27115 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27116 | PyObject *resultobj; |
27117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27118 | wxCaret *result; | |
27119 | PyObject * obj0 = 0 ; | |
27120 | char *kwnames[] = { | |
27121 | (char *) "self", NULL | |
27122 | }; | |
27123 | ||
27124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27127 | { | |
27128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27129 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27130 | ||
27131 | wxPyEndAllowThreads(__tstate); | |
27132 | if (PyErr_Occurred()) SWIG_fail; | |
27133 | } | |
27134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27135 | return resultobj; | |
27136 | fail: | |
27137 | return NULL; | |
27138 | } | |
27139 | ||
27140 | ||
c32bde28 | 27141 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27142 | PyObject *resultobj; |
27143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27144 | int result; | |
27145 | PyObject * obj0 = 0 ; | |
27146 | char *kwnames[] = { | |
27147 | (char *) "self", NULL | |
27148 | }; | |
27149 | ||
27150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27153 | { | |
27154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27155 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27156 | ||
27157 | wxPyEndAllowThreads(__tstate); | |
27158 | if (PyErr_Occurred()) SWIG_fail; | |
27159 | } | |
c32bde28 | 27160 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27161 | return resultobj; |
27162 | fail: | |
27163 | return NULL; | |
27164 | } | |
27165 | ||
27166 | ||
c32bde28 | 27167 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27168 | PyObject *resultobj; |
27169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27170 | int result; | |
27171 | PyObject * obj0 = 0 ; | |
27172 | char *kwnames[] = { | |
27173 | (char *) "self", NULL | |
27174 | }; | |
27175 | ||
27176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27179 | { | |
27180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27181 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27182 | ||
27183 | wxPyEndAllowThreads(__tstate); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
c32bde28 | 27186 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27187 | return resultobj; |
27188 | fail: | |
27189 | return NULL; | |
27190 | } | |
27191 | ||
27192 | ||
c32bde28 | 27193 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27194 | PyObject *resultobj; |
27195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27196 | wxString *arg2 = 0 ; | |
27197 | int *arg3 = (int *) 0 ; | |
27198 | int *arg4 = (int *) 0 ; | |
ae8162c8 | 27199 | bool temp2 = false ; |
d55e5bfc | 27200 | int temp3 ; |
c32bde28 | 27201 | int res3 = 0 ; |
d55e5bfc | 27202 | int temp4 ; |
c32bde28 | 27203 | int res4 = 0 ; |
d55e5bfc RD |
27204 | PyObject * obj0 = 0 ; |
27205 | PyObject * obj1 = 0 ; | |
27206 | char *kwnames[] = { | |
27207 | (char *) "self",(char *) "string", NULL | |
27208 | }; | |
27209 | ||
c32bde28 RD |
27210 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27211 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27215 | { | |
27216 | arg2 = wxString_in_helper(obj1); | |
27217 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27218 | temp2 = true; |
d55e5bfc RD |
27219 | } |
27220 | { | |
27221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27222 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27223 | ||
27224 | wxPyEndAllowThreads(__tstate); | |
27225 | if (PyErr_Occurred()) SWIG_fail; | |
27226 | } | |
27227 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27228 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27229 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27230 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27231 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27232 | { |
27233 | if (temp2) | |
27234 | delete arg2; | |
27235 | } | |
27236 | return resultobj; | |
27237 | fail: | |
27238 | { | |
27239 | if (temp2) | |
27240 | delete arg2; | |
27241 | } | |
27242 | return NULL; | |
27243 | } | |
27244 | ||
27245 | ||
c32bde28 | 27246 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27247 | PyObject *resultobj; |
27248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27249 | wxString *arg2 = 0 ; | |
27250 | int *arg3 = (int *) 0 ; | |
27251 | int *arg4 = (int *) 0 ; | |
27252 | int *arg5 = (int *) 0 ; | |
27253 | int *arg6 = (int *) 0 ; | |
27254 | wxFont *arg7 = (wxFont *) NULL ; | |
ae8162c8 | 27255 | bool temp2 = false ; |
d55e5bfc | 27256 | int temp3 ; |
c32bde28 | 27257 | int res3 = 0 ; |
d55e5bfc | 27258 | int temp4 ; |
c32bde28 | 27259 | int res4 = 0 ; |
d55e5bfc | 27260 | int temp5 ; |
c32bde28 | 27261 | int res5 = 0 ; |
d55e5bfc | 27262 | int temp6 ; |
c32bde28 | 27263 | int res6 = 0 ; |
d55e5bfc RD |
27264 | PyObject * obj0 = 0 ; |
27265 | PyObject * obj1 = 0 ; | |
27266 | PyObject * obj2 = 0 ; | |
27267 | char *kwnames[] = { | |
27268 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27269 | }; | |
27270 | ||
c32bde28 RD |
27271 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27272 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27273 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27274 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27278 | { | |
27279 | arg2 = wxString_in_helper(obj1); | |
27280 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27281 | temp2 = true; |
d55e5bfc RD |
27282 | } |
27283 | if (obj2) { | |
27284 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27286 | } | |
27287 | { | |
27288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27289 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27290 | ||
27291 | wxPyEndAllowThreads(__tstate); | |
27292 | if (PyErr_Occurred()) SWIG_fail; | |
27293 | } | |
27294 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27295 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27296 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27297 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27298 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27299 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27300 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27301 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27302 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27303 | { |
27304 | if (temp2) | |
27305 | delete arg2; | |
27306 | } | |
27307 | return resultobj; | |
27308 | fail: | |
27309 | { | |
27310 | if (temp2) | |
27311 | delete arg2; | |
27312 | } | |
27313 | return NULL; | |
27314 | } | |
27315 | ||
27316 | ||
c32bde28 | 27317 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27318 | PyObject *resultobj; |
27319 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27320 | int *arg2 = (int *) 0 ; | |
27321 | int *arg3 = (int *) 0 ; | |
27322 | int temp2 ; | |
c32bde28 | 27323 | int res2 = 0 ; |
d55e5bfc | 27324 | int temp3 ; |
c32bde28 | 27325 | int res3 = 0 ; |
d55e5bfc RD |
27326 | PyObject * obj0 = 0 ; |
27327 | PyObject * obj1 = 0 ; | |
27328 | PyObject * obj2 = 0 ; | |
27329 | char *kwnames[] = { | |
27330 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27331 | }; | |
27332 | ||
27333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27336 | { | |
c32bde28 RD |
27337 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27338 | temp2 = SWIG_As_int(obj1); | |
27339 | if (PyErr_Occurred()) SWIG_fail; | |
27340 | arg2 = &temp2; | |
27341 | res2 = SWIG_NEWOBJ; | |
27342 | } | |
d55e5bfc RD |
27343 | } |
27344 | { | |
c32bde28 RD |
27345 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27346 | temp3 = SWIG_As_int(obj2); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | arg3 = &temp3; | |
27349 | res3 = SWIG_NEWOBJ; | |
27350 | } | |
d55e5bfc RD |
27351 | } |
27352 | { | |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27355 | ||
27356 | wxPyEndAllowThreads(__tstate); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27360 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27361 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27362 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27363 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27364 | return resultobj; |
27365 | fail: | |
27366 | return NULL; | |
27367 | } | |
27368 | ||
27369 | ||
c32bde28 | 27370 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27371 | PyObject *resultobj; |
27372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27373 | int *arg2 = (int *) 0 ; | |
27374 | int *arg3 = (int *) 0 ; | |
27375 | int temp2 ; | |
c32bde28 | 27376 | int res2 = 0 ; |
d55e5bfc | 27377 | int temp3 ; |
c32bde28 | 27378 | int res3 = 0 ; |
d55e5bfc RD |
27379 | PyObject * obj0 = 0 ; |
27380 | PyObject * obj1 = 0 ; | |
27381 | PyObject * obj2 = 0 ; | |
27382 | char *kwnames[] = { | |
27383 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27384 | }; | |
27385 | ||
27386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27389 | { | |
c32bde28 RD |
27390 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27391 | temp2 = SWIG_As_int(obj1); | |
27392 | if (PyErr_Occurred()) SWIG_fail; | |
27393 | arg2 = &temp2; | |
27394 | res2 = SWIG_NEWOBJ; | |
27395 | } | |
d55e5bfc RD |
27396 | } |
27397 | { | |
c32bde28 RD |
27398 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27399 | temp3 = SWIG_As_int(obj2); | |
27400 | if (PyErr_Occurred()) SWIG_fail; | |
27401 | arg3 = &temp3; | |
27402 | res3 = SWIG_NEWOBJ; | |
27403 | } | |
d55e5bfc RD |
27404 | } |
27405 | { | |
27406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27407 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27408 | ||
27409 | wxPyEndAllowThreads(__tstate); | |
27410 | if (PyErr_Occurred()) SWIG_fail; | |
27411 | } | |
27412 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
27413 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27414 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27415 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27416 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27417 | return resultobj; |
27418 | fail: | |
27419 | return NULL; | |
27420 | } | |
27421 | ||
27422 | ||
c32bde28 | 27423 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27424 | PyObject *resultobj; |
27425 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27426 | wxPoint *arg2 = 0 ; | |
27427 | wxPoint result; | |
27428 | wxPoint temp2 ; | |
27429 | PyObject * obj0 = 0 ; | |
27430 | PyObject * obj1 = 0 ; | |
27431 | char *kwnames[] = { | |
27432 | (char *) "self",(char *) "pt", NULL | |
27433 | }; | |
27434 | ||
27435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27438 | { | |
27439 | arg2 = &temp2; | |
27440 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27441 | } | |
27442 | { | |
27443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27444 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27445 | ||
27446 | wxPyEndAllowThreads(__tstate); | |
27447 | if (PyErr_Occurred()) SWIG_fail; | |
27448 | } | |
27449 | { | |
27450 | wxPoint * resultptr; | |
27451 | resultptr = new wxPoint((wxPoint &) result); | |
27452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27453 | } | |
27454 | return resultobj; | |
27455 | fail: | |
27456 | return NULL; | |
27457 | } | |
27458 | ||
27459 | ||
c32bde28 | 27460 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27461 | PyObject *resultobj; |
27462 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27463 | wxPoint *arg2 = 0 ; | |
27464 | wxPoint result; | |
27465 | wxPoint temp2 ; | |
27466 | PyObject * obj0 = 0 ; | |
27467 | PyObject * obj1 = 0 ; | |
27468 | char *kwnames[] = { | |
27469 | (char *) "self",(char *) "pt", NULL | |
27470 | }; | |
27471 | ||
27472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27475 | { | |
27476 | arg2 = &temp2; | |
27477 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27478 | } | |
27479 | { | |
27480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27481 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27482 | ||
27483 | wxPyEndAllowThreads(__tstate); | |
27484 | if (PyErr_Occurred()) SWIG_fail; | |
27485 | } | |
27486 | { | |
27487 | wxPoint * resultptr; | |
27488 | resultptr = new wxPoint((wxPoint &) result); | |
27489 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27490 | } | |
27491 | return resultobj; | |
27492 | fail: | |
27493 | return NULL; | |
27494 | } | |
27495 | ||
27496 | ||
c32bde28 | 27497 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27498 | PyObject *resultobj; |
27499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27500 | int arg2 ; | |
27501 | int arg3 ; | |
27502 | int result; | |
27503 | PyObject * obj0 = 0 ; | |
27504 | PyObject * obj1 = 0 ; | |
27505 | PyObject * obj2 = 0 ; | |
27506 | char *kwnames[] = { | |
27507 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27508 | }; | |
27509 | ||
27510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27513 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27514 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27515 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27516 | if (PyErr_Occurred()) SWIG_fail; |
27517 | { | |
27518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27519 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27520 | ||
27521 | wxPyEndAllowThreads(__tstate); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | } | |
c32bde28 | 27524 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27525 | return resultobj; |
27526 | fail: | |
27527 | return NULL; | |
27528 | } | |
27529 | ||
27530 | ||
c32bde28 | 27531 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27532 | PyObject *resultobj; |
27533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27534 | wxPoint *arg2 = 0 ; | |
27535 | int result; | |
27536 | wxPoint temp2 ; | |
27537 | PyObject * obj0 = 0 ; | |
27538 | PyObject * obj1 = 0 ; | |
27539 | char *kwnames[] = { | |
27540 | (char *) "self",(char *) "pt", NULL | |
27541 | }; | |
27542 | ||
27543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27546 | { | |
27547 | arg2 = &temp2; | |
27548 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27549 | } | |
27550 | { | |
27551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27552 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27553 | ||
27554 | wxPyEndAllowThreads(__tstate); | |
27555 | if (PyErr_Occurred()) SWIG_fail; | |
27556 | } | |
c32bde28 | 27557 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27558 | return resultobj; |
27559 | fail: | |
27560 | return NULL; | |
27561 | } | |
27562 | ||
27563 | ||
c32bde28 | 27564 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27565 | PyObject *resultobj; |
27566 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27567 | long arg2 ; | |
27568 | int result; | |
27569 | PyObject * obj0 = 0 ; | |
27570 | PyObject * obj1 = 0 ; | |
27571 | ||
27572 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27575 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27576 | if (PyErr_Occurred()) SWIG_fail; |
27577 | { | |
27578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27579 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27580 | ||
27581 | wxPyEndAllowThreads(__tstate); | |
27582 | if (PyErr_Occurred()) SWIG_fail; | |
27583 | } | |
c32bde28 | 27584 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27585 | return resultobj; |
27586 | fail: | |
27587 | return NULL; | |
27588 | } | |
27589 | ||
27590 | ||
c32bde28 | 27591 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27592 | PyObject *resultobj; |
27593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27594 | int result; | |
27595 | PyObject * obj0 = 0 ; | |
27596 | ||
27597 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27600 | { | |
27601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27602 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27603 | ||
27604 | wxPyEndAllowThreads(__tstate); | |
27605 | if (PyErr_Occurred()) SWIG_fail; | |
27606 | } | |
c32bde28 | 27607 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27608 | return resultobj; |
27609 | fail: | |
27610 | return NULL; | |
27611 | } | |
27612 | ||
27613 | ||
27614 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27615 | int argc; | |
27616 | PyObject *argv[3]; | |
27617 | int ii; | |
27618 | ||
27619 | argc = PyObject_Length(args); | |
27620 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27621 | argv[ii] = PyTuple_GetItem(args,ii); | |
27622 | } | |
27623 | if (argc == 1) { | |
27624 | int _v; | |
27625 | { | |
27626 | void *ptr; | |
27627 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27628 | _v = 0; | |
27629 | PyErr_Clear(); | |
27630 | } else { | |
27631 | _v = 1; | |
27632 | } | |
27633 | } | |
27634 | if (_v) { | |
27635 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27636 | } | |
27637 | } | |
27638 | if (argc == 2) { | |
27639 | int _v; | |
27640 | { | |
27641 | void *ptr; | |
27642 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27643 | _v = 0; | |
27644 | PyErr_Clear(); | |
27645 | } else { | |
27646 | _v = 1; | |
27647 | } | |
27648 | } | |
27649 | if (_v) { | |
c32bde28 | 27650 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27651 | if (_v) { |
27652 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27653 | } | |
27654 | } | |
27655 | } | |
27656 | ||
27657 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27658 | return NULL; | |
27659 | } | |
27660 | ||
27661 | ||
c32bde28 | 27662 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27663 | PyObject *resultobj; |
27664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27665 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27666 | PyObject * obj0 = 0 ; | |
27667 | PyObject * obj1 = 0 ; | |
27668 | char *kwnames[] = { | |
27669 | (char *) "self",(char *) "flags", NULL | |
27670 | }; | |
27671 | ||
27672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27675 | if (obj1) { | |
c32bde28 | 27676 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27677 | if (PyErr_Occurred()) SWIG_fail; |
27678 | } | |
27679 | { | |
27680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27681 | (arg1)->UpdateWindowUI(arg2); | |
27682 | ||
27683 | wxPyEndAllowThreads(__tstate); | |
27684 | if (PyErr_Occurred()) SWIG_fail; | |
27685 | } | |
27686 | Py_INCREF(Py_None); resultobj = Py_None; | |
27687 | return resultobj; | |
27688 | fail: | |
27689 | return NULL; | |
27690 | } | |
27691 | ||
27692 | ||
c32bde28 | 27693 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27694 | PyObject *resultobj; |
27695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27696 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27697 | int arg3 = (int) -1 ; |
27698 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27699 | bool result; |
27700 | PyObject * obj0 = 0 ; | |
27701 | PyObject * obj1 = 0 ; | |
27702 | PyObject * obj2 = 0 ; | |
27703 | PyObject * obj3 = 0 ; | |
27704 | char *kwnames[] = { | |
27705 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27706 | }; | |
27707 | ||
7a0b95b0 | 27708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 | 27713 | if (obj2) { |
c32bde28 | 27714 | arg3 = (int)SWIG_As_int(obj2); |
7a0b95b0 RD |
27715 | if (PyErr_Occurred()) SWIG_fail; |
27716 | } | |
27717 | if (obj3) { | |
c32bde28 | 27718 | arg4 = (int)SWIG_As_int(obj3); |
7a0b95b0 RD |
27719 | if (PyErr_Occurred()) SWIG_fail; |
27720 | } | |
d55e5bfc RD |
27721 | { |
27722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27723 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27724 | ||
27725 | wxPyEndAllowThreads(__tstate); | |
27726 | if (PyErr_Occurred()) SWIG_fail; | |
27727 | } | |
27728 | { | |
27729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27730 | } | |
27731 | return resultobj; | |
27732 | fail: | |
27733 | return NULL; | |
27734 | } | |
27735 | ||
27736 | ||
c32bde28 | 27737 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27738 | PyObject *resultobj; |
27739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27740 | wxMenu *arg2 = (wxMenu *) 0 ; | |
7a0b95b0 RD |
27741 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27742 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27743 | bool result; |
27744 | wxPoint temp3 ; | |
27745 | PyObject * obj0 = 0 ; | |
27746 | PyObject * obj1 = 0 ; | |
27747 | PyObject * obj2 = 0 ; | |
27748 | char *kwnames[] = { | |
27749 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27750 | }; | |
27751 | ||
7a0b95b0 | 27752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7a0b95b0 RD |
27757 | if (obj2) { |
27758 | { | |
27759 | arg3 = &temp3; | |
27760 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27761 | } | |
d55e5bfc RD |
27762 | } |
27763 | { | |
27764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27765 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27766 | ||
27767 | wxPyEndAllowThreads(__tstate); | |
27768 | if (PyErr_Occurred()) SWIG_fail; | |
27769 | } | |
27770 | { | |
27771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27772 | } | |
27773 | return resultobj; | |
27774 | fail: | |
27775 | return NULL; | |
27776 | } | |
27777 | ||
27778 | ||
c32bde28 | 27779 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27780 | PyObject *resultobj; |
27781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27782 | long result; | |
27783 | PyObject * obj0 = 0 ; | |
27784 | char *kwnames[] = { | |
27785 | (char *) "self", NULL | |
27786 | }; | |
27787 | ||
27788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
27789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27791 | { | |
27792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27793 | result = (long)wxWindow_GetHandle(arg1); | |
27794 | ||
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
c32bde28 | 27798 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
27799 | return resultobj; |
27800 | fail: | |
27801 | return NULL; | |
27802 | } | |
27803 | ||
27804 | ||
7e63a440 RD |
27805 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
27806 | PyObject *resultobj; | |
27807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27808 | long arg2 ; | |
27809 | PyObject * obj0 = 0 ; | |
27810 | PyObject * obj1 = 0 ; | |
27811 | char *kwnames[] = { | |
27812 | (char *) "self",(char *) "handle", NULL | |
27813 | }; | |
27814 | ||
27815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
27816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27818 | arg2 = (long)SWIG_As_long(obj1); | |
27819 | if (PyErr_Occurred()) SWIG_fail; | |
27820 | { | |
27821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27822 | wxWindow_AssociateHandle(arg1,arg2); | |
27823 | ||
27824 | wxPyEndAllowThreads(__tstate); | |
27825 | if (PyErr_Occurred()) SWIG_fail; | |
27826 | } | |
27827 | Py_INCREF(Py_None); resultobj = Py_None; | |
27828 | return resultobj; | |
27829 | fail: | |
27830 | return NULL; | |
27831 | } | |
27832 | ||
27833 | ||
27834 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
27835 | PyObject *resultobj; | |
27836 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27837 | PyObject * obj0 = 0 ; | |
27838 | char *kwnames[] = { | |
27839 | (char *) "self", NULL | |
27840 | }; | |
27841 | ||
27842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
27843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27845 | { | |
27846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27847 | (arg1)->DissociateHandle(); | |
27848 | ||
27849 | wxPyEndAllowThreads(__tstate); | |
27850 | if (PyErr_Occurred()) SWIG_fail; | |
27851 | } | |
27852 | Py_INCREF(Py_None); resultobj = Py_None; | |
27853 | return resultobj; | |
27854 | fail: | |
27855 | return NULL; | |
27856 | } | |
27857 | ||
27858 | ||
c32bde28 | 27859 | static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27860 | PyObject *resultobj; |
27861 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27862 | wxPaintEvent *arg2 = 0 ; | |
27863 | PyObject * obj0 = 0 ; | |
27864 | PyObject * obj1 = 0 ; | |
27865 | char *kwnames[] = { | |
27866 | (char *) "self",(char *) "event", NULL | |
27867 | }; | |
27868 | ||
27869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
27870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
27873 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27874 | SWIG_fail; | |
27875 | if (arg2 == NULL) { | |
27876 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27877 | SWIG_fail; | |
27878 | } | |
27879 | { | |
27880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27881 | (arg1)->OnPaint(*arg2); | |
27882 | ||
27883 | wxPyEndAllowThreads(__tstate); | |
27884 | if (PyErr_Occurred()) SWIG_fail; | |
27885 | } | |
27886 | Py_INCREF(Py_None); resultobj = Py_None; | |
27887 | return resultobj; | |
27888 | fail: | |
27889 | return NULL; | |
27890 | } | |
27891 | ||
27892 | ||
c32bde28 | 27893 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27894 | PyObject *resultobj; |
27895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27896 | int arg2 ; | |
27897 | bool result; | |
27898 | PyObject * obj0 = 0 ; | |
27899 | PyObject * obj1 = 0 ; | |
27900 | char *kwnames[] = { | |
27901 | (char *) "self",(char *) "orient", NULL | |
27902 | }; | |
27903 | ||
27904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
27905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27907 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27908 | if (PyErr_Occurred()) SWIG_fail; |
27909 | { | |
27910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27911 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27912 | ||
27913 | wxPyEndAllowThreads(__tstate); | |
27914 | if (PyErr_Occurred()) SWIG_fail; | |
27915 | } | |
27916 | { | |
27917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27918 | } | |
27919 | return resultobj; | |
27920 | fail: | |
27921 | return NULL; | |
27922 | } | |
27923 | ||
27924 | ||
c32bde28 | 27925 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27926 | PyObject *resultobj; |
27927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27928 | int arg2 ; | |
27929 | int arg3 ; | |
27930 | int arg4 ; | |
27931 | int arg5 ; | |
ae8162c8 | 27932 | bool arg6 = (bool) true ; |
d55e5bfc RD |
27933 | PyObject * obj0 = 0 ; |
27934 | PyObject * obj1 = 0 ; | |
27935 | PyObject * obj2 = 0 ; | |
27936 | PyObject * obj3 = 0 ; | |
27937 | PyObject * obj4 = 0 ; | |
27938 | PyObject * obj5 = 0 ; | |
27939 | char *kwnames[] = { | |
79fccf9d | 27940 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
27941 | }; |
27942 | ||
27943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27946 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27947 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27948 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27949 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27950 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 27951 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27952 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27953 | if (PyErr_Occurred()) SWIG_fail; |
27954 | if (obj5) { | |
c32bde28 | 27955 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
27956 | if (PyErr_Occurred()) SWIG_fail; |
27957 | } | |
27958 | { | |
27959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27960 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27961 | ||
27962 | wxPyEndAllowThreads(__tstate); | |
27963 | if (PyErr_Occurred()) SWIG_fail; | |
27964 | } | |
27965 | Py_INCREF(Py_None); resultobj = Py_None; | |
27966 | return resultobj; | |
27967 | fail: | |
27968 | return NULL; | |
27969 | } | |
27970 | ||
27971 | ||
c32bde28 | 27972 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27973 | PyObject *resultobj; |
27974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27975 | int arg2 ; | |
27976 | int arg3 ; | |
ae8162c8 | 27977 | bool arg4 = (bool) true ; |
d55e5bfc RD |
27978 | PyObject * obj0 = 0 ; |
27979 | PyObject * obj1 = 0 ; | |
27980 | PyObject * obj2 = 0 ; | |
27981 | PyObject * obj3 = 0 ; | |
27982 | char *kwnames[] = { | |
27983 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27984 | }; | |
27985 | ||
27986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27989 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27990 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27991 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27992 | if (PyErr_Occurred()) SWIG_fail; |
27993 | if (obj3) { | |
c32bde28 | 27994 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
27995 | if (PyErr_Occurred()) SWIG_fail; |
27996 | } | |
27997 | { | |
27998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27999 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
28000 | ||
28001 | wxPyEndAllowThreads(__tstate); | |
28002 | if (PyErr_Occurred()) SWIG_fail; | |
28003 | } | |
28004 | Py_INCREF(Py_None); resultobj = Py_None; | |
28005 | return resultobj; | |
28006 | fail: | |
28007 | return NULL; | |
28008 | } | |
28009 | ||
28010 | ||
c32bde28 | 28011 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28012 | PyObject *resultobj; |
28013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28014 | int arg2 ; | |
28015 | int result; | |
28016 | PyObject * obj0 = 0 ; | |
28017 | PyObject * obj1 = 0 ; | |
28018 | char *kwnames[] = { | |
28019 | (char *) "self",(char *) "orientation", NULL | |
28020 | }; | |
28021 | ||
28022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
28023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28025 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28026 | if (PyErr_Occurred()) SWIG_fail; |
28027 | { | |
28028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28029 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
28030 | ||
28031 | wxPyEndAllowThreads(__tstate); | |
28032 | if (PyErr_Occurred()) SWIG_fail; | |
28033 | } | |
c32bde28 | 28034 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28035 | return resultobj; |
28036 | fail: | |
28037 | return NULL; | |
28038 | } | |
28039 | ||
28040 | ||
c32bde28 | 28041 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28042 | PyObject *resultobj; |
28043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28044 | int arg2 ; | |
28045 | int result; | |
28046 | PyObject * obj0 = 0 ; | |
28047 | PyObject * obj1 = 0 ; | |
28048 | char *kwnames[] = { | |
28049 | (char *) "self",(char *) "orientation", NULL | |
28050 | }; | |
28051 | ||
28052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
28053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28055 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28056 | if (PyErr_Occurred()) SWIG_fail; |
28057 | { | |
28058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28059 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
28060 | ||
28061 | wxPyEndAllowThreads(__tstate); | |
28062 | if (PyErr_Occurred()) SWIG_fail; | |
28063 | } | |
c32bde28 | 28064 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28065 | return resultobj; |
28066 | fail: | |
28067 | return NULL; | |
28068 | } | |
28069 | ||
28070 | ||
c32bde28 | 28071 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28072 | PyObject *resultobj; |
28073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28074 | int arg2 ; | |
28075 | int result; | |
28076 | PyObject * obj0 = 0 ; | |
28077 | PyObject * obj1 = 0 ; | |
28078 | char *kwnames[] = { | |
28079 | (char *) "self",(char *) "orientation", NULL | |
28080 | }; | |
28081 | ||
28082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
28083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28085 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28086 | if (PyErr_Occurred()) SWIG_fail; |
28087 | { | |
28088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28089 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28090 | ||
28091 | wxPyEndAllowThreads(__tstate); | |
28092 | if (PyErr_Occurred()) SWIG_fail; | |
28093 | } | |
c32bde28 | 28094 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28095 | return resultobj; |
28096 | fail: | |
28097 | return NULL; | |
28098 | } | |
28099 | ||
28100 | ||
c32bde28 | 28101 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28102 | PyObject *resultobj; |
28103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28104 | int arg2 ; | |
28105 | int arg3 ; | |
28106 | wxRect *arg4 = (wxRect *) NULL ; | |
28107 | PyObject * obj0 = 0 ; | |
28108 | PyObject * obj1 = 0 ; | |
28109 | PyObject * obj2 = 0 ; | |
28110 | PyObject * obj3 = 0 ; | |
28111 | char *kwnames[] = { | |
28112 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28113 | }; | |
28114 | ||
28115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28118 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28119 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 28120 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28121 | if (PyErr_Occurred()) SWIG_fail; |
28122 | if (obj3) { | |
28123 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28125 | } | |
28126 | { | |
28127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28128 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28129 | ||
28130 | wxPyEndAllowThreads(__tstate); | |
28131 | if (PyErr_Occurred()) SWIG_fail; | |
28132 | } | |
28133 | Py_INCREF(Py_None); resultobj = Py_None; | |
28134 | return resultobj; | |
28135 | fail: | |
28136 | return NULL; | |
28137 | } | |
28138 | ||
28139 | ||
c32bde28 | 28140 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28141 | PyObject *resultobj; |
28142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28143 | int arg2 ; | |
28144 | bool result; | |
28145 | PyObject * obj0 = 0 ; | |
28146 | PyObject * obj1 = 0 ; | |
28147 | char *kwnames[] = { | |
28148 | (char *) "self",(char *) "lines", NULL | |
28149 | }; | |
28150 | ||
28151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28154 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28155 | if (PyErr_Occurred()) SWIG_fail; |
28156 | { | |
28157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28158 | result = (bool)(arg1)->ScrollLines(arg2); | |
28159 | ||
28160 | wxPyEndAllowThreads(__tstate); | |
28161 | if (PyErr_Occurred()) SWIG_fail; | |
28162 | } | |
28163 | { | |
28164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28165 | } | |
28166 | return resultobj; | |
28167 | fail: | |
28168 | return NULL; | |
28169 | } | |
28170 | ||
28171 | ||
c32bde28 | 28172 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28173 | PyObject *resultobj; |
28174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28175 | int arg2 ; | |
28176 | bool result; | |
28177 | PyObject * obj0 = 0 ; | |
28178 | PyObject * obj1 = 0 ; | |
28179 | char *kwnames[] = { | |
28180 | (char *) "self",(char *) "pages", NULL | |
28181 | }; | |
28182 | ||
28183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) 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 RD |
28187 | if (PyErr_Occurred()) SWIG_fail; |
28188 | { | |
28189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28190 | result = (bool)(arg1)->ScrollPages(arg2); | |
28191 | ||
28192 | wxPyEndAllowThreads(__tstate); | |
28193 | if (PyErr_Occurred()) SWIG_fail; | |
28194 | } | |
28195 | { | |
28196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28197 | } | |
28198 | return resultobj; | |
28199 | fail: | |
28200 | return NULL; | |
28201 | } | |
28202 | ||
28203 | ||
c32bde28 | 28204 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28205 | PyObject *resultobj; |
28206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28207 | bool result; | |
28208 | PyObject * obj0 = 0 ; | |
28209 | char *kwnames[] = { | |
28210 | (char *) "self", NULL | |
28211 | }; | |
28212 | ||
28213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28216 | { | |
28217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28218 | result = (bool)(arg1)->LineUp(); | |
28219 | ||
28220 | wxPyEndAllowThreads(__tstate); | |
28221 | if (PyErr_Occurred()) SWIG_fail; | |
28222 | } | |
28223 | { | |
28224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28225 | } | |
28226 | return resultobj; | |
28227 | fail: | |
28228 | return NULL; | |
28229 | } | |
28230 | ||
28231 | ||
c32bde28 | 28232 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28233 | PyObject *resultobj; |
28234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28235 | bool result; | |
28236 | PyObject * obj0 = 0 ; | |
28237 | char *kwnames[] = { | |
28238 | (char *) "self", NULL | |
28239 | }; | |
28240 | ||
28241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28244 | { | |
28245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28246 | result = (bool)(arg1)->LineDown(); | |
28247 | ||
28248 | wxPyEndAllowThreads(__tstate); | |
28249 | if (PyErr_Occurred()) SWIG_fail; | |
28250 | } | |
28251 | { | |
28252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28253 | } | |
28254 | return resultobj; | |
28255 | fail: | |
28256 | return NULL; | |
28257 | } | |
28258 | ||
28259 | ||
c32bde28 | 28260 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28261 | PyObject *resultobj; |
28262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28263 | bool result; | |
28264 | PyObject * obj0 = 0 ; | |
28265 | char *kwnames[] = { | |
28266 | (char *) "self", NULL | |
28267 | }; | |
28268 | ||
28269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28272 | { | |
28273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28274 | result = (bool)(arg1)->PageUp(); | |
28275 | ||
28276 | wxPyEndAllowThreads(__tstate); | |
28277 | if (PyErr_Occurred()) SWIG_fail; | |
28278 | } | |
28279 | { | |
28280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28281 | } | |
28282 | return resultobj; | |
28283 | fail: | |
28284 | return NULL; | |
28285 | } | |
28286 | ||
28287 | ||
c32bde28 | 28288 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28289 | PyObject *resultobj; |
28290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28291 | bool result; | |
28292 | PyObject * obj0 = 0 ; | |
28293 | char *kwnames[] = { | |
28294 | (char *) "self", NULL | |
28295 | }; | |
28296 | ||
28297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28300 | { | |
28301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28302 | result = (bool)(arg1)->PageDown(); | |
28303 | ||
28304 | wxPyEndAllowThreads(__tstate); | |
28305 | if (PyErr_Occurred()) SWIG_fail; | |
28306 | } | |
28307 | { | |
28308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28309 | } | |
28310 | return resultobj; | |
28311 | fail: | |
28312 | return NULL; | |
28313 | } | |
28314 | ||
28315 | ||
c32bde28 | 28316 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28317 | PyObject *resultobj; |
28318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28319 | wxString *arg2 = 0 ; | |
ae8162c8 | 28320 | bool temp2 = false ; |
d55e5bfc RD |
28321 | PyObject * obj0 = 0 ; |
28322 | PyObject * obj1 = 0 ; | |
28323 | char *kwnames[] = { | |
28324 | (char *) "self",(char *) "text", NULL | |
28325 | }; | |
28326 | ||
28327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28330 | { | |
28331 | arg2 = wxString_in_helper(obj1); | |
28332 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28333 | temp2 = true; |
d55e5bfc RD |
28334 | } |
28335 | { | |
28336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28337 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28338 | ||
28339 | wxPyEndAllowThreads(__tstate); | |
28340 | if (PyErr_Occurred()) SWIG_fail; | |
28341 | } | |
28342 | Py_INCREF(Py_None); resultobj = Py_None; | |
28343 | { | |
28344 | if (temp2) | |
28345 | delete arg2; | |
28346 | } | |
28347 | return resultobj; | |
28348 | fail: | |
28349 | { | |
28350 | if (temp2) | |
28351 | delete arg2; | |
28352 | } | |
28353 | return NULL; | |
28354 | } | |
28355 | ||
28356 | ||
c32bde28 | 28357 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28358 | PyObject *resultobj; |
28359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28360 | wxString *arg2 = 0 ; | |
ae8162c8 | 28361 | bool temp2 = false ; |
d55e5bfc RD |
28362 | PyObject * obj0 = 0 ; |
28363 | PyObject * obj1 = 0 ; | |
28364 | char *kwnames[] = { | |
28365 | (char *) "self",(char *) "text", NULL | |
28366 | }; | |
28367 | ||
28368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28371 | { | |
28372 | arg2 = wxString_in_helper(obj1); | |
28373 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28374 | temp2 = true; |
d55e5bfc RD |
28375 | } |
28376 | { | |
28377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28378 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28379 | ||
28380 | wxPyEndAllowThreads(__tstate); | |
28381 | if (PyErr_Occurred()) SWIG_fail; | |
28382 | } | |
28383 | Py_INCREF(Py_None); resultobj = Py_None; | |
28384 | { | |
28385 | if (temp2) | |
28386 | delete arg2; | |
28387 | } | |
28388 | return resultobj; | |
28389 | fail: | |
28390 | { | |
28391 | if (temp2) | |
28392 | delete arg2; | |
28393 | } | |
28394 | return NULL; | |
28395 | } | |
28396 | ||
28397 | ||
c32bde28 | 28398 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28399 | PyObject *resultobj; |
28400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28401 | wxString result; | |
28402 | PyObject * obj0 = 0 ; | |
28403 | char *kwnames[] = { | |
28404 | (char *) "self", NULL | |
28405 | }; | |
28406 | ||
28407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28410 | { | |
28411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28412 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28413 | ||
28414 | wxPyEndAllowThreads(__tstate); | |
28415 | if (PyErr_Occurred()) SWIG_fail; | |
28416 | } | |
28417 | { | |
28418 | #if wxUSE_UNICODE | |
28419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28420 | #else | |
28421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28422 | #endif | |
28423 | } | |
28424 | return resultobj; | |
28425 | fail: | |
28426 | return NULL; | |
28427 | } | |
28428 | ||
28429 | ||
c32bde28 | 28430 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28431 | PyObject *resultobj; |
28432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28433 | wxString *arg2 = 0 ; | |
ae8162c8 | 28434 | bool temp2 = false ; |
d55e5bfc RD |
28435 | PyObject * obj0 = 0 ; |
28436 | PyObject * obj1 = 0 ; | |
28437 | char *kwnames[] = { | |
28438 | (char *) "self",(char *) "tip", NULL | |
28439 | }; | |
28440 | ||
28441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28444 | { | |
28445 | arg2 = wxString_in_helper(obj1); | |
28446 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 28447 | temp2 = true; |
d55e5bfc RD |
28448 | } |
28449 | { | |
28450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28451 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28452 | ||
28453 | wxPyEndAllowThreads(__tstate); | |
28454 | if (PyErr_Occurred()) SWIG_fail; | |
28455 | } | |
28456 | Py_INCREF(Py_None); resultobj = Py_None; | |
28457 | { | |
28458 | if (temp2) | |
28459 | delete arg2; | |
28460 | } | |
28461 | return resultobj; | |
28462 | fail: | |
28463 | { | |
28464 | if (temp2) | |
28465 | delete arg2; | |
28466 | } | |
28467 | return NULL; | |
28468 | } | |
28469 | ||
28470 | ||
c32bde28 | 28471 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28472 | PyObject *resultobj; |
28473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28474 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28475 | PyObject * obj0 = 0 ; | |
28476 | PyObject * obj1 = 0 ; | |
28477 | char *kwnames[] = { | |
28478 | (char *) "self",(char *) "tip", NULL | |
28479 | }; | |
28480 | ||
28481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28486 | { | |
28487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28488 | (arg1)->SetToolTip(arg2); | |
28489 | ||
28490 | wxPyEndAllowThreads(__tstate); | |
28491 | if (PyErr_Occurred()) SWIG_fail; | |
28492 | } | |
28493 | Py_INCREF(Py_None); resultobj = Py_None; | |
28494 | return resultobj; | |
28495 | fail: | |
28496 | return NULL; | |
28497 | } | |
28498 | ||
28499 | ||
c32bde28 | 28500 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28501 | PyObject *resultobj; |
28502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28503 | wxToolTip *result; | |
28504 | PyObject * obj0 = 0 ; | |
28505 | char *kwnames[] = { | |
28506 | (char *) "self", NULL | |
28507 | }; | |
28508 | ||
28509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",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 = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28515 | ||
28516 | wxPyEndAllowThreads(__tstate); | |
28517 | if (PyErr_Occurred()) SWIG_fail; | |
28518 | } | |
28519 | { | |
412d302d | 28520 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28521 | } |
28522 | return resultobj; | |
28523 | fail: | |
28524 | return NULL; | |
28525 | } | |
28526 | ||
28527 | ||
c32bde28 | 28528 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28529 | PyObject *resultobj; |
28530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28531 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28532 | PyObject * obj0 = 0 ; | |
28533 | PyObject * obj1 = 0 ; | |
28534 | char *kwnames[] = { | |
28535 | (char *) "self",(char *) "dropTarget", NULL | |
28536 | }; | |
28537 | ||
28538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28542 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28543 | { | |
28544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28545 | (arg1)->SetDropTarget(arg2); | |
28546 | ||
28547 | wxPyEndAllowThreads(__tstate); | |
28548 | if (PyErr_Occurred()) SWIG_fail; | |
28549 | } | |
28550 | Py_INCREF(Py_None); resultobj = Py_None; | |
28551 | return resultobj; | |
28552 | fail: | |
28553 | return NULL; | |
28554 | } | |
28555 | ||
28556 | ||
c32bde28 | 28557 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28558 | PyObject *resultobj; |
28559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28560 | wxPyDropTarget *result; | |
28561 | PyObject * obj0 = 0 ; | |
28562 | char *kwnames[] = { | |
28563 | (char *) "self", NULL | |
28564 | }; | |
28565 | ||
28566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28569 | { | |
28570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28571 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28572 | ||
28573 | wxPyEndAllowThreads(__tstate); | |
28574 | if (PyErr_Occurred()) SWIG_fail; | |
28575 | } | |
28576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28577 | return resultobj; | |
28578 | fail: | |
28579 | return NULL; | |
28580 | } | |
28581 | ||
28582 | ||
c32bde28 | 28583 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28584 | PyObject *resultobj; |
28585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28586 | bool arg2 ; | |
28587 | PyObject * obj0 = 0 ; | |
28588 | PyObject * obj1 = 0 ; | |
28589 | char *kwnames[] = { | |
28590 | (char *) "self",(char *) "accept", NULL | |
28591 | }; | |
28592 | ||
28593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
28594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28596 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28597 | if (PyErr_Occurred()) SWIG_fail; |
28598 | { | |
28599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28600 | (arg1)->DragAcceptFiles(arg2); | |
28601 | ||
28602 | wxPyEndAllowThreads(__tstate); | |
28603 | if (PyErr_Occurred()) SWIG_fail; | |
28604 | } | |
28605 | Py_INCREF(Py_None); resultobj = Py_None; | |
28606 | return resultobj; | |
28607 | fail: | |
28608 | return NULL; | |
28609 | } | |
28610 | ||
28611 | ||
c32bde28 | 28612 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28613 | PyObject *resultobj; |
28614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28615 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28616 | PyObject * obj0 = 0 ; | |
28617 | PyObject * obj1 = 0 ; | |
28618 | char *kwnames[] = { | |
28619 | (char *) "self",(char *) "constraints", NULL | |
28620 | }; | |
28621 | ||
28622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28627 | { | |
28628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28629 | (arg1)->SetConstraints(arg2); | |
28630 | ||
28631 | wxPyEndAllowThreads(__tstate); | |
28632 | if (PyErr_Occurred()) SWIG_fail; | |
28633 | } | |
28634 | Py_INCREF(Py_None); resultobj = Py_None; | |
28635 | return resultobj; | |
28636 | fail: | |
28637 | return NULL; | |
28638 | } | |
28639 | ||
28640 | ||
c32bde28 | 28641 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28642 | PyObject *resultobj; |
28643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28644 | wxLayoutConstraints *result; | |
28645 | PyObject * obj0 = 0 ; | |
28646 | char *kwnames[] = { | |
28647 | (char *) "self", NULL | |
28648 | }; | |
28649 | ||
28650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28653 | { | |
28654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28655 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28656 | ||
28657 | wxPyEndAllowThreads(__tstate); | |
28658 | if (PyErr_Occurred()) SWIG_fail; | |
28659 | } | |
28660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28661 | return resultobj; | |
28662 | fail: | |
28663 | return NULL; | |
28664 | } | |
28665 | ||
28666 | ||
c32bde28 | 28667 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28668 | PyObject *resultobj; |
28669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28670 | bool arg2 ; | |
28671 | PyObject * obj0 = 0 ; | |
28672 | PyObject * obj1 = 0 ; | |
28673 | char *kwnames[] = { | |
28674 | (char *) "self",(char *) "autoLayout", NULL | |
28675 | }; | |
28676 | ||
28677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28680 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28681 | if (PyErr_Occurred()) SWIG_fail; |
28682 | { | |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | (arg1)->SetAutoLayout(arg2); | |
28685 | ||
28686 | wxPyEndAllowThreads(__tstate); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | } | |
28689 | Py_INCREF(Py_None); resultobj = Py_None; | |
28690 | return resultobj; | |
28691 | fail: | |
28692 | return NULL; | |
28693 | } | |
28694 | ||
28695 | ||
c32bde28 | 28696 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28697 | PyObject *resultobj; |
28698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28699 | bool result; | |
28700 | PyObject * obj0 = 0 ; | |
28701 | char *kwnames[] = { | |
28702 | (char *) "self", NULL | |
28703 | }; | |
28704 | ||
28705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28708 | { | |
28709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28710 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28711 | ||
28712 | wxPyEndAllowThreads(__tstate); | |
28713 | if (PyErr_Occurred()) SWIG_fail; | |
28714 | } | |
28715 | { | |
28716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28717 | } | |
28718 | return resultobj; | |
28719 | fail: | |
28720 | return NULL; | |
28721 | } | |
28722 | ||
28723 | ||
c32bde28 | 28724 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28725 | PyObject *resultobj; |
28726 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28727 | bool result; | |
28728 | PyObject * obj0 = 0 ; | |
28729 | char *kwnames[] = { | |
28730 | (char *) "self", NULL | |
28731 | }; | |
28732 | ||
28733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28736 | { | |
28737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28738 | result = (bool)(arg1)->Layout(); | |
28739 | ||
28740 | wxPyEndAllowThreads(__tstate); | |
28741 | if (PyErr_Occurred()) SWIG_fail; | |
28742 | } | |
28743 | { | |
28744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28745 | } | |
28746 | return resultobj; | |
28747 | fail: | |
28748 | return NULL; | |
28749 | } | |
28750 | ||
28751 | ||
c32bde28 | 28752 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28753 | PyObject *resultobj; |
28754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28755 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28756 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28757 | PyObject * obj0 = 0 ; |
28758 | PyObject * obj1 = 0 ; | |
28759 | PyObject * obj2 = 0 ; | |
28760 | char *kwnames[] = { | |
28761 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28762 | }; | |
28763 | ||
28764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28769 | if (obj2) { | |
c32bde28 | 28770 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28771 | if (PyErr_Occurred()) SWIG_fail; |
28772 | } | |
28773 | { | |
28774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28775 | (arg1)->SetSizer(arg2,arg3); | |
28776 | ||
28777 | wxPyEndAllowThreads(__tstate); | |
28778 | if (PyErr_Occurred()) SWIG_fail; | |
28779 | } | |
28780 | Py_INCREF(Py_None); resultobj = Py_None; | |
28781 | return resultobj; | |
28782 | fail: | |
28783 | return NULL; | |
28784 | } | |
28785 | ||
28786 | ||
c32bde28 | 28787 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28788 | PyObject *resultobj; |
28789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28790 | wxSizer *arg2 = (wxSizer *) 0 ; | |
ae8162c8 | 28791 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28792 | PyObject * obj0 = 0 ; |
28793 | PyObject * obj1 = 0 ; | |
28794 | PyObject * obj2 = 0 ; | |
28795 | char *kwnames[] = { | |
28796 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28797 | }; | |
28798 | ||
28799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28804 | if (obj2) { | |
c32bde28 | 28805 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28806 | if (PyErr_Occurred()) SWIG_fail; |
28807 | } | |
28808 | { | |
28809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28810 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28811 | ||
28812 | wxPyEndAllowThreads(__tstate); | |
28813 | if (PyErr_Occurred()) SWIG_fail; | |
28814 | } | |
28815 | Py_INCREF(Py_None); resultobj = Py_None; | |
28816 | return resultobj; | |
28817 | fail: | |
28818 | return NULL; | |
28819 | } | |
28820 | ||
28821 | ||
c32bde28 | 28822 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28823 | PyObject *resultobj; |
28824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28825 | wxSizer *result; | |
28826 | PyObject * obj0 = 0 ; | |
28827 | char *kwnames[] = { | |
28828 | (char *) "self", NULL | |
28829 | }; | |
28830 | ||
28831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
28832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28834 | { | |
28835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28836 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28837 | ||
28838 | wxPyEndAllowThreads(__tstate); | |
28839 | if (PyErr_Occurred()) SWIG_fail; | |
28840 | } | |
28841 | { | |
412d302d | 28842 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28843 | } |
28844 | return resultobj; | |
28845 | fail: | |
28846 | return NULL; | |
28847 | } | |
28848 | ||
28849 | ||
c32bde28 | 28850 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28851 | PyObject *resultobj; |
28852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28853 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28854 | PyObject * obj0 = 0 ; | |
28855 | PyObject * obj1 = 0 ; | |
28856 | char *kwnames[] = { | |
28857 | (char *) "self",(char *) "sizer", NULL | |
28858 | }; | |
28859 | ||
28860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
28861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28863 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28865 | { | |
28866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28867 | (arg1)->SetContainingSizer(arg2); | |
28868 | ||
28869 | wxPyEndAllowThreads(__tstate); | |
28870 | if (PyErr_Occurred()) SWIG_fail; | |
28871 | } | |
28872 | Py_INCREF(Py_None); resultobj = Py_None; | |
28873 | return resultobj; | |
28874 | fail: | |
28875 | return NULL; | |
28876 | } | |
28877 | ||
28878 | ||
c32bde28 | 28879 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28880 | PyObject *resultobj; |
28881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28882 | wxSizer *result; | |
28883 | PyObject * obj0 = 0 ; | |
28884 | char *kwnames[] = { | |
28885 | (char *) "self", NULL | |
28886 | }; | |
28887 | ||
28888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
28889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28891 | { | |
28892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28893 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28894 | ||
28895 | wxPyEndAllowThreads(__tstate); | |
28896 | if (PyErr_Occurred()) SWIG_fail; | |
28897 | } | |
28898 | { | |
412d302d | 28899 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28900 | } |
28901 | return resultobj; | |
28902 | fail: | |
28903 | return NULL; | |
28904 | } | |
28905 | ||
28906 | ||
c32bde28 | 28907 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28908 | PyObject *resultobj; |
28909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28910 | PyObject * obj0 = 0 ; | |
28911 | char *kwnames[] = { | |
28912 | (char *) "self", NULL | |
28913 | }; | |
28914 | ||
28915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28918 | { | |
28919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28920 | (arg1)->InheritAttributes(); | |
28921 | ||
28922 | wxPyEndAllowThreads(__tstate); | |
28923 | if (PyErr_Occurred()) SWIG_fail; | |
28924 | } | |
28925 | Py_INCREF(Py_None); resultobj = Py_None; | |
28926 | return resultobj; | |
28927 | fail: | |
28928 | return NULL; | |
28929 | } | |
28930 | ||
28931 | ||
c32bde28 | 28932 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28933 | PyObject *resultobj; |
28934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28935 | bool result; | |
28936 | PyObject * obj0 = 0 ; | |
28937 | char *kwnames[] = { | |
28938 | (char *) "self", NULL | |
28939 | }; | |
28940 | ||
28941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28944 | { | |
28945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28946 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28947 | ||
28948 | wxPyEndAllowThreads(__tstate); | |
28949 | if (PyErr_Occurred()) SWIG_fail; | |
28950 | } | |
28951 | { | |
28952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28953 | } | |
28954 | return resultobj; | |
28955 | fail: | |
28956 | return NULL; | |
28957 | } | |
28958 | ||
28959 | ||
c32bde28 | 28960 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28961 | PyObject *obj; |
28962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28963 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28964 | Py_INCREF(obj); | |
28965 | return Py_BuildValue((char *)""); | |
28966 | } | |
c32bde28 | 28967 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28968 | PyObject *resultobj; |
28969 | long arg1 ; | |
28970 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28971 | wxWindow *result; | |
28972 | PyObject * obj0 = 0 ; | |
28973 | PyObject * obj1 = 0 ; | |
28974 | char *kwnames[] = { | |
28975 | (char *) "id",(char *) "parent", NULL | |
28976 | }; | |
28977 | ||
28978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 28979 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
28980 | if (PyErr_Occurred()) SWIG_fail; |
28981 | if (obj1) { | |
28982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28984 | } | |
28985 | { | |
0439c23b | 28986 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28988 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28989 | ||
28990 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28991 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28992 | } |
28993 | { | |
412d302d | 28994 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28995 | } |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
c32bde28 | 29002 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29003 | PyObject *resultobj; |
29004 | wxString *arg1 = 0 ; | |
29005 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29006 | wxWindow *result; | |
ae8162c8 | 29007 | bool temp1 = false ; |
d55e5bfc RD |
29008 | PyObject * obj0 = 0 ; |
29009 | PyObject * obj1 = 0 ; | |
29010 | char *kwnames[] = { | |
29011 | (char *) "name",(char *) "parent", NULL | |
29012 | }; | |
29013 | ||
29014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
29015 | { | |
29016 | arg1 = wxString_in_helper(obj0); | |
29017 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29018 | temp1 = true; |
d55e5bfc RD |
29019 | } |
29020 | if (obj1) { | |
29021 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29023 | } | |
29024 | { | |
0439c23b | 29025 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29027 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
29028 | ||
29029 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29030 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29031 | } |
29032 | { | |
412d302d | 29033 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29034 | } |
29035 | { | |
29036 | if (temp1) | |
29037 | delete arg1; | |
29038 | } | |
29039 | return resultobj; | |
29040 | fail: | |
29041 | { | |
29042 | if (temp1) | |
29043 | delete arg1; | |
29044 | } | |
29045 | return NULL; | |
29046 | } | |
29047 | ||
29048 | ||
c32bde28 | 29049 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29050 | PyObject *resultobj; |
29051 | wxString *arg1 = 0 ; | |
29052 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29053 | wxWindow *result; | |
ae8162c8 | 29054 | bool temp1 = false ; |
d55e5bfc RD |
29055 | PyObject * obj0 = 0 ; |
29056 | PyObject * obj1 = 0 ; | |
29057 | char *kwnames[] = { | |
29058 | (char *) "label",(char *) "parent", NULL | |
29059 | }; | |
29060 | ||
29061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
29062 | { | |
29063 | arg1 = wxString_in_helper(obj0); | |
29064 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29065 | temp1 = true; |
d55e5bfc RD |
29066 | } |
29067 | if (obj1) { | |
29068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29070 | } | |
29071 | { | |
0439c23b | 29072 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29074 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
29075 | ||
29076 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29077 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29078 | } |
29079 | { | |
412d302d | 29080 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29081 | } |
29082 | { | |
29083 | if (temp1) | |
29084 | delete arg1; | |
29085 | } | |
29086 | return resultobj; | |
29087 | fail: | |
29088 | { | |
29089 | if (temp1) | |
29090 | delete arg1; | |
29091 | } | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
c32bde28 | 29096 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29097 | PyObject *resultobj; |
29098 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29099 | unsigned long arg2 ; | |
29100 | wxWindow *result; | |
29101 | PyObject * obj0 = 0 ; | |
29102 | PyObject * obj1 = 0 ; | |
29103 | char *kwnames[] = { | |
29104 | (char *) "parent",(char *) "_hWnd", NULL | |
29105 | }; | |
29106 | ||
29107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
29108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29110 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29111 | if (PyErr_Occurred()) SWIG_fail; |
29112 | { | |
29113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29114 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
29115 | ||
29116 | wxPyEndAllowThreads(__tstate); | |
29117 | if (PyErr_Occurred()) SWIG_fail; | |
29118 | } | |
29119 | { | |
412d302d | 29120 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29121 | } |
29122 | return resultobj; | |
29123 | fail: | |
29124 | return NULL; | |
29125 | } | |
29126 | ||
29127 | ||
c32bde28 | 29128 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29129 | PyObject *resultobj; |
29130 | wxValidator *result; | |
29131 | char *kwnames[] = { | |
29132 | NULL | |
29133 | }; | |
29134 | ||
29135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29136 | { | |
29137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29138 | result = (wxValidator *)new wxValidator(); | |
29139 | ||
29140 | wxPyEndAllowThreads(__tstate); | |
29141 | if (PyErr_Occurred()) SWIG_fail; | |
29142 | } | |
b0f7404b | 29143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29144 | return resultobj; |
29145 | fail: | |
29146 | return NULL; | |
29147 | } | |
29148 | ||
29149 | ||
c32bde28 | 29150 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29151 | PyObject *resultobj; |
29152 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29153 | wxValidator *result; | |
29154 | PyObject * obj0 = 0 ; | |
29155 | char *kwnames[] = { | |
29156 | (char *) "self", NULL | |
29157 | }; | |
29158 | ||
29159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29162 | { | |
29163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29164 | result = (wxValidator *)(arg1)->Clone(); | |
29165 | ||
29166 | wxPyEndAllowThreads(__tstate); | |
29167 | if (PyErr_Occurred()) SWIG_fail; | |
29168 | } | |
29169 | { | |
412d302d | 29170 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29171 | } |
29172 | return resultobj; | |
29173 | fail: | |
29174 | return NULL; | |
29175 | } | |
29176 | ||
29177 | ||
c32bde28 | 29178 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29179 | PyObject *resultobj; |
29180 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29181 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29182 | bool result; | |
29183 | PyObject * obj0 = 0 ; | |
29184 | PyObject * obj1 = 0 ; | |
29185 | char *kwnames[] = { | |
29186 | (char *) "self",(char *) "parent", NULL | |
29187 | }; | |
29188 | ||
29189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29194 | { | |
29195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29196 | result = (bool)(arg1)->Validate(arg2); | |
29197 | ||
29198 | wxPyEndAllowThreads(__tstate); | |
29199 | if (PyErr_Occurred()) SWIG_fail; | |
29200 | } | |
29201 | { | |
29202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29203 | } | |
29204 | return resultobj; | |
29205 | fail: | |
29206 | return NULL; | |
29207 | } | |
29208 | ||
29209 | ||
c32bde28 | 29210 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29211 | PyObject *resultobj; |
29212 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29213 | bool result; | |
29214 | PyObject * obj0 = 0 ; | |
29215 | char *kwnames[] = { | |
29216 | (char *) "self", NULL | |
29217 | }; | |
29218 | ||
29219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29222 | { | |
29223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29224 | result = (bool)(arg1)->TransferToWindow(); | |
29225 | ||
29226 | wxPyEndAllowThreads(__tstate); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
29228 | } | |
29229 | { | |
29230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29231 | } | |
29232 | return resultobj; | |
29233 | fail: | |
29234 | return NULL; | |
29235 | } | |
29236 | ||
29237 | ||
c32bde28 | 29238 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29239 | PyObject *resultobj; |
29240 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29241 | bool result; | |
29242 | PyObject * obj0 = 0 ; | |
29243 | char *kwnames[] = { | |
29244 | (char *) "self", NULL | |
29245 | }; | |
29246 | ||
29247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29250 | { | |
29251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29252 | result = (bool)(arg1)->TransferFromWindow(); | |
29253 | ||
29254 | wxPyEndAllowThreads(__tstate); | |
29255 | if (PyErr_Occurred()) SWIG_fail; | |
29256 | } | |
29257 | { | |
29258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29259 | } | |
29260 | return resultobj; | |
29261 | fail: | |
29262 | return NULL; | |
29263 | } | |
29264 | ||
29265 | ||
c32bde28 | 29266 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29267 | PyObject *resultobj; |
29268 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29269 | wxWindow *result; | |
29270 | PyObject * obj0 = 0 ; | |
29271 | char *kwnames[] = { | |
29272 | (char *) "self", NULL | |
29273 | }; | |
29274 | ||
29275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29278 | { | |
29279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29280 | result = (wxWindow *)(arg1)->GetWindow(); | |
29281 | ||
29282 | wxPyEndAllowThreads(__tstate); | |
29283 | if (PyErr_Occurred()) SWIG_fail; | |
29284 | } | |
29285 | { | |
412d302d | 29286 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29287 | } |
29288 | return resultobj; | |
29289 | fail: | |
29290 | return NULL; | |
29291 | } | |
29292 | ||
29293 | ||
c32bde28 | 29294 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29295 | PyObject *resultobj; |
29296 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29298 | PyObject * obj0 = 0 ; | |
29299 | PyObject * obj1 = 0 ; | |
29300 | char *kwnames[] = { | |
29301 | (char *) "self",(char *) "window", NULL | |
29302 | }; | |
29303 | ||
29304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29309 | { | |
29310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29311 | (arg1)->SetWindow(arg2); | |
29312 | ||
29313 | wxPyEndAllowThreads(__tstate); | |
29314 | if (PyErr_Occurred()) SWIG_fail; | |
29315 | } | |
29316 | Py_INCREF(Py_None); resultobj = Py_None; | |
29317 | return resultobj; | |
29318 | fail: | |
29319 | return NULL; | |
29320 | } | |
29321 | ||
29322 | ||
c32bde28 | 29323 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29324 | PyObject *resultobj; |
29325 | bool result; | |
29326 | char *kwnames[] = { | |
29327 | NULL | |
29328 | }; | |
29329 | ||
29330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29331 | { | |
29332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29333 | result = (bool)wxValidator::IsSilent(); | |
29334 | ||
29335 | wxPyEndAllowThreads(__tstate); | |
29336 | if (PyErr_Occurred()) SWIG_fail; | |
29337 | } | |
29338 | { | |
29339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29340 | } | |
29341 | return resultobj; | |
29342 | fail: | |
29343 | return NULL; | |
29344 | } | |
29345 | ||
29346 | ||
c32bde28 | 29347 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29348 | PyObject *resultobj; |
ae8162c8 | 29349 | int arg1 = (int) true ; |
d55e5bfc RD |
29350 | PyObject * obj0 = 0 ; |
29351 | char *kwnames[] = { | |
29352 | (char *) "doIt", NULL | |
29353 | }; | |
29354 | ||
29355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29356 | if (obj0) { | |
c32bde28 | 29357 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29358 | if (PyErr_Occurred()) SWIG_fail; |
29359 | } | |
29360 | { | |
29361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29362 | wxValidator::SetBellOnError(arg1); | |
29363 | ||
29364 | wxPyEndAllowThreads(__tstate); | |
29365 | if (PyErr_Occurred()) SWIG_fail; | |
29366 | } | |
29367 | Py_INCREF(Py_None); resultobj = Py_None; | |
29368 | return resultobj; | |
29369 | fail: | |
29370 | return NULL; | |
29371 | } | |
29372 | ||
29373 | ||
c32bde28 | 29374 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29375 | PyObject *obj; |
29376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29377 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29378 | Py_INCREF(obj); | |
29379 | return Py_BuildValue((char *)""); | |
29380 | } | |
c32bde28 | 29381 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29382 | PyObject *resultobj; |
29383 | wxPyValidator *result; | |
29384 | char *kwnames[] = { | |
29385 | NULL | |
29386 | }; | |
29387 | ||
29388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29389 | { | |
29390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29391 | result = (wxPyValidator *)new wxPyValidator(); | |
29392 | ||
29393 | wxPyEndAllowThreads(__tstate); | |
29394 | if (PyErr_Occurred()) SWIG_fail; | |
29395 | } | |
29396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29397 | return resultobj; | |
29398 | fail: | |
29399 | return NULL; | |
29400 | } | |
29401 | ||
29402 | ||
c32bde28 | 29403 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29404 | PyObject *resultobj; |
29405 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29406 | PyObject *arg2 = (PyObject *) 0 ; | |
29407 | PyObject *arg3 = (PyObject *) 0 ; | |
ae8162c8 | 29408 | int arg4 = (int) true ; |
d55e5bfc RD |
29409 | PyObject * obj0 = 0 ; |
29410 | PyObject * obj1 = 0 ; | |
29411 | PyObject * obj2 = 0 ; | |
29412 | PyObject * obj3 = 0 ; | |
29413 | char *kwnames[] = { | |
29414 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29415 | }; | |
29416 | ||
29417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29420 | arg2 = obj1; | |
29421 | arg3 = obj2; | |
29422 | if (obj3) { | |
c32bde28 | 29423 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29424 | if (PyErr_Occurred()) SWIG_fail; |
29425 | } | |
29426 | { | |
29427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29428 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29429 | ||
29430 | wxPyEndAllowThreads(__tstate); | |
29431 | if (PyErr_Occurred()) SWIG_fail; | |
29432 | } | |
29433 | Py_INCREF(Py_None); resultobj = Py_None; | |
29434 | return resultobj; | |
29435 | fail: | |
29436 | return NULL; | |
29437 | } | |
29438 | ||
29439 | ||
c32bde28 | 29440 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29441 | PyObject *obj; |
29442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29443 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29444 | Py_INCREF(obj); | |
29445 | return Py_BuildValue((char *)""); | |
29446 | } | |
c32bde28 | 29447 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29448 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29449 | return 1; | |
29450 | } | |
29451 | ||
29452 | ||
29453 | static PyObject *_wrap_DefaultValidator_get() { | |
29454 | PyObject *pyobj; | |
29455 | ||
29456 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29457 | return pyobj; | |
29458 | } | |
29459 | ||
29460 | ||
c32bde28 | 29461 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29462 | PyObject *resultobj; |
29463 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29464 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29465 | long arg2 = (long) 0 ; | |
29466 | wxMenu *result; | |
ae8162c8 | 29467 | bool temp1 = false ; |
d55e5bfc RD |
29468 | PyObject * obj0 = 0 ; |
29469 | PyObject * obj1 = 0 ; | |
29470 | char *kwnames[] = { | |
29471 | (char *) "title",(char *) "style", NULL | |
29472 | }; | |
29473 | ||
29474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29475 | if (obj0) { | |
29476 | { | |
29477 | arg1 = wxString_in_helper(obj0); | |
29478 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 29479 | temp1 = true; |
d55e5bfc RD |
29480 | } |
29481 | } | |
29482 | if (obj1) { | |
c32bde28 | 29483 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29484 | if (PyErr_Occurred()) SWIG_fail; |
29485 | } | |
29486 | { | |
0439c23b | 29487 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29489 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29490 | ||
29491 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29492 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29493 | } |
b0f7404b | 29494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29495 | { |
29496 | if (temp1) | |
29497 | delete arg1; | |
29498 | } | |
29499 | return resultobj; | |
29500 | fail: | |
29501 | { | |
29502 | if (temp1) | |
29503 | delete arg1; | |
29504 | } | |
29505 | return NULL; | |
29506 | } | |
29507 | ||
29508 | ||
c32bde28 | 29509 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29510 | PyObject *resultobj; |
29511 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29512 | int arg2 ; | |
29513 | wxString *arg3 = 0 ; | |
29514 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29515 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29516 | int arg5 = (int) wxITEM_NORMAL ; | |
29517 | wxMenuItem *result; | |
ae8162c8 RD |
29518 | bool temp3 = false ; |
29519 | bool temp4 = false ; | |
d55e5bfc RD |
29520 | PyObject * obj0 = 0 ; |
29521 | PyObject * obj1 = 0 ; | |
29522 | PyObject * obj2 = 0 ; | |
29523 | PyObject * obj3 = 0 ; | |
29524 | PyObject * obj4 = 0 ; | |
29525 | char *kwnames[] = { | |
29526 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29527 | }; | |
29528 | ||
29529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29532 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29533 | if (PyErr_Occurred()) SWIG_fail; |
29534 | { | |
29535 | arg3 = wxString_in_helper(obj2); | |
29536 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29537 | temp3 = true; |
d55e5bfc RD |
29538 | } |
29539 | if (obj3) { | |
29540 | { | |
29541 | arg4 = wxString_in_helper(obj3); | |
29542 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29543 | temp4 = true; |
d55e5bfc RD |
29544 | } |
29545 | } | |
29546 | if (obj4) { | |
c32bde28 | 29547 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29548 | if (PyErr_Occurred()) SWIG_fail; |
29549 | } | |
29550 | { | |
29551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29552 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29553 | ||
29554 | wxPyEndAllowThreads(__tstate); | |
29555 | if (PyErr_Occurred()) SWIG_fail; | |
29556 | } | |
29557 | { | |
412d302d | 29558 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29559 | } |
29560 | { | |
29561 | if (temp3) | |
29562 | delete arg3; | |
29563 | } | |
29564 | { | |
29565 | if (temp4) | |
29566 | delete arg4; | |
29567 | } | |
29568 | return resultobj; | |
29569 | fail: | |
29570 | { | |
29571 | if (temp3) | |
29572 | delete arg3; | |
29573 | } | |
29574 | { | |
29575 | if (temp4) | |
29576 | delete arg4; | |
29577 | } | |
29578 | return NULL; | |
29579 | } | |
29580 | ||
29581 | ||
c32bde28 | 29582 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29583 | PyObject *resultobj; |
29584 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29585 | wxMenuItem *result; | |
29586 | PyObject * obj0 = 0 ; | |
29587 | char *kwnames[] = { | |
29588 | (char *) "self", NULL | |
29589 | }; | |
29590 | ||
29591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29594 | { | |
29595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29596 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29597 | ||
29598 | wxPyEndAllowThreads(__tstate); | |
29599 | if (PyErr_Occurred()) SWIG_fail; | |
29600 | } | |
29601 | { | |
412d302d | 29602 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29603 | } |
29604 | return resultobj; | |
29605 | fail: | |
29606 | return NULL; | |
29607 | } | |
29608 | ||
29609 | ||
c32bde28 | 29610 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29611 | PyObject *resultobj; |
29612 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29613 | int arg2 ; | |
29614 | wxString *arg3 = 0 ; | |
29615 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29616 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29617 | wxMenuItem *result; | |
ae8162c8 RD |
29618 | bool temp3 = false ; |
29619 | bool temp4 = false ; | |
d55e5bfc RD |
29620 | PyObject * obj0 = 0 ; |
29621 | PyObject * obj1 = 0 ; | |
29622 | PyObject * obj2 = 0 ; | |
29623 | PyObject * obj3 = 0 ; | |
29624 | char *kwnames[] = { | |
29625 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29626 | }; | |
29627 | ||
29628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29631 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29632 | if (PyErr_Occurred()) SWIG_fail; |
29633 | { | |
29634 | arg3 = wxString_in_helper(obj2); | |
29635 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29636 | temp3 = true; |
d55e5bfc RD |
29637 | } |
29638 | if (obj3) { | |
29639 | { | |
29640 | arg4 = wxString_in_helper(obj3); | |
29641 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29642 | temp4 = true; |
d55e5bfc RD |
29643 | } |
29644 | } | |
29645 | { | |
29646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29647 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29648 | ||
29649 | wxPyEndAllowThreads(__tstate); | |
29650 | if (PyErr_Occurred()) SWIG_fail; | |
29651 | } | |
29652 | { | |
412d302d | 29653 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29654 | } |
29655 | { | |
29656 | if (temp3) | |
29657 | delete arg3; | |
29658 | } | |
29659 | { | |
29660 | if (temp4) | |
29661 | delete arg4; | |
29662 | } | |
29663 | return resultobj; | |
29664 | fail: | |
29665 | { | |
29666 | if (temp3) | |
29667 | delete arg3; | |
29668 | } | |
29669 | { | |
29670 | if (temp4) | |
29671 | delete arg4; | |
29672 | } | |
29673 | return NULL; | |
29674 | } | |
29675 | ||
29676 | ||
c32bde28 | 29677 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29678 | PyObject *resultobj; |
29679 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29680 | int arg2 ; | |
29681 | wxString *arg3 = 0 ; | |
29682 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29683 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29684 | wxMenuItem *result; | |
ae8162c8 RD |
29685 | bool temp3 = false ; |
29686 | bool temp4 = false ; | |
d55e5bfc RD |
29687 | PyObject * obj0 = 0 ; |
29688 | PyObject * obj1 = 0 ; | |
29689 | PyObject * obj2 = 0 ; | |
29690 | PyObject * obj3 = 0 ; | |
29691 | char *kwnames[] = { | |
29692 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29693 | }; | |
29694 | ||
29695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29698 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29699 | if (PyErr_Occurred()) SWIG_fail; |
29700 | { | |
29701 | arg3 = wxString_in_helper(obj2); | |
29702 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29703 | temp3 = true; |
d55e5bfc RD |
29704 | } |
29705 | if (obj3) { | |
29706 | { | |
29707 | arg4 = wxString_in_helper(obj3); | |
29708 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29709 | temp4 = true; |
d55e5bfc RD |
29710 | } |
29711 | } | |
29712 | { | |
29713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29714 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29715 | ||
29716 | wxPyEndAllowThreads(__tstate); | |
29717 | if (PyErr_Occurred()) SWIG_fail; | |
29718 | } | |
29719 | { | |
412d302d | 29720 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29721 | } |
29722 | { | |
29723 | if (temp3) | |
29724 | delete arg3; | |
29725 | } | |
29726 | { | |
29727 | if (temp4) | |
29728 | delete arg4; | |
29729 | } | |
29730 | return resultobj; | |
29731 | fail: | |
29732 | { | |
29733 | if (temp3) | |
29734 | delete arg3; | |
29735 | } | |
29736 | { | |
29737 | if (temp4) | |
29738 | delete arg4; | |
29739 | } | |
29740 | return NULL; | |
29741 | } | |
29742 | ||
29743 | ||
c32bde28 | 29744 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29745 | PyObject *resultobj; |
29746 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29747 | int arg2 ; | |
29748 | wxString *arg3 = 0 ; | |
29749 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29750 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29751 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29752 | wxMenuItem *result; | |
ae8162c8 RD |
29753 | bool temp3 = false ; |
29754 | bool temp5 = false ; | |
d55e5bfc RD |
29755 | PyObject * obj0 = 0 ; |
29756 | PyObject * obj1 = 0 ; | |
29757 | PyObject * obj2 = 0 ; | |
29758 | PyObject * obj3 = 0 ; | |
29759 | PyObject * obj4 = 0 ; | |
29760 | char *kwnames[] = { | |
29761 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29762 | }; | |
29763 | ||
29764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29767 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29768 | if (PyErr_Occurred()) SWIG_fail; |
29769 | { | |
29770 | arg3 = wxString_in_helper(obj2); | |
29771 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29772 | temp3 = true; |
d55e5bfc RD |
29773 | } |
29774 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29776 | if (obj4) { | |
29777 | { | |
29778 | arg5 = wxString_in_helper(obj4); | |
29779 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29780 | temp5 = true; |
d55e5bfc RD |
29781 | } |
29782 | } | |
29783 | { | |
29784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29785 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29786 | ||
29787 | wxPyEndAllowThreads(__tstate); | |
29788 | if (PyErr_Occurred()) SWIG_fail; | |
29789 | } | |
29790 | { | |
412d302d | 29791 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29792 | } |
29793 | { | |
29794 | if (temp3) | |
29795 | delete arg3; | |
29796 | } | |
29797 | { | |
29798 | if (temp5) | |
29799 | delete arg5; | |
29800 | } | |
29801 | return resultobj; | |
29802 | fail: | |
29803 | { | |
29804 | if (temp3) | |
29805 | delete arg3; | |
29806 | } | |
29807 | { | |
29808 | if (temp5) | |
29809 | delete arg5; | |
29810 | } | |
29811 | return NULL; | |
29812 | } | |
29813 | ||
29814 | ||
c32bde28 | 29815 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29816 | PyObject *resultobj; |
29817 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29818 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29819 | wxMenuItem *result; | |
29820 | PyObject * obj0 = 0 ; | |
29821 | PyObject * obj1 = 0 ; | |
29822 | char *kwnames[] = { | |
29823 | (char *) "self",(char *) "item", NULL | |
29824 | }; | |
29825 | ||
29826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
29827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29831 | { | |
29832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29833 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
29834 | ||
29835 | wxPyEndAllowThreads(__tstate); | |
29836 | if (PyErr_Occurred()) SWIG_fail; | |
29837 | } | |
29838 | { | |
412d302d | 29839 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29840 | } |
29841 | return resultobj; | |
29842 | fail: | |
29843 | return NULL; | |
29844 | } | |
29845 | ||
29846 | ||
c32bde28 | 29847 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29848 | PyObject *resultobj; |
29849 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29850 | PyObject * obj0 = 0 ; | |
29851 | char *kwnames[] = { | |
29852 | (char *) "self", NULL | |
29853 | }; | |
29854 | ||
29855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
29856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29858 | { | |
29859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29860 | (arg1)->Break(); | |
29861 | ||
29862 | wxPyEndAllowThreads(__tstate); | |
29863 | if (PyErr_Occurred()) SWIG_fail; | |
29864 | } | |
29865 | Py_INCREF(Py_None); resultobj = Py_None; | |
29866 | return resultobj; | |
29867 | fail: | |
29868 | return NULL; | |
29869 | } | |
29870 | ||
29871 | ||
c32bde28 | 29872 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29873 | PyObject *resultobj; |
29874 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29875 | size_t arg2 ; | |
29876 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
29877 | wxMenuItem *result; | |
29878 | PyObject * obj0 = 0 ; | |
29879 | PyObject * obj1 = 0 ; | |
29880 | PyObject * obj2 = 0 ; | |
29881 | char *kwnames[] = { | |
29882 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29883 | }; | |
29884 | ||
29885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29888 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29889 | if (PyErr_Occurred()) SWIG_fail; |
29890 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29892 | { | |
29893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29894 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
29895 | ||
29896 | wxPyEndAllowThreads(__tstate); | |
29897 | if (PyErr_Occurred()) SWIG_fail; | |
29898 | } | |
29899 | { | |
412d302d | 29900 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29901 | } |
29902 | return resultobj; | |
29903 | fail: | |
29904 | return NULL; | |
29905 | } | |
29906 | ||
29907 | ||
c32bde28 | 29908 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29909 | PyObject *resultobj; |
29910 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29911 | size_t arg2 ; | |
29912 | int arg3 ; | |
29913 | wxString *arg4 = 0 ; | |
29914 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29915 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29916 | int arg6 = (int) wxITEM_NORMAL ; | |
29917 | wxMenuItem *result; | |
ae8162c8 RD |
29918 | bool temp4 = false ; |
29919 | bool temp5 = false ; | |
d55e5bfc RD |
29920 | PyObject * obj0 = 0 ; |
29921 | PyObject * obj1 = 0 ; | |
29922 | PyObject * obj2 = 0 ; | |
29923 | PyObject * obj3 = 0 ; | |
29924 | PyObject * obj4 = 0 ; | |
29925 | PyObject * obj5 = 0 ; | |
29926 | char *kwnames[] = { | |
29927 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29928 | }; | |
29929 | ||
29930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29933 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29934 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 29935 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29936 | if (PyErr_Occurred()) SWIG_fail; |
29937 | { | |
29938 | arg4 = wxString_in_helper(obj3); | |
29939 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 29940 | temp4 = true; |
d55e5bfc RD |
29941 | } |
29942 | if (obj4) { | |
29943 | { | |
29944 | arg5 = wxString_in_helper(obj4); | |
29945 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 29946 | temp5 = true; |
d55e5bfc RD |
29947 | } |
29948 | } | |
29949 | if (obj5) { | |
c32bde28 | 29950 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
29951 | if (PyErr_Occurred()) SWIG_fail; |
29952 | } | |
29953 | { | |
29954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29955 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
29956 | ||
29957 | wxPyEndAllowThreads(__tstate); | |
29958 | if (PyErr_Occurred()) SWIG_fail; | |
29959 | } | |
29960 | { | |
412d302d | 29961 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29962 | } |
29963 | { | |
29964 | if (temp4) | |
29965 | delete arg4; | |
29966 | } | |
29967 | { | |
29968 | if (temp5) | |
29969 | delete arg5; | |
29970 | } | |
29971 | return resultobj; | |
29972 | fail: | |
29973 | { | |
29974 | if (temp4) | |
29975 | delete arg4; | |
29976 | } | |
29977 | { | |
29978 | if (temp5) | |
29979 | delete arg5; | |
29980 | } | |
29981 | return NULL; | |
29982 | } | |
29983 | ||
29984 | ||
c32bde28 | 29985 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29986 | PyObject *resultobj; |
29987 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29988 | size_t arg2 ; | |
29989 | wxMenuItem *result; | |
29990 | PyObject * obj0 = 0 ; | |
29991 | PyObject * obj1 = 0 ; | |
29992 | char *kwnames[] = { | |
29993 | (char *) "self",(char *) "pos", NULL | |
29994 | }; | |
29995 | ||
29996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 29999 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30000 | if (PyErr_Occurred()) SWIG_fail; |
30001 | { | |
30002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30003 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
30004 | ||
30005 | wxPyEndAllowThreads(__tstate); | |
30006 | if (PyErr_Occurred()) SWIG_fail; | |
30007 | } | |
30008 | { | |
412d302d | 30009 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30010 | } |
30011 | return resultobj; | |
30012 | fail: | |
30013 | return NULL; | |
30014 | } | |
30015 | ||
30016 | ||
c32bde28 | 30017 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30018 | PyObject *resultobj; |
30019 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30020 | size_t arg2 ; | |
30021 | int arg3 ; | |
30022 | wxString *arg4 = 0 ; | |
30023 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30024 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30025 | wxMenuItem *result; | |
ae8162c8 RD |
30026 | bool temp4 = false ; |
30027 | bool temp5 = false ; | |
d55e5bfc RD |
30028 | PyObject * obj0 = 0 ; |
30029 | PyObject * obj1 = 0 ; | |
30030 | PyObject * obj2 = 0 ; | |
30031 | PyObject * obj3 = 0 ; | |
30032 | PyObject * obj4 = 0 ; | |
30033 | char *kwnames[] = { | |
30034 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30035 | }; | |
30036 | ||
30037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30040 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30041 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30042 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30043 | if (PyErr_Occurred()) SWIG_fail; |
30044 | { | |
30045 | arg4 = wxString_in_helper(obj3); | |
30046 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30047 | temp4 = true; |
d55e5bfc RD |
30048 | } |
30049 | if (obj4) { | |
30050 | { | |
30051 | arg5 = wxString_in_helper(obj4); | |
30052 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30053 | temp5 = true; |
d55e5bfc RD |
30054 | } |
30055 | } | |
30056 | { | |
30057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30058 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30059 | ||
30060 | wxPyEndAllowThreads(__tstate); | |
30061 | if (PyErr_Occurred()) SWIG_fail; | |
30062 | } | |
30063 | { | |
412d302d | 30064 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30065 | } |
30066 | { | |
30067 | if (temp4) | |
30068 | delete arg4; | |
30069 | } | |
30070 | { | |
30071 | if (temp5) | |
30072 | delete arg5; | |
30073 | } | |
30074 | return resultobj; | |
30075 | fail: | |
30076 | { | |
30077 | if (temp4) | |
30078 | delete arg4; | |
30079 | } | |
30080 | { | |
30081 | if (temp5) | |
30082 | delete arg5; | |
30083 | } | |
30084 | return NULL; | |
30085 | } | |
30086 | ||
30087 | ||
c32bde28 | 30088 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30089 | PyObject *resultobj; |
30090 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30091 | size_t arg2 ; | |
30092 | int arg3 ; | |
30093 | wxString *arg4 = 0 ; | |
30094 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30095 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30096 | wxMenuItem *result; | |
ae8162c8 RD |
30097 | bool temp4 = false ; |
30098 | bool temp5 = false ; | |
d55e5bfc RD |
30099 | PyObject * obj0 = 0 ; |
30100 | PyObject * obj1 = 0 ; | |
30101 | PyObject * obj2 = 0 ; | |
30102 | PyObject * obj3 = 0 ; | |
30103 | PyObject * obj4 = 0 ; | |
30104 | char *kwnames[] = { | |
30105 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30106 | }; | |
30107 | ||
30108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30111 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30112 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30113 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30114 | if (PyErr_Occurred()) SWIG_fail; |
30115 | { | |
30116 | arg4 = wxString_in_helper(obj3); | |
30117 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30118 | temp4 = true; |
d55e5bfc RD |
30119 | } |
30120 | if (obj4) { | |
30121 | { | |
30122 | arg5 = wxString_in_helper(obj4); | |
30123 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30124 | temp5 = true; |
d55e5bfc RD |
30125 | } |
30126 | } | |
30127 | { | |
30128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30129 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30130 | ||
30131 | wxPyEndAllowThreads(__tstate); | |
30132 | if (PyErr_Occurred()) SWIG_fail; | |
30133 | } | |
30134 | { | |
412d302d | 30135 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30136 | } |
30137 | { | |
30138 | if (temp4) | |
30139 | delete arg4; | |
30140 | } | |
30141 | { | |
30142 | if (temp5) | |
30143 | delete arg5; | |
30144 | } | |
30145 | return resultobj; | |
30146 | fail: | |
30147 | { | |
30148 | if (temp4) | |
30149 | delete arg4; | |
30150 | } | |
30151 | { | |
30152 | if (temp5) | |
30153 | delete arg5; | |
30154 | } | |
30155 | return NULL; | |
30156 | } | |
30157 | ||
30158 | ||
c32bde28 | 30159 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30160 | PyObject *resultobj; |
30161 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30162 | size_t arg2 ; | |
30163 | int arg3 ; | |
30164 | wxString *arg4 = 0 ; | |
30165 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30166 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30167 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30168 | wxMenuItem *result; | |
ae8162c8 RD |
30169 | bool temp4 = false ; |
30170 | bool temp6 = false ; | |
d55e5bfc RD |
30171 | PyObject * obj0 = 0 ; |
30172 | PyObject * obj1 = 0 ; | |
30173 | PyObject * obj2 = 0 ; | |
30174 | PyObject * obj3 = 0 ; | |
30175 | PyObject * obj4 = 0 ; | |
30176 | PyObject * obj5 = 0 ; | |
30177 | char *kwnames[] = { | |
30178 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30179 | }; | |
30180 | ||
30181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30184 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30185 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30186 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30187 | if (PyErr_Occurred()) SWIG_fail; |
30188 | { | |
30189 | arg4 = wxString_in_helper(obj3); | |
30190 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30191 | temp4 = true; |
d55e5bfc RD |
30192 | } |
30193 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30195 | if (obj5) { | |
30196 | { | |
30197 | arg6 = wxString_in_helper(obj5); | |
30198 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 30199 | temp6 = true; |
d55e5bfc RD |
30200 | } |
30201 | } | |
30202 | { | |
30203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30204 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30205 | ||
30206 | wxPyEndAllowThreads(__tstate); | |
30207 | if (PyErr_Occurred()) SWIG_fail; | |
30208 | } | |
30209 | { | |
412d302d | 30210 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30211 | } |
30212 | { | |
30213 | if (temp4) | |
30214 | delete arg4; | |
30215 | } | |
30216 | { | |
30217 | if (temp6) | |
30218 | delete arg6; | |
30219 | } | |
30220 | return resultobj; | |
30221 | fail: | |
30222 | { | |
30223 | if (temp4) | |
30224 | delete arg4; | |
30225 | } | |
30226 | { | |
30227 | if (temp6) | |
30228 | delete arg6; | |
30229 | } | |
30230 | return NULL; | |
30231 | } | |
30232 | ||
30233 | ||
c32bde28 | 30234 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30235 | PyObject *resultobj; |
30236 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30237 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30238 | wxMenuItem *result; | |
30239 | PyObject * obj0 = 0 ; | |
30240 | PyObject * obj1 = 0 ; | |
30241 | char *kwnames[] = { | |
30242 | (char *) "self",(char *) "item", NULL | |
30243 | }; | |
30244 | ||
30245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30250 | { | |
30251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30252 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30253 | ||
30254 | wxPyEndAllowThreads(__tstate); | |
30255 | if (PyErr_Occurred()) SWIG_fail; | |
30256 | } | |
30257 | { | |
412d302d | 30258 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30259 | } |
30260 | return resultobj; | |
30261 | fail: | |
30262 | return NULL; | |
30263 | } | |
30264 | ||
30265 | ||
c32bde28 | 30266 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30267 | PyObject *resultobj; |
30268 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30269 | int arg2 ; | |
30270 | wxString *arg3 = 0 ; | |
30271 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30272 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30273 | int arg5 = (int) wxITEM_NORMAL ; | |
30274 | wxMenuItem *result; | |
ae8162c8 RD |
30275 | bool temp3 = false ; |
30276 | bool temp4 = false ; | |
d55e5bfc RD |
30277 | PyObject * obj0 = 0 ; |
30278 | PyObject * obj1 = 0 ; | |
30279 | PyObject * obj2 = 0 ; | |
30280 | PyObject * obj3 = 0 ; | |
30281 | PyObject * obj4 = 0 ; | |
30282 | char *kwnames[] = { | |
30283 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30284 | }; | |
30285 | ||
30286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30289 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30290 | if (PyErr_Occurred()) SWIG_fail; |
30291 | { | |
30292 | arg3 = wxString_in_helper(obj2); | |
30293 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30294 | temp3 = true; |
d55e5bfc RD |
30295 | } |
30296 | if (obj3) { | |
30297 | { | |
30298 | arg4 = wxString_in_helper(obj3); | |
30299 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30300 | temp4 = true; |
d55e5bfc RD |
30301 | } |
30302 | } | |
30303 | if (obj4) { | |
c32bde28 | 30304 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30305 | if (PyErr_Occurred()) SWIG_fail; |
30306 | } | |
30307 | { | |
30308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30309 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
30310 | ||
30311 | wxPyEndAllowThreads(__tstate); | |
30312 | if (PyErr_Occurred()) SWIG_fail; | |
30313 | } | |
30314 | { | |
412d302d | 30315 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30316 | } |
30317 | { | |
30318 | if (temp3) | |
30319 | delete arg3; | |
30320 | } | |
30321 | { | |
30322 | if (temp4) | |
30323 | delete arg4; | |
30324 | } | |
30325 | return resultobj; | |
30326 | fail: | |
30327 | { | |
30328 | if (temp3) | |
30329 | delete arg3; | |
30330 | } | |
30331 | { | |
30332 | if (temp4) | |
30333 | delete arg4; | |
30334 | } | |
30335 | return NULL; | |
30336 | } | |
30337 | ||
30338 | ||
c32bde28 | 30339 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30340 | PyObject *resultobj; |
30341 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30342 | wxMenuItem *result; | |
30343 | PyObject * obj0 = 0 ; | |
30344 | char *kwnames[] = { | |
30345 | (char *) "self", NULL | |
30346 | }; | |
30347 | ||
30348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30351 | { | |
30352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30353 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30354 | ||
30355 | wxPyEndAllowThreads(__tstate); | |
30356 | if (PyErr_Occurred()) SWIG_fail; | |
30357 | } | |
30358 | { | |
412d302d | 30359 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30360 | } |
30361 | return resultobj; | |
30362 | fail: | |
30363 | return NULL; | |
30364 | } | |
30365 | ||
30366 | ||
c32bde28 | 30367 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30368 | PyObject *resultobj; |
30369 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30370 | int arg2 ; | |
30371 | wxString *arg3 = 0 ; | |
30372 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30373 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30374 | wxMenuItem *result; | |
ae8162c8 RD |
30375 | bool temp3 = false ; |
30376 | bool temp4 = false ; | |
d55e5bfc RD |
30377 | PyObject * obj0 = 0 ; |
30378 | PyObject * obj1 = 0 ; | |
30379 | PyObject * obj2 = 0 ; | |
30380 | PyObject * obj3 = 0 ; | |
30381 | char *kwnames[] = { | |
30382 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30383 | }; | |
30384 | ||
30385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30388 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30389 | if (PyErr_Occurred()) SWIG_fail; |
30390 | { | |
30391 | arg3 = wxString_in_helper(obj2); | |
30392 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30393 | temp3 = true; |
d55e5bfc RD |
30394 | } |
30395 | if (obj3) { | |
30396 | { | |
30397 | arg4 = wxString_in_helper(obj3); | |
30398 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30399 | temp4 = true; |
d55e5bfc RD |
30400 | } |
30401 | } | |
30402 | { | |
30403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30404 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30405 | ||
30406 | wxPyEndAllowThreads(__tstate); | |
30407 | if (PyErr_Occurred()) SWIG_fail; | |
30408 | } | |
30409 | { | |
412d302d | 30410 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30411 | } |
30412 | { | |
30413 | if (temp3) | |
30414 | delete arg3; | |
30415 | } | |
30416 | { | |
30417 | if (temp4) | |
30418 | delete arg4; | |
30419 | } | |
30420 | return resultobj; | |
30421 | fail: | |
30422 | { | |
30423 | if (temp3) | |
30424 | delete arg3; | |
30425 | } | |
30426 | { | |
30427 | if (temp4) | |
30428 | delete arg4; | |
30429 | } | |
30430 | return NULL; | |
30431 | } | |
30432 | ||
30433 | ||
c32bde28 | 30434 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30435 | PyObject *resultobj; |
30436 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30437 | int arg2 ; | |
30438 | wxString *arg3 = 0 ; | |
30439 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30440 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30441 | wxMenuItem *result; | |
ae8162c8 RD |
30442 | bool temp3 = false ; |
30443 | bool temp4 = false ; | |
d55e5bfc RD |
30444 | PyObject * obj0 = 0 ; |
30445 | PyObject * obj1 = 0 ; | |
30446 | PyObject * obj2 = 0 ; | |
30447 | PyObject * obj3 = 0 ; | |
30448 | char *kwnames[] = { | |
30449 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30450 | }; | |
30451 | ||
30452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30455 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30456 | if (PyErr_Occurred()) SWIG_fail; |
30457 | { | |
30458 | arg3 = wxString_in_helper(obj2); | |
30459 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30460 | temp3 = true; |
d55e5bfc RD |
30461 | } |
30462 | if (obj3) { | |
30463 | { | |
30464 | arg4 = wxString_in_helper(obj3); | |
30465 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30466 | temp4 = true; |
d55e5bfc RD |
30467 | } |
30468 | } | |
30469 | { | |
30470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30471 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30472 | ||
30473 | wxPyEndAllowThreads(__tstate); | |
30474 | if (PyErr_Occurred()) SWIG_fail; | |
30475 | } | |
30476 | { | |
412d302d | 30477 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30478 | } |
30479 | { | |
30480 | if (temp3) | |
30481 | delete arg3; | |
30482 | } | |
30483 | { | |
30484 | if (temp4) | |
30485 | delete arg4; | |
30486 | } | |
30487 | return resultobj; | |
30488 | fail: | |
30489 | { | |
30490 | if (temp3) | |
30491 | delete arg3; | |
30492 | } | |
30493 | { | |
30494 | if (temp4) | |
30495 | delete arg4; | |
30496 | } | |
30497 | return NULL; | |
30498 | } | |
30499 | ||
30500 | ||
c32bde28 | 30501 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30502 | PyObject *resultobj; |
30503 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30504 | int arg2 ; | |
30505 | wxString *arg3 = 0 ; | |
30506 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30507 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30508 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30509 | wxMenuItem *result; | |
ae8162c8 RD |
30510 | bool temp3 = false ; |
30511 | bool temp5 = false ; | |
d55e5bfc RD |
30512 | PyObject * obj0 = 0 ; |
30513 | PyObject * obj1 = 0 ; | |
30514 | PyObject * obj2 = 0 ; | |
30515 | PyObject * obj3 = 0 ; | |
30516 | PyObject * obj4 = 0 ; | |
30517 | char *kwnames[] = { | |
30518 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30519 | }; | |
30520 | ||
30521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30524 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30525 | if (PyErr_Occurred()) SWIG_fail; |
30526 | { | |
30527 | arg3 = wxString_in_helper(obj2); | |
30528 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30529 | temp3 = true; |
d55e5bfc RD |
30530 | } |
30531 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30533 | if (obj4) { | |
30534 | { | |
30535 | arg5 = wxString_in_helper(obj4); | |
30536 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 30537 | temp5 = true; |
d55e5bfc RD |
30538 | } |
30539 | } | |
30540 | { | |
30541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30542 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30543 | ||
30544 | wxPyEndAllowThreads(__tstate); | |
30545 | if (PyErr_Occurred()) SWIG_fail; | |
30546 | } | |
30547 | { | |
412d302d | 30548 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30549 | } |
30550 | { | |
30551 | if (temp3) | |
30552 | delete arg3; | |
30553 | } | |
30554 | { | |
30555 | if (temp5) | |
30556 | delete arg5; | |
30557 | } | |
30558 | return resultobj; | |
30559 | fail: | |
30560 | { | |
30561 | if (temp3) | |
30562 | delete arg3; | |
30563 | } | |
30564 | { | |
30565 | if (temp5) | |
30566 | delete arg5; | |
30567 | } | |
30568 | return NULL; | |
30569 | } | |
30570 | ||
30571 | ||
c32bde28 | 30572 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30573 | PyObject *resultobj; |
30574 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30575 | int arg2 ; | |
30576 | wxMenuItem *result; | |
30577 | PyObject * obj0 = 0 ; | |
30578 | PyObject * obj1 = 0 ; | |
30579 | char *kwnames[] = { | |
30580 | (char *) "self",(char *) "id", NULL | |
30581 | }; | |
30582 | ||
30583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30586 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30587 | if (PyErr_Occurred()) SWIG_fail; |
30588 | { | |
30589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30590 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30591 | ||
30592 | wxPyEndAllowThreads(__tstate); | |
30593 | if (PyErr_Occurred()) SWIG_fail; | |
30594 | } | |
30595 | { | |
412d302d | 30596 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30597 | } |
30598 | return resultobj; | |
30599 | fail: | |
30600 | return NULL; | |
30601 | } | |
30602 | ||
30603 | ||
c32bde28 | 30604 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30605 | PyObject *resultobj; |
30606 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30607 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30608 | wxMenuItem *result; | |
30609 | PyObject * obj0 = 0 ; | |
30610 | PyObject * obj1 = 0 ; | |
30611 | char *kwnames[] = { | |
30612 | (char *) "self",(char *) "item", NULL | |
30613 | }; | |
30614 | ||
30615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30620 | { | |
30621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30622 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30623 | ||
30624 | wxPyEndAllowThreads(__tstate); | |
30625 | if (PyErr_Occurred()) SWIG_fail; | |
30626 | } | |
30627 | { | |
412d302d | 30628 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30629 | } |
30630 | return resultobj; | |
30631 | fail: | |
30632 | return NULL; | |
30633 | } | |
30634 | ||
30635 | ||
c32bde28 | 30636 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30637 | PyObject *resultobj; |
30638 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30639 | int arg2 ; | |
30640 | bool result; | |
30641 | PyObject * obj0 = 0 ; | |
30642 | PyObject * obj1 = 0 ; | |
30643 | char *kwnames[] = { | |
30644 | (char *) "self",(char *) "id", NULL | |
30645 | }; | |
30646 | ||
30647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30650 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30651 | if (PyErr_Occurred()) SWIG_fail; |
30652 | { | |
30653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30654 | result = (bool)(arg1)->Delete(arg2); | |
30655 | ||
30656 | wxPyEndAllowThreads(__tstate); | |
30657 | if (PyErr_Occurred()) SWIG_fail; | |
30658 | } | |
30659 | { | |
30660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30661 | } | |
30662 | return resultobj; | |
30663 | fail: | |
30664 | return NULL; | |
30665 | } | |
30666 | ||
30667 | ||
c32bde28 | 30668 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30669 | PyObject *resultobj; |
30670 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30671 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30672 | bool result; | |
30673 | PyObject * obj0 = 0 ; | |
30674 | PyObject * obj1 = 0 ; | |
30675 | char *kwnames[] = { | |
30676 | (char *) "self",(char *) "item", NULL | |
30677 | }; | |
30678 | ||
30679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30684 | { | |
30685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30686 | result = (bool)(arg1)->Delete(arg2); | |
30687 | ||
30688 | wxPyEndAllowThreads(__tstate); | |
30689 | if (PyErr_Occurred()) SWIG_fail; | |
30690 | } | |
30691 | { | |
30692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30693 | } | |
30694 | return resultobj; | |
30695 | fail: | |
30696 | return NULL; | |
30697 | } | |
30698 | ||
30699 | ||
c32bde28 | 30700 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30701 | PyObject *resultobj; |
30702 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30703 | PyObject * obj0 = 0 ; | |
30704 | char *kwnames[] = { | |
30705 | (char *) "self", NULL | |
30706 | }; | |
30707 | ||
30708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30711 | { | |
30712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30713 | wxMenu_Destroy(arg1); | |
30714 | ||
30715 | wxPyEndAllowThreads(__tstate); | |
30716 | if (PyErr_Occurred()) SWIG_fail; | |
30717 | } | |
30718 | Py_INCREF(Py_None); resultobj = Py_None; | |
30719 | return resultobj; | |
30720 | fail: | |
30721 | return NULL; | |
30722 | } | |
30723 | ||
30724 | ||
c32bde28 | 30725 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30726 | PyObject *resultobj; |
30727 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30728 | int arg2 ; | |
30729 | bool result; | |
30730 | PyObject * obj0 = 0 ; | |
30731 | PyObject * obj1 = 0 ; | |
30732 | char *kwnames[] = { | |
30733 | (char *) "self",(char *) "id", NULL | |
30734 | }; | |
30735 | ||
30736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30739 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30740 | if (PyErr_Occurred()) SWIG_fail; |
30741 | { | |
30742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30743 | result = (bool)(arg1)->Destroy(arg2); | |
30744 | ||
30745 | wxPyEndAllowThreads(__tstate); | |
30746 | if (PyErr_Occurred()) SWIG_fail; | |
30747 | } | |
30748 | { | |
30749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30750 | } | |
30751 | return resultobj; | |
30752 | fail: | |
30753 | return NULL; | |
30754 | } | |
30755 | ||
30756 | ||
c32bde28 | 30757 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30758 | PyObject *resultobj; |
30759 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30760 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30761 | bool result; | |
30762 | PyObject * obj0 = 0 ; | |
30763 | PyObject * obj1 = 0 ; | |
30764 | char *kwnames[] = { | |
30765 | (char *) "self",(char *) "item", NULL | |
30766 | }; | |
30767 | ||
30768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30771 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30773 | { | |
30774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30775 | result = (bool)(arg1)->Destroy(arg2); | |
30776 | ||
30777 | wxPyEndAllowThreads(__tstate); | |
30778 | if (PyErr_Occurred()) SWIG_fail; | |
30779 | } | |
30780 | { | |
30781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30782 | } | |
30783 | return resultobj; | |
30784 | fail: | |
30785 | return NULL; | |
30786 | } | |
30787 | ||
30788 | ||
c32bde28 | 30789 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30790 | PyObject *resultobj; |
30791 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30792 | size_t result; | |
30793 | PyObject * obj0 = 0 ; | |
30794 | char *kwnames[] = { | |
30795 | (char *) "self", NULL | |
30796 | }; | |
30797 | ||
30798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30801 | { | |
30802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30803 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30804 | ||
30805 | wxPyEndAllowThreads(__tstate); | |
30806 | if (PyErr_Occurred()) SWIG_fail; | |
30807 | } | |
c32bde28 | 30808 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
30809 | return resultobj; |
30810 | fail: | |
30811 | return NULL; | |
30812 | } | |
30813 | ||
30814 | ||
c32bde28 | 30815 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30816 | PyObject *resultobj; |
30817 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30818 | PyObject *result; | |
30819 | PyObject * obj0 = 0 ; | |
30820 | char *kwnames[] = { | |
30821 | (char *) "self", NULL | |
30822 | }; | |
30823 | ||
30824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
30825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30827 | { | |
30828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30829 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30830 | ||
30831 | wxPyEndAllowThreads(__tstate); | |
30832 | if (PyErr_Occurred()) SWIG_fail; | |
30833 | } | |
30834 | resultobj = result; | |
30835 | return resultobj; | |
30836 | fail: | |
30837 | return NULL; | |
30838 | } | |
30839 | ||
30840 | ||
c32bde28 | 30841 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30842 | PyObject *resultobj; |
30843 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30844 | wxString *arg2 = 0 ; | |
30845 | int result; | |
ae8162c8 | 30846 | bool temp2 = false ; |
d55e5bfc RD |
30847 | PyObject * obj0 = 0 ; |
30848 | PyObject * obj1 = 0 ; | |
30849 | char *kwnames[] = { | |
30850 | (char *) "self",(char *) "item", NULL | |
30851 | }; | |
30852 | ||
30853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
30854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30856 | { | |
30857 | arg2 = wxString_in_helper(obj1); | |
30858 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 30859 | temp2 = true; |
d55e5bfc RD |
30860 | } |
30861 | { | |
30862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30863 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30864 | ||
30865 | wxPyEndAllowThreads(__tstate); | |
30866 | if (PyErr_Occurred()) SWIG_fail; | |
30867 | } | |
c32bde28 | 30868 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
30869 | { |
30870 | if (temp2) | |
30871 | delete arg2; | |
30872 | } | |
30873 | return resultobj; | |
30874 | fail: | |
30875 | { | |
30876 | if (temp2) | |
30877 | delete arg2; | |
30878 | } | |
30879 | return NULL; | |
30880 | } | |
30881 | ||
30882 | ||
c32bde28 | 30883 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30884 | PyObject *resultobj; |
30885 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30886 | int arg2 ; | |
30887 | wxMenuItem *result; | |
30888 | PyObject * obj0 = 0 ; | |
30889 | PyObject * obj1 = 0 ; | |
30890 | char *kwnames[] = { | |
30891 | (char *) "self",(char *) "id", NULL | |
30892 | }; | |
30893 | ||
30894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
30895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30897 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30898 | if (PyErr_Occurred()) SWIG_fail; |
30899 | { | |
30900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30901 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30902 | ||
30903 | wxPyEndAllowThreads(__tstate); | |
30904 | if (PyErr_Occurred()) SWIG_fail; | |
30905 | } | |
30906 | { | |
412d302d | 30907 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30908 | } |
30909 | return resultobj; | |
30910 | fail: | |
30911 | return NULL; | |
30912 | } | |
30913 | ||
30914 | ||
c32bde28 | 30915 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30916 | PyObject *resultobj; |
30917 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30918 | size_t arg2 ; | |
30919 | wxMenuItem *result; | |
30920 | PyObject * obj0 = 0 ; | |
30921 | PyObject * obj1 = 0 ; | |
30922 | char *kwnames[] = { | |
30923 | (char *) "self",(char *) "position", NULL | |
30924 | }; | |
30925 | ||
30926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
30927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30929 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30930 | if (PyErr_Occurred()) SWIG_fail; |
30931 | { | |
30932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30933 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30934 | ||
30935 | wxPyEndAllowThreads(__tstate); | |
30936 | if (PyErr_Occurred()) SWIG_fail; | |
30937 | } | |
30938 | { | |
412d302d | 30939 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30940 | } |
30941 | return resultobj; | |
30942 | fail: | |
30943 | return NULL; | |
30944 | } | |
30945 | ||
30946 | ||
c32bde28 | 30947 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30948 | PyObject *resultobj; |
30949 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30950 | int arg2 ; | |
30951 | bool arg3 ; | |
30952 | PyObject * obj0 = 0 ; | |
30953 | PyObject * obj1 = 0 ; | |
30954 | PyObject * obj2 = 0 ; | |
30955 | char *kwnames[] = { | |
30956 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
30957 | }; | |
30958 | ||
30959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30963 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 30964 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30965 | if (PyErr_Occurred()) SWIG_fail; |
30966 | { | |
30967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30968 | (arg1)->Enable(arg2,arg3); | |
30969 | ||
30970 | wxPyEndAllowThreads(__tstate); | |
30971 | if (PyErr_Occurred()) SWIG_fail; | |
30972 | } | |
30973 | Py_INCREF(Py_None); resultobj = Py_None; | |
30974 | return resultobj; | |
30975 | fail: | |
30976 | return NULL; | |
30977 | } | |
30978 | ||
30979 | ||
c32bde28 | 30980 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30981 | PyObject *resultobj; |
30982 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30983 | int arg2 ; | |
30984 | bool result; | |
30985 | PyObject * obj0 = 0 ; | |
30986 | PyObject * obj1 = 0 ; | |
30987 | char *kwnames[] = { | |
30988 | (char *) "self",(char *) "id", NULL | |
30989 | }; | |
30990 | ||
30991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 30994 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30995 | if (PyErr_Occurred()) SWIG_fail; |
30996 | { | |
30997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30998 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30999 | ||
31000 | wxPyEndAllowThreads(__tstate); | |
31001 | if (PyErr_Occurred()) SWIG_fail; | |
31002 | } | |
31003 | { | |
31004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31005 | } | |
31006 | return resultobj; | |
31007 | fail: | |
31008 | return NULL; | |
31009 | } | |
31010 | ||
31011 | ||
c32bde28 | 31012 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31013 | PyObject *resultobj; |
31014 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31015 | int arg2 ; | |
31016 | bool arg3 ; | |
31017 | PyObject * obj0 = 0 ; | |
31018 | PyObject * obj1 = 0 ; | |
31019 | PyObject * obj2 = 0 ; | |
31020 | char *kwnames[] = { | |
31021 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31022 | }; | |
31023 | ||
31024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31027 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31028 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31029 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31030 | if (PyErr_Occurred()) SWIG_fail; |
31031 | { | |
31032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31033 | (arg1)->Check(arg2,arg3); | |
31034 | ||
31035 | wxPyEndAllowThreads(__tstate); | |
31036 | if (PyErr_Occurred()) SWIG_fail; | |
31037 | } | |
31038 | Py_INCREF(Py_None); resultobj = Py_None; | |
31039 | return resultobj; | |
31040 | fail: | |
31041 | return NULL; | |
31042 | } | |
31043 | ||
31044 | ||
c32bde28 | 31045 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31046 | PyObject *resultobj; |
31047 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31048 | int arg2 ; | |
31049 | bool result; | |
31050 | PyObject * obj0 = 0 ; | |
31051 | PyObject * obj1 = 0 ; | |
31052 | char *kwnames[] = { | |
31053 | (char *) "self",(char *) "id", NULL | |
31054 | }; | |
31055 | ||
31056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31059 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31060 | if (PyErr_Occurred()) SWIG_fail; |
31061 | { | |
31062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31063 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
31064 | ||
31065 | wxPyEndAllowThreads(__tstate); | |
31066 | if (PyErr_Occurred()) SWIG_fail; | |
31067 | } | |
31068 | { | |
31069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31070 | } | |
31071 | return resultobj; | |
31072 | fail: | |
31073 | return NULL; | |
31074 | } | |
31075 | ||
31076 | ||
c32bde28 | 31077 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31078 | PyObject *resultobj; |
31079 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31080 | int arg2 ; | |
31081 | wxString *arg3 = 0 ; | |
ae8162c8 | 31082 | bool temp3 = false ; |
d55e5bfc RD |
31083 | PyObject * obj0 = 0 ; |
31084 | PyObject * obj1 = 0 ; | |
31085 | PyObject * obj2 = 0 ; | |
31086 | char *kwnames[] = { | |
31087 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31088 | }; | |
31089 | ||
31090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31093 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31094 | if (PyErr_Occurred()) SWIG_fail; |
31095 | { | |
31096 | arg3 = wxString_in_helper(obj2); | |
31097 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31098 | temp3 = true; |
d55e5bfc RD |
31099 | } |
31100 | { | |
31101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31102 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31103 | ||
31104 | wxPyEndAllowThreads(__tstate); | |
31105 | if (PyErr_Occurred()) SWIG_fail; | |
31106 | } | |
31107 | Py_INCREF(Py_None); resultobj = Py_None; | |
31108 | { | |
31109 | if (temp3) | |
31110 | delete arg3; | |
31111 | } | |
31112 | return resultobj; | |
31113 | fail: | |
31114 | { | |
31115 | if (temp3) | |
31116 | delete arg3; | |
31117 | } | |
31118 | return NULL; | |
31119 | } | |
31120 | ||
31121 | ||
c32bde28 | 31122 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31123 | PyObject *resultobj; |
31124 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31125 | int arg2 ; | |
31126 | wxString result; | |
31127 | PyObject * obj0 = 0 ; | |
31128 | PyObject * obj1 = 0 ; | |
31129 | char *kwnames[] = { | |
31130 | (char *) "self",(char *) "id", NULL | |
31131 | }; | |
31132 | ||
31133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31136 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31137 | if (PyErr_Occurred()) SWIG_fail; |
31138 | { | |
31139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31140 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31141 | ||
31142 | wxPyEndAllowThreads(__tstate); | |
31143 | if (PyErr_Occurred()) SWIG_fail; | |
31144 | } | |
31145 | { | |
31146 | #if wxUSE_UNICODE | |
31147 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31148 | #else | |
31149 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31150 | #endif | |
31151 | } | |
31152 | return resultobj; | |
31153 | fail: | |
31154 | return NULL; | |
31155 | } | |
31156 | ||
31157 | ||
c32bde28 | 31158 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31159 | PyObject *resultobj; |
31160 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31161 | int arg2 ; | |
31162 | wxString *arg3 = 0 ; | |
ae8162c8 | 31163 | bool temp3 = false ; |
d55e5bfc RD |
31164 | PyObject * obj0 = 0 ; |
31165 | PyObject * obj1 = 0 ; | |
31166 | PyObject * obj2 = 0 ; | |
31167 | char *kwnames[] = { | |
31168 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31169 | }; | |
31170 | ||
31171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31174 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31175 | if (PyErr_Occurred()) SWIG_fail; |
31176 | { | |
31177 | arg3 = wxString_in_helper(obj2); | |
31178 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31179 | temp3 = true; |
d55e5bfc RD |
31180 | } |
31181 | { | |
31182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31183 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31184 | ||
31185 | wxPyEndAllowThreads(__tstate); | |
31186 | if (PyErr_Occurred()) SWIG_fail; | |
31187 | } | |
31188 | Py_INCREF(Py_None); resultobj = Py_None; | |
31189 | { | |
31190 | if (temp3) | |
31191 | delete arg3; | |
31192 | } | |
31193 | return resultobj; | |
31194 | fail: | |
31195 | { | |
31196 | if (temp3) | |
31197 | delete arg3; | |
31198 | } | |
31199 | return NULL; | |
31200 | } | |
31201 | ||
31202 | ||
c32bde28 | 31203 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31204 | PyObject *resultobj; |
31205 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31206 | int arg2 ; | |
31207 | wxString result; | |
31208 | PyObject * obj0 = 0 ; | |
31209 | PyObject * obj1 = 0 ; | |
31210 | char *kwnames[] = { | |
31211 | (char *) "self",(char *) "id", NULL | |
31212 | }; | |
31213 | ||
31214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31217 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31218 | if (PyErr_Occurred()) SWIG_fail; |
31219 | { | |
31220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31221 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31222 | ||
31223 | wxPyEndAllowThreads(__tstate); | |
31224 | if (PyErr_Occurred()) SWIG_fail; | |
31225 | } | |
31226 | { | |
31227 | #if wxUSE_UNICODE | |
31228 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31229 | #else | |
31230 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31231 | #endif | |
31232 | } | |
31233 | return resultobj; | |
31234 | fail: | |
31235 | return NULL; | |
31236 | } | |
31237 | ||
31238 | ||
c32bde28 | 31239 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31240 | PyObject *resultobj; |
31241 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31242 | wxString *arg2 = 0 ; | |
ae8162c8 | 31243 | bool temp2 = false ; |
d55e5bfc RD |
31244 | PyObject * obj0 = 0 ; |
31245 | PyObject * obj1 = 0 ; | |
31246 | char *kwnames[] = { | |
31247 | (char *) "self",(char *) "title", NULL | |
31248 | }; | |
31249 | ||
31250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31253 | { | |
31254 | arg2 = wxString_in_helper(obj1); | |
31255 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31256 | temp2 = true; |
d55e5bfc RD |
31257 | } |
31258 | { | |
31259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31260 | (arg1)->SetTitle((wxString const &)*arg2); | |
31261 | ||
31262 | wxPyEndAllowThreads(__tstate); | |
31263 | if (PyErr_Occurred()) SWIG_fail; | |
31264 | } | |
31265 | Py_INCREF(Py_None); resultobj = Py_None; | |
31266 | { | |
31267 | if (temp2) | |
31268 | delete arg2; | |
31269 | } | |
31270 | return resultobj; | |
31271 | fail: | |
31272 | { | |
31273 | if (temp2) | |
31274 | delete arg2; | |
31275 | } | |
31276 | return NULL; | |
31277 | } | |
31278 | ||
31279 | ||
c32bde28 | 31280 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31281 | PyObject *resultobj; |
31282 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31283 | wxString result; | |
31284 | PyObject * obj0 = 0 ; | |
31285 | char *kwnames[] = { | |
31286 | (char *) "self", NULL | |
31287 | }; | |
31288 | ||
31289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31292 | { | |
31293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31294 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31295 | ||
31296 | wxPyEndAllowThreads(__tstate); | |
31297 | if (PyErr_Occurred()) SWIG_fail; | |
31298 | } | |
31299 | { | |
31300 | #if wxUSE_UNICODE | |
31301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31302 | #else | |
31303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31304 | #endif | |
31305 | } | |
31306 | return resultobj; | |
31307 | fail: | |
31308 | return NULL; | |
31309 | } | |
31310 | ||
31311 | ||
c32bde28 | 31312 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31313 | PyObject *resultobj; |
31314 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31315 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31316 | PyObject * obj0 = 0 ; | |
31317 | PyObject * obj1 = 0 ; | |
31318 | char *kwnames[] = { | |
31319 | (char *) "self",(char *) "handler", NULL | |
31320 | }; | |
31321 | ||
31322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31327 | { | |
31328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31329 | (arg1)->SetEventHandler(arg2); | |
31330 | ||
31331 | wxPyEndAllowThreads(__tstate); | |
31332 | if (PyErr_Occurred()) SWIG_fail; | |
31333 | } | |
31334 | Py_INCREF(Py_None); resultobj = Py_None; | |
31335 | return resultobj; | |
31336 | fail: | |
31337 | return NULL; | |
31338 | } | |
31339 | ||
31340 | ||
c32bde28 | 31341 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31342 | PyObject *resultobj; |
31343 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31344 | wxEvtHandler *result; | |
31345 | PyObject * obj0 = 0 ; | |
31346 | char *kwnames[] = { | |
31347 | (char *) "self", NULL | |
31348 | }; | |
31349 | ||
31350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31353 | { | |
31354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31355 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31356 | ||
31357 | wxPyEndAllowThreads(__tstate); | |
31358 | if (PyErr_Occurred()) SWIG_fail; | |
31359 | } | |
31360 | { | |
412d302d | 31361 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31362 | } |
31363 | return resultobj; | |
31364 | fail: | |
31365 | return NULL; | |
31366 | } | |
31367 | ||
31368 | ||
c32bde28 | 31369 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31370 | PyObject *resultobj; |
31371 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31372 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31373 | PyObject * obj0 = 0 ; | |
31374 | PyObject * obj1 = 0 ; | |
31375 | char *kwnames[] = { | |
31376 | (char *) "self",(char *) "win", NULL | |
31377 | }; | |
31378 | ||
31379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31384 | { | |
31385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31386 | (arg1)->SetInvokingWindow(arg2); | |
31387 | ||
31388 | wxPyEndAllowThreads(__tstate); | |
31389 | if (PyErr_Occurred()) SWIG_fail; | |
31390 | } | |
31391 | Py_INCREF(Py_None); resultobj = Py_None; | |
31392 | return resultobj; | |
31393 | fail: | |
31394 | return NULL; | |
31395 | } | |
31396 | ||
31397 | ||
c32bde28 | 31398 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31399 | PyObject *resultobj; |
31400 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31401 | wxWindow *result; | |
31402 | PyObject * obj0 = 0 ; | |
31403 | char *kwnames[] = { | |
31404 | (char *) "self", NULL | |
31405 | }; | |
31406 | ||
31407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31410 | { | |
31411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31412 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31413 | ||
31414 | wxPyEndAllowThreads(__tstate); | |
31415 | if (PyErr_Occurred()) SWIG_fail; | |
31416 | } | |
31417 | { | |
412d302d | 31418 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31419 | } |
31420 | return resultobj; | |
31421 | fail: | |
31422 | return NULL; | |
31423 | } | |
31424 | ||
31425 | ||
c32bde28 | 31426 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31427 | PyObject *resultobj; |
31428 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31429 | long result; | |
31430 | PyObject * obj0 = 0 ; | |
31431 | char *kwnames[] = { | |
31432 | (char *) "self", NULL | |
31433 | }; | |
31434 | ||
31435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31438 | { | |
31439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31440 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31441 | ||
31442 | wxPyEndAllowThreads(__tstate); | |
31443 | if (PyErr_Occurred()) SWIG_fail; | |
31444 | } | |
c32bde28 | 31445 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31446 | return resultobj; |
31447 | fail: | |
31448 | return NULL; | |
31449 | } | |
31450 | ||
31451 | ||
c32bde28 | 31452 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31453 | PyObject *resultobj; |
31454 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31455 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31456 | PyObject * obj0 = 0 ; | |
31457 | PyObject * obj1 = 0 ; | |
31458 | char *kwnames[] = { | |
31459 | (char *) "self",(char *) "source", NULL | |
31460 | }; | |
31461 | ||
31462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31465 | if (obj1) { | |
31466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31468 | } | |
31469 | { | |
31470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31471 | (arg1)->UpdateUI(arg2); | |
31472 | ||
31473 | wxPyEndAllowThreads(__tstate); | |
31474 | if (PyErr_Occurred()) SWIG_fail; | |
31475 | } | |
31476 | Py_INCREF(Py_None); resultobj = Py_None; | |
31477 | return resultobj; | |
31478 | fail: | |
31479 | return NULL; | |
31480 | } | |
31481 | ||
31482 | ||
c32bde28 | 31483 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31484 | PyObject *resultobj; |
31485 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31486 | wxMenuBar *result; | |
31487 | PyObject * obj0 = 0 ; | |
31488 | char *kwnames[] = { | |
31489 | (char *) "self", NULL | |
31490 | }; | |
31491 | ||
31492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31495 | { | |
31496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31497 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31498 | ||
31499 | wxPyEndAllowThreads(__tstate); | |
31500 | if (PyErr_Occurred()) SWIG_fail; | |
31501 | } | |
31502 | { | |
412d302d | 31503 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31504 | } |
31505 | return resultobj; | |
31506 | fail: | |
31507 | return NULL; | |
31508 | } | |
31509 | ||
31510 | ||
c32bde28 | 31511 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31512 | PyObject *resultobj; |
31513 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31514 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31515 | PyObject * obj0 = 0 ; | |
31516 | PyObject * obj1 = 0 ; | |
31517 | char *kwnames[] = { | |
31518 | (char *) "self",(char *) "menubar", NULL | |
31519 | }; | |
31520 | ||
31521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31526 | { | |
31527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31528 | (arg1)->Attach(arg2); | |
31529 | ||
31530 | wxPyEndAllowThreads(__tstate); | |
31531 | if (PyErr_Occurred()) SWIG_fail; | |
31532 | } | |
31533 | Py_INCREF(Py_None); resultobj = Py_None; | |
31534 | return resultobj; | |
31535 | fail: | |
31536 | return NULL; | |
31537 | } | |
31538 | ||
31539 | ||
c32bde28 | 31540 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31541 | PyObject *resultobj; |
31542 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31543 | PyObject * obj0 = 0 ; | |
31544 | char *kwnames[] = { | |
31545 | (char *) "self", NULL | |
31546 | }; | |
31547 | ||
31548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31551 | { | |
31552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31553 | (arg1)->Detach(); | |
31554 | ||
31555 | wxPyEndAllowThreads(__tstate); | |
31556 | if (PyErr_Occurred()) SWIG_fail; | |
31557 | } | |
31558 | Py_INCREF(Py_None); resultobj = Py_None; | |
31559 | return resultobj; | |
31560 | fail: | |
31561 | return NULL; | |
31562 | } | |
31563 | ||
31564 | ||
c32bde28 | 31565 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31566 | PyObject *resultobj; |
31567 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31568 | bool result; | |
31569 | PyObject * obj0 = 0 ; | |
31570 | char *kwnames[] = { | |
31571 | (char *) "self", NULL | |
31572 | }; | |
31573 | ||
31574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31577 | { | |
31578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31579 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31580 | ||
31581 | wxPyEndAllowThreads(__tstate); | |
31582 | if (PyErr_Occurred()) SWIG_fail; | |
31583 | } | |
31584 | { | |
31585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31586 | } | |
31587 | return resultobj; | |
31588 | fail: | |
31589 | return NULL; | |
31590 | } | |
31591 | ||
31592 | ||
c32bde28 | 31593 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31594 | PyObject *resultobj; |
31595 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31596 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31597 | PyObject * obj0 = 0 ; | |
31598 | PyObject * obj1 = 0 ; | |
31599 | char *kwnames[] = { | |
31600 | (char *) "self",(char *) "parent", NULL | |
31601 | }; | |
31602 | ||
31603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31606 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31608 | { | |
31609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31610 | (arg1)->SetParent(arg2); | |
31611 | ||
31612 | wxPyEndAllowThreads(__tstate); | |
31613 | if (PyErr_Occurred()) SWIG_fail; | |
31614 | } | |
31615 | Py_INCREF(Py_None); resultobj = Py_None; | |
31616 | return resultobj; | |
31617 | fail: | |
31618 | return NULL; | |
31619 | } | |
31620 | ||
31621 | ||
c32bde28 | 31622 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31623 | PyObject *resultobj; |
31624 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31625 | wxMenu *result; | |
31626 | PyObject * obj0 = 0 ; | |
31627 | char *kwnames[] = { | |
31628 | (char *) "self", NULL | |
31629 | }; | |
31630 | ||
31631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31634 | { | |
31635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31636 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31637 | ||
31638 | wxPyEndAllowThreads(__tstate); | |
31639 | if (PyErr_Occurred()) SWIG_fail; | |
31640 | } | |
31641 | { | |
412d302d | 31642 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31643 | } |
31644 | return resultobj; | |
31645 | fail: | |
31646 | return NULL; | |
31647 | } | |
31648 | ||
31649 | ||
c32bde28 | 31650 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31651 | PyObject *obj; |
31652 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31653 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31654 | Py_INCREF(obj); | |
31655 | return Py_BuildValue((char *)""); | |
31656 | } | |
c32bde28 | 31657 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31658 | PyObject *resultobj; |
31659 | long arg1 = (long) 0 ; | |
31660 | wxMenuBar *result; | |
31661 | PyObject * obj0 = 0 ; | |
31662 | char *kwnames[] = { | |
31663 | (char *) "style", NULL | |
31664 | }; | |
31665 | ||
31666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31667 | if (obj0) { | |
c32bde28 | 31668 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31669 | if (PyErr_Occurred()) SWIG_fail; |
31670 | } | |
31671 | { | |
0439c23b | 31672 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31674 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31675 | ||
31676 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31677 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31678 | } |
b0f7404b | 31679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31680 | return resultobj; |
31681 | fail: | |
31682 | return NULL; | |
31683 | } | |
31684 | ||
31685 | ||
c32bde28 | 31686 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31687 | PyObject *resultobj; |
31688 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31689 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31690 | wxString *arg3 = 0 ; | |
31691 | bool result; | |
ae8162c8 | 31692 | bool temp3 = false ; |
d55e5bfc RD |
31693 | PyObject * obj0 = 0 ; |
31694 | PyObject * obj1 = 0 ; | |
31695 | PyObject * obj2 = 0 ; | |
31696 | char *kwnames[] = { | |
31697 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31698 | }; | |
31699 | ||
31700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31705 | { | |
31706 | arg3 = wxString_in_helper(obj2); | |
31707 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31708 | temp3 = true; |
d55e5bfc RD |
31709 | } |
31710 | { | |
31711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31712 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31713 | ||
31714 | wxPyEndAllowThreads(__tstate); | |
31715 | if (PyErr_Occurred()) SWIG_fail; | |
31716 | } | |
31717 | { | |
31718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31719 | } | |
31720 | { | |
31721 | if (temp3) | |
31722 | delete arg3; | |
31723 | } | |
31724 | return resultobj; | |
31725 | fail: | |
31726 | { | |
31727 | if (temp3) | |
31728 | delete arg3; | |
31729 | } | |
31730 | return NULL; | |
31731 | } | |
31732 | ||
31733 | ||
c32bde28 | 31734 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31735 | PyObject *resultobj; |
31736 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31737 | size_t arg2 ; | |
31738 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31739 | wxString *arg4 = 0 ; | |
31740 | bool result; | |
ae8162c8 | 31741 | bool temp4 = false ; |
d55e5bfc RD |
31742 | PyObject * obj0 = 0 ; |
31743 | PyObject * obj1 = 0 ; | |
31744 | PyObject * obj2 = 0 ; | |
31745 | PyObject * obj3 = 0 ; | |
31746 | char *kwnames[] = { | |
31747 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31748 | }; | |
31749 | ||
31750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31753 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31754 | if (PyErr_Occurred()) SWIG_fail; |
31755 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31757 | { | |
31758 | arg4 = wxString_in_helper(obj3); | |
31759 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31760 | temp4 = true; |
d55e5bfc RD |
31761 | } |
31762 | { | |
31763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31764 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31765 | ||
31766 | wxPyEndAllowThreads(__tstate); | |
31767 | if (PyErr_Occurred()) SWIG_fail; | |
31768 | } | |
31769 | { | |
31770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31771 | } | |
31772 | { | |
31773 | if (temp4) | |
31774 | delete arg4; | |
31775 | } | |
31776 | return resultobj; | |
31777 | fail: | |
31778 | { | |
31779 | if (temp4) | |
31780 | delete arg4; | |
31781 | } | |
31782 | return NULL; | |
31783 | } | |
31784 | ||
31785 | ||
c32bde28 | 31786 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31787 | PyObject *resultobj; |
31788 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31789 | size_t result; | |
31790 | PyObject * obj0 = 0 ; | |
31791 | char *kwnames[] = { | |
31792 | (char *) "self", NULL | |
31793 | }; | |
31794 | ||
31795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31798 | { | |
31799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31800 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31801 | ||
31802 | wxPyEndAllowThreads(__tstate); | |
31803 | if (PyErr_Occurred()) SWIG_fail; | |
31804 | } | |
c32bde28 | 31805 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31806 | return resultobj; |
31807 | fail: | |
31808 | return NULL; | |
31809 | } | |
31810 | ||
31811 | ||
c32bde28 | 31812 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31813 | PyObject *resultobj; |
31814 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31815 | size_t arg2 ; | |
31816 | wxMenu *result; | |
31817 | PyObject * obj0 = 0 ; | |
31818 | PyObject * obj1 = 0 ; | |
31819 | char *kwnames[] = { | |
31820 | (char *) "self",(char *) "pos", NULL | |
31821 | }; | |
31822 | ||
31823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31826 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31827 | if (PyErr_Occurred()) SWIG_fail; |
31828 | { | |
31829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31830 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31831 | ||
31832 | wxPyEndAllowThreads(__tstate); | |
31833 | if (PyErr_Occurred()) SWIG_fail; | |
31834 | } | |
31835 | { | |
412d302d | 31836 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31837 | } |
31838 | return resultobj; | |
31839 | fail: | |
31840 | return NULL; | |
31841 | } | |
31842 | ||
31843 | ||
c32bde28 | 31844 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31845 | PyObject *resultobj; |
31846 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31847 | size_t arg2 ; | |
31848 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31849 | wxString *arg4 = 0 ; | |
31850 | wxMenu *result; | |
ae8162c8 | 31851 | bool temp4 = false ; |
d55e5bfc RD |
31852 | PyObject * obj0 = 0 ; |
31853 | PyObject * obj1 = 0 ; | |
31854 | PyObject * obj2 = 0 ; | |
31855 | PyObject * obj3 = 0 ; | |
31856 | char *kwnames[] = { | |
31857 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31858 | }; | |
31859 | ||
31860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31863 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31864 | if (PyErr_Occurred()) SWIG_fail; |
31865 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31867 | { | |
31868 | arg4 = wxString_in_helper(obj3); | |
31869 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31870 | temp4 = true; |
d55e5bfc RD |
31871 | } |
31872 | { | |
31873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31874 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31875 | ||
31876 | wxPyEndAllowThreads(__tstate); | |
31877 | if (PyErr_Occurred()) SWIG_fail; | |
31878 | } | |
31879 | { | |
412d302d | 31880 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31881 | } |
31882 | { | |
31883 | if (temp4) | |
31884 | delete arg4; | |
31885 | } | |
31886 | return resultobj; | |
31887 | fail: | |
31888 | { | |
31889 | if (temp4) | |
31890 | delete arg4; | |
31891 | } | |
31892 | return NULL; | |
31893 | } | |
31894 | ||
31895 | ||
c32bde28 | 31896 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31897 | PyObject *resultobj; |
31898 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31899 | size_t arg2 ; | |
31900 | wxMenu *result; | |
31901 | PyObject * obj0 = 0 ; | |
31902 | PyObject * obj1 = 0 ; | |
31903 | char *kwnames[] = { | |
31904 | (char *) "self",(char *) "pos", NULL | |
31905 | }; | |
31906 | ||
31907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31910 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31911 | if (PyErr_Occurred()) SWIG_fail; |
31912 | { | |
31913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31914 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31915 | ||
31916 | wxPyEndAllowThreads(__tstate); | |
31917 | if (PyErr_Occurred()) SWIG_fail; | |
31918 | } | |
31919 | { | |
412d302d | 31920 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31921 | } |
31922 | return resultobj; | |
31923 | fail: | |
31924 | return NULL; | |
31925 | } | |
31926 | ||
31927 | ||
c32bde28 | 31928 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31929 | PyObject *resultobj; |
31930 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31931 | size_t arg2 ; | |
31932 | bool arg3 ; | |
31933 | PyObject * obj0 = 0 ; | |
31934 | PyObject * obj1 = 0 ; | |
31935 | PyObject * obj2 = 0 ; | |
31936 | char *kwnames[] = { | |
31937 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31938 | }; | |
31939 | ||
31940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31943 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 31944 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 31945 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31946 | if (PyErr_Occurred()) SWIG_fail; |
31947 | { | |
31948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31949 | (arg1)->EnableTop(arg2,arg3); | |
31950 | ||
31951 | wxPyEndAllowThreads(__tstate); | |
31952 | if (PyErr_Occurred()) SWIG_fail; | |
31953 | } | |
31954 | Py_INCREF(Py_None); resultobj = Py_None; | |
31955 | return resultobj; | |
31956 | fail: | |
31957 | return NULL; | |
31958 | } | |
31959 | ||
31960 | ||
c32bde28 | 31961 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31962 | PyObject *resultobj; |
31963 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31964 | size_t arg2 ; | |
31965 | bool result; | |
31966 | PyObject * obj0 = 0 ; | |
31967 | PyObject * obj1 = 0 ; | |
31968 | char *kwnames[] = { | |
31969 | (char *) "self",(char *) "pos", NULL | |
31970 | }; | |
31971 | ||
31972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 31975 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31976 | if (PyErr_Occurred()) SWIG_fail; |
31977 | { | |
31978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31979 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31980 | ||
31981 | wxPyEndAllowThreads(__tstate); | |
31982 | if (PyErr_Occurred()) SWIG_fail; | |
31983 | } | |
31984 | { | |
31985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31986 | } | |
31987 | return resultobj; | |
31988 | fail: | |
31989 | return NULL; | |
31990 | } | |
31991 | ||
31992 | ||
c32bde28 | 31993 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31994 | PyObject *resultobj; |
31995 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31996 | size_t arg2 ; | |
31997 | wxString *arg3 = 0 ; | |
ae8162c8 | 31998 | bool temp3 = false ; |
d55e5bfc RD |
31999 | PyObject * obj0 = 0 ; |
32000 | PyObject * obj1 = 0 ; | |
32001 | PyObject * obj2 = 0 ; | |
32002 | char *kwnames[] = { | |
32003 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
32004 | }; | |
32005 | ||
32006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32009 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32010 | if (PyErr_Occurred()) SWIG_fail; |
32011 | { | |
32012 | arg3 = wxString_in_helper(obj2); | |
32013 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32014 | temp3 = true; |
d55e5bfc RD |
32015 | } |
32016 | { | |
32017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32018 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
32019 | ||
32020 | wxPyEndAllowThreads(__tstate); | |
32021 | if (PyErr_Occurred()) SWIG_fail; | |
32022 | } | |
32023 | Py_INCREF(Py_None); resultobj = Py_None; | |
32024 | { | |
32025 | if (temp3) | |
32026 | delete arg3; | |
32027 | } | |
32028 | return resultobj; | |
32029 | fail: | |
32030 | { | |
32031 | if (temp3) | |
32032 | delete arg3; | |
32033 | } | |
32034 | return NULL; | |
32035 | } | |
32036 | ||
32037 | ||
c32bde28 | 32038 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32039 | PyObject *resultobj; |
32040 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32041 | size_t arg2 ; | |
32042 | wxString result; | |
32043 | PyObject * obj0 = 0 ; | |
32044 | PyObject * obj1 = 0 ; | |
32045 | char *kwnames[] = { | |
32046 | (char *) "self",(char *) "pos", NULL | |
32047 | }; | |
32048 | ||
32049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
32050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32052 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32053 | if (PyErr_Occurred()) SWIG_fail; |
32054 | { | |
32055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32056 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
32057 | ||
32058 | wxPyEndAllowThreads(__tstate); | |
32059 | if (PyErr_Occurred()) SWIG_fail; | |
32060 | } | |
32061 | { | |
32062 | #if wxUSE_UNICODE | |
32063 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32064 | #else | |
32065 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32066 | #endif | |
32067 | } | |
32068 | return resultobj; | |
32069 | fail: | |
32070 | return NULL; | |
32071 | } | |
32072 | ||
32073 | ||
c32bde28 | 32074 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32075 | PyObject *resultobj; |
32076 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32077 | wxString *arg2 = 0 ; | |
32078 | wxString *arg3 = 0 ; | |
32079 | int result; | |
ae8162c8 RD |
32080 | bool temp2 = false ; |
32081 | bool temp3 = false ; | |
d55e5bfc RD |
32082 | PyObject * obj0 = 0 ; |
32083 | PyObject * obj1 = 0 ; | |
32084 | PyObject * obj2 = 0 ; | |
32085 | char *kwnames[] = { | |
32086 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
32087 | }; | |
32088 | ||
32089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32092 | { | |
32093 | arg2 = wxString_in_helper(obj1); | |
32094 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32095 | temp2 = true; |
d55e5bfc RD |
32096 | } |
32097 | { | |
32098 | arg3 = wxString_in_helper(obj2); | |
32099 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32100 | temp3 = true; |
d55e5bfc RD |
32101 | } |
32102 | { | |
32103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32104 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
32105 | ||
32106 | wxPyEndAllowThreads(__tstate); | |
32107 | if (PyErr_Occurred()) SWIG_fail; | |
32108 | } | |
c32bde28 | 32109 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32110 | { |
32111 | if (temp2) | |
32112 | delete arg2; | |
32113 | } | |
32114 | { | |
32115 | if (temp3) | |
32116 | delete arg3; | |
32117 | } | |
32118 | return resultobj; | |
32119 | fail: | |
32120 | { | |
32121 | if (temp2) | |
32122 | delete arg2; | |
32123 | } | |
32124 | { | |
32125 | if (temp3) | |
32126 | delete arg3; | |
32127 | } | |
32128 | return NULL; | |
32129 | } | |
32130 | ||
32131 | ||
c32bde28 | 32132 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32133 | PyObject *resultobj; |
32134 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32135 | int arg2 ; | |
32136 | wxMenuItem *result; | |
32137 | PyObject * obj0 = 0 ; | |
32138 | PyObject * obj1 = 0 ; | |
32139 | char *kwnames[] = { | |
32140 | (char *) "self",(char *) "id", NULL | |
32141 | }; | |
32142 | ||
32143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32146 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32147 | if (PyErr_Occurred()) SWIG_fail; |
32148 | { | |
32149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32150 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32151 | ||
32152 | wxPyEndAllowThreads(__tstate); | |
32153 | if (PyErr_Occurred()) SWIG_fail; | |
32154 | } | |
32155 | { | |
412d302d | 32156 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32157 | } |
32158 | return resultobj; | |
32159 | fail: | |
32160 | return NULL; | |
32161 | } | |
32162 | ||
32163 | ||
c32bde28 | 32164 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32165 | PyObject *resultobj; |
32166 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32167 | wxString *arg2 = 0 ; | |
32168 | int result; | |
ae8162c8 | 32169 | bool temp2 = false ; |
d55e5bfc RD |
32170 | PyObject * obj0 = 0 ; |
32171 | PyObject * obj1 = 0 ; | |
32172 | char *kwnames[] = { | |
32173 | (char *) "self",(char *) "title", NULL | |
32174 | }; | |
32175 | ||
32176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32179 | { | |
32180 | arg2 = wxString_in_helper(obj1); | |
32181 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32182 | temp2 = true; |
d55e5bfc RD |
32183 | } |
32184 | { | |
32185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32186 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32187 | ||
32188 | wxPyEndAllowThreads(__tstate); | |
32189 | if (PyErr_Occurred()) SWIG_fail; | |
32190 | } | |
c32bde28 | 32191 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32192 | { |
32193 | if (temp2) | |
32194 | delete arg2; | |
32195 | } | |
32196 | return resultobj; | |
32197 | fail: | |
32198 | { | |
32199 | if (temp2) | |
32200 | delete arg2; | |
32201 | } | |
32202 | return NULL; | |
32203 | } | |
32204 | ||
32205 | ||
c32bde28 | 32206 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32207 | PyObject *resultobj; |
32208 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32209 | int arg2 ; | |
32210 | bool arg3 ; | |
32211 | PyObject * obj0 = 0 ; | |
32212 | PyObject * obj1 = 0 ; | |
32213 | PyObject * obj2 = 0 ; | |
32214 | char *kwnames[] = { | |
32215 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32216 | }; | |
32217 | ||
32218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32221 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32222 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32223 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32224 | if (PyErr_Occurred()) SWIG_fail; |
32225 | { | |
32226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32227 | (arg1)->Enable(arg2,arg3); | |
32228 | ||
32229 | wxPyEndAllowThreads(__tstate); | |
32230 | if (PyErr_Occurred()) SWIG_fail; | |
32231 | } | |
32232 | Py_INCREF(Py_None); resultobj = Py_None; | |
32233 | return resultobj; | |
32234 | fail: | |
32235 | return NULL; | |
32236 | } | |
32237 | ||
32238 | ||
c32bde28 | 32239 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32240 | PyObject *resultobj; |
32241 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32242 | int arg2 ; | |
32243 | bool arg3 ; | |
32244 | PyObject * obj0 = 0 ; | |
32245 | PyObject * obj1 = 0 ; | |
32246 | PyObject * obj2 = 0 ; | |
32247 | char *kwnames[] = { | |
32248 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32249 | }; | |
32250 | ||
32251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32254 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32255 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 32256 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32257 | if (PyErr_Occurred()) SWIG_fail; |
32258 | { | |
32259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32260 | (arg1)->Check(arg2,arg3); | |
32261 | ||
32262 | wxPyEndAllowThreads(__tstate); | |
32263 | if (PyErr_Occurred()) SWIG_fail; | |
32264 | } | |
32265 | Py_INCREF(Py_None); resultobj = Py_None; | |
32266 | return resultobj; | |
32267 | fail: | |
32268 | return NULL; | |
32269 | } | |
32270 | ||
32271 | ||
c32bde28 | 32272 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32273 | PyObject *resultobj; |
32274 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32275 | int arg2 ; | |
32276 | bool result; | |
32277 | PyObject * obj0 = 0 ; | |
32278 | PyObject * obj1 = 0 ; | |
32279 | char *kwnames[] = { | |
32280 | (char *) "self",(char *) "id", NULL | |
32281 | }; | |
32282 | ||
32283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32287 | if (PyErr_Occurred()) SWIG_fail; |
32288 | { | |
32289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32290 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32291 | ||
32292 | wxPyEndAllowThreads(__tstate); | |
32293 | if (PyErr_Occurred()) SWIG_fail; | |
32294 | } | |
32295 | { | |
32296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32297 | } | |
32298 | return resultobj; | |
32299 | fail: | |
32300 | return NULL; | |
32301 | } | |
32302 | ||
32303 | ||
c32bde28 | 32304 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32305 | PyObject *resultobj; |
32306 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32307 | int arg2 ; | |
32308 | bool result; | |
32309 | PyObject * obj0 = 0 ; | |
32310 | PyObject * obj1 = 0 ; | |
32311 | char *kwnames[] = { | |
32312 | (char *) "self",(char *) "id", NULL | |
32313 | }; | |
32314 | ||
32315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32318 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32319 | if (PyErr_Occurred()) SWIG_fail; |
32320 | { | |
32321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32322 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32323 | ||
32324 | wxPyEndAllowThreads(__tstate); | |
32325 | if (PyErr_Occurred()) SWIG_fail; | |
32326 | } | |
32327 | { | |
32328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32329 | } | |
32330 | return resultobj; | |
32331 | fail: | |
32332 | return NULL; | |
32333 | } | |
32334 | ||
32335 | ||
c32bde28 | 32336 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32337 | PyObject *resultobj; |
32338 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32339 | int arg2 ; | |
32340 | wxString *arg3 = 0 ; | |
ae8162c8 | 32341 | bool temp3 = false ; |
d55e5bfc RD |
32342 | PyObject * obj0 = 0 ; |
32343 | PyObject * obj1 = 0 ; | |
32344 | PyObject * obj2 = 0 ; | |
32345 | char *kwnames[] = { | |
32346 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32347 | }; | |
32348 | ||
32349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32352 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32353 | if (PyErr_Occurred()) SWIG_fail; |
32354 | { | |
32355 | arg3 = wxString_in_helper(obj2); | |
32356 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32357 | temp3 = true; |
d55e5bfc RD |
32358 | } |
32359 | { | |
32360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32361 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32362 | ||
32363 | wxPyEndAllowThreads(__tstate); | |
32364 | if (PyErr_Occurred()) SWIG_fail; | |
32365 | } | |
32366 | Py_INCREF(Py_None); resultobj = Py_None; | |
32367 | { | |
32368 | if (temp3) | |
32369 | delete arg3; | |
32370 | } | |
32371 | return resultobj; | |
32372 | fail: | |
32373 | { | |
32374 | if (temp3) | |
32375 | delete arg3; | |
32376 | } | |
32377 | return NULL; | |
32378 | } | |
32379 | ||
32380 | ||
c32bde28 | 32381 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32382 | PyObject *resultobj; |
32383 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32384 | int arg2 ; | |
32385 | wxString result; | |
32386 | PyObject * obj0 = 0 ; | |
32387 | PyObject * obj1 = 0 ; | |
32388 | char *kwnames[] = { | |
32389 | (char *) "self",(char *) "id", NULL | |
32390 | }; | |
32391 | ||
32392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32395 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32396 | if (PyErr_Occurred()) SWIG_fail; |
32397 | { | |
32398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32399 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32400 | ||
32401 | wxPyEndAllowThreads(__tstate); | |
32402 | if (PyErr_Occurred()) SWIG_fail; | |
32403 | } | |
32404 | { | |
32405 | #if wxUSE_UNICODE | |
32406 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32407 | #else | |
32408 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32409 | #endif | |
32410 | } | |
32411 | return resultobj; | |
32412 | fail: | |
32413 | return NULL; | |
32414 | } | |
32415 | ||
32416 | ||
c32bde28 | 32417 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32418 | PyObject *resultobj; |
32419 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32420 | int arg2 ; | |
32421 | wxString *arg3 = 0 ; | |
ae8162c8 | 32422 | bool temp3 = false ; |
d55e5bfc RD |
32423 | PyObject * obj0 = 0 ; |
32424 | PyObject * obj1 = 0 ; | |
32425 | PyObject * obj2 = 0 ; | |
32426 | char *kwnames[] = { | |
32427 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32428 | }; | |
32429 | ||
32430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32433 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32434 | if (PyErr_Occurred()) SWIG_fail; |
32435 | { | |
32436 | arg3 = wxString_in_helper(obj2); | |
32437 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32438 | temp3 = true; |
d55e5bfc RD |
32439 | } |
32440 | { | |
32441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32442 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32443 | ||
32444 | wxPyEndAllowThreads(__tstate); | |
32445 | if (PyErr_Occurred()) SWIG_fail; | |
32446 | } | |
32447 | Py_INCREF(Py_None); resultobj = Py_None; | |
32448 | { | |
32449 | if (temp3) | |
32450 | delete arg3; | |
32451 | } | |
32452 | return resultobj; | |
32453 | fail: | |
32454 | { | |
32455 | if (temp3) | |
32456 | delete arg3; | |
32457 | } | |
32458 | return NULL; | |
32459 | } | |
32460 | ||
32461 | ||
c32bde28 | 32462 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32463 | PyObject *resultobj; |
32464 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32465 | int arg2 ; | |
32466 | wxString result; | |
32467 | PyObject * obj0 = 0 ; | |
32468 | PyObject * obj1 = 0 ; | |
32469 | char *kwnames[] = { | |
32470 | (char *) "self",(char *) "id", NULL | |
32471 | }; | |
32472 | ||
32473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32476 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32477 | if (PyErr_Occurred()) SWIG_fail; |
32478 | { | |
32479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32480 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32481 | ||
32482 | wxPyEndAllowThreads(__tstate); | |
32483 | if (PyErr_Occurred()) SWIG_fail; | |
32484 | } | |
32485 | { | |
32486 | #if wxUSE_UNICODE | |
32487 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32488 | #else | |
32489 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32490 | #endif | |
32491 | } | |
32492 | return resultobj; | |
32493 | fail: | |
32494 | return NULL; | |
32495 | } | |
32496 | ||
32497 | ||
c32bde28 | 32498 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32499 | PyObject *resultobj; |
32500 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32501 | wxFrame *result; | |
32502 | PyObject * obj0 = 0 ; | |
32503 | char *kwnames[] = { | |
32504 | (char *) "self", NULL | |
32505 | }; | |
32506 | ||
32507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32510 | { | |
32511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32512 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32513 | ||
32514 | wxPyEndAllowThreads(__tstate); | |
32515 | if (PyErr_Occurred()) SWIG_fail; | |
32516 | } | |
32517 | { | |
412d302d | 32518 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32519 | } |
32520 | return resultobj; | |
32521 | fail: | |
32522 | return NULL; | |
32523 | } | |
32524 | ||
32525 | ||
c32bde28 | 32526 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32527 | PyObject *resultobj; |
32528 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32529 | bool result; | |
32530 | PyObject * obj0 = 0 ; | |
32531 | char *kwnames[] = { | |
32532 | (char *) "self", NULL | |
32533 | }; | |
32534 | ||
32535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32538 | { | |
32539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32540 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32541 | ||
32542 | wxPyEndAllowThreads(__tstate); | |
32543 | if (PyErr_Occurred()) SWIG_fail; | |
32544 | } | |
32545 | { | |
32546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32547 | } | |
32548 | return resultobj; | |
32549 | fail: | |
32550 | return NULL; | |
32551 | } | |
32552 | ||
32553 | ||
c32bde28 | 32554 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32555 | PyObject *resultobj; |
32556 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32557 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32558 | PyObject * obj0 = 0 ; | |
32559 | PyObject * obj1 = 0 ; | |
32560 | char *kwnames[] = { | |
32561 | (char *) "self",(char *) "frame", NULL | |
32562 | }; | |
32563 | ||
32564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32567 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32569 | { | |
32570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32571 | (arg1)->Attach(arg2); | |
32572 | ||
32573 | wxPyEndAllowThreads(__tstate); | |
32574 | if (PyErr_Occurred()) SWIG_fail; | |
32575 | } | |
32576 | Py_INCREF(Py_None); resultobj = Py_None; | |
32577 | return resultobj; | |
32578 | fail: | |
32579 | return NULL; | |
32580 | } | |
32581 | ||
32582 | ||
c32bde28 | 32583 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32584 | PyObject *resultobj; |
32585 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32586 | PyObject * obj0 = 0 ; | |
32587 | char *kwnames[] = { | |
32588 | (char *) "self", NULL | |
32589 | }; | |
32590 | ||
32591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32594 | { | |
32595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32596 | (arg1)->Detach(); | |
32597 | ||
32598 | wxPyEndAllowThreads(__tstate); | |
32599 | if (PyErr_Occurred()) SWIG_fail; | |
32600 | } | |
32601 | Py_INCREF(Py_None); resultobj = Py_None; | |
32602 | return resultobj; | |
32603 | fail: | |
32604 | return NULL; | |
32605 | } | |
32606 | ||
32607 | ||
c32bde28 | 32608 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32609 | PyObject *obj; |
32610 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32611 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32612 | Py_INCREF(obj); | |
32613 | return Py_BuildValue((char *)""); | |
32614 | } | |
c32bde28 | 32615 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32616 | PyObject *resultobj; |
32617 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32618 | int arg2 = (int) wxID_ANY ; | |
32619 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32620 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32621 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32622 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32623 | int arg5 = (int) wxITEM_NORMAL ; | |
32624 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32625 | wxMenuItem *result; | |
ae8162c8 RD |
32626 | bool temp3 = false ; |
32627 | bool temp4 = false ; | |
d55e5bfc RD |
32628 | PyObject * obj0 = 0 ; |
32629 | PyObject * obj1 = 0 ; | |
32630 | PyObject * obj2 = 0 ; | |
32631 | PyObject * obj3 = 0 ; | |
32632 | PyObject * obj4 = 0 ; | |
32633 | PyObject * obj5 = 0 ; | |
32634 | char *kwnames[] = { | |
32635 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32636 | }; | |
32637 | ||
32638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32639 | if (obj0) { | |
32640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32642 | } | |
32643 | if (obj1) { | |
c32bde28 | 32644 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32645 | if (PyErr_Occurred()) SWIG_fail; |
32646 | } | |
32647 | if (obj2) { | |
32648 | { | |
32649 | arg3 = wxString_in_helper(obj2); | |
32650 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32651 | temp3 = true; |
d55e5bfc RD |
32652 | } |
32653 | } | |
32654 | if (obj3) { | |
32655 | { | |
32656 | arg4 = wxString_in_helper(obj3); | |
32657 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32658 | temp4 = true; |
d55e5bfc RD |
32659 | } |
32660 | } | |
32661 | if (obj4) { | |
c32bde28 | 32662 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32663 | if (PyErr_Occurred()) SWIG_fail; |
32664 | } | |
32665 | if (obj5) { | |
32666 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32668 | } | |
32669 | { | |
32670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32671 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32672 | ||
32673 | wxPyEndAllowThreads(__tstate); | |
32674 | if (PyErr_Occurred()) SWIG_fail; | |
32675 | } | |
32676 | { | |
412d302d | 32677 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32678 | } |
32679 | { | |
32680 | if (temp3) | |
32681 | delete arg3; | |
32682 | } | |
32683 | { | |
32684 | if (temp4) | |
32685 | delete arg4; | |
32686 | } | |
32687 | return resultobj; | |
32688 | fail: | |
32689 | { | |
32690 | if (temp3) | |
32691 | delete arg3; | |
32692 | } | |
32693 | { | |
32694 | if (temp4) | |
32695 | delete arg4; | |
32696 | } | |
32697 | return NULL; | |
32698 | } | |
32699 | ||
32700 | ||
c32bde28 | 32701 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32702 | PyObject *resultobj; |
32703 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32704 | wxMenu *result; | |
32705 | PyObject * obj0 = 0 ; | |
32706 | char *kwnames[] = { | |
32707 | (char *) "self", NULL | |
32708 | }; | |
32709 | ||
32710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32713 | { | |
32714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32715 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32716 | ||
32717 | wxPyEndAllowThreads(__tstate); | |
32718 | if (PyErr_Occurred()) SWIG_fail; | |
32719 | } | |
32720 | { | |
412d302d | 32721 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32722 | } |
32723 | return resultobj; | |
32724 | fail: | |
32725 | return NULL; | |
32726 | } | |
32727 | ||
32728 | ||
c32bde28 | 32729 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32730 | PyObject *resultobj; |
32731 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32732 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32733 | PyObject * obj0 = 0 ; | |
32734 | PyObject * obj1 = 0 ; | |
32735 | char *kwnames[] = { | |
32736 | (char *) "self",(char *) "menu", NULL | |
32737 | }; | |
32738 | ||
32739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32744 | { | |
32745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32746 | (arg1)->SetMenu(arg2); | |
32747 | ||
32748 | wxPyEndAllowThreads(__tstate); | |
32749 | if (PyErr_Occurred()) SWIG_fail; | |
32750 | } | |
32751 | Py_INCREF(Py_None); resultobj = Py_None; | |
32752 | return resultobj; | |
32753 | fail: | |
32754 | return NULL; | |
32755 | } | |
32756 | ||
32757 | ||
c32bde28 | 32758 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32759 | PyObject *resultobj; |
32760 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32761 | int arg2 ; | |
32762 | PyObject * obj0 = 0 ; | |
32763 | PyObject * obj1 = 0 ; | |
32764 | char *kwnames[] = { | |
32765 | (char *) "self",(char *) "id", NULL | |
32766 | }; | |
32767 | ||
32768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 32771 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32772 | if (PyErr_Occurred()) SWIG_fail; |
32773 | { | |
32774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32775 | (arg1)->SetId(arg2); | |
32776 | ||
32777 | wxPyEndAllowThreads(__tstate); | |
32778 | if (PyErr_Occurred()) SWIG_fail; | |
32779 | } | |
32780 | Py_INCREF(Py_None); resultobj = Py_None; | |
32781 | return resultobj; | |
32782 | fail: | |
32783 | return NULL; | |
32784 | } | |
32785 | ||
32786 | ||
c32bde28 | 32787 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32788 | PyObject *resultobj; |
32789 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32790 | int result; | |
32791 | PyObject * obj0 = 0 ; | |
32792 | char *kwnames[] = { | |
32793 | (char *) "self", NULL | |
32794 | }; | |
32795 | ||
32796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32799 | { | |
32800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32801 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32802 | ||
32803 | wxPyEndAllowThreads(__tstate); | |
32804 | if (PyErr_Occurred()) SWIG_fail; | |
32805 | } | |
c32bde28 | 32806 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32807 | return resultobj; |
32808 | fail: | |
32809 | return NULL; | |
32810 | } | |
32811 | ||
32812 | ||
c32bde28 | 32813 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32814 | PyObject *resultobj; |
32815 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32816 | bool result; | |
32817 | PyObject * obj0 = 0 ; | |
32818 | char *kwnames[] = { | |
32819 | (char *) "self", NULL | |
32820 | }; | |
32821 | ||
32822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
32823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32825 | { | |
32826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32827 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32828 | ||
32829 | wxPyEndAllowThreads(__tstate); | |
32830 | if (PyErr_Occurred()) SWIG_fail; | |
32831 | } | |
32832 | { | |
32833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32834 | } | |
32835 | return resultobj; | |
32836 | fail: | |
32837 | return NULL; | |
32838 | } | |
32839 | ||
32840 | ||
c32bde28 | 32841 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32842 | PyObject *resultobj; |
32843 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32844 | wxString *arg2 = 0 ; | |
ae8162c8 | 32845 | bool temp2 = false ; |
d55e5bfc RD |
32846 | PyObject * obj0 = 0 ; |
32847 | PyObject * obj1 = 0 ; | |
32848 | char *kwnames[] = { | |
32849 | (char *) "self",(char *) "str", NULL | |
32850 | }; | |
32851 | ||
32852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
32853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32855 | { | |
32856 | arg2 = wxString_in_helper(obj1); | |
32857 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32858 | temp2 = true; |
d55e5bfc RD |
32859 | } |
32860 | { | |
32861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32862 | (arg1)->SetText((wxString const &)*arg2); | |
32863 | ||
32864 | wxPyEndAllowThreads(__tstate); | |
32865 | if (PyErr_Occurred()) SWIG_fail; | |
32866 | } | |
32867 | Py_INCREF(Py_None); resultobj = Py_None; | |
32868 | { | |
32869 | if (temp2) | |
32870 | delete arg2; | |
32871 | } | |
32872 | return resultobj; | |
32873 | fail: | |
32874 | { | |
32875 | if (temp2) | |
32876 | delete arg2; | |
32877 | } | |
32878 | return NULL; | |
32879 | } | |
32880 | ||
32881 | ||
c32bde28 | 32882 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32883 | PyObject *resultobj; |
32884 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32885 | wxString result; | |
32886 | PyObject * obj0 = 0 ; | |
32887 | char *kwnames[] = { | |
32888 | (char *) "self", NULL | |
32889 | }; | |
32890 | ||
32891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
32892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32894 | { | |
32895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32896 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32897 | ||
32898 | wxPyEndAllowThreads(__tstate); | |
32899 | if (PyErr_Occurred()) SWIG_fail; | |
32900 | } | |
32901 | { | |
32902 | #if wxUSE_UNICODE | |
32903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32904 | #else | |
32905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32906 | #endif | |
32907 | } | |
32908 | return resultobj; | |
32909 | fail: | |
32910 | return NULL; | |
32911 | } | |
32912 | ||
32913 | ||
c32bde28 | 32914 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32915 | PyObject *resultobj; |
32916 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32917 | wxString *result; | |
32918 | PyObject * obj0 = 0 ; | |
32919 | char *kwnames[] = { | |
32920 | (char *) "self", NULL | |
32921 | }; | |
32922 | ||
32923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
32924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32926 | { | |
32927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32928 | { | |
32929 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32930 | result = (wxString *) &_result_ref; | |
32931 | } | |
32932 | ||
32933 | wxPyEndAllowThreads(__tstate); | |
32934 | if (PyErr_Occurred()) SWIG_fail; | |
32935 | } | |
32936 | { | |
32937 | #if wxUSE_UNICODE | |
32938 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32939 | #else | |
32940 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32941 | #endif | |
32942 | } | |
32943 | return resultobj; | |
32944 | fail: | |
32945 | return NULL; | |
32946 | } | |
32947 | ||
32948 | ||
c32bde28 | 32949 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32950 | PyObject *resultobj; |
32951 | wxString *arg1 = 0 ; | |
32952 | wxString result; | |
ae8162c8 | 32953 | bool temp1 = false ; |
d55e5bfc RD |
32954 | PyObject * obj0 = 0 ; |
32955 | char *kwnames[] = { | |
32956 | (char *) "text", NULL | |
32957 | }; | |
32958 | ||
32959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32960 | { | |
32961 | arg1 = wxString_in_helper(obj0); | |
32962 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 32963 | temp1 = true; |
d55e5bfc RD |
32964 | } |
32965 | { | |
32966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32967 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32968 | ||
32969 | wxPyEndAllowThreads(__tstate); | |
32970 | if (PyErr_Occurred()) SWIG_fail; | |
32971 | } | |
32972 | { | |
32973 | #if wxUSE_UNICODE | |
32974 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32975 | #else | |
32976 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32977 | #endif | |
32978 | } | |
32979 | { | |
32980 | if (temp1) | |
32981 | delete arg1; | |
32982 | } | |
32983 | return resultobj; | |
32984 | fail: | |
32985 | { | |
32986 | if (temp1) | |
32987 | delete arg1; | |
32988 | } | |
32989 | return NULL; | |
32990 | } | |
32991 | ||
32992 | ||
c32bde28 | 32993 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32994 | PyObject *resultobj; |
32995 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32996 | int result; | |
32997 | PyObject * obj0 = 0 ; | |
32998 | char *kwnames[] = { | |
32999 | (char *) "self", NULL | |
33000 | }; | |
33001 | ||
33002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
33003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33005 | { | |
33006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33007 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
33008 | ||
33009 | wxPyEndAllowThreads(__tstate); | |
33010 | if (PyErr_Occurred()) SWIG_fail; | |
33011 | } | |
c32bde28 | 33012 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33013 | return resultobj; |
33014 | fail: | |
33015 | return NULL; | |
33016 | } | |
33017 | ||
33018 | ||
c32bde28 | 33019 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33020 | PyObject *resultobj; |
33021 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33022 | int arg2 ; | |
33023 | PyObject * obj0 = 0 ; | |
33024 | PyObject * obj1 = 0 ; | |
33025 | char *kwnames[] = { | |
33026 | (char *) "self",(char *) "kind", NULL | |
33027 | }; | |
33028 | ||
33029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
33030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33032 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33033 | if (PyErr_Occurred()) SWIG_fail; |
33034 | { | |
33035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33036 | (arg1)->SetKind((wxItemKind )arg2); | |
33037 | ||
33038 | wxPyEndAllowThreads(__tstate); | |
33039 | if (PyErr_Occurred()) SWIG_fail; | |
33040 | } | |
33041 | Py_INCREF(Py_None); resultobj = Py_None; | |
33042 | return resultobj; | |
33043 | fail: | |
33044 | return NULL; | |
33045 | } | |
33046 | ||
33047 | ||
c32bde28 | 33048 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33049 | PyObject *resultobj; |
33050 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33051 | bool arg2 ; | |
33052 | PyObject * obj0 = 0 ; | |
33053 | PyObject * obj1 = 0 ; | |
33054 | char *kwnames[] = { | |
33055 | (char *) "self",(char *) "checkable", NULL | |
33056 | }; | |
33057 | ||
33058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
33059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33061 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33062 | if (PyErr_Occurred()) SWIG_fail; |
33063 | { | |
33064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33065 | (arg1)->SetCheckable(arg2); | |
33066 | ||
33067 | wxPyEndAllowThreads(__tstate); | |
33068 | if (PyErr_Occurred()) SWIG_fail; | |
33069 | } | |
33070 | Py_INCREF(Py_None); resultobj = Py_None; | |
33071 | return resultobj; | |
33072 | fail: | |
33073 | return NULL; | |
33074 | } | |
33075 | ||
33076 | ||
c32bde28 | 33077 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33078 | PyObject *resultobj; |
33079 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33080 | bool result; | |
33081 | PyObject * obj0 = 0 ; | |
33082 | char *kwnames[] = { | |
33083 | (char *) "self", NULL | |
33084 | }; | |
33085 | ||
33086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
33087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33089 | { | |
33090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33091 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
33092 | ||
33093 | wxPyEndAllowThreads(__tstate); | |
33094 | if (PyErr_Occurred()) SWIG_fail; | |
33095 | } | |
33096 | { | |
33097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33098 | } | |
33099 | return resultobj; | |
33100 | fail: | |
33101 | return NULL; | |
33102 | } | |
33103 | ||
33104 | ||
c32bde28 | 33105 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33106 | PyObject *resultobj; |
33107 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33108 | bool result; | |
33109 | PyObject * obj0 = 0 ; | |
33110 | char *kwnames[] = { | |
33111 | (char *) "self", NULL | |
33112 | }; | |
33113 | ||
33114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
33115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33117 | { | |
33118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33119 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
33120 | ||
33121 | wxPyEndAllowThreads(__tstate); | |
33122 | if (PyErr_Occurred()) SWIG_fail; | |
33123 | } | |
33124 | { | |
33125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33126 | } | |
33127 | return resultobj; | |
33128 | fail: | |
33129 | return NULL; | |
33130 | } | |
33131 | ||
33132 | ||
c32bde28 | 33133 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33134 | PyObject *resultobj; |
33135 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33136 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33137 | PyObject * obj0 = 0 ; | |
33138 | PyObject * obj1 = 0 ; | |
33139 | char *kwnames[] = { | |
33140 | (char *) "self",(char *) "menu", NULL | |
33141 | }; | |
33142 | ||
33143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33148 | { | |
33149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33150 | (arg1)->SetSubMenu(arg2); | |
33151 | ||
33152 | wxPyEndAllowThreads(__tstate); | |
33153 | if (PyErr_Occurred()) SWIG_fail; | |
33154 | } | |
33155 | Py_INCREF(Py_None); resultobj = Py_None; | |
33156 | return resultobj; | |
33157 | fail: | |
33158 | return NULL; | |
33159 | } | |
33160 | ||
33161 | ||
c32bde28 | 33162 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33163 | PyObject *resultobj; |
33164 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33165 | wxMenu *result; | |
33166 | PyObject * obj0 = 0 ; | |
33167 | char *kwnames[] = { | |
33168 | (char *) "self", NULL | |
33169 | }; | |
33170 | ||
33171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33174 | { | |
33175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33176 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33177 | ||
33178 | wxPyEndAllowThreads(__tstate); | |
33179 | if (PyErr_Occurred()) SWIG_fail; | |
33180 | } | |
33181 | { | |
412d302d | 33182 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33183 | } |
33184 | return resultobj; | |
33185 | fail: | |
33186 | return NULL; | |
33187 | } | |
33188 | ||
33189 | ||
c32bde28 | 33190 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33191 | PyObject *resultobj; |
33192 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33193 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33194 | PyObject * obj0 = 0 ; |
33195 | PyObject * obj1 = 0 ; | |
33196 | char *kwnames[] = { | |
33197 | (char *) "self",(char *) "enable", NULL | |
33198 | }; | |
33199 | ||
33200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33203 | if (obj1) { | |
c32bde28 | 33204 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33205 | if (PyErr_Occurred()) SWIG_fail; |
33206 | } | |
33207 | { | |
33208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33209 | (arg1)->Enable(arg2); | |
33210 | ||
33211 | wxPyEndAllowThreads(__tstate); | |
33212 | if (PyErr_Occurred()) SWIG_fail; | |
33213 | } | |
33214 | Py_INCREF(Py_None); resultobj = Py_None; | |
33215 | return resultobj; | |
33216 | fail: | |
33217 | return NULL; | |
33218 | } | |
33219 | ||
33220 | ||
c32bde28 | 33221 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33222 | PyObject *resultobj; |
33223 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33224 | bool result; | |
33225 | PyObject * obj0 = 0 ; | |
33226 | char *kwnames[] = { | |
33227 | (char *) "self", NULL | |
33228 | }; | |
33229 | ||
33230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33233 | { | |
33234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33235 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33236 | ||
33237 | wxPyEndAllowThreads(__tstate); | |
33238 | if (PyErr_Occurred()) SWIG_fail; | |
33239 | } | |
33240 | { | |
33241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33242 | } | |
33243 | return resultobj; | |
33244 | fail: | |
33245 | return NULL; | |
33246 | } | |
33247 | ||
33248 | ||
c32bde28 | 33249 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33250 | PyObject *resultobj; |
33251 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33252 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33253 | PyObject * obj0 = 0 ; |
33254 | PyObject * obj1 = 0 ; | |
33255 | char *kwnames[] = { | |
33256 | (char *) "self",(char *) "check", NULL | |
33257 | }; | |
33258 | ||
33259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33262 | if (obj1) { | |
c32bde28 | 33263 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33264 | if (PyErr_Occurred()) SWIG_fail; |
33265 | } | |
33266 | { | |
33267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33268 | (arg1)->Check(arg2); | |
33269 | ||
33270 | wxPyEndAllowThreads(__tstate); | |
33271 | if (PyErr_Occurred()) SWIG_fail; | |
33272 | } | |
33273 | Py_INCREF(Py_None); resultobj = Py_None; | |
33274 | return resultobj; | |
33275 | fail: | |
33276 | return NULL; | |
33277 | } | |
33278 | ||
33279 | ||
c32bde28 | 33280 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33281 | PyObject *resultobj; |
33282 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33283 | bool result; | |
33284 | PyObject * obj0 = 0 ; | |
33285 | char *kwnames[] = { | |
33286 | (char *) "self", NULL | |
33287 | }; | |
33288 | ||
33289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33292 | { | |
33293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33294 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33295 | ||
33296 | wxPyEndAllowThreads(__tstate); | |
33297 | if (PyErr_Occurred()) SWIG_fail; | |
33298 | } | |
33299 | { | |
33300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33301 | } | |
33302 | return resultobj; | |
33303 | fail: | |
33304 | return NULL; | |
33305 | } | |
33306 | ||
33307 | ||
c32bde28 | 33308 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33309 | PyObject *resultobj; |
33310 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33311 | PyObject * obj0 = 0 ; | |
33312 | char *kwnames[] = { | |
33313 | (char *) "self", NULL | |
33314 | }; | |
33315 | ||
33316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33319 | { | |
33320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33321 | (arg1)->Toggle(); | |
33322 | ||
33323 | wxPyEndAllowThreads(__tstate); | |
33324 | if (PyErr_Occurred()) SWIG_fail; | |
33325 | } | |
33326 | Py_INCREF(Py_None); resultobj = Py_None; | |
33327 | return resultobj; | |
33328 | fail: | |
33329 | return NULL; | |
33330 | } | |
33331 | ||
33332 | ||
c32bde28 | 33333 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33334 | PyObject *resultobj; |
33335 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33336 | wxString *arg2 = 0 ; | |
ae8162c8 | 33337 | bool temp2 = false ; |
d55e5bfc RD |
33338 | PyObject * obj0 = 0 ; |
33339 | PyObject * obj1 = 0 ; | |
33340 | char *kwnames[] = { | |
33341 | (char *) "self",(char *) "str", NULL | |
33342 | }; | |
33343 | ||
33344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33347 | { | |
33348 | arg2 = wxString_in_helper(obj1); | |
33349 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33350 | temp2 = true; |
d55e5bfc RD |
33351 | } |
33352 | { | |
33353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33354 | (arg1)->SetHelp((wxString const &)*arg2); | |
33355 | ||
33356 | wxPyEndAllowThreads(__tstate); | |
33357 | if (PyErr_Occurred()) SWIG_fail; | |
33358 | } | |
33359 | Py_INCREF(Py_None); resultobj = Py_None; | |
33360 | { | |
33361 | if (temp2) | |
33362 | delete arg2; | |
33363 | } | |
33364 | return resultobj; | |
33365 | fail: | |
33366 | { | |
33367 | if (temp2) | |
33368 | delete arg2; | |
33369 | } | |
33370 | return NULL; | |
33371 | } | |
33372 | ||
33373 | ||
c32bde28 | 33374 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33375 | PyObject *resultobj; |
33376 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33377 | wxString *result; | |
33378 | PyObject * obj0 = 0 ; | |
33379 | char *kwnames[] = { | |
33380 | (char *) "self", NULL | |
33381 | }; | |
33382 | ||
33383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33386 | { | |
33387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33388 | { | |
33389 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33390 | result = (wxString *) &_result_ref; | |
33391 | } | |
33392 | ||
33393 | wxPyEndAllowThreads(__tstate); | |
33394 | if (PyErr_Occurred()) SWIG_fail; | |
33395 | } | |
33396 | { | |
33397 | #if wxUSE_UNICODE | |
33398 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33399 | #else | |
33400 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33401 | #endif | |
33402 | } | |
33403 | return resultobj; | |
33404 | fail: | |
33405 | return NULL; | |
33406 | } | |
33407 | ||
33408 | ||
c32bde28 | 33409 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33410 | PyObject *resultobj; |
33411 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33412 | wxAcceleratorEntry *result; | |
33413 | PyObject * obj0 = 0 ; | |
33414 | char *kwnames[] = { | |
33415 | (char *) "self", NULL | |
33416 | }; | |
33417 | ||
33418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33421 | { | |
33422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33423 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33424 | ||
33425 | wxPyEndAllowThreads(__tstate); | |
33426 | if (PyErr_Occurred()) SWIG_fail; | |
33427 | } | |
33428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33429 | return resultobj; | |
33430 | fail: | |
33431 | return NULL; | |
33432 | } | |
33433 | ||
33434 | ||
c32bde28 | 33435 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33436 | PyObject *resultobj; |
33437 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33438 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33439 | PyObject * obj0 = 0 ; | |
33440 | PyObject * obj1 = 0 ; | |
33441 | char *kwnames[] = { | |
33442 | (char *) "self",(char *) "accel", NULL | |
33443 | }; | |
33444 | ||
33445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33450 | { | |
33451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33452 | (arg1)->SetAccel(arg2); | |
33453 | ||
33454 | wxPyEndAllowThreads(__tstate); | |
33455 | if (PyErr_Occurred()) SWIG_fail; | |
33456 | } | |
33457 | Py_INCREF(Py_None); resultobj = Py_None; | |
33458 | return resultobj; | |
33459 | fail: | |
33460 | return NULL; | |
33461 | } | |
33462 | ||
33463 | ||
c32bde28 | 33464 | static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33465 | PyObject *resultobj; |
33466 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33467 | wxFont *arg2 = 0 ; | |
33468 | PyObject * obj0 = 0 ; | |
33469 | PyObject * obj1 = 0 ; | |
33470 | char *kwnames[] = { | |
33471 | (char *) "self",(char *) "font", NULL | |
33472 | }; | |
33473 | ||
33474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
33475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
33478 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33479 | SWIG_fail; | |
33480 | if (arg2 == NULL) { | |
33481 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33482 | SWIG_fail; | |
33483 | } | |
33484 | { | |
33485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33486 | (arg1)->SetFont((wxFont const &)*arg2); | |
33487 | ||
33488 | wxPyEndAllowThreads(__tstate); | |
33489 | if (PyErr_Occurred()) SWIG_fail; | |
33490 | } | |
33491 | Py_INCREF(Py_None); resultobj = Py_None; | |
33492 | return resultobj; | |
33493 | fail: | |
33494 | return NULL; | |
33495 | } | |
33496 | ||
33497 | ||
c32bde28 | 33498 | static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33499 | PyObject *resultobj; |
33500 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33501 | wxFont result; | |
33502 | PyObject * obj0 = 0 ; | |
33503 | char *kwnames[] = { | |
33504 | (char *) "self", NULL | |
33505 | }; | |
33506 | ||
33507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
33508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33510 | { | |
33511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33512 | result = (arg1)->GetFont(); | |
33513 | ||
33514 | wxPyEndAllowThreads(__tstate); | |
33515 | if (PyErr_Occurred()) SWIG_fail; | |
33516 | } | |
33517 | { | |
33518 | wxFont * resultptr; | |
33519 | resultptr = new wxFont((wxFont &) result); | |
33520 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
33521 | } | |
33522 | return resultobj; | |
33523 | fail: | |
33524 | return NULL; | |
33525 | } | |
33526 | ||
33527 | ||
c32bde28 | 33528 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33529 | PyObject *resultobj; |
33530 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33531 | wxColour *arg2 = 0 ; | |
33532 | wxColour temp2 ; | |
33533 | PyObject * obj0 = 0 ; | |
33534 | PyObject * obj1 = 0 ; | |
33535 | char *kwnames[] = { | |
33536 | (char *) "self",(char *) "colText", NULL | |
33537 | }; | |
33538 | ||
33539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
33540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33542 | { | |
33543 | arg2 = &temp2; | |
33544 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33545 | } | |
33546 | { | |
33547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33548 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
33549 | ||
33550 | wxPyEndAllowThreads(__tstate); | |
33551 | if (PyErr_Occurred()) SWIG_fail; | |
33552 | } | |
33553 | Py_INCREF(Py_None); resultobj = Py_None; | |
33554 | return resultobj; | |
33555 | fail: | |
33556 | return NULL; | |
33557 | } | |
33558 | ||
33559 | ||
c32bde28 | 33560 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33561 | PyObject *resultobj; |
33562 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33563 | wxColour result; | |
33564 | PyObject * obj0 = 0 ; | |
33565 | char *kwnames[] = { | |
33566 | (char *) "self", NULL | |
33567 | }; | |
33568 | ||
33569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
33570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33572 | { | |
33573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33574 | result = (arg1)->GetTextColour(); | |
33575 | ||
33576 | wxPyEndAllowThreads(__tstate); | |
33577 | if (PyErr_Occurred()) SWIG_fail; | |
33578 | } | |
33579 | { | |
33580 | wxColour * resultptr; | |
33581 | resultptr = new wxColour((wxColour &) result); | |
33582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33583 | } | |
33584 | return resultobj; | |
33585 | fail: | |
33586 | return NULL; | |
33587 | } | |
33588 | ||
33589 | ||
c32bde28 | 33590 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33591 | PyObject *resultobj; |
33592 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33593 | wxColour *arg2 = 0 ; | |
33594 | wxColour temp2 ; | |
33595 | PyObject * obj0 = 0 ; | |
33596 | PyObject * obj1 = 0 ; | |
33597 | char *kwnames[] = { | |
33598 | (char *) "self",(char *) "colBack", NULL | |
33599 | }; | |
33600 | ||
33601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
33602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33604 | { | |
33605 | arg2 = &temp2; | |
33606 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33607 | } | |
33608 | { | |
33609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33610 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
33611 | ||
33612 | wxPyEndAllowThreads(__tstate); | |
33613 | if (PyErr_Occurred()) SWIG_fail; | |
33614 | } | |
33615 | Py_INCREF(Py_None); resultobj = Py_None; | |
33616 | return resultobj; | |
33617 | fail: | |
33618 | return NULL; | |
33619 | } | |
33620 | ||
33621 | ||
c32bde28 | 33622 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33623 | PyObject *resultobj; |
33624 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33625 | wxColour result; | |
33626 | PyObject * obj0 = 0 ; | |
33627 | char *kwnames[] = { | |
33628 | (char *) "self", NULL | |
33629 | }; | |
33630 | ||
33631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
33632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33634 | { | |
33635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33636 | result = (arg1)->GetBackgroundColour(); | |
33637 | ||
33638 | wxPyEndAllowThreads(__tstate); | |
33639 | if (PyErr_Occurred()) SWIG_fail; | |
33640 | } | |
33641 | { | |
33642 | wxColour * resultptr; | |
33643 | resultptr = new wxColour((wxColour &) result); | |
33644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
33645 | } | |
33646 | return resultobj; | |
33647 | fail: | |
33648 | return NULL; | |
33649 | } | |
33650 | ||
33651 | ||
c32bde28 | 33652 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33653 | PyObject *resultobj; |
33654 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33655 | wxBitmap *arg2 = 0 ; | |
33656 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
33657 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
33658 | PyObject * obj0 = 0 ; | |
33659 | PyObject * obj1 = 0 ; | |
33660 | PyObject * obj2 = 0 ; | |
33661 | char *kwnames[] = { | |
33662 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
33663 | }; | |
33664 | ||
33665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33670 | SWIG_fail; | |
33671 | if (arg2 == NULL) { | |
33672 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33673 | SWIG_fail; | |
33674 | } | |
33675 | if (obj2) { | |
33676 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
33677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33678 | SWIG_fail; | |
33679 | if (arg3 == NULL) { | |
33680 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33681 | SWIG_fail; | |
33682 | } | |
33683 | } | |
33684 | { | |
33685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33686 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
33687 | ||
33688 | wxPyEndAllowThreads(__tstate); | |
33689 | if (PyErr_Occurred()) SWIG_fail; | |
33690 | } | |
33691 | Py_INCREF(Py_None); resultobj = Py_None; | |
33692 | return resultobj; | |
33693 | fail: | |
33694 | return NULL; | |
33695 | } | |
33696 | ||
33697 | ||
c32bde28 | 33698 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33699 | PyObject *resultobj; |
33700 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33701 | wxBitmap *arg2 = 0 ; | |
33702 | PyObject * obj0 = 0 ; | |
33703 | PyObject * obj1 = 0 ; | |
33704 | char *kwnames[] = { | |
33705 | (char *) "self",(char *) "bmpDisabled", NULL | |
33706 | }; | |
33707 | ||
33708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33713 | SWIG_fail; | |
33714 | if (arg2 == NULL) { | |
33715 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33716 | SWIG_fail; | |
33717 | } | |
33718 | { | |
33719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33720 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
33721 | ||
33722 | wxPyEndAllowThreads(__tstate); | |
33723 | if (PyErr_Occurred()) SWIG_fail; | |
33724 | } | |
33725 | Py_INCREF(Py_None); resultobj = Py_None; | |
33726 | return resultobj; | |
33727 | fail: | |
33728 | return NULL; | |
33729 | } | |
33730 | ||
33731 | ||
c32bde28 | 33732 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33733 | PyObject *resultobj; |
33734 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33735 | wxBitmap *result; | |
33736 | PyObject * obj0 = 0 ; | |
33737 | char *kwnames[] = { | |
33738 | (char *) "self", NULL | |
33739 | }; | |
33740 | ||
33741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
33742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33744 | { | |
33745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33746 | { | |
33747 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
33748 | result = (wxBitmap *) &_result_ref; | |
33749 | } | |
33750 | ||
33751 | wxPyEndAllowThreads(__tstate); | |
33752 | if (PyErr_Occurred()) SWIG_fail; | |
33753 | } | |
33754 | { | |
33755 | wxBitmap* resultptr = new wxBitmap(*result); | |
33756 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33757 | } | |
33758 | return resultobj; | |
33759 | fail: | |
33760 | return NULL; | |
33761 | } | |
33762 | ||
33763 | ||
c32bde28 | 33764 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33765 | PyObject *resultobj; |
33766 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33767 | int arg2 ; | |
33768 | PyObject * obj0 = 0 ; | |
33769 | PyObject * obj1 = 0 ; | |
33770 | char *kwnames[] = { | |
33771 | (char *) "self",(char *) "nWidth", NULL | |
33772 | }; | |
33773 | ||
33774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
33775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 33777 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33778 | if (PyErr_Occurred()) SWIG_fail; |
33779 | { | |
33780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33781 | (arg1)->SetMarginWidth(arg2); | |
33782 | ||
33783 | wxPyEndAllowThreads(__tstate); | |
33784 | if (PyErr_Occurred()) SWIG_fail; | |
33785 | } | |
33786 | Py_INCREF(Py_None); resultobj = Py_None; | |
33787 | return resultobj; | |
33788 | fail: | |
33789 | return NULL; | |
33790 | } | |
33791 | ||
33792 | ||
c32bde28 | 33793 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33794 | PyObject *resultobj; |
33795 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33796 | int result; | |
33797 | PyObject * obj0 = 0 ; | |
33798 | char *kwnames[] = { | |
33799 | (char *) "self", NULL | |
33800 | }; | |
33801 | ||
33802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
33803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33805 | { | |
33806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33807 | result = (int)(arg1)->GetMarginWidth(); | |
33808 | ||
33809 | wxPyEndAllowThreads(__tstate); | |
33810 | if (PyErr_Occurred()) SWIG_fail; | |
33811 | } | |
c32bde28 | 33812 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33813 | return resultobj; |
33814 | fail: | |
33815 | return NULL; | |
33816 | } | |
33817 | ||
33818 | ||
c32bde28 | 33819 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33820 | PyObject *resultobj; |
33821 | int result; | |
33822 | char *kwnames[] = { | |
33823 | NULL | |
33824 | }; | |
33825 | ||
33826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33827 | { | |
33828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33829 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
33830 | ||
33831 | wxPyEndAllowThreads(__tstate); | |
33832 | if (PyErr_Occurred()) SWIG_fail; | |
33833 | } | |
c32bde28 | 33834 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33835 | return resultobj; |
33836 | fail: | |
33837 | return NULL; | |
33838 | } | |
33839 | ||
33840 | ||
c32bde28 | 33841 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33842 | PyObject *resultobj; |
33843 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33844 | bool result; | |
33845 | PyObject * obj0 = 0 ; | |
33846 | char *kwnames[] = { | |
33847 | (char *) "self", NULL | |
33848 | }; | |
33849 | ||
33850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
33851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33853 | { | |
33854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33855 | result = (bool)(arg1)->IsOwnerDrawn(); | |
33856 | ||
33857 | wxPyEndAllowThreads(__tstate); | |
33858 | if (PyErr_Occurred()) SWIG_fail; | |
33859 | } | |
33860 | { | |
33861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33862 | } | |
33863 | return resultobj; | |
33864 | fail: | |
33865 | return NULL; | |
33866 | } | |
33867 | ||
33868 | ||
c32bde28 | 33869 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33870 | PyObject *resultobj; |
33871 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
ae8162c8 | 33872 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33873 | PyObject * obj0 = 0 ; |
33874 | PyObject * obj1 = 0 ; | |
33875 | char *kwnames[] = { | |
33876 | (char *) "self",(char *) "ownerDrawn", NULL | |
33877 | }; | |
33878 | ||
33879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
33880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33882 | if (obj1) { | |
c32bde28 | 33883 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33884 | if (PyErr_Occurred()) SWIG_fail; |
33885 | } | |
33886 | { | |
33887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33888 | (arg1)->SetOwnerDrawn(arg2); | |
33889 | ||
33890 | wxPyEndAllowThreads(__tstate); | |
33891 | if (PyErr_Occurred()) SWIG_fail; | |
33892 | } | |
33893 | Py_INCREF(Py_None); resultobj = Py_None; | |
33894 | return resultobj; | |
33895 | fail: | |
33896 | return NULL; | |
33897 | } | |
33898 | ||
33899 | ||
c32bde28 | 33900 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33901 | PyObject *resultobj; |
33902 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33903 | PyObject * obj0 = 0 ; | |
33904 | char *kwnames[] = { | |
33905 | (char *) "self", NULL | |
33906 | }; | |
33907 | ||
33908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
33909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33911 | { | |
33912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33913 | (arg1)->ResetOwnerDrawn(); | |
33914 | ||
33915 | wxPyEndAllowThreads(__tstate); | |
33916 | if (PyErr_Occurred()) SWIG_fail; | |
33917 | } | |
33918 | Py_INCREF(Py_None); resultobj = Py_None; | |
33919 | return resultobj; | |
33920 | fail: | |
33921 | return NULL; | |
33922 | } | |
33923 | ||
33924 | ||
c32bde28 | 33925 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33926 | PyObject *resultobj; |
33927 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33928 | wxBitmap *arg2 = 0 ; | |
33929 | PyObject * obj0 = 0 ; | |
33930 | PyObject * obj1 = 0 ; | |
33931 | char *kwnames[] = { | |
33932 | (char *) "self",(char *) "bitmap", NULL | |
33933 | }; | |
33934 | ||
33935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33940 | SWIG_fail; | |
33941 | if (arg2 == NULL) { | |
33942 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33943 | SWIG_fail; | |
33944 | } | |
33945 | { | |
33946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33947 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33948 | ||
33949 | wxPyEndAllowThreads(__tstate); | |
33950 | if (PyErr_Occurred()) SWIG_fail; | |
33951 | } | |
33952 | Py_INCREF(Py_None); resultobj = Py_None; | |
33953 | return resultobj; | |
33954 | fail: | |
33955 | return NULL; | |
33956 | } | |
33957 | ||
33958 | ||
c32bde28 | 33959 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33960 | PyObject *resultobj; |
33961 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33962 | wxBitmap *result; | |
33963 | PyObject * obj0 = 0 ; | |
33964 | char *kwnames[] = { | |
33965 | (char *) "self", NULL | |
33966 | }; | |
33967 | ||
33968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33971 | { | |
33972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33973 | { | |
33974 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33975 | result = (wxBitmap *) &_result_ref; | |
33976 | } | |
33977 | ||
33978 | wxPyEndAllowThreads(__tstate); | |
33979 | if (PyErr_Occurred()) SWIG_fail; | |
33980 | } | |
33981 | { | |
33982 | wxBitmap* resultptr = new wxBitmap(*result); | |
33983 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33984 | } | |
33985 | return resultobj; | |
33986 | fail: | |
33987 | return NULL; | |
33988 | } | |
33989 | ||
33990 | ||
c32bde28 | 33991 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33992 | PyObject *obj; |
33993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33994 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33995 | Py_INCREF(obj); | |
33996 | return Py_BuildValue((char *)""); | |
33997 | } | |
c32bde28 | 33998 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
33999 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
34000 | return 1; | |
34001 | } | |
34002 | ||
34003 | ||
34004 | static PyObject *_wrap_ControlNameStr_get() { | |
34005 | PyObject *pyobj; | |
34006 | ||
34007 | { | |
34008 | #if wxUSE_UNICODE | |
34009 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
34010 | #else | |
34011 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
34012 | #endif | |
34013 | } | |
34014 | return pyobj; | |
34015 | } | |
34016 | ||
34017 | ||
c32bde28 | 34018 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34019 | PyObject *resultobj; |
34020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 34021 | int arg2 = (int) -1 ; |
d55e5bfc RD |
34022 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
34023 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
34024 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
34025 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
34026 | long arg5 = (long) 0 ; | |
34027 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
34028 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
34029 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
34030 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
34031 | wxControl *result; | |
34032 | wxPoint temp3 ; | |
34033 | wxSize temp4 ; | |
ae8162c8 | 34034 | bool temp7 = false ; |
d55e5bfc RD |
34035 | PyObject * obj0 = 0 ; |
34036 | PyObject * obj1 = 0 ; | |
34037 | PyObject * obj2 = 0 ; | |
34038 | PyObject * obj3 = 0 ; | |
34039 | PyObject * obj4 = 0 ; | |
34040 | PyObject * obj5 = 0 ; | |
34041 | PyObject * obj6 = 0 ; | |
34042 | char *kwnames[] = { | |
34043 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34044 | }; | |
34045 | ||
248ed943 | 34046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
34047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
34048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34049 | if (obj1) { |
c32bde28 | 34050 | arg2 = (int)SWIG_As_int(obj1); |
248ed943 RD |
34051 | if (PyErr_Occurred()) SWIG_fail; |
34052 | } | |
d55e5bfc RD |
34053 | if (obj2) { |
34054 | { | |
34055 | arg3 = &temp3; | |
34056 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34057 | } | |
34058 | } | |
34059 | if (obj3) { | |
34060 | { | |
34061 | arg4 = &temp4; | |
34062 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34063 | } | |
34064 | } | |
34065 | if (obj4) { | |
c32bde28 | 34066 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
34067 | if (PyErr_Occurred()) SWIG_fail; |
34068 | } | |
34069 | if (obj5) { | |
34070 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
34071 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34072 | SWIG_fail; | |
34073 | if (arg6 == NULL) { | |
34074 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34075 | SWIG_fail; | |
34076 | } | |
34077 | } | |
34078 | if (obj6) { | |
34079 | { | |
34080 | arg7 = wxString_in_helper(obj6); | |
34081 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 34082 | temp7 = true; |
d55e5bfc RD |
34083 | } |
34084 | } | |
34085 | { | |
0439c23b | 34086 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34088 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
34089 | ||
34090 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34091 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34092 | } |
b0f7404b | 34093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34094 | { |
34095 | if (temp7) | |
34096 | delete arg7; | |
34097 | } | |
34098 | return resultobj; | |
34099 | fail: | |
34100 | { | |
34101 | if (temp7) | |
34102 | delete arg7; | |
34103 | } | |
34104 | return NULL; | |
34105 | } | |
34106 | ||
34107 | ||
c32bde28 | 34108 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34109 | PyObject *resultobj; |
34110 | wxControl *result; | |
34111 | char *kwnames[] = { | |
34112 | NULL | |
34113 | }; | |
34114 | ||
34115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
34116 | { | |
0439c23b | 34117 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34119 | result = (wxControl *)new wxControl(); | |
34120 | ||
34121 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34122 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 34123 | } |
b0f7404b | 34124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
34125 | return resultobj; |
34126 | fail: | |
34127 | return NULL; | |
34128 | } | |
34129 | ||
34130 | ||
c32bde28 | 34131 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34132 | PyObject *resultobj; |
34133 | wxControl *arg1 = (wxControl *) 0 ; | |
34134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 34135 | int arg3 = (int) -1 ; |
d55e5bfc RD |
34136 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
34137 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34138 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34139 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34140 | long arg6 = (long) 0 ; | |
34141 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34142 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34143 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
34144 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34145 | bool result; | |
34146 | wxPoint temp4 ; | |
34147 | wxSize temp5 ; | |
ae8162c8 | 34148 | bool temp8 = false ; |
d55e5bfc RD |
34149 | PyObject * obj0 = 0 ; |
34150 | PyObject * obj1 = 0 ; | |
34151 | PyObject * obj2 = 0 ; | |
34152 | PyObject * obj3 = 0 ; | |
34153 | PyObject * obj4 = 0 ; | |
34154 | PyObject * obj5 = 0 ; | |
34155 | PyObject * obj6 = 0 ; | |
34156 | PyObject * obj7 = 0 ; | |
34157 | char *kwnames[] = { | |
34158 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34159 | }; | |
34160 | ||
248ed943 | 34161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
34162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
34163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 | 34166 | if (obj2) { |
c32bde28 | 34167 | arg3 = (int)SWIG_As_int(obj2); |
248ed943 RD |
34168 | if (PyErr_Occurred()) SWIG_fail; |
34169 | } | |
d55e5bfc RD |
34170 | if (obj3) { |
34171 | { | |
34172 | arg4 = &temp4; | |
34173 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34174 | } | |
34175 | } | |
34176 | if (obj4) { | |
34177 | { | |
34178 | arg5 = &temp5; | |
34179 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34180 | } | |
34181 | } | |
34182 | if (obj5) { | |
c32bde28 | 34183 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
34184 | if (PyErr_Occurred()) SWIG_fail; |
34185 | } | |
34186 | if (obj6) { | |
34187 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
34188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34189 | SWIG_fail; | |
34190 | if (arg7 == NULL) { | |
34191 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34192 | SWIG_fail; | |
34193 | } | |
34194 | } | |
34195 | if (obj7) { | |
34196 | { | |
34197 | arg8 = wxString_in_helper(obj7); | |
34198 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 34199 | temp8 = true; |
d55e5bfc RD |
34200 | } |
34201 | } | |
34202 | { | |
34203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34204 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34205 | ||
34206 | wxPyEndAllowThreads(__tstate); | |
34207 | if (PyErr_Occurred()) SWIG_fail; | |
34208 | } | |
34209 | { | |
34210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34211 | } | |
34212 | { | |
34213 | if (temp8) | |
34214 | delete arg8; | |
34215 | } | |
34216 | return resultobj; | |
34217 | fail: | |
34218 | { | |
34219 | if (temp8) | |
34220 | delete arg8; | |
34221 | } | |
34222 | return NULL; | |
34223 | } | |
34224 | ||
34225 | ||
c32bde28 | 34226 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34227 | PyObject *resultobj; |
34228 | wxControl *arg1 = (wxControl *) 0 ; | |
34229 | wxCommandEvent *arg2 = 0 ; | |
34230 | PyObject * obj0 = 0 ; | |
34231 | PyObject * obj1 = 0 ; | |
34232 | char *kwnames[] = { | |
34233 | (char *) "self",(char *) "event", NULL | |
34234 | }; | |
34235 | ||
34236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
34237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
34240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
34241 | SWIG_fail; | |
34242 | if (arg2 == NULL) { | |
34243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
34244 | SWIG_fail; | |
34245 | } | |
34246 | { | |
34247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34248 | (arg1)->Command(*arg2); | |
34249 | ||
34250 | wxPyEndAllowThreads(__tstate); | |
34251 | if (PyErr_Occurred()) SWIG_fail; | |
34252 | } | |
34253 | Py_INCREF(Py_None); resultobj = Py_None; | |
34254 | return resultobj; | |
34255 | fail: | |
34256 | return NULL; | |
34257 | } | |
34258 | ||
34259 | ||
c32bde28 | 34260 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34261 | PyObject *resultobj; |
34262 | wxControl *arg1 = (wxControl *) 0 ; | |
34263 | wxString result; | |
34264 | PyObject * obj0 = 0 ; | |
34265 | char *kwnames[] = { | |
34266 | (char *) "self", NULL | |
34267 | }; | |
34268 | ||
34269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
34270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34272 | { | |
34273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34274 | result = (arg1)->GetLabel(); | |
34275 | ||
34276 | wxPyEndAllowThreads(__tstate); | |
34277 | if (PyErr_Occurred()) SWIG_fail; | |
34278 | } | |
34279 | { | |
34280 | #if wxUSE_UNICODE | |
34281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34282 | #else | |
34283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34284 | #endif | |
34285 | } | |
34286 | return resultobj; | |
34287 | fail: | |
34288 | return NULL; | |
34289 | } | |
34290 | ||
34291 | ||
c32bde28 | 34292 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34293 | PyObject *resultobj; |
34294 | wxControl *arg1 = (wxControl *) 0 ; | |
34295 | wxString *arg2 = 0 ; | |
ae8162c8 | 34296 | bool temp2 = false ; |
d55e5bfc RD |
34297 | PyObject * obj0 = 0 ; |
34298 | PyObject * obj1 = 0 ; | |
34299 | char *kwnames[] = { | |
34300 | (char *) "self",(char *) "label", NULL | |
34301 | }; | |
34302 | ||
34303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
34304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34306 | { | |
34307 | arg2 = wxString_in_helper(obj1); | |
34308 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34309 | temp2 = true; |
d55e5bfc RD |
34310 | } |
34311 | { | |
34312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34313 | (arg1)->SetLabel((wxString const &)*arg2); | |
34314 | ||
34315 | wxPyEndAllowThreads(__tstate); | |
34316 | if (PyErr_Occurred()) SWIG_fail; | |
34317 | } | |
34318 | Py_INCREF(Py_None); resultobj = Py_None; | |
34319 | { | |
34320 | if (temp2) | |
34321 | delete arg2; | |
34322 | } | |
34323 | return resultobj; | |
34324 | fail: | |
34325 | { | |
34326 | if (temp2) | |
34327 | delete arg2; | |
34328 | } | |
34329 | return NULL; | |
34330 | } | |
34331 | ||
34332 | ||
c32bde28 | 34333 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34334 | PyObject *resultobj; |
34335 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
34336 | wxVisualAttributes result; | |
34337 | PyObject * obj0 = 0 ; | |
34338 | char *kwnames[] = { | |
34339 | (char *) "variant", NULL | |
34340 | }; | |
34341 | ||
34342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
34343 | if (obj0) { | |
c32bde28 | 34344 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
34345 | if (PyErr_Occurred()) SWIG_fail; |
34346 | } | |
34347 | { | |
a001823c | 34348 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34350 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
34351 | ||
34352 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34353 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34354 | } |
34355 | { | |
34356 | wxVisualAttributes * resultptr; | |
34357 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
34358 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
34359 | } | |
34360 | return resultobj; | |
34361 | fail: | |
34362 | return NULL; | |
34363 | } | |
34364 | ||
34365 | ||
c32bde28 | 34366 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34367 | PyObject *obj; |
34368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34369 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
34370 | Py_INCREF(obj); | |
34371 | return Py_BuildValue((char *)""); | |
34372 | } | |
c32bde28 | 34373 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34374 | PyObject *resultobj; |
34375 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34376 | wxString *arg2 = 0 ; | |
34377 | PyObject *arg3 = (PyObject *) NULL ; | |
34378 | int result; | |
ae8162c8 | 34379 | bool temp2 = false ; |
d55e5bfc RD |
34380 | PyObject * obj0 = 0 ; |
34381 | PyObject * obj1 = 0 ; | |
34382 | PyObject * obj2 = 0 ; | |
34383 | char *kwnames[] = { | |
34384 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
34385 | }; | |
34386 | ||
34387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34390 | { | |
34391 | arg2 = wxString_in_helper(obj1); | |
34392 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34393 | temp2 = true; |
d55e5bfc RD |
34394 | } |
34395 | if (obj2) { | |
34396 | arg3 = obj2; | |
34397 | } | |
34398 | { | |
34399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34400 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
34401 | ||
34402 | wxPyEndAllowThreads(__tstate); | |
34403 | if (PyErr_Occurred()) SWIG_fail; | |
34404 | } | |
c32bde28 | 34405 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34406 | { |
34407 | if (temp2) | |
34408 | delete arg2; | |
34409 | } | |
34410 | return resultobj; | |
34411 | fail: | |
34412 | { | |
34413 | if (temp2) | |
34414 | delete arg2; | |
34415 | } | |
34416 | return NULL; | |
34417 | } | |
34418 | ||
34419 | ||
c32bde28 | 34420 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34421 | PyObject *resultobj; |
34422 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34423 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 34424 | bool temp2 = false ; |
d55e5bfc RD |
34425 | PyObject * obj0 = 0 ; |
34426 | PyObject * obj1 = 0 ; | |
34427 | char *kwnames[] = { | |
34428 | (char *) "self",(char *) "strings", NULL | |
34429 | }; | |
34430 | ||
34431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
34432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34434 | { | |
34435 | if (! PySequence_Check(obj1)) { | |
34436 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
34437 | SWIG_fail; | |
34438 | } | |
34439 | arg2 = new wxArrayString; | |
ae8162c8 | 34440 | temp2 = true; |
d55e5bfc RD |
34441 | int i, len=PySequence_Length(obj1); |
34442 | for (i=0; i<len; i++) { | |
34443 | PyObject* item = PySequence_GetItem(obj1, i); | |
34444 | #if wxUSE_UNICODE | |
34445 | PyObject* str = PyObject_Unicode(item); | |
34446 | #else | |
34447 | PyObject* str = PyObject_Str(item); | |
34448 | #endif | |
34449 | if (PyErr_Occurred()) SWIG_fail; | |
34450 | arg2->Add(Py2wxString(str)); | |
34451 | Py_DECREF(item); | |
34452 | Py_DECREF(str); | |
34453 | } | |
34454 | } | |
34455 | { | |
34456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34457 | (arg1)->Append((wxArrayString const &)*arg2); | |
34458 | ||
34459 | wxPyEndAllowThreads(__tstate); | |
34460 | if (PyErr_Occurred()) SWIG_fail; | |
34461 | } | |
34462 | Py_INCREF(Py_None); resultobj = Py_None; | |
34463 | { | |
34464 | if (temp2) delete arg2; | |
34465 | } | |
34466 | return resultobj; | |
34467 | fail: | |
34468 | { | |
34469 | if (temp2) delete arg2; | |
34470 | } | |
34471 | return NULL; | |
34472 | } | |
34473 | ||
34474 | ||
c32bde28 | 34475 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34476 | PyObject *resultobj; |
34477 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34478 | wxString *arg2 = 0 ; | |
34479 | int arg3 ; | |
34480 | PyObject *arg4 = (PyObject *) NULL ; | |
34481 | int result; | |
ae8162c8 | 34482 | bool temp2 = false ; |
d55e5bfc RD |
34483 | PyObject * obj0 = 0 ; |
34484 | PyObject * obj1 = 0 ; | |
34485 | PyObject * obj2 = 0 ; | |
34486 | PyObject * obj3 = 0 ; | |
34487 | char *kwnames[] = { | |
34488 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
34489 | }; | |
34490 | ||
34491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34494 | { | |
34495 | arg2 = wxString_in_helper(obj1); | |
34496 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34497 | temp2 = true; |
d55e5bfc | 34498 | } |
c32bde28 | 34499 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34500 | if (PyErr_Occurred()) SWIG_fail; |
34501 | if (obj3) { | |
34502 | arg4 = obj3; | |
34503 | } | |
34504 | { | |
34505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34506 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
34507 | ||
34508 | wxPyEndAllowThreads(__tstate); | |
34509 | if (PyErr_Occurred()) SWIG_fail; | |
34510 | } | |
c32bde28 | 34511 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34512 | { |
34513 | if (temp2) | |
34514 | delete arg2; | |
34515 | } | |
34516 | return resultobj; | |
34517 | fail: | |
34518 | { | |
34519 | if (temp2) | |
34520 | delete arg2; | |
34521 | } | |
34522 | return NULL; | |
34523 | } | |
34524 | ||
34525 | ||
c32bde28 | 34526 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34527 | PyObject *resultobj; |
34528 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34529 | PyObject * obj0 = 0 ; | |
34530 | char *kwnames[] = { | |
34531 | (char *) "self", NULL | |
34532 | }; | |
34533 | ||
34534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
34535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34537 | { | |
34538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34539 | (arg1)->Clear(); | |
34540 | ||
34541 | wxPyEndAllowThreads(__tstate); | |
34542 | if (PyErr_Occurred()) SWIG_fail; | |
34543 | } | |
34544 | Py_INCREF(Py_None); resultobj = Py_None; | |
34545 | return resultobj; | |
34546 | fail: | |
34547 | return NULL; | |
34548 | } | |
34549 | ||
34550 | ||
c32bde28 | 34551 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34552 | PyObject *resultobj; |
34553 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34554 | int arg2 ; | |
34555 | PyObject * obj0 = 0 ; | |
34556 | PyObject * obj1 = 0 ; | |
34557 | char *kwnames[] = { | |
34558 | (char *) "self",(char *) "n", NULL | |
34559 | }; | |
34560 | ||
34561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
34562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34564 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34565 | if (PyErr_Occurred()) SWIG_fail; |
34566 | { | |
34567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34568 | (arg1)->Delete(arg2); | |
34569 | ||
34570 | wxPyEndAllowThreads(__tstate); | |
34571 | if (PyErr_Occurred()) SWIG_fail; | |
34572 | } | |
34573 | Py_INCREF(Py_None); resultobj = Py_None; | |
34574 | return resultobj; | |
34575 | fail: | |
34576 | return NULL; | |
34577 | } | |
34578 | ||
34579 | ||
c32bde28 | 34580 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34581 | PyObject *resultobj; |
34582 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34583 | int result; | |
34584 | PyObject * obj0 = 0 ; | |
34585 | char *kwnames[] = { | |
34586 | (char *) "self", NULL | |
34587 | }; | |
34588 | ||
34589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34592 | { | |
34593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34594 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34595 | ||
34596 | wxPyEndAllowThreads(__tstate); | |
34597 | if (PyErr_Occurred()) SWIG_fail; | |
34598 | } | |
c32bde28 | 34599 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34600 | return resultobj; |
34601 | fail: | |
34602 | return NULL; | |
34603 | } | |
34604 | ||
34605 | ||
c32bde28 | 34606 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34607 | PyObject *resultobj; |
34608 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34609 | bool result; | |
34610 | PyObject * obj0 = 0 ; | |
34611 | char *kwnames[] = { | |
34612 | (char *) "self", NULL | |
34613 | }; | |
34614 | ||
34615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34618 | { | |
34619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34620 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34621 | ||
34622 | wxPyEndAllowThreads(__tstate); | |
34623 | if (PyErr_Occurred()) SWIG_fail; | |
34624 | } | |
34625 | { | |
34626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34627 | } | |
34628 | return resultobj; | |
34629 | fail: | |
34630 | return NULL; | |
34631 | } | |
34632 | ||
34633 | ||
c32bde28 | 34634 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34635 | PyObject *resultobj; |
34636 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34637 | int arg2 ; | |
34638 | wxString result; | |
34639 | PyObject * obj0 = 0 ; | |
34640 | PyObject * obj1 = 0 ; | |
34641 | char *kwnames[] = { | |
34642 | (char *) "self",(char *) "n", NULL | |
34643 | }; | |
34644 | ||
34645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34648 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34649 | if (PyErr_Occurred()) SWIG_fail; |
34650 | { | |
34651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34652 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34653 | ||
34654 | wxPyEndAllowThreads(__tstate); | |
34655 | if (PyErr_Occurred()) SWIG_fail; | |
34656 | } | |
34657 | { | |
34658 | #if wxUSE_UNICODE | |
34659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34660 | #else | |
34661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34662 | #endif | |
34663 | } | |
34664 | return resultobj; | |
34665 | fail: | |
34666 | return NULL; | |
34667 | } | |
34668 | ||
34669 | ||
c32bde28 | 34670 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34671 | PyObject *resultobj; |
34672 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34673 | wxArrayString result; | |
34674 | PyObject * obj0 = 0 ; | |
34675 | char *kwnames[] = { | |
34676 | (char *) "self", NULL | |
34677 | }; | |
34678 | ||
34679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34682 | { | |
34683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34684 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34685 | ||
34686 | wxPyEndAllowThreads(__tstate); | |
34687 | if (PyErr_Occurred()) SWIG_fail; | |
34688 | } | |
34689 | { | |
34690 | resultobj = wxArrayString2PyList_helper(result); | |
34691 | } | |
34692 | return resultobj; | |
34693 | fail: | |
34694 | return NULL; | |
34695 | } | |
34696 | ||
34697 | ||
c32bde28 | 34698 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34699 | PyObject *resultobj; |
34700 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34701 | int arg2 ; | |
34702 | wxString *arg3 = 0 ; | |
ae8162c8 | 34703 | bool temp3 = false ; |
d55e5bfc RD |
34704 | PyObject * obj0 = 0 ; |
34705 | PyObject * obj1 = 0 ; | |
34706 | PyObject * obj2 = 0 ; | |
34707 | char *kwnames[] = { | |
34708 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34709 | }; | |
34710 | ||
34711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34714 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34715 | if (PyErr_Occurred()) SWIG_fail; |
34716 | { | |
34717 | arg3 = wxString_in_helper(obj2); | |
34718 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34719 | temp3 = true; |
d55e5bfc RD |
34720 | } |
34721 | { | |
34722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34723 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34724 | ||
34725 | wxPyEndAllowThreads(__tstate); | |
34726 | if (PyErr_Occurred()) SWIG_fail; | |
34727 | } | |
34728 | Py_INCREF(Py_None); resultobj = Py_None; | |
34729 | { | |
34730 | if (temp3) | |
34731 | delete arg3; | |
34732 | } | |
34733 | return resultobj; | |
34734 | fail: | |
34735 | { | |
34736 | if (temp3) | |
34737 | delete arg3; | |
34738 | } | |
34739 | return NULL; | |
34740 | } | |
34741 | ||
34742 | ||
c32bde28 | 34743 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34744 | PyObject *resultobj; |
34745 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34746 | wxString *arg2 = 0 ; | |
34747 | int result; | |
ae8162c8 | 34748 | bool temp2 = false ; |
d55e5bfc RD |
34749 | PyObject * obj0 = 0 ; |
34750 | PyObject * obj1 = 0 ; | |
34751 | char *kwnames[] = { | |
34752 | (char *) "self",(char *) "s", NULL | |
34753 | }; | |
34754 | ||
34755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34758 | { | |
34759 | arg2 = wxString_in_helper(obj1); | |
34760 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34761 | temp2 = true; |
d55e5bfc RD |
34762 | } |
34763 | { | |
34764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34765 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34766 | ||
34767 | wxPyEndAllowThreads(__tstate); | |
34768 | if (PyErr_Occurred()) SWIG_fail; | |
34769 | } | |
c32bde28 | 34770 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34771 | { |
34772 | if (temp2) | |
34773 | delete arg2; | |
34774 | } | |
34775 | return resultobj; | |
34776 | fail: | |
34777 | { | |
34778 | if (temp2) | |
34779 | delete arg2; | |
34780 | } | |
34781 | return NULL; | |
34782 | } | |
34783 | ||
34784 | ||
c32bde28 | 34785 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34786 | PyObject *resultobj; |
34787 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34788 | int arg2 ; | |
34789 | PyObject * obj0 = 0 ; | |
34790 | PyObject * obj1 = 0 ; | |
34791 | char *kwnames[] = { | |
34792 | (char *) "self",(char *) "n", NULL | |
34793 | }; | |
34794 | ||
34795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34798 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34799 | if (PyErr_Occurred()) SWIG_fail; |
34800 | { | |
34801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34802 | (arg1)->Select(arg2); | |
34803 | ||
34804 | wxPyEndAllowThreads(__tstate); | |
34805 | if (PyErr_Occurred()) SWIG_fail; | |
34806 | } | |
34807 | Py_INCREF(Py_None); resultobj = Py_None; | |
34808 | return resultobj; | |
34809 | fail: | |
34810 | return NULL; | |
34811 | } | |
34812 | ||
34813 | ||
c32bde28 | 34814 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34815 | PyObject *resultobj; |
34816 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34817 | int result; | |
34818 | PyObject * obj0 = 0 ; | |
34819 | char *kwnames[] = { | |
34820 | (char *) "self", NULL | |
34821 | }; | |
34822 | ||
34823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34826 | { | |
34827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34828 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34829 | ||
34830 | wxPyEndAllowThreads(__tstate); | |
34831 | if (PyErr_Occurred()) SWIG_fail; | |
34832 | } | |
c32bde28 | 34833 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34834 | return resultobj; |
34835 | fail: | |
34836 | return NULL; | |
34837 | } | |
34838 | ||
34839 | ||
c32bde28 | 34840 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34841 | PyObject *resultobj; |
34842 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34843 | wxString result; | |
34844 | PyObject * obj0 = 0 ; | |
34845 | char *kwnames[] = { | |
34846 | (char *) "self", NULL | |
34847 | }; | |
34848 | ||
34849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34852 | { | |
34853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34854 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34855 | ||
34856 | wxPyEndAllowThreads(__tstate); | |
34857 | if (PyErr_Occurred()) SWIG_fail; | |
34858 | } | |
34859 | { | |
34860 | #if wxUSE_UNICODE | |
34861 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34862 | #else | |
34863 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34864 | #endif | |
34865 | } | |
34866 | return resultobj; | |
34867 | fail: | |
34868 | return NULL; | |
34869 | } | |
34870 | ||
34871 | ||
c32bde28 | 34872 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34873 | PyObject *resultobj; |
34874 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34875 | int arg2 ; | |
34876 | PyObject *result; | |
34877 | PyObject * obj0 = 0 ; | |
34878 | PyObject * obj1 = 0 ; | |
34879 | char *kwnames[] = { | |
34880 | (char *) "self",(char *) "n", NULL | |
34881 | }; | |
34882 | ||
34883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34886 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34887 | if (PyErr_Occurred()) SWIG_fail; |
34888 | { | |
34889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34890 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34891 | ||
34892 | wxPyEndAllowThreads(__tstate); | |
34893 | if (PyErr_Occurred()) SWIG_fail; | |
34894 | } | |
34895 | resultobj = result; | |
34896 | return resultobj; | |
34897 | fail: | |
34898 | return NULL; | |
34899 | } | |
34900 | ||
34901 | ||
c32bde28 | 34902 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34903 | PyObject *resultobj; |
34904 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34905 | int arg2 ; | |
34906 | PyObject *arg3 = (PyObject *) 0 ; | |
34907 | PyObject * obj0 = 0 ; | |
34908 | PyObject * obj1 = 0 ; | |
34909 | PyObject * obj2 = 0 ; | |
34910 | char *kwnames[] = { | |
34911 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34912 | }; | |
34913 | ||
34914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34917 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34918 | if (PyErr_Occurred()) SWIG_fail; |
34919 | arg3 = obj2; | |
34920 | { | |
34921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34922 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34923 | ||
34924 | wxPyEndAllowThreads(__tstate); | |
34925 | if (PyErr_Occurred()) SWIG_fail; | |
34926 | } | |
34927 | Py_INCREF(Py_None); resultobj = Py_None; | |
34928 | return resultobj; | |
34929 | fail: | |
34930 | return NULL; | |
34931 | } | |
34932 | ||
34933 | ||
c32bde28 | 34934 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34935 | PyObject *obj; |
34936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34937 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34938 | Py_INCREF(obj); | |
34939 | return Py_BuildValue((char *)""); | |
34940 | } | |
c32bde28 | 34941 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34942 | PyObject *obj; |
34943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34944 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34945 | Py_INCREF(obj); | |
34946 | return Py_BuildValue((char *)""); | |
34947 | } | |
c32bde28 | 34948 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34949 | PyObject *resultobj; |
34950 | wxSizerItem *result; | |
34951 | char *kwnames[] = { | |
34952 | NULL | |
34953 | }; | |
34954 | ||
34955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34956 | { | |
34957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34958 | result = (wxSizerItem *)new wxSizerItem(); | |
34959 | ||
34960 | wxPyEndAllowThreads(__tstate); | |
34961 | if (PyErr_Occurred()) SWIG_fail; | |
34962 | } | |
34963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34964 | return resultobj; | |
34965 | fail: | |
34966 | return NULL; | |
34967 | } | |
34968 | ||
34969 | ||
c32bde28 | 34970 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34971 | PyObject *resultobj; |
248ed943 | 34972 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
34973 | int arg2 ; |
34974 | int arg3 ; | |
34975 | int arg4 ; | |
248ed943 | 34976 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34977 | wxSizerItem *result; |
34978 | PyObject * obj0 = 0 ; | |
34979 | PyObject * obj1 = 0 ; | |
34980 | PyObject * obj2 = 0 ; | |
34981 | PyObject * obj3 = 0 ; | |
34982 | PyObject * obj4 = 0 ; | |
d55e5bfc | 34983 | char *kwnames[] = { |
248ed943 | 34984 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34985 | }; |
34986 | ||
248ed943 RD |
34987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 34990 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34991 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34992 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34993 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 34994 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34995 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
34996 | if (obj4) { |
34997 | arg5 = obj4; | |
34998 | } | |
d55e5bfc RD |
34999 | { |
35000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35001 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35002 | |
35003 | wxPyEndAllowThreads(__tstate); | |
35004 | if (PyErr_Occurred()) SWIG_fail; | |
35005 | } | |
35006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35007 | return resultobj; | |
35008 | fail: | |
35009 | return NULL; | |
35010 | } | |
35011 | ||
35012 | ||
c32bde28 | 35013 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 35014 | PyObject *resultobj; |
248ed943 | 35015 | int arg1 ; |
d55e5bfc RD |
35016 | int arg2 ; |
35017 | int arg3 ; | |
35018 | int arg4 ; | |
248ed943 RD |
35019 | int arg5 ; |
35020 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
35021 | wxSizerItem *result; |
35022 | PyObject * obj0 = 0 ; | |
35023 | PyObject * obj1 = 0 ; | |
35024 | PyObject * obj2 = 0 ; | |
35025 | PyObject * obj3 = 0 ; | |
35026 | PyObject * obj4 = 0 ; | |
248ed943 | 35027 | PyObject * obj5 = 0 ; |
d55e5bfc | 35028 | char *kwnames[] = { |
248ed943 | 35029 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
35030 | }; |
35031 | ||
248ed943 | 35032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c32bde28 | 35033 | arg1 = (int)SWIG_As_int(obj0); |
248ed943 | 35034 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35035 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35036 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35037 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35038 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35039 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35040 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35041 | arg5 = (int)SWIG_As_int(obj4); |
248ed943 RD |
35042 | if (PyErr_Occurred()) SWIG_fail; |
35043 | if (obj5) { | |
35044 | arg6 = obj5; | |
35045 | } | |
d55e5bfc RD |
35046 | { |
35047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35048 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
35049 | |
35050 | wxPyEndAllowThreads(__tstate); | |
35051 | if (PyErr_Occurred()) SWIG_fail; | |
35052 | } | |
35053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35054 | return resultobj; | |
35055 | fail: | |
35056 | return NULL; | |
35057 | } | |
35058 | ||
35059 | ||
c32bde28 | 35060 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35061 | PyObject *resultobj; |
35062 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35063 | int arg2 ; | |
35064 | int arg3 ; | |
35065 | int arg4 ; | |
248ed943 | 35066 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
35067 | wxSizerItem *result; |
35068 | PyObject * obj0 = 0 ; | |
35069 | PyObject * obj1 = 0 ; | |
35070 | PyObject * obj2 = 0 ; | |
35071 | PyObject * obj3 = 0 ; | |
35072 | PyObject * obj4 = 0 ; | |
35073 | char *kwnames[] = { | |
35074 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35075 | }; | |
35076 | ||
248ed943 | 35077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
35078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35080 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35081 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35082 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35083 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35084 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35085 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
35086 | if (obj4) { |
35087 | arg5 = obj4; | |
35088 | } | |
d55e5bfc RD |
35089 | { |
35090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 35091 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
35092 | |
35093 | wxPyEndAllowThreads(__tstate); | |
35094 | if (PyErr_Occurred()) SWIG_fail; | |
35095 | } | |
35096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
35097 | return resultobj; | |
35098 | fail: | |
35099 | return NULL; | |
35100 | } | |
35101 | ||
35102 | ||
c32bde28 | 35103 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35104 | PyObject *resultobj; |
35105 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35106 | PyObject * obj0 = 0 ; | |
35107 | char *kwnames[] = { | |
35108 | (char *) "self", NULL | |
35109 | }; | |
35110 | ||
35111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
35112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35114 | { | |
35115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35116 | (arg1)->DeleteWindows(); | |
35117 | ||
35118 | wxPyEndAllowThreads(__tstate); | |
35119 | if (PyErr_Occurred()) SWIG_fail; | |
35120 | } | |
35121 | Py_INCREF(Py_None); resultobj = Py_None; | |
35122 | return resultobj; | |
35123 | fail: | |
35124 | return NULL; | |
35125 | } | |
35126 | ||
35127 | ||
c32bde28 | 35128 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35129 | PyObject *resultobj; |
35130 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35131 | PyObject * obj0 = 0 ; | |
35132 | char *kwnames[] = { | |
35133 | (char *) "self", NULL | |
35134 | }; | |
35135 | ||
35136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
35137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35139 | { | |
35140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35141 | (arg1)->DetachSizer(); | |
35142 | ||
35143 | wxPyEndAllowThreads(__tstate); | |
35144 | if (PyErr_Occurred()) SWIG_fail; | |
35145 | } | |
35146 | Py_INCREF(Py_None); resultobj = Py_None; | |
35147 | return resultobj; | |
35148 | fail: | |
35149 | return NULL; | |
35150 | } | |
35151 | ||
35152 | ||
c32bde28 | 35153 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35154 | PyObject *resultobj; |
35155 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35156 | wxSize result; | |
35157 | PyObject * obj0 = 0 ; | |
35158 | char *kwnames[] = { | |
35159 | (char *) "self", NULL | |
35160 | }; | |
35161 | ||
35162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
35163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35165 | { | |
35166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35167 | result = (arg1)->GetSize(); | |
35168 | ||
35169 | wxPyEndAllowThreads(__tstate); | |
35170 | if (PyErr_Occurred()) SWIG_fail; | |
35171 | } | |
35172 | { | |
35173 | wxSize * resultptr; | |
35174 | resultptr = new wxSize((wxSize &) result); | |
35175 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35176 | } | |
35177 | return resultobj; | |
35178 | fail: | |
35179 | return NULL; | |
35180 | } | |
35181 | ||
35182 | ||
c32bde28 | 35183 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35184 | PyObject *resultobj; |
35185 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35186 | wxSize result; | |
35187 | PyObject * obj0 = 0 ; | |
35188 | char *kwnames[] = { | |
35189 | (char *) "self", NULL | |
35190 | }; | |
35191 | ||
35192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
35193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35195 | { | |
35196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35197 | result = (arg1)->CalcMin(); | |
35198 | ||
35199 | wxPyEndAllowThreads(__tstate); | |
35200 | if (PyErr_Occurred()) SWIG_fail; | |
35201 | } | |
35202 | { | |
35203 | wxSize * resultptr; | |
35204 | resultptr = new wxSize((wxSize &) result); | |
35205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35206 | } | |
35207 | return resultobj; | |
35208 | fail: | |
35209 | return NULL; | |
35210 | } | |
35211 | ||
35212 | ||
c32bde28 | 35213 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35214 | PyObject *resultobj; |
35215 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35216 | wxPoint arg2 ; | |
35217 | wxSize arg3 ; | |
35218 | wxPoint *argp2 ; | |
35219 | wxSize *argp3 ; | |
35220 | PyObject * obj0 = 0 ; | |
35221 | PyObject * obj1 = 0 ; | |
35222 | PyObject * obj2 = 0 ; | |
35223 | char *kwnames[] = { | |
35224 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
35225 | }; | |
35226 | ||
35227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35230 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
35231 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35232 | arg2 = *argp2; | |
35233 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
35234 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35235 | arg3 = *argp3; | |
35236 | { | |
35237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35238 | (arg1)->SetDimension(arg2,arg3); | |
35239 | ||
35240 | wxPyEndAllowThreads(__tstate); | |
35241 | if (PyErr_Occurred()) SWIG_fail; | |
35242 | } | |
35243 | Py_INCREF(Py_None); resultobj = Py_None; | |
35244 | return resultobj; | |
35245 | fail: | |
35246 | return NULL; | |
35247 | } | |
35248 | ||
35249 | ||
c32bde28 | 35250 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35251 | PyObject *resultobj; |
35252 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35253 | wxSize result; | |
35254 | PyObject * obj0 = 0 ; | |
35255 | char *kwnames[] = { | |
35256 | (char *) "self", NULL | |
35257 | }; | |
35258 | ||
35259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
35260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35262 | { | |
35263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35264 | result = (arg1)->GetMinSize(); | |
35265 | ||
35266 | wxPyEndAllowThreads(__tstate); | |
35267 | if (PyErr_Occurred()) SWIG_fail; | |
35268 | } | |
35269 | { | |
35270 | wxSize * resultptr; | |
35271 | resultptr = new wxSize((wxSize &) result); | |
35272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35273 | } | |
35274 | return resultobj; | |
35275 | fail: | |
35276 | return NULL; | |
35277 | } | |
35278 | ||
35279 | ||
c32bde28 | 35280 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
35281 | PyObject *resultobj; |
35282 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35283 | wxSize result; | |
35284 | PyObject * obj0 = 0 ; | |
35285 | char *kwnames[] = { | |
35286 | (char *) "self", NULL | |
35287 | }; | |
35288 | ||
35289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
35290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35292 | { | |
35293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35294 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
35295 | ||
35296 | wxPyEndAllowThreads(__tstate); | |
35297 | if (PyErr_Occurred()) SWIG_fail; | |
35298 | } | |
35299 | { | |
35300 | wxSize * resultptr; | |
35301 | resultptr = new wxSize((wxSize &) result); | |
35302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35303 | } | |
35304 | return resultobj; | |
35305 | fail: | |
35306 | return NULL; | |
35307 | } | |
35308 | ||
35309 | ||
c32bde28 | 35310 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35311 | PyObject *resultobj; |
35312 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35313 | int arg2 ; | |
35314 | int arg3 ; | |
35315 | PyObject * obj0 = 0 ; | |
35316 | PyObject * obj1 = 0 ; | |
35317 | PyObject * obj2 = 0 ; | |
35318 | char *kwnames[] = { | |
35319 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35320 | }; | |
35321 | ||
35322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35325 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35326 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35327 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35328 | if (PyErr_Occurred()) SWIG_fail; |
35329 | { | |
35330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35331 | (arg1)->SetInitSize(arg2,arg3); | |
35332 | ||
35333 | wxPyEndAllowThreads(__tstate); | |
35334 | if (PyErr_Occurred()) SWIG_fail; | |
35335 | } | |
35336 | Py_INCREF(Py_None); resultobj = Py_None; | |
35337 | return resultobj; | |
35338 | fail: | |
35339 | return NULL; | |
35340 | } | |
35341 | ||
35342 | ||
c32bde28 | 35343 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35344 | PyObject *resultobj; |
35345 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35346 | int arg2 ; | |
35347 | int arg3 ; | |
35348 | PyObject * obj0 = 0 ; | |
35349 | PyObject * obj1 = 0 ; | |
35350 | PyObject * obj2 = 0 ; | |
35351 | char *kwnames[] = { | |
35352 | (char *) "self",(char *) "width",(char *) "height", NULL | |
35353 | }; | |
35354 | ||
35355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35358 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35359 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 35360 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35361 | if (PyErr_Occurred()) SWIG_fail; |
35362 | { | |
35363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35364 | (arg1)->SetRatio(arg2,arg3); | |
35365 | ||
35366 | wxPyEndAllowThreads(__tstate); | |
35367 | if (PyErr_Occurred()) SWIG_fail; | |
35368 | } | |
35369 | Py_INCREF(Py_None); resultobj = Py_None; | |
35370 | return resultobj; | |
35371 | fail: | |
35372 | return NULL; | |
35373 | } | |
35374 | ||
35375 | ||
c32bde28 | 35376 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35377 | PyObject *resultobj; |
35378 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35379 | wxSize arg2 ; | |
35380 | wxSize *argp2 ; | |
35381 | PyObject * obj0 = 0 ; | |
35382 | PyObject * obj1 = 0 ; | |
35383 | char *kwnames[] = { | |
35384 | (char *) "self",(char *) "size", NULL | |
35385 | }; | |
35386 | ||
35387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
35388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35390 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
35391 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35392 | arg2 = *argp2; | |
35393 | { | |
35394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35395 | (arg1)->SetRatio(arg2); | |
35396 | ||
35397 | wxPyEndAllowThreads(__tstate); | |
35398 | if (PyErr_Occurred()) SWIG_fail; | |
35399 | } | |
35400 | Py_INCREF(Py_None); resultobj = Py_None; | |
35401 | return resultobj; | |
35402 | fail: | |
35403 | return NULL; | |
35404 | } | |
35405 | ||
35406 | ||
c32bde28 | 35407 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35408 | PyObject *resultobj; |
35409 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35410 | float arg2 ; | |
35411 | PyObject * obj0 = 0 ; | |
35412 | PyObject * obj1 = 0 ; | |
35413 | char *kwnames[] = { | |
35414 | (char *) "self",(char *) "ratio", NULL | |
35415 | }; | |
35416 | ||
35417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
35418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35420 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
35421 | if (PyErr_Occurred()) SWIG_fail; |
35422 | { | |
35423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35424 | (arg1)->SetRatio(arg2); | |
35425 | ||
35426 | wxPyEndAllowThreads(__tstate); | |
35427 | if (PyErr_Occurred()) SWIG_fail; | |
35428 | } | |
35429 | Py_INCREF(Py_None); resultobj = Py_None; | |
35430 | return resultobj; | |
35431 | fail: | |
35432 | return NULL; | |
35433 | } | |
35434 | ||
35435 | ||
c32bde28 | 35436 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35437 | PyObject *resultobj; |
35438 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35439 | float result; | |
35440 | PyObject * obj0 = 0 ; | |
35441 | char *kwnames[] = { | |
35442 | (char *) "self", NULL | |
35443 | }; | |
35444 | ||
35445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
35446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35448 | { | |
35449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35450 | result = (float)(arg1)->GetRatio(); | |
35451 | ||
35452 | wxPyEndAllowThreads(__tstate); | |
35453 | if (PyErr_Occurred()) SWIG_fail; | |
35454 | } | |
c32bde28 | 35455 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
35456 | return resultobj; |
35457 | fail: | |
35458 | return NULL; | |
35459 | } | |
35460 | ||
35461 | ||
c1cb24a4 RD |
35462 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
35463 | PyObject *resultobj; | |
35464 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35465 | wxRect result; | |
35466 | PyObject * obj0 = 0 ; | |
35467 | char *kwnames[] = { | |
35468 | (char *) "self", NULL | |
35469 | }; | |
35470 | ||
35471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
35472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35474 | { | |
35475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35476 | result = (arg1)->GetRect(); | |
35477 | ||
35478 | wxPyEndAllowThreads(__tstate); | |
35479 | if (PyErr_Occurred()) SWIG_fail; | |
35480 | } | |
35481 | { | |
35482 | wxRect * resultptr; | |
35483 | resultptr = new wxRect((wxRect &) result); | |
35484 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
35485 | } | |
35486 | return resultobj; | |
35487 | fail: | |
35488 | return NULL; | |
35489 | } | |
35490 | ||
35491 | ||
c32bde28 | 35492 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35493 | PyObject *resultobj; |
35494 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35495 | bool result; | |
35496 | PyObject * obj0 = 0 ; | |
35497 | char *kwnames[] = { | |
35498 | (char *) "self", NULL | |
35499 | }; | |
35500 | ||
35501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
35502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35504 | { | |
35505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35506 | result = (bool)(arg1)->IsWindow(); | |
35507 | ||
35508 | wxPyEndAllowThreads(__tstate); | |
35509 | if (PyErr_Occurred()) SWIG_fail; | |
35510 | } | |
35511 | { | |
35512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35513 | } | |
35514 | return resultobj; | |
35515 | fail: | |
35516 | return NULL; | |
35517 | } | |
35518 | ||
35519 | ||
c32bde28 | 35520 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35521 | PyObject *resultobj; |
35522 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35523 | bool result; | |
35524 | PyObject * obj0 = 0 ; | |
35525 | char *kwnames[] = { | |
35526 | (char *) "self", NULL | |
35527 | }; | |
35528 | ||
35529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",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 = (bool)(arg1)->IsSizer(); | |
35535 | ||
35536 | wxPyEndAllowThreads(__tstate); | |
35537 | if (PyErr_Occurred()) SWIG_fail; | |
35538 | } | |
35539 | { | |
35540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35541 | } | |
35542 | return resultobj; | |
35543 | fail: | |
35544 | return NULL; | |
35545 | } | |
35546 | ||
35547 | ||
c32bde28 | 35548 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35549 | PyObject *resultobj; |
35550 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35551 | bool result; | |
35552 | PyObject * obj0 = 0 ; | |
35553 | char *kwnames[] = { | |
35554 | (char *) "self", NULL | |
35555 | }; | |
35556 | ||
35557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
35558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35560 | { | |
35561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35562 | result = (bool)(arg1)->IsSpacer(); | |
35563 | ||
35564 | wxPyEndAllowThreads(__tstate); | |
35565 | if (PyErr_Occurred()) SWIG_fail; | |
35566 | } | |
35567 | { | |
35568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35569 | } | |
35570 | return resultobj; | |
35571 | fail: | |
35572 | return NULL; | |
35573 | } | |
35574 | ||
35575 | ||
c32bde28 | 35576 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35577 | PyObject *resultobj; |
35578 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35579 | int arg2 ; | |
35580 | PyObject * obj0 = 0 ; | |
35581 | PyObject * obj1 = 0 ; | |
35582 | char *kwnames[] = { | |
35583 | (char *) "self",(char *) "proportion", NULL | |
35584 | }; | |
35585 | ||
35586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
35587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35589 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35590 | if (PyErr_Occurred()) SWIG_fail; |
35591 | { | |
35592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35593 | (arg1)->SetProportion(arg2); | |
35594 | ||
35595 | wxPyEndAllowThreads(__tstate); | |
35596 | if (PyErr_Occurred()) SWIG_fail; | |
35597 | } | |
35598 | Py_INCREF(Py_None); resultobj = Py_None; | |
35599 | return resultobj; | |
35600 | fail: | |
35601 | return NULL; | |
35602 | } | |
35603 | ||
35604 | ||
c32bde28 | 35605 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35606 | PyObject *resultobj; |
35607 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35608 | int result; | |
35609 | PyObject * obj0 = 0 ; | |
35610 | char *kwnames[] = { | |
35611 | (char *) "self", NULL | |
35612 | }; | |
35613 | ||
35614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35617 | { | |
35618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35619 | result = (int)(arg1)->GetProportion(); | |
35620 | ||
35621 | wxPyEndAllowThreads(__tstate); | |
35622 | if (PyErr_Occurred()) SWIG_fail; | |
35623 | } | |
c32bde28 | 35624 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35625 | return resultobj; |
35626 | fail: | |
35627 | return NULL; | |
35628 | } | |
35629 | ||
35630 | ||
c32bde28 | 35631 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35632 | PyObject *resultobj; |
35633 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35634 | int arg2 ; | |
35635 | PyObject * obj0 = 0 ; | |
35636 | PyObject * obj1 = 0 ; | |
35637 | char *kwnames[] = { | |
35638 | (char *) "self",(char *) "flag", NULL | |
35639 | }; | |
35640 | ||
35641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35644 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35645 | if (PyErr_Occurred()) SWIG_fail; |
35646 | { | |
35647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35648 | (arg1)->SetFlag(arg2); | |
35649 | ||
35650 | wxPyEndAllowThreads(__tstate); | |
35651 | if (PyErr_Occurred()) SWIG_fail; | |
35652 | } | |
35653 | Py_INCREF(Py_None); resultobj = Py_None; | |
35654 | return resultobj; | |
35655 | fail: | |
35656 | return NULL; | |
35657 | } | |
35658 | ||
35659 | ||
c32bde28 | 35660 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35661 | PyObject *resultobj; |
35662 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35663 | int result; | |
35664 | PyObject * obj0 = 0 ; | |
35665 | char *kwnames[] = { | |
35666 | (char *) "self", NULL | |
35667 | }; | |
35668 | ||
35669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35672 | { | |
35673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35674 | result = (int)(arg1)->GetFlag(); | |
35675 | ||
35676 | wxPyEndAllowThreads(__tstate); | |
35677 | if (PyErr_Occurred()) SWIG_fail; | |
35678 | } | |
c32bde28 | 35679 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35680 | return resultobj; |
35681 | fail: | |
35682 | return NULL; | |
35683 | } | |
35684 | ||
35685 | ||
c32bde28 | 35686 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35687 | PyObject *resultobj; |
35688 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35689 | int arg2 ; | |
35690 | PyObject * obj0 = 0 ; | |
35691 | PyObject * obj1 = 0 ; | |
35692 | char *kwnames[] = { | |
35693 | (char *) "self",(char *) "border", NULL | |
35694 | }; | |
35695 | ||
35696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35700 | if (PyErr_Occurred()) SWIG_fail; |
35701 | { | |
35702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35703 | (arg1)->SetBorder(arg2); | |
35704 | ||
35705 | wxPyEndAllowThreads(__tstate); | |
35706 | if (PyErr_Occurred()) SWIG_fail; | |
35707 | } | |
35708 | Py_INCREF(Py_None); resultobj = Py_None; | |
35709 | return resultobj; | |
35710 | fail: | |
35711 | return NULL; | |
35712 | } | |
35713 | ||
35714 | ||
c32bde28 | 35715 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35716 | PyObject *resultobj; |
35717 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35718 | int result; | |
35719 | PyObject * obj0 = 0 ; | |
35720 | char *kwnames[] = { | |
35721 | (char *) "self", NULL | |
35722 | }; | |
35723 | ||
35724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35727 | { | |
35728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35729 | result = (int)(arg1)->GetBorder(); | |
35730 | ||
35731 | wxPyEndAllowThreads(__tstate); | |
35732 | if (PyErr_Occurred()) SWIG_fail; | |
35733 | } | |
c32bde28 | 35734 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35735 | return resultobj; |
35736 | fail: | |
35737 | return NULL; | |
35738 | } | |
35739 | ||
35740 | ||
c32bde28 | 35741 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35742 | PyObject *resultobj; |
35743 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35744 | wxWindow *result; | |
35745 | PyObject * obj0 = 0 ; | |
35746 | char *kwnames[] = { | |
35747 | (char *) "self", NULL | |
35748 | }; | |
35749 | ||
35750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35753 | { | |
35754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35755 | result = (wxWindow *)(arg1)->GetWindow(); | |
35756 | ||
35757 | wxPyEndAllowThreads(__tstate); | |
35758 | if (PyErr_Occurred()) SWIG_fail; | |
35759 | } | |
35760 | { | |
412d302d | 35761 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35762 | } |
35763 | return resultobj; | |
35764 | fail: | |
35765 | return NULL; | |
35766 | } | |
35767 | ||
35768 | ||
c32bde28 | 35769 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35770 | PyObject *resultobj; |
35771 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35772 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35773 | PyObject * obj0 = 0 ; | |
35774 | PyObject * obj1 = 0 ; | |
35775 | char *kwnames[] = { | |
35776 | (char *) "self",(char *) "window", NULL | |
35777 | }; | |
35778 | ||
35779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35784 | { | |
35785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35786 | (arg1)->SetWindow(arg2); | |
35787 | ||
35788 | wxPyEndAllowThreads(__tstate); | |
35789 | if (PyErr_Occurred()) SWIG_fail; | |
35790 | } | |
35791 | Py_INCREF(Py_None); resultobj = Py_None; | |
35792 | return resultobj; | |
35793 | fail: | |
35794 | return NULL; | |
35795 | } | |
35796 | ||
35797 | ||
c32bde28 | 35798 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35799 | PyObject *resultobj; |
35800 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35801 | wxSizer *result; | |
35802 | PyObject * obj0 = 0 ; | |
35803 | char *kwnames[] = { | |
35804 | (char *) "self", NULL | |
35805 | }; | |
35806 | ||
35807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35810 | { | |
35811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35812 | result = (wxSizer *)(arg1)->GetSizer(); | |
35813 | ||
35814 | wxPyEndAllowThreads(__tstate); | |
35815 | if (PyErr_Occurred()) SWIG_fail; | |
35816 | } | |
35817 | { | |
412d302d | 35818 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35819 | } |
35820 | return resultobj; | |
35821 | fail: | |
35822 | return NULL; | |
35823 | } | |
35824 | ||
35825 | ||
c32bde28 | 35826 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35827 | PyObject *resultobj; |
35828 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35829 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35830 | PyObject * obj0 = 0 ; | |
35831 | PyObject * obj1 = 0 ; | |
35832 | char *kwnames[] = { | |
35833 | (char *) "self",(char *) "sizer", NULL | |
35834 | }; | |
35835 | ||
35836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35839 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35841 | { | |
35842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35843 | (arg1)->SetSizer(arg2); | |
35844 | ||
35845 | wxPyEndAllowThreads(__tstate); | |
35846 | if (PyErr_Occurred()) SWIG_fail; | |
35847 | } | |
35848 | Py_INCREF(Py_None); resultobj = Py_None; | |
35849 | return resultobj; | |
35850 | fail: | |
35851 | return NULL; | |
35852 | } | |
35853 | ||
35854 | ||
c32bde28 | 35855 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35856 | PyObject *resultobj; |
35857 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35858 | wxSize *result; | |
35859 | PyObject * obj0 = 0 ; | |
35860 | char *kwnames[] = { | |
35861 | (char *) "self", NULL | |
35862 | }; | |
35863 | ||
35864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35867 | { | |
35868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35869 | { | |
35870 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35871 | result = (wxSize *) &_result_ref; | |
35872 | } | |
35873 | ||
35874 | wxPyEndAllowThreads(__tstate); | |
35875 | if (PyErr_Occurred()) SWIG_fail; | |
35876 | } | |
35877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35878 | return resultobj; | |
35879 | fail: | |
35880 | return NULL; | |
35881 | } | |
35882 | ||
35883 | ||
c32bde28 | 35884 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35885 | PyObject *resultobj; |
35886 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35887 | wxSize *arg2 = 0 ; | |
35888 | wxSize temp2 ; | |
35889 | PyObject * obj0 = 0 ; | |
35890 | PyObject * obj1 = 0 ; | |
35891 | char *kwnames[] = { | |
35892 | (char *) "self",(char *) "size", NULL | |
35893 | }; | |
35894 | ||
35895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35898 | { | |
35899 | arg2 = &temp2; | |
35900 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35901 | } | |
35902 | { | |
35903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35904 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35905 | ||
35906 | wxPyEndAllowThreads(__tstate); | |
35907 | if (PyErr_Occurred()) SWIG_fail; | |
35908 | } | |
35909 | Py_INCREF(Py_None); resultobj = Py_None; | |
35910 | return resultobj; | |
35911 | fail: | |
35912 | return NULL; | |
35913 | } | |
35914 | ||
35915 | ||
c32bde28 | 35916 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35917 | PyObject *resultobj; |
35918 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35919 | bool arg2 ; | |
35920 | PyObject * obj0 = 0 ; | |
35921 | PyObject * obj1 = 0 ; | |
35922 | char *kwnames[] = { | |
35923 | (char *) "self",(char *) "show", NULL | |
35924 | }; | |
35925 | ||
35926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 35929 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
35930 | if (PyErr_Occurred()) SWIG_fail; |
35931 | { | |
35932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35933 | (arg1)->Show(arg2); | |
35934 | ||
35935 | wxPyEndAllowThreads(__tstate); | |
35936 | if (PyErr_Occurred()) SWIG_fail; | |
35937 | } | |
35938 | Py_INCREF(Py_None); resultobj = Py_None; | |
35939 | return resultobj; | |
35940 | fail: | |
35941 | return NULL; | |
35942 | } | |
35943 | ||
35944 | ||
c32bde28 | 35945 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35946 | PyObject *resultobj; |
35947 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35948 | bool result; | |
35949 | PyObject * obj0 = 0 ; | |
35950 | char *kwnames[] = { | |
35951 | (char *) "self", NULL | |
35952 | }; | |
35953 | ||
35954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
35955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35957 | { | |
35958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35959 | result = (bool)(arg1)->IsShown(); | |
35960 | ||
35961 | wxPyEndAllowThreads(__tstate); | |
35962 | if (PyErr_Occurred()) SWIG_fail; | |
35963 | } | |
35964 | { | |
35965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35966 | } | |
35967 | return resultobj; | |
35968 | fail: | |
35969 | return NULL; | |
35970 | } | |
35971 | ||
35972 | ||
c32bde28 | 35973 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35974 | PyObject *resultobj; |
35975 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35976 | wxPoint result; | |
35977 | PyObject * obj0 = 0 ; | |
35978 | char *kwnames[] = { | |
35979 | (char *) "self", NULL | |
35980 | }; | |
35981 | ||
35982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
35983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35985 | { | |
35986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35987 | result = (arg1)->GetPosition(); | |
35988 | ||
35989 | wxPyEndAllowThreads(__tstate); | |
35990 | if (PyErr_Occurred()) SWIG_fail; | |
35991 | } | |
35992 | { | |
35993 | wxPoint * resultptr; | |
35994 | resultptr = new wxPoint((wxPoint &) result); | |
35995 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35996 | } | |
35997 | return resultobj; | |
35998 | fail: | |
35999 | return NULL; | |
36000 | } | |
36001 | ||
36002 | ||
c32bde28 | 36003 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36004 | PyObject *resultobj; |
36005 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
36006 | PyObject *result; | |
36007 | PyObject * obj0 = 0 ; | |
36008 | char *kwnames[] = { | |
36009 | (char *) "self", NULL | |
36010 | }; | |
36011 | ||
36012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
36013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
36014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36015 | { | |
36016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36017 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
36018 | ||
36019 | wxPyEndAllowThreads(__tstate); | |
36020 | if (PyErr_Occurred()) SWIG_fail; | |
36021 | } | |
36022 | resultobj = result; | |
36023 | return resultobj; | |
36024 | fail: | |
36025 | return NULL; | |
36026 | } | |
36027 | ||
36028 | ||
c32bde28 | 36029 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36030 | PyObject *obj; |
36031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36032 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
36033 | Py_INCREF(obj); | |
36034 | return Py_BuildValue((char *)""); | |
36035 | } | |
c32bde28 | 36036 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36037 | PyObject *resultobj; |
36038 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36039 | PyObject *arg2 = (PyObject *) 0 ; | |
36040 | PyObject * obj0 = 0 ; | |
36041 | PyObject * obj1 = 0 ; | |
36042 | char *kwnames[] = { | |
36043 | (char *) "self",(char *) "_self", NULL | |
36044 | }; | |
36045 | ||
36046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
36047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36049 | arg2 = obj1; | |
36050 | { | |
36051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36052 | wxSizer__setOORInfo(arg1,arg2); | |
36053 | ||
36054 | wxPyEndAllowThreads(__tstate); | |
36055 | if (PyErr_Occurred()) SWIG_fail; | |
36056 | } | |
36057 | Py_INCREF(Py_None); resultobj = Py_None; | |
36058 | return resultobj; | |
36059 | fail: | |
36060 | return NULL; | |
36061 | } | |
36062 | ||
36063 | ||
c32bde28 | 36064 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36065 | PyObject *resultobj; |
36066 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36067 | PyObject *arg2 = (PyObject *) 0 ; | |
36068 | int arg3 = (int) 0 ; | |
36069 | int arg4 = (int) 0 ; | |
36070 | int arg5 = (int) 0 ; | |
36071 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 36072 | wxSizerItem *result; |
d55e5bfc RD |
36073 | PyObject * obj0 = 0 ; |
36074 | PyObject * obj1 = 0 ; | |
36075 | PyObject * obj2 = 0 ; | |
36076 | PyObject * obj3 = 0 ; | |
36077 | PyObject * obj4 = 0 ; | |
36078 | PyObject * obj5 = 0 ; | |
36079 | char *kwnames[] = { | |
36080 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36081 | }; | |
36082 | ||
36083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36086 | arg2 = obj1; | |
36087 | if (obj2) { | |
c32bde28 | 36088 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36089 | if (PyErr_Occurred()) SWIG_fail; |
36090 | } | |
36091 | if (obj3) { | |
c32bde28 | 36092 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36093 | if (PyErr_Occurred()) SWIG_fail; |
36094 | } | |
36095 | if (obj4) { | |
c32bde28 | 36096 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36097 | if (PyErr_Occurred()) SWIG_fail; |
36098 | } | |
36099 | if (obj5) { | |
36100 | arg6 = obj5; | |
36101 | } | |
36102 | { | |
36103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36104 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
36105 | |
36106 | wxPyEndAllowThreads(__tstate); | |
36107 | if (PyErr_Occurred()) SWIG_fail; | |
36108 | } | |
c1cb24a4 | 36109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36110 | return resultobj; |
36111 | fail: | |
36112 | return NULL; | |
36113 | } | |
36114 | ||
36115 | ||
c32bde28 | 36116 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36117 | PyObject *resultobj; |
36118 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36119 | int arg2 ; | |
36120 | PyObject *arg3 = (PyObject *) 0 ; | |
36121 | int arg4 = (int) 0 ; | |
36122 | int arg5 = (int) 0 ; | |
36123 | int arg6 = (int) 0 ; | |
36124 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 36125 | wxSizerItem *result; |
d55e5bfc RD |
36126 | PyObject * obj0 = 0 ; |
36127 | PyObject * obj1 = 0 ; | |
36128 | PyObject * obj2 = 0 ; | |
36129 | PyObject * obj3 = 0 ; | |
36130 | PyObject * obj4 = 0 ; | |
36131 | PyObject * obj5 = 0 ; | |
36132 | PyObject * obj6 = 0 ; | |
36133 | char *kwnames[] = { | |
36134 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36135 | }; | |
36136 | ||
36137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36140 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36141 | if (PyErr_Occurred()) SWIG_fail; |
36142 | arg3 = obj2; | |
36143 | if (obj3) { | |
c32bde28 | 36144 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36145 | if (PyErr_Occurred()) SWIG_fail; |
36146 | } | |
36147 | if (obj4) { | |
c32bde28 | 36148 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36149 | if (PyErr_Occurred()) SWIG_fail; |
36150 | } | |
36151 | if (obj5) { | |
c32bde28 | 36152 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
36153 | if (PyErr_Occurred()) SWIG_fail; |
36154 | } | |
36155 | if (obj6) { | |
36156 | arg7 = obj6; | |
36157 | } | |
36158 | { | |
36159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36160 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
36161 | |
36162 | wxPyEndAllowThreads(__tstate); | |
36163 | if (PyErr_Occurred()) SWIG_fail; | |
36164 | } | |
c1cb24a4 | 36165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36166 | return resultobj; |
36167 | fail: | |
36168 | return NULL; | |
36169 | } | |
36170 | ||
36171 | ||
c32bde28 | 36172 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36173 | PyObject *resultobj; |
36174 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36175 | PyObject *arg2 = (PyObject *) 0 ; | |
36176 | int arg3 = (int) 0 ; | |
36177 | int arg4 = (int) 0 ; | |
36178 | int arg5 = (int) 0 ; | |
36179 | PyObject *arg6 = (PyObject *) NULL ; | |
c1cb24a4 | 36180 | wxSizerItem *result; |
d55e5bfc RD |
36181 | PyObject * obj0 = 0 ; |
36182 | PyObject * obj1 = 0 ; | |
36183 | PyObject * obj2 = 0 ; | |
36184 | PyObject * obj3 = 0 ; | |
36185 | PyObject * obj4 = 0 ; | |
36186 | PyObject * obj5 = 0 ; | |
36187 | char *kwnames[] = { | |
36188 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36189 | }; | |
36190 | ||
36191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36194 | arg2 = obj1; | |
36195 | if (obj2) { | |
c32bde28 | 36196 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36197 | if (PyErr_Occurred()) SWIG_fail; |
36198 | } | |
36199 | if (obj3) { | |
c32bde28 | 36200 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36201 | if (PyErr_Occurred()) SWIG_fail; |
36202 | } | |
36203 | if (obj4) { | |
c32bde28 | 36204 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36205 | if (PyErr_Occurred()) SWIG_fail; |
36206 | } | |
36207 | if (obj5) { | |
36208 | arg6 = obj5; | |
36209 | } | |
36210 | { | |
36211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36212 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
36213 | |
36214 | wxPyEndAllowThreads(__tstate); | |
36215 | if (PyErr_Occurred()) SWIG_fail; | |
36216 | } | |
c1cb24a4 | 36217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36218 | return resultobj; |
36219 | fail: | |
36220 | return NULL; | |
36221 | } | |
36222 | ||
36223 | ||
c32bde28 | 36224 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36225 | PyObject *resultobj; |
36226 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36227 | PyObject *arg2 = (PyObject *) 0 ; | |
36228 | bool result; | |
36229 | PyObject * obj0 = 0 ; | |
36230 | PyObject * obj1 = 0 ; | |
36231 | char *kwnames[] = { | |
36232 | (char *) "self",(char *) "item", NULL | |
36233 | }; | |
36234 | ||
36235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
36236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36238 | arg2 = obj1; | |
36239 | { | |
36240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36241 | result = (bool)wxSizer_Remove(arg1,arg2); | |
36242 | ||
36243 | wxPyEndAllowThreads(__tstate); | |
36244 | if (PyErr_Occurred()) SWIG_fail; | |
36245 | } | |
36246 | { | |
36247 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36248 | } | |
36249 | return resultobj; | |
36250 | fail: | |
36251 | return NULL; | |
36252 | } | |
36253 | ||
36254 | ||
c32bde28 | 36255 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
36256 | PyObject *resultobj; |
36257 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36258 | PyObject *arg2 = (PyObject *) 0 ; | |
36259 | bool result; | |
36260 | PyObject * obj0 = 0 ; | |
36261 | PyObject * obj1 = 0 ; | |
36262 | char *kwnames[] = { | |
36263 | (char *) "self",(char *) "item", NULL | |
36264 | }; | |
36265 | ||
36266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
36267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36269 | arg2 = obj1; | |
36270 | { | |
36271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36272 | result = (bool)wxSizer_Detach(arg1,arg2); | |
36273 | ||
36274 | wxPyEndAllowThreads(__tstate); | |
36275 | if (PyErr_Occurred()) SWIG_fail; | |
36276 | } | |
36277 | { | |
36278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36279 | } | |
36280 | return resultobj; | |
36281 | fail: | |
36282 | return NULL; | |
36283 | } | |
36284 | ||
36285 | ||
c1cb24a4 RD |
36286 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
36287 | PyObject *resultobj; | |
36288 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36289 | PyObject *arg2 = (PyObject *) 0 ; | |
36290 | wxSizerItem *result; | |
36291 | PyObject * obj0 = 0 ; | |
36292 | PyObject * obj1 = 0 ; | |
36293 | char *kwnames[] = { | |
36294 | (char *) "self",(char *) "item", NULL | |
36295 | }; | |
36296 | ||
36297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
36298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36300 | arg2 = obj1; | |
36301 | { | |
36302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36303 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
36304 | ||
36305 | wxPyEndAllowThreads(__tstate); | |
36306 | if (PyErr_Occurred()) SWIG_fail; | |
36307 | } | |
36308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
36309 | return resultobj; | |
36310 | fail: | |
36311 | return NULL; | |
36312 | } | |
36313 | ||
36314 | ||
c32bde28 | 36315 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36316 | PyObject *resultobj; |
36317 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36318 | PyObject *arg2 = (PyObject *) 0 ; | |
36319 | wxSize *arg3 = 0 ; | |
36320 | wxSize temp3 ; | |
36321 | PyObject * obj0 = 0 ; | |
36322 | PyObject * obj1 = 0 ; | |
36323 | PyObject * obj2 = 0 ; | |
36324 | char *kwnames[] = { | |
36325 | (char *) "self",(char *) "item",(char *) "size", NULL | |
36326 | }; | |
36327 | ||
36328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36331 | arg2 = obj1; | |
36332 | { | |
36333 | arg3 = &temp3; | |
36334 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36335 | } | |
36336 | { | |
36337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36338 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
36339 | ||
36340 | wxPyEndAllowThreads(__tstate); | |
36341 | if (PyErr_Occurred()) SWIG_fail; | |
36342 | } | |
36343 | Py_INCREF(Py_None); resultobj = Py_None; | |
36344 | return resultobj; | |
36345 | fail: | |
36346 | return NULL; | |
36347 | } | |
36348 | ||
36349 | ||
c32bde28 | 36350 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36351 | PyObject *resultobj; |
36352 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36353 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36354 | wxSizerItem *result; |
d55e5bfc RD |
36355 | PyObject * obj0 = 0 ; |
36356 | PyObject * obj1 = 0 ; | |
36357 | char *kwnames[] = { | |
36358 | (char *) "self",(char *) "item", NULL | |
36359 | }; | |
36360 | ||
36361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36366 | { | |
36367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36368 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
36369 | |
36370 | wxPyEndAllowThreads(__tstate); | |
36371 | if (PyErr_Occurred()) SWIG_fail; | |
36372 | } | |
c1cb24a4 | 36373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36374 | return resultobj; |
36375 | fail: | |
36376 | return NULL; | |
36377 | } | |
36378 | ||
36379 | ||
c32bde28 | 36380 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36381 | PyObject *resultobj; |
36382 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36383 | size_t arg2 ; | |
36384 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36385 | wxSizerItem *result; |
d55e5bfc RD |
36386 | PyObject * obj0 = 0 ; |
36387 | PyObject * obj1 = 0 ; | |
36388 | PyObject * obj2 = 0 ; | |
36389 | char *kwnames[] = { | |
36390 | (char *) "self",(char *) "index",(char *) "item", NULL | |
36391 | }; | |
36392 | ||
36393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36396 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36397 | if (PyErr_Occurred()) SWIG_fail; |
36398 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
36399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36400 | { | |
36401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36402 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d55e5bfc RD |
36403 | |
36404 | wxPyEndAllowThreads(__tstate); | |
36405 | if (PyErr_Occurred()) SWIG_fail; | |
36406 | } | |
c1cb24a4 | 36407 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36408 | return resultobj; |
36409 | fail: | |
36410 | return NULL; | |
36411 | } | |
36412 | ||
36413 | ||
c32bde28 | 36414 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36415 | PyObject *resultobj; |
36416 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36417 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
c1cb24a4 | 36418 | wxSizerItem *result; |
d55e5bfc RD |
36419 | PyObject * obj0 = 0 ; |
36420 | PyObject * obj1 = 0 ; | |
36421 | char *kwnames[] = { | |
36422 | (char *) "self",(char *) "item", NULL | |
36423 | }; | |
36424 | ||
36425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
36426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36430 | { | |
36431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 36432 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d55e5bfc RD |
36433 | |
36434 | wxPyEndAllowThreads(__tstate); | |
36435 | if (PyErr_Occurred()) SWIG_fail; | |
36436 | } | |
c1cb24a4 | 36437 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36438 | return resultobj; |
36439 | fail: | |
36440 | return NULL; | |
36441 | } | |
36442 | ||
36443 | ||
c32bde28 | 36444 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36445 | PyObject *resultobj; |
36446 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36447 | int arg2 ; | |
36448 | int arg3 ; | |
36449 | int arg4 ; | |
36450 | int arg5 ; | |
36451 | PyObject * obj0 = 0 ; | |
36452 | PyObject * obj1 = 0 ; | |
36453 | PyObject * obj2 = 0 ; | |
36454 | PyObject * obj3 = 0 ; | |
36455 | PyObject * obj4 = 0 ; | |
36456 | char *kwnames[] = { | |
36457 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36458 | }; | |
36459 | ||
36460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36463 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 36464 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36465 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 36466 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36467 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 36468 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 36469 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36470 | if (PyErr_Occurred()) SWIG_fail; |
36471 | { | |
36472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36473 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
36474 | ||
36475 | wxPyEndAllowThreads(__tstate); | |
36476 | if (PyErr_Occurred()) SWIG_fail; | |
36477 | } | |
36478 | Py_INCREF(Py_None); resultobj = Py_None; | |
36479 | return resultobj; | |
36480 | fail: | |
36481 | return NULL; | |
36482 | } | |
36483 | ||
36484 | ||
c32bde28 | 36485 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36486 | PyObject *resultobj; |
36487 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36488 | wxSize *arg2 = 0 ; | |
36489 | wxSize temp2 ; | |
36490 | PyObject * obj0 = 0 ; | |
36491 | PyObject * obj1 = 0 ; | |
36492 | char *kwnames[] = { | |
36493 | (char *) "self",(char *) "size", NULL | |
36494 | }; | |
36495 | ||
36496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
36497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36499 | { | |
36500 | arg2 = &temp2; | |
36501 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36502 | } | |
36503 | { | |
36504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36505 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
36506 | ||
36507 | wxPyEndAllowThreads(__tstate); | |
36508 | if (PyErr_Occurred()) SWIG_fail; | |
36509 | } | |
36510 | Py_INCREF(Py_None); resultobj = Py_None; | |
36511 | return resultobj; | |
36512 | fail: | |
36513 | return NULL; | |
36514 | } | |
36515 | ||
36516 | ||
c32bde28 | 36517 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36518 | PyObject *resultobj; |
36519 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36520 | wxSize result; | |
36521 | PyObject * obj0 = 0 ; | |
36522 | char *kwnames[] = { | |
36523 | (char *) "self", NULL | |
36524 | }; | |
36525 | ||
36526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
36527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36529 | { | |
36530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36531 | result = (arg1)->GetSize(); | |
36532 | ||
36533 | wxPyEndAllowThreads(__tstate); | |
36534 | if (PyErr_Occurred()) SWIG_fail; | |
36535 | } | |
36536 | { | |
36537 | wxSize * resultptr; | |
36538 | resultptr = new wxSize((wxSize &) result); | |
36539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36540 | } | |
36541 | return resultobj; | |
36542 | fail: | |
36543 | return NULL; | |
36544 | } | |
36545 | ||
36546 | ||
c32bde28 | 36547 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36548 | PyObject *resultobj; |
36549 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36550 | wxPoint result; | |
36551 | PyObject * obj0 = 0 ; | |
36552 | char *kwnames[] = { | |
36553 | (char *) "self", NULL | |
36554 | }; | |
36555 | ||
36556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
36557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36559 | { | |
36560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36561 | result = (arg1)->GetPosition(); | |
36562 | ||
36563 | wxPyEndAllowThreads(__tstate); | |
36564 | if (PyErr_Occurred()) SWIG_fail; | |
36565 | } | |
36566 | { | |
36567 | wxPoint * resultptr; | |
36568 | resultptr = new wxPoint((wxPoint &) result); | |
36569 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36570 | } | |
36571 | return resultobj; | |
36572 | fail: | |
36573 | return NULL; | |
36574 | } | |
36575 | ||
36576 | ||
c32bde28 | 36577 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36578 | PyObject *resultobj; |
36579 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36580 | wxSize result; | |
36581 | PyObject * obj0 = 0 ; | |
36582 | char *kwnames[] = { | |
36583 | (char *) "self", NULL | |
36584 | }; | |
36585 | ||
36586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
36587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36589 | { | |
36590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36591 | result = (arg1)->GetMinSize(); | |
36592 | ||
36593 | wxPyEndAllowThreads(__tstate); | |
36594 | if (PyErr_Occurred()) SWIG_fail; | |
36595 | } | |
36596 | { | |
36597 | wxSize * resultptr; | |
36598 | resultptr = new wxSize((wxSize &) result); | |
36599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36600 | } | |
36601 | return resultobj; | |
36602 | fail: | |
36603 | return NULL; | |
36604 | } | |
36605 | ||
36606 | ||
c32bde28 | 36607 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36608 | PyObject *resultobj; |
36609 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36610 | PyObject * obj0 = 0 ; | |
36611 | char *kwnames[] = { | |
36612 | (char *) "self", NULL | |
36613 | }; | |
36614 | ||
36615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36618 | { | |
36619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36620 | (arg1)->RecalcSizes(); | |
36621 | ||
36622 | wxPyEndAllowThreads(__tstate); | |
36623 | if (PyErr_Occurred()) SWIG_fail; | |
36624 | } | |
36625 | Py_INCREF(Py_None); resultobj = Py_None; | |
36626 | return resultobj; | |
36627 | fail: | |
36628 | return NULL; | |
36629 | } | |
36630 | ||
36631 | ||
c32bde28 | 36632 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36633 | PyObject *resultobj; |
36634 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36635 | wxSize result; | |
36636 | PyObject * obj0 = 0 ; | |
36637 | char *kwnames[] = { | |
36638 | (char *) "self", NULL | |
36639 | }; | |
36640 | ||
36641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36644 | { | |
36645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36646 | result = (arg1)->CalcMin(); | |
36647 | ||
36648 | wxPyEndAllowThreads(__tstate); | |
36649 | if (PyErr_Occurred()) SWIG_fail; | |
36650 | } | |
36651 | { | |
36652 | wxSize * resultptr; | |
36653 | resultptr = new wxSize((wxSize &) result); | |
36654 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36655 | } | |
36656 | return resultobj; | |
36657 | fail: | |
36658 | return NULL; | |
36659 | } | |
36660 | ||
36661 | ||
c32bde28 | 36662 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36663 | PyObject *resultobj; |
36664 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36665 | PyObject * obj0 = 0 ; | |
36666 | char *kwnames[] = { | |
36667 | (char *) "self", NULL | |
36668 | }; | |
36669 | ||
36670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36673 | { | |
36674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36675 | (arg1)->Layout(); | |
36676 | ||
36677 | wxPyEndAllowThreads(__tstate); | |
36678 | if (PyErr_Occurred()) SWIG_fail; | |
36679 | } | |
36680 | Py_INCREF(Py_None); resultobj = Py_None; | |
36681 | return resultobj; | |
36682 | fail: | |
36683 | return NULL; | |
36684 | } | |
36685 | ||
36686 | ||
c32bde28 | 36687 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36688 | PyObject *resultobj; |
36689 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36690 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36691 | wxSize result; | |
36692 | PyObject * obj0 = 0 ; | |
36693 | PyObject * obj1 = 0 ; | |
36694 | char *kwnames[] = { | |
36695 | (char *) "self",(char *) "window", NULL | |
36696 | }; | |
36697 | ||
36698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36703 | { | |
36704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36705 | result = (arg1)->Fit(arg2); | |
36706 | ||
36707 | wxPyEndAllowThreads(__tstate); | |
36708 | if (PyErr_Occurred()) SWIG_fail; | |
36709 | } | |
36710 | { | |
36711 | wxSize * resultptr; | |
36712 | resultptr = new wxSize((wxSize &) result); | |
36713 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36714 | } | |
36715 | return resultobj; | |
36716 | fail: | |
36717 | return NULL; | |
36718 | } | |
36719 | ||
36720 | ||
c32bde28 | 36721 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36722 | PyObject *resultobj; |
36723 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36724 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36725 | PyObject * obj0 = 0 ; | |
36726 | PyObject * obj1 = 0 ; | |
36727 | char *kwnames[] = { | |
36728 | (char *) "self",(char *) "window", NULL | |
36729 | }; | |
36730 | ||
36731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36736 | { | |
36737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36738 | (arg1)->FitInside(arg2); | |
36739 | ||
36740 | wxPyEndAllowThreads(__tstate); | |
36741 | if (PyErr_Occurred()) SWIG_fail; | |
36742 | } | |
36743 | Py_INCREF(Py_None); resultobj = Py_None; | |
36744 | return resultobj; | |
36745 | fail: | |
36746 | return NULL; | |
36747 | } | |
36748 | ||
36749 | ||
c32bde28 | 36750 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36751 | PyObject *resultobj; |
36752 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36754 | PyObject * obj0 = 0 ; | |
36755 | PyObject * obj1 = 0 ; | |
36756 | char *kwnames[] = { | |
36757 | (char *) "self",(char *) "window", NULL | |
36758 | }; | |
36759 | ||
36760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36765 | { | |
36766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36767 | (arg1)->SetSizeHints(arg2); | |
36768 | ||
36769 | wxPyEndAllowThreads(__tstate); | |
36770 | if (PyErr_Occurred()) SWIG_fail; | |
36771 | } | |
36772 | Py_INCREF(Py_None); resultobj = Py_None; | |
36773 | return resultobj; | |
36774 | fail: | |
36775 | return NULL; | |
36776 | } | |
36777 | ||
36778 | ||
c32bde28 | 36779 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36780 | PyObject *resultobj; |
36781 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36782 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36783 | PyObject * obj0 = 0 ; | |
36784 | PyObject * obj1 = 0 ; | |
36785 | char *kwnames[] = { | |
36786 | (char *) "self",(char *) "window", NULL | |
36787 | }; | |
36788 | ||
36789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36794 | { | |
36795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36796 | (arg1)->SetVirtualSizeHints(arg2); | |
36797 | ||
36798 | wxPyEndAllowThreads(__tstate); | |
36799 | if (PyErr_Occurred()) SWIG_fail; | |
36800 | } | |
36801 | Py_INCREF(Py_None); resultobj = Py_None; | |
36802 | return resultobj; | |
36803 | fail: | |
36804 | return NULL; | |
36805 | } | |
36806 | ||
36807 | ||
c32bde28 | 36808 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36809 | PyObject *resultobj; |
36810 | wxSizer *arg1 = (wxSizer *) 0 ; | |
ae8162c8 | 36811 | bool arg2 = (bool) false ; |
d55e5bfc RD |
36812 | PyObject * obj0 = 0 ; |
36813 | PyObject * obj1 = 0 ; | |
36814 | char *kwnames[] = { | |
248ed943 | 36815 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36816 | }; |
36817 | ||
36818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36821 | if (obj1) { | |
c32bde28 | 36822 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36823 | if (PyErr_Occurred()) SWIG_fail; |
36824 | } | |
36825 | { | |
36826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36827 | (arg1)->Clear(arg2); | |
36828 | ||
36829 | wxPyEndAllowThreads(__tstate); | |
36830 | if (PyErr_Occurred()) SWIG_fail; | |
36831 | } | |
36832 | Py_INCREF(Py_None); resultobj = Py_None; | |
36833 | return resultobj; | |
36834 | fail: | |
36835 | return NULL; | |
36836 | } | |
36837 | ||
36838 | ||
c32bde28 | 36839 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36840 | PyObject *resultobj; |
36841 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36842 | PyObject * obj0 = 0 ; | |
36843 | char *kwnames[] = { | |
36844 | (char *) "self", NULL | |
36845 | }; | |
36846 | ||
36847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36850 | { | |
36851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36852 | (arg1)->DeleteWindows(); | |
36853 | ||
36854 | wxPyEndAllowThreads(__tstate); | |
36855 | if (PyErr_Occurred()) SWIG_fail; | |
36856 | } | |
36857 | Py_INCREF(Py_None); resultobj = Py_None; | |
36858 | return resultobj; | |
36859 | fail: | |
36860 | return NULL; | |
36861 | } | |
36862 | ||
36863 | ||
c32bde28 | 36864 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36865 | PyObject *resultobj; |
36866 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36867 | PyObject *result; | |
36868 | PyObject * obj0 = 0 ; | |
36869 | char *kwnames[] = { | |
36870 | (char *) "self", NULL | |
36871 | }; | |
36872 | ||
36873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36876 | { | |
36877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36878 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36879 | ||
36880 | wxPyEndAllowThreads(__tstate); | |
36881 | if (PyErr_Occurred()) SWIG_fail; | |
36882 | } | |
36883 | resultobj = result; | |
36884 | return resultobj; | |
36885 | fail: | |
36886 | return NULL; | |
36887 | } | |
36888 | ||
36889 | ||
c32bde28 | 36890 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36891 | PyObject *resultobj; |
36892 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36893 | PyObject *arg2 = (PyObject *) 0 ; | |
ae8162c8 RD |
36894 | bool arg3 = (bool) true ; |
36895 | bool arg4 = (bool) false ; | |
7e63a440 | 36896 | bool result; |
d55e5bfc RD |
36897 | PyObject * obj0 = 0 ; |
36898 | PyObject * obj1 = 0 ; | |
36899 | PyObject * obj2 = 0 ; | |
7e63a440 | 36900 | PyObject * obj3 = 0 ; |
d55e5bfc | 36901 | char *kwnames[] = { |
7e63a440 | 36902 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
36903 | }; |
36904 | ||
7e63a440 | 36905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
36906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36908 | arg2 = obj1; | |
36909 | if (obj2) { | |
c32bde28 | 36910 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
36911 | if (PyErr_Occurred()) SWIG_fail; |
36912 | } | |
7e63a440 RD |
36913 | if (obj3) { |
36914 | arg4 = (bool)SWIG_As_bool(obj3); | |
36915 | if (PyErr_Occurred()) SWIG_fail; | |
36916 | } | |
d55e5bfc RD |
36917 | { |
36918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e63a440 | 36919 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
36920 | |
36921 | wxPyEndAllowThreads(__tstate); | |
36922 | if (PyErr_Occurred()) SWIG_fail; | |
36923 | } | |
7e63a440 RD |
36924 | { |
36925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36926 | } | |
d55e5bfc RD |
36927 | return resultobj; |
36928 | fail: | |
36929 | return NULL; | |
36930 | } | |
36931 | ||
36932 | ||
c32bde28 | 36933 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36934 | PyObject *resultobj; |
36935 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36936 | PyObject *arg2 = (PyObject *) 0 ; | |
36937 | bool result; | |
36938 | PyObject * obj0 = 0 ; | |
36939 | PyObject * obj1 = 0 ; | |
36940 | char *kwnames[] = { | |
36941 | (char *) "self",(char *) "item", NULL | |
36942 | }; | |
36943 | ||
36944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
36945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36947 | arg2 = obj1; | |
36948 | { | |
36949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36950 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36951 | ||
36952 | wxPyEndAllowThreads(__tstate); | |
36953 | if (PyErr_Occurred()) SWIG_fail; | |
36954 | } | |
36955 | { | |
36956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36957 | } | |
36958 | return resultobj; | |
36959 | fail: | |
36960 | return NULL; | |
36961 | } | |
36962 | ||
36963 | ||
c32bde28 | 36964 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36965 | PyObject *resultobj; |
36966 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36967 | bool arg2 ; | |
36968 | PyObject * obj0 = 0 ; | |
36969 | PyObject * obj1 = 0 ; | |
36970 | char *kwnames[] = { | |
36971 | (char *) "self",(char *) "show", NULL | |
36972 | }; | |
36973 | ||
36974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
36975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 36977 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36978 | if (PyErr_Occurred()) SWIG_fail; |
36979 | { | |
36980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36981 | (arg1)->ShowItems(arg2); | |
36982 | ||
36983 | wxPyEndAllowThreads(__tstate); | |
36984 | if (PyErr_Occurred()) SWIG_fail; | |
36985 | } | |
36986 | Py_INCREF(Py_None); resultobj = Py_None; | |
36987 | return resultobj; | |
36988 | fail: | |
36989 | return NULL; | |
36990 | } | |
36991 | ||
36992 | ||
c32bde28 | 36993 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36994 | PyObject *obj; |
36995 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36996 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36997 | Py_INCREF(obj); | |
36998 | return Py_BuildValue((char *)""); | |
36999 | } | |
c32bde28 | 37000 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37001 | PyObject *resultobj; |
37002 | wxPySizer *result; | |
37003 | char *kwnames[] = { | |
37004 | NULL | |
37005 | }; | |
37006 | ||
37007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
37008 | { | |
37009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37010 | result = (wxPySizer *)new wxPySizer(); | |
37011 | ||
37012 | wxPyEndAllowThreads(__tstate); | |
37013 | if (PyErr_Occurred()) SWIG_fail; | |
37014 | } | |
37015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
37016 | return resultobj; | |
37017 | fail: | |
37018 | return NULL; | |
37019 | } | |
37020 | ||
37021 | ||
c32bde28 | 37022 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37023 | PyObject *resultobj; |
37024 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
37025 | PyObject *arg2 = (PyObject *) 0 ; | |
37026 | PyObject *arg3 = (PyObject *) 0 ; | |
37027 | PyObject * obj0 = 0 ; | |
37028 | PyObject * obj1 = 0 ; | |
37029 | PyObject * obj2 = 0 ; | |
37030 | char *kwnames[] = { | |
37031 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
37032 | }; | |
37033 | ||
37034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
37036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37037 | arg2 = obj1; | |
37038 | arg3 = obj2; | |
37039 | { | |
37040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37041 | (arg1)->_setCallbackInfo(arg2,arg3); | |
37042 | ||
37043 | wxPyEndAllowThreads(__tstate); | |
37044 | if (PyErr_Occurred()) SWIG_fail; | |
37045 | } | |
37046 | Py_INCREF(Py_None); resultobj = Py_None; | |
37047 | return resultobj; | |
37048 | fail: | |
37049 | return NULL; | |
37050 | } | |
37051 | ||
37052 | ||
c32bde28 | 37053 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37054 | PyObject *obj; |
37055 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37056 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
37057 | Py_INCREF(obj); | |
37058 | return Py_BuildValue((char *)""); | |
37059 | } | |
c32bde28 | 37060 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37061 | PyObject *resultobj; |
37062 | int arg1 = (int) wxHORIZONTAL ; | |
37063 | wxBoxSizer *result; | |
37064 | PyObject * obj0 = 0 ; | |
37065 | char *kwnames[] = { | |
37066 | (char *) "orient", NULL | |
37067 | }; | |
37068 | ||
37069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
37070 | if (obj0) { | |
c32bde28 | 37071 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37072 | if (PyErr_Occurred()) SWIG_fail; |
37073 | } | |
37074 | { | |
37075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37076 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
37077 | ||
37078 | wxPyEndAllowThreads(__tstate); | |
37079 | if (PyErr_Occurred()) SWIG_fail; | |
37080 | } | |
37081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
37082 | return resultobj; | |
37083 | fail: | |
37084 | return NULL; | |
37085 | } | |
37086 | ||
37087 | ||
c32bde28 | 37088 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37089 | PyObject *resultobj; |
37090 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
37091 | int result; | |
37092 | PyObject * obj0 = 0 ; | |
37093 | char *kwnames[] = { | |
37094 | (char *) "self", NULL | |
37095 | }; | |
37096 | ||
37097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
37098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
37099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37100 | { | |
37101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37102 | result = (int)(arg1)->GetOrientation(); | |
37103 | ||
37104 | wxPyEndAllowThreads(__tstate); | |
37105 | if (PyErr_Occurred()) SWIG_fail; | |
37106 | } | |
c32bde28 | 37107 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37108 | return resultobj; |
37109 | fail: | |
37110 | return NULL; | |
37111 | } | |
37112 | ||
37113 | ||
c32bde28 | 37114 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37115 | PyObject *resultobj; |
37116 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
37117 | int arg2 ; | |
37118 | PyObject * obj0 = 0 ; | |
37119 | PyObject * obj1 = 0 ; | |
37120 | char *kwnames[] = { | |
37121 | (char *) "self",(char *) "orient", NULL | |
37122 | }; | |
37123 | ||
37124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
37125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
37126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37127 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37128 | if (PyErr_Occurred()) SWIG_fail; |
37129 | { | |
37130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37131 | (arg1)->SetOrientation(arg2); | |
37132 | ||
37133 | wxPyEndAllowThreads(__tstate); | |
37134 | if (PyErr_Occurred()) SWIG_fail; | |
37135 | } | |
37136 | Py_INCREF(Py_None); resultobj = Py_None; | |
37137 | return resultobj; | |
37138 | fail: | |
37139 | return NULL; | |
37140 | } | |
37141 | ||
37142 | ||
c32bde28 | 37143 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37144 | PyObject *obj; |
37145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37146 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
37147 | Py_INCREF(obj); | |
37148 | return Py_BuildValue((char *)""); | |
37149 | } | |
c32bde28 | 37150 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37151 | PyObject *resultobj; |
37152 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
37153 | int arg2 = (int) wxHORIZONTAL ; | |
37154 | wxStaticBoxSizer *result; | |
37155 | PyObject * obj0 = 0 ; | |
37156 | PyObject * obj1 = 0 ; | |
37157 | char *kwnames[] = { | |
37158 | (char *) "box",(char *) "orient", NULL | |
37159 | }; | |
37160 | ||
37161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
37162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
37163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37164 | if (obj1) { | |
c32bde28 | 37165 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37166 | if (PyErr_Occurred()) SWIG_fail; |
37167 | } | |
37168 | { | |
37169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37170 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
37171 | ||
37172 | wxPyEndAllowThreads(__tstate); | |
37173 | if (PyErr_Occurred()) SWIG_fail; | |
37174 | } | |
37175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
37176 | return resultobj; | |
37177 | fail: | |
37178 | return NULL; | |
37179 | } | |
37180 | ||
37181 | ||
c32bde28 | 37182 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37183 | PyObject *resultobj; |
37184 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
37185 | wxStaticBox *result; | |
37186 | PyObject * obj0 = 0 ; | |
37187 | char *kwnames[] = { | |
37188 | (char *) "self", NULL | |
37189 | }; | |
37190 | ||
37191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
37192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
37193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37194 | { | |
37195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37196 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
37197 | ||
37198 | wxPyEndAllowThreads(__tstate); | |
37199 | if (PyErr_Occurred()) SWIG_fail; | |
37200 | } | |
37201 | { | |
412d302d | 37202 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
37203 | } |
37204 | return resultobj; | |
37205 | fail: | |
37206 | return NULL; | |
37207 | } | |
37208 | ||
37209 | ||
c32bde28 | 37210 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37211 | PyObject *obj; |
37212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37213 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
37214 | Py_INCREF(obj); | |
37215 | return Py_BuildValue((char *)""); | |
37216 | } | |
c32bde28 | 37217 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37218 | PyObject *resultobj; |
37219 | int arg1 = (int) 1 ; | |
37220 | int arg2 = (int) 0 ; | |
37221 | int arg3 = (int) 0 ; | |
37222 | int arg4 = (int) 0 ; | |
37223 | wxGridSizer *result; | |
37224 | PyObject * obj0 = 0 ; | |
37225 | PyObject * obj1 = 0 ; | |
37226 | PyObject * obj2 = 0 ; | |
37227 | PyObject * obj3 = 0 ; | |
37228 | char *kwnames[] = { | |
37229 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37230 | }; | |
37231 | ||
37232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37233 | if (obj0) { | |
c32bde28 | 37234 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37235 | if (PyErr_Occurred()) SWIG_fail; |
37236 | } | |
37237 | if (obj1) { | |
c32bde28 | 37238 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37239 | if (PyErr_Occurred()) SWIG_fail; |
37240 | } | |
37241 | if (obj2) { | |
c32bde28 | 37242 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37243 | if (PyErr_Occurred()) SWIG_fail; |
37244 | } | |
37245 | if (obj3) { | |
c32bde28 | 37246 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37247 | if (PyErr_Occurred()) SWIG_fail; |
37248 | } | |
37249 | { | |
37250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37251 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
37252 | ||
37253 | wxPyEndAllowThreads(__tstate); | |
37254 | if (PyErr_Occurred()) SWIG_fail; | |
37255 | } | |
37256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
37257 | return resultobj; | |
37258 | fail: | |
37259 | return NULL; | |
37260 | } | |
37261 | ||
37262 | ||
c32bde28 | 37263 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37264 | PyObject *resultobj; |
37265 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37266 | int arg2 ; | |
37267 | PyObject * obj0 = 0 ; | |
37268 | PyObject * obj1 = 0 ; | |
37269 | char *kwnames[] = { | |
37270 | (char *) "self",(char *) "cols", NULL | |
37271 | }; | |
37272 | ||
37273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
37274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37276 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37277 | if (PyErr_Occurred()) SWIG_fail; |
37278 | { | |
37279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37280 | (arg1)->SetCols(arg2); | |
37281 | ||
37282 | wxPyEndAllowThreads(__tstate); | |
37283 | if (PyErr_Occurred()) SWIG_fail; | |
37284 | } | |
37285 | Py_INCREF(Py_None); resultobj = Py_None; | |
37286 | return resultobj; | |
37287 | fail: | |
37288 | return NULL; | |
37289 | } | |
37290 | ||
37291 | ||
c32bde28 | 37292 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37293 | PyObject *resultobj; |
37294 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37295 | int arg2 ; | |
37296 | PyObject * obj0 = 0 ; | |
37297 | PyObject * obj1 = 0 ; | |
37298 | char *kwnames[] = { | |
37299 | (char *) "self",(char *) "rows", NULL | |
37300 | }; | |
37301 | ||
37302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
37303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37305 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37306 | if (PyErr_Occurred()) SWIG_fail; |
37307 | { | |
37308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37309 | (arg1)->SetRows(arg2); | |
37310 | ||
37311 | wxPyEndAllowThreads(__tstate); | |
37312 | if (PyErr_Occurred()) SWIG_fail; | |
37313 | } | |
37314 | Py_INCREF(Py_None); resultobj = Py_None; | |
37315 | return resultobj; | |
37316 | fail: | |
37317 | return NULL; | |
37318 | } | |
37319 | ||
37320 | ||
c32bde28 | 37321 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37322 | PyObject *resultobj; |
37323 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37324 | int arg2 ; | |
37325 | PyObject * obj0 = 0 ; | |
37326 | PyObject * obj1 = 0 ; | |
37327 | char *kwnames[] = { | |
37328 | (char *) "self",(char *) "gap", NULL | |
37329 | }; | |
37330 | ||
37331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
37332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37334 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37335 | if (PyErr_Occurred()) SWIG_fail; |
37336 | { | |
37337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37338 | (arg1)->SetVGap(arg2); | |
37339 | ||
37340 | wxPyEndAllowThreads(__tstate); | |
37341 | if (PyErr_Occurred()) SWIG_fail; | |
37342 | } | |
37343 | Py_INCREF(Py_None); resultobj = Py_None; | |
37344 | return resultobj; | |
37345 | fail: | |
37346 | return NULL; | |
37347 | } | |
37348 | ||
37349 | ||
c32bde28 | 37350 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37351 | PyObject *resultobj; |
37352 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37353 | int arg2 ; | |
37354 | PyObject * obj0 = 0 ; | |
37355 | PyObject * obj1 = 0 ; | |
37356 | char *kwnames[] = { | |
37357 | (char *) "self",(char *) "gap", NULL | |
37358 | }; | |
37359 | ||
37360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
37361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37363 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37364 | if (PyErr_Occurred()) SWIG_fail; |
37365 | { | |
37366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37367 | (arg1)->SetHGap(arg2); | |
37368 | ||
37369 | wxPyEndAllowThreads(__tstate); | |
37370 | if (PyErr_Occurred()) SWIG_fail; | |
37371 | } | |
37372 | Py_INCREF(Py_None); resultobj = Py_None; | |
37373 | return resultobj; | |
37374 | fail: | |
37375 | return NULL; | |
37376 | } | |
37377 | ||
37378 | ||
c32bde28 | 37379 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37380 | PyObject *resultobj; |
37381 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37382 | int result; | |
37383 | PyObject * obj0 = 0 ; | |
37384 | char *kwnames[] = { | |
37385 | (char *) "self", NULL | |
37386 | }; | |
37387 | ||
37388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
37389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37391 | { | |
37392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37393 | result = (int)(arg1)->GetCols(); | |
37394 | ||
37395 | wxPyEndAllowThreads(__tstate); | |
37396 | if (PyErr_Occurred()) SWIG_fail; | |
37397 | } | |
c32bde28 | 37398 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37399 | return resultobj; |
37400 | fail: | |
37401 | return NULL; | |
37402 | } | |
37403 | ||
37404 | ||
c32bde28 | 37405 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37406 | PyObject *resultobj; |
37407 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37408 | int result; | |
37409 | PyObject * obj0 = 0 ; | |
37410 | char *kwnames[] = { | |
37411 | (char *) "self", NULL | |
37412 | }; | |
37413 | ||
37414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
37415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37417 | { | |
37418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37419 | result = (int)(arg1)->GetRows(); | |
37420 | ||
37421 | wxPyEndAllowThreads(__tstate); | |
37422 | if (PyErr_Occurred()) SWIG_fail; | |
37423 | } | |
c32bde28 | 37424 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37425 | return resultobj; |
37426 | fail: | |
37427 | return NULL; | |
37428 | } | |
37429 | ||
37430 | ||
c32bde28 | 37431 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37432 | PyObject *resultobj; |
37433 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37434 | int result; | |
37435 | PyObject * obj0 = 0 ; | |
37436 | char *kwnames[] = { | |
37437 | (char *) "self", NULL | |
37438 | }; | |
37439 | ||
37440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
37441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37443 | { | |
37444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37445 | result = (int)(arg1)->GetVGap(); | |
37446 | ||
37447 | wxPyEndAllowThreads(__tstate); | |
37448 | if (PyErr_Occurred()) SWIG_fail; | |
37449 | } | |
c32bde28 | 37450 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37451 | return resultobj; |
37452 | fail: | |
37453 | return NULL; | |
37454 | } | |
37455 | ||
37456 | ||
c32bde28 | 37457 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37458 | PyObject *resultobj; |
37459 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37460 | int result; | |
37461 | PyObject * obj0 = 0 ; | |
37462 | char *kwnames[] = { | |
37463 | (char *) "self", NULL | |
37464 | }; | |
37465 | ||
37466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
37467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37469 | { | |
37470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37471 | result = (int)(arg1)->GetHGap(); | |
37472 | ||
37473 | wxPyEndAllowThreads(__tstate); | |
37474 | if (PyErr_Occurred()) SWIG_fail; | |
37475 | } | |
c32bde28 | 37476 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37477 | return resultobj; |
37478 | fail: | |
37479 | return NULL; | |
37480 | } | |
37481 | ||
37482 | ||
c32bde28 | 37483 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37484 | PyObject *obj; |
37485 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37486 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
37487 | Py_INCREF(obj); | |
37488 | return Py_BuildValue((char *)""); | |
37489 | } | |
c32bde28 | 37490 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37491 | PyObject *resultobj; |
37492 | int arg1 = (int) 1 ; | |
37493 | int arg2 = (int) 0 ; | |
37494 | int arg3 = (int) 0 ; | |
37495 | int arg4 = (int) 0 ; | |
37496 | wxFlexGridSizer *result; | |
37497 | PyObject * obj0 = 0 ; | |
37498 | PyObject * obj1 = 0 ; | |
37499 | PyObject * obj2 = 0 ; | |
37500 | PyObject * obj3 = 0 ; | |
37501 | char *kwnames[] = { | |
37502 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37503 | }; | |
37504 | ||
37505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37506 | if (obj0) { | |
c32bde28 | 37507 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37508 | if (PyErr_Occurred()) SWIG_fail; |
37509 | } | |
37510 | if (obj1) { | |
c32bde28 | 37511 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37512 | if (PyErr_Occurred()) SWIG_fail; |
37513 | } | |
37514 | if (obj2) { | |
c32bde28 | 37515 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37516 | if (PyErr_Occurred()) SWIG_fail; |
37517 | } | |
37518 | if (obj3) { | |
c32bde28 | 37519 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37520 | if (PyErr_Occurred()) SWIG_fail; |
37521 | } | |
37522 | { | |
37523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37524 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
37525 | ||
37526 | wxPyEndAllowThreads(__tstate); | |
37527 | if (PyErr_Occurred()) SWIG_fail; | |
37528 | } | |
37529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
37530 | return resultobj; | |
37531 | fail: | |
37532 | return NULL; | |
37533 | } | |
37534 | ||
37535 | ||
c32bde28 | 37536 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37537 | PyObject *resultobj; |
37538 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37539 | size_t arg2 ; | |
37540 | int arg3 = (int) 0 ; | |
37541 | PyObject * obj0 = 0 ; | |
37542 | PyObject * obj1 = 0 ; | |
37543 | PyObject * obj2 = 0 ; | |
37544 | char *kwnames[] = { | |
37545 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37546 | }; | |
37547 | ||
37548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37551 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37552 | if (PyErr_Occurred()) SWIG_fail; |
37553 | if (obj2) { | |
c32bde28 | 37554 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37555 | if (PyErr_Occurred()) SWIG_fail; |
37556 | } | |
37557 | { | |
37558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37559 | (arg1)->AddGrowableRow(arg2,arg3); | |
37560 | ||
37561 | wxPyEndAllowThreads(__tstate); | |
37562 | if (PyErr_Occurred()) SWIG_fail; | |
37563 | } | |
37564 | Py_INCREF(Py_None); resultobj = Py_None; | |
37565 | return resultobj; | |
37566 | fail: | |
37567 | return NULL; | |
37568 | } | |
37569 | ||
37570 | ||
c32bde28 | 37571 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37572 | PyObject *resultobj; |
37573 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37574 | size_t arg2 ; | |
37575 | PyObject * obj0 = 0 ; | |
37576 | PyObject * obj1 = 0 ; | |
37577 | char *kwnames[] = { | |
37578 | (char *) "self",(char *) "idx", NULL | |
37579 | }; | |
37580 | ||
37581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
37582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37584 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37585 | if (PyErr_Occurred()) SWIG_fail; |
37586 | { | |
37587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37588 | (arg1)->RemoveGrowableRow(arg2); | |
37589 | ||
37590 | wxPyEndAllowThreads(__tstate); | |
37591 | if (PyErr_Occurred()) SWIG_fail; | |
37592 | } | |
37593 | Py_INCREF(Py_None); resultobj = Py_None; | |
37594 | return resultobj; | |
37595 | fail: | |
37596 | return NULL; | |
37597 | } | |
37598 | ||
37599 | ||
c32bde28 | 37600 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37601 | PyObject *resultobj; |
37602 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37603 | size_t arg2 ; | |
37604 | int arg3 = (int) 0 ; | |
37605 | PyObject * obj0 = 0 ; | |
37606 | PyObject * obj1 = 0 ; | |
37607 | PyObject * obj2 = 0 ; | |
37608 | char *kwnames[] = { | |
37609 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37610 | }; | |
37611 | ||
37612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37615 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37616 | if (PyErr_Occurred()) SWIG_fail; |
37617 | if (obj2) { | |
c32bde28 | 37618 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37619 | if (PyErr_Occurred()) SWIG_fail; |
37620 | } | |
37621 | { | |
37622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37623 | (arg1)->AddGrowableCol(arg2,arg3); | |
37624 | ||
37625 | wxPyEndAllowThreads(__tstate); | |
37626 | if (PyErr_Occurred()) SWIG_fail; | |
37627 | } | |
37628 | Py_INCREF(Py_None); resultobj = Py_None; | |
37629 | return resultobj; | |
37630 | fail: | |
37631 | return NULL; | |
37632 | } | |
37633 | ||
37634 | ||
c32bde28 | 37635 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37636 | PyObject *resultobj; |
37637 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37638 | size_t arg2 ; | |
37639 | PyObject * obj0 = 0 ; | |
37640 | PyObject * obj1 = 0 ; | |
37641 | char *kwnames[] = { | |
37642 | (char *) "self",(char *) "idx", NULL | |
37643 | }; | |
37644 | ||
37645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37648 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37649 | if (PyErr_Occurred()) SWIG_fail; |
37650 | { | |
37651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37652 | (arg1)->RemoveGrowableCol(arg2); | |
37653 | ||
37654 | wxPyEndAllowThreads(__tstate); | |
37655 | if (PyErr_Occurred()) SWIG_fail; | |
37656 | } | |
37657 | Py_INCREF(Py_None); resultobj = Py_None; | |
37658 | return resultobj; | |
37659 | fail: | |
37660 | return NULL; | |
37661 | } | |
37662 | ||
37663 | ||
c32bde28 | 37664 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37665 | PyObject *resultobj; |
37666 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37667 | int arg2 ; | |
37668 | PyObject * obj0 = 0 ; | |
37669 | PyObject * obj1 = 0 ; | |
37670 | char *kwnames[] = { | |
37671 | (char *) "self",(char *) "direction", NULL | |
37672 | }; | |
37673 | ||
37674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37677 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37678 | if (PyErr_Occurred()) SWIG_fail; |
37679 | { | |
37680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37681 | (arg1)->SetFlexibleDirection(arg2); | |
37682 | ||
37683 | wxPyEndAllowThreads(__tstate); | |
37684 | if (PyErr_Occurred()) SWIG_fail; | |
37685 | } | |
37686 | Py_INCREF(Py_None); resultobj = Py_None; | |
37687 | return resultobj; | |
37688 | fail: | |
37689 | return NULL; | |
37690 | } | |
37691 | ||
37692 | ||
c32bde28 | 37693 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37694 | PyObject *resultobj; |
37695 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37696 | int result; | |
37697 | PyObject * obj0 = 0 ; | |
37698 | char *kwnames[] = { | |
37699 | (char *) "self", NULL | |
37700 | }; | |
37701 | ||
37702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37705 | { | |
37706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37707 | result = (int)(arg1)->GetFlexibleDirection(); | |
37708 | ||
37709 | wxPyEndAllowThreads(__tstate); | |
37710 | if (PyErr_Occurred()) SWIG_fail; | |
37711 | } | |
c32bde28 | 37712 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37713 | return resultobj; |
37714 | fail: | |
37715 | return NULL; | |
37716 | } | |
37717 | ||
37718 | ||
c32bde28 | 37719 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37720 | PyObject *resultobj; |
37721 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37722 | int arg2 ; | |
37723 | PyObject * obj0 = 0 ; | |
37724 | PyObject * obj1 = 0 ; | |
37725 | char *kwnames[] = { | |
37726 | (char *) "self",(char *) "mode", NULL | |
37727 | }; | |
37728 | ||
37729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37732 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37733 | if (PyErr_Occurred()) SWIG_fail; |
37734 | { | |
37735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37736 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37737 | ||
37738 | wxPyEndAllowThreads(__tstate); | |
37739 | if (PyErr_Occurred()) SWIG_fail; | |
37740 | } | |
37741 | Py_INCREF(Py_None); resultobj = Py_None; | |
37742 | return resultobj; | |
37743 | fail: | |
37744 | return NULL; | |
37745 | } | |
37746 | ||
37747 | ||
c32bde28 | 37748 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37749 | PyObject *resultobj; |
37750 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37751 | int result; | |
37752 | PyObject * obj0 = 0 ; | |
37753 | char *kwnames[] = { | |
37754 | (char *) "self", NULL | |
37755 | }; | |
37756 | ||
37757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37760 | { | |
37761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37762 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37763 | ||
37764 | wxPyEndAllowThreads(__tstate); | |
37765 | if (PyErr_Occurred()) SWIG_fail; | |
37766 | } | |
c32bde28 | 37767 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37768 | return resultobj; |
37769 | fail: | |
37770 | return NULL; | |
37771 | } | |
37772 | ||
37773 | ||
c32bde28 | 37774 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37775 | PyObject *resultobj; |
37776 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37777 | wxArrayInt *result; | |
37778 | PyObject * obj0 = 0 ; | |
37779 | char *kwnames[] = { | |
37780 | (char *) "self", NULL | |
37781 | }; | |
37782 | ||
37783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37786 | { | |
37787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37788 | { | |
37789 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37790 | result = (wxArrayInt *) &_result_ref; | |
37791 | } | |
37792 | ||
37793 | wxPyEndAllowThreads(__tstate); | |
37794 | if (PyErr_Occurred()) SWIG_fail; | |
37795 | } | |
37796 | { | |
37797 | resultobj = PyList_New(0); | |
37798 | size_t idx; | |
37799 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37800 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37801 | PyList_Append(resultobj, val); | |
37802 | Py_DECREF(val); | |
37803 | } | |
37804 | } | |
37805 | return resultobj; | |
37806 | fail: | |
37807 | return NULL; | |
37808 | } | |
37809 | ||
37810 | ||
c32bde28 | 37811 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37812 | PyObject *resultobj; |
37813 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37814 | wxArrayInt *result; | |
37815 | PyObject * obj0 = 0 ; | |
37816 | char *kwnames[] = { | |
37817 | (char *) "self", NULL | |
37818 | }; | |
37819 | ||
37820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37823 | { | |
37824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37825 | { | |
37826 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37827 | result = (wxArrayInt *) &_result_ref; | |
37828 | } | |
37829 | ||
37830 | wxPyEndAllowThreads(__tstate); | |
37831 | if (PyErr_Occurred()) SWIG_fail; | |
37832 | } | |
37833 | { | |
37834 | resultobj = PyList_New(0); | |
37835 | size_t idx; | |
37836 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37837 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37838 | PyList_Append(resultobj, val); | |
37839 | Py_DECREF(val); | |
37840 | } | |
37841 | } | |
37842 | return resultobj; | |
37843 | fail: | |
37844 | return NULL; | |
37845 | } | |
37846 | ||
37847 | ||
c32bde28 | 37848 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37849 | PyObject *obj; |
37850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37851 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37852 | Py_INCREF(obj); | |
37853 | return Py_BuildValue((char *)""); | |
37854 | } | |
c32bde28 | 37855 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37856 | PyObject *resultobj; |
37857 | int arg1 = (int) 0 ; | |
37858 | int arg2 = (int) 0 ; | |
37859 | wxGBPosition *result; | |
37860 | PyObject * obj0 = 0 ; | |
37861 | PyObject * obj1 = 0 ; | |
37862 | char *kwnames[] = { | |
37863 | (char *) "row",(char *) "col", NULL | |
37864 | }; | |
37865 | ||
37866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37867 | if (obj0) { | |
c32bde28 | 37868 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37869 | if (PyErr_Occurred()) SWIG_fail; |
37870 | } | |
37871 | if (obj1) { | |
c32bde28 | 37872 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37873 | if (PyErr_Occurred()) SWIG_fail; |
37874 | } | |
37875 | { | |
37876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37877 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37878 | ||
37879 | wxPyEndAllowThreads(__tstate); | |
37880 | if (PyErr_Occurred()) SWIG_fail; | |
37881 | } | |
37882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37883 | return resultobj; | |
37884 | fail: | |
37885 | return NULL; | |
37886 | } | |
37887 | ||
37888 | ||
c32bde28 | 37889 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37890 | PyObject *resultobj; |
37891 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37892 | int result; | |
37893 | PyObject * obj0 = 0 ; | |
37894 | char *kwnames[] = { | |
37895 | (char *) "self", NULL | |
37896 | }; | |
37897 | ||
37898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37901 | { | |
37902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37903 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37904 | ||
37905 | wxPyEndAllowThreads(__tstate); | |
37906 | if (PyErr_Occurred()) SWIG_fail; | |
37907 | } | |
c32bde28 | 37908 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37909 | return resultobj; |
37910 | fail: | |
37911 | return NULL; | |
37912 | } | |
37913 | ||
37914 | ||
c32bde28 | 37915 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37916 | PyObject *resultobj; |
37917 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37918 | int result; | |
37919 | PyObject * obj0 = 0 ; | |
37920 | char *kwnames[] = { | |
37921 | (char *) "self", NULL | |
37922 | }; | |
37923 | ||
37924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37927 | { | |
37928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37929 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37930 | ||
37931 | wxPyEndAllowThreads(__tstate); | |
37932 | if (PyErr_Occurred()) SWIG_fail; | |
37933 | } | |
c32bde28 | 37934 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37935 | return resultobj; |
37936 | fail: | |
37937 | return NULL; | |
37938 | } | |
37939 | ||
37940 | ||
c32bde28 | 37941 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37942 | PyObject *resultobj; |
37943 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37944 | int arg2 ; | |
37945 | PyObject * obj0 = 0 ; | |
37946 | PyObject * obj1 = 0 ; | |
37947 | char *kwnames[] = { | |
37948 | (char *) "self",(char *) "row", NULL | |
37949 | }; | |
37950 | ||
37951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37954 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37955 | if (PyErr_Occurred()) SWIG_fail; |
37956 | { | |
37957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37958 | (arg1)->SetRow(arg2); | |
37959 | ||
37960 | wxPyEndAllowThreads(__tstate); | |
37961 | if (PyErr_Occurred()) SWIG_fail; | |
37962 | } | |
37963 | Py_INCREF(Py_None); resultobj = Py_None; | |
37964 | return resultobj; | |
37965 | fail: | |
37966 | return NULL; | |
37967 | } | |
37968 | ||
37969 | ||
c32bde28 | 37970 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37971 | PyObject *resultobj; |
37972 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37973 | int arg2 ; | |
37974 | PyObject * obj0 = 0 ; | |
37975 | PyObject * obj1 = 0 ; | |
37976 | char *kwnames[] = { | |
37977 | (char *) "self",(char *) "col", NULL | |
37978 | }; | |
37979 | ||
37980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 37983 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37984 | if (PyErr_Occurred()) SWIG_fail; |
37985 | { | |
37986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37987 | (arg1)->SetCol(arg2); | |
37988 | ||
37989 | wxPyEndAllowThreads(__tstate); | |
37990 | if (PyErr_Occurred()) SWIG_fail; | |
37991 | } | |
37992 | Py_INCREF(Py_None); resultobj = Py_None; | |
37993 | return resultobj; | |
37994 | fail: | |
37995 | return NULL; | |
37996 | } | |
37997 | ||
37998 | ||
c32bde28 | 37999 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38000 | PyObject *resultobj; |
38001 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38002 | wxGBPosition *arg2 = 0 ; | |
38003 | bool result; | |
38004 | wxGBPosition temp2 ; | |
38005 | PyObject * obj0 = 0 ; | |
38006 | PyObject * obj1 = 0 ; | |
38007 | char *kwnames[] = { | |
38008 | (char *) "self",(char *) "other", NULL | |
38009 | }; | |
38010 | ||
38011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38014 | { | |
38015 | arg2 = &temp2; | |
38016 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38017 | } | |
38018 | { | |
38019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38020 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
38021 | ||
38022 | wxPyEndAllowThreads(__tstate); | |
38023 | if (PyErr_Occurred()) SWIG_fail; | |
38024 | } | |
38025 | { | |
38026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38027 | } | |
38028 | return resultobj; | |
38029 | fail: | |
38030 | return NULL; | |
38031 | } | |
38032 | ||
38033 | ||
c32bde28 | 38034 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38035 | PyObject *resultobj; |
38036 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38037 | wxGBPosition *arg2 = 0 ; | |
38038 | bool result; | |
38039 | wxGBPosition temp2 ; | |
38040 | PyObject * obj0 = 0 ; | |
38041 | PyObject * obj1 = 0 ; | |
38042 | char *kwnames[] = { | |
38043 | (char *) "self",(char *) "other", NULL | |
38044 | }; | |
38045 | ||
38046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38049 | { | |
38050 | arg2 = &temp2; | |
38051 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38052 | } | |
38053 | { | |
38054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38055 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
38056 | ||
38057 | wxPyEndAllowThreads(__tstate); | |
38058 | if (PyErr_Occurred()) SWIG_fail; | |
38059 | } | |
38060 | { | |
38061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38062 | } | |
38063 | return resultobj; | |
38064 | fail: | |
38065 | return NULL; | |
38066 | } | |
38067 | ||
38068 | ||
c32bde28 | 38069 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38070 | PyObject *resultobj; |
38071 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38072 | int arg2 = (int) 0 ; | |
38073 | int arg3 = (int) 0 ; | |
38074 | PyObject * obj0 = 0 ; | |
38075 | PyObject * obj1 = 0 ; | |
38076 | PyObject * obj2 = 0 ; | |
38077 | char *kwnames[] = { | |
38078 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38079 | }; | |
38080 | ||
38081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38084 | if (obj1) { | |
c32bde28 | 38085 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38086 | if (PyErr_Occurred()) SWIG_fail; |
38087 | } | |
38088 | if (obj2) { | |
c32bde28 | 38089 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38090 | if (PyErr_Occurred()) SWIG_fail; |
38091 | } | |
38092 | { | |
38093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38094 | wxGBPosition_Set(arg1,arg2,arg3); | |
38095 | ||
38096 | wxPyEndAllowThreads(__tstate); | |
38097 | if (PyErr_Occurred()) SWIG_fail; | |
38098 | } | |
38099 | Py_INCREF(Py_None); resultobj = Py_None; | |
38100 | return resultobj; | |
38101 | fail: | |
38102 | return NULL; | |
38103 | } | |
38104 | ||
38105 | ||
c32bde28 | 38106 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38107 | PyObject *resultobj; |
38108 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
38109 | PyObject *result; | |
38110 | PyObject * obj0 = 0 ; | |
38111 | char *kwnames[] = { | |
38112 | (char *) "self", NULL | |
38113 | }; | |
38114 | ||
38115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
38116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
38117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38118 | { | |
38119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38120 | result = (PyObject *)wxGBPosition_Get(arg1); | |
38121 | ||
38122 | wxPyEndAllowThreads(__tstate); | |
38123 | if (PyErr_Occurred()) SWIG_fail; | |
38124 | } | |
38125 | resultobj = result; | |
38126 | return resultobj; | |
38127 | fail: | |
38128 | return NULL; | |
38129 | } | |
38130 | ||
38131 | ||
c32bde28 | 38132 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38133 | PyObject *obj; |
38134 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38135 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
38136 | Py_INCREF(obj); | |
38137 | return Py_BuildValue((char *)""); | |
38138 | } | |
c32bde28 | 38139 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38140 | PyObject *resultobj; |
38141 | int arg1 = (int) 1 ; | |
38142 | int arg2 = (int) 1 ; | |
38143 | wxGBSpan *result; | |
38144 | PyObject * obj0 = 0 ; | |
38145 | PyObject * obj1 = 0 ; | |
38146 | char *kwnames[] = { | |
38147 | (char *) "rowspan",(char *) "colspan", NULL | |
38148 | }; | |
38149 | ||
38150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
38151 | if (obj0) { | |
c32bde28 | 38152 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38153 | if (PyErr_Occurred()) SWIG_fail; |
38154 | } | |
38155 | if (obj1) { | |
c32bde28 | 38156 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38157 | if (PyErr_Occurred()) SWIG_fail; |
38158 | } | |
38159 | { | |
38160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38161 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
38162 | ||
38163 | wxPyEndAllowThreads(__tstate); | |
38164 | if (PyErr_Occurred()) SWIG_fail; | |
38165 | } | |
38166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
38167 | return resultobj; | |
38168 | fail: | |
38169 | return NULL; | |
38170 | } | |
38171 | ||
38172 | ||
c32bde28 | 38173 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38174 | PyObject *resultobj; |
38175 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38176 | int result; | |
38177 | PyObject * obj0 = 0 ; | |
38178 | char *kwnames[] = { | |
38179 | (char *) "self", NULL | |
38180 | }; | |
38181 | ||
38182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
38183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38185 | { | |
38186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38187 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
38188 | ||
38189 | wxPyEndAllowThreads(__tstate); | |
38190 | if (PyErr_Occurred()) SWIG_fail; | |
38191 | } | |
c32bde28 | 38192 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38193 | return resultobj; |
38194 | fail: | |
38195 | return NULL; | |
38196 | } | |
38197 | ||
38198 | ||
c32bde28 | 38199 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38200 | PyObject *resultobj; |
38201 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38202 | int result; | |
38203 | PyObject * obj0 = 0 ; | |
38204 | char *kwnames[] = { | |
38205 | (char *) "self", NULL | |
38206 | }; | |
38207 | ||
38208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
38209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38211 | { | |
38212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38213 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
38214 | ||
38215 | wxPyEndAllowThreads(__tstate); | |
38216 | if (PyErr_Occurred()) SWIG_fail; | |
38217 | } | |
c32bde28 | 38218 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
38219 | return resultobj; |
38220 | fail: | |
38221 | return NULL; | |
38222 | } | |
38223 | ||
38224 | ||
c32bde28 | 38225 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38226 | PyObject *resultobj; |
38227 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38228 | int arg2 ; | |
38229 | PyObject * obj0 = 0 ; | |
38230 | PyObject * obj1 = 0 ; | |
38231 | char *kwnames[] = { | |
38232 | (char *) "self",(char *) "rowspan", NULL | |
38233 | }; | |
38234 | ||
38235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
38236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38238 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38239 | if (PyErr_Occurred()) SWIG_fail; |
38240 | { | |
38241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38242 | (arg1)->SetRowspan(arg2); | |
38243 | ||
38244 | wxPyEndAllowThreads(__tstate); | |
38245 | if (PyErr_Occurred()) SWIG_fail; | |
38246 | } | |
38247 | Py_INCREF(Py_None); resultobj = Py_None; | |
38248 | return resultobj; | |
38249 | fail: | |
38250 | return NULL; | |
38251 | } | |
38252 | ||
38253 | ||
c32bde28 | 38254 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38255 | PyObject *resultobj; |
38256 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38257 | int arg2 ; | |
38258 | PyObject * obj0 = 0 ; | |
38259 | PyObject * obj1 = 0 ; | |
38260 | char *kwnames[] = { | |
38261 | (char *) "self",(char *) "colspan", NULL | |
38262 | }; | |
38263 | ||
38264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
38265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 38267 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38268 | if (PyErr_Occurred()) SWIG_fail; |
38269 | { | |
38270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38271 | (arg1)->SetColspan(arg2); | |
38272 | ||
38273 | wxPyEndAllowThreads(__tstate); | |
38274 | if (PyErr_Occurred()) SWIG_fail; | |
38275 | } | |
38276 | Py_INCREF(Py_None); resultobj = Py_None; | |
38277 | return resultobj; | |
38278 | fail: | |
38279 | return NULL; | |
38280 | } | |
38281 | ||
38282 | ||
c32bde28 | 38283 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38284 | PyObject *resultobj; |
38285 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38286 | wxGBSpan *arg2 = 0 ; | |
38287 | bool result; | |
38288 | wxGBSpan temp2 ; | |
38289 | PyObject * obj0 = 0 ; | |
38290 | PyObject * obj1 = 0 ; | |
38291 | char *kwnames[] = { | |
38292 | (char *) "self",(char *) "other", NULL | |
38293 | }; | |
38294 | ||
38295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38298 | { | |
38299 | arg2 = &temp2; | |
38300 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38301 | } | |
38302 | { | |
38303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38304 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
38305 | ||
38306 | wxPyEndAllowThreads(__tstate); | |
38307 | if (PyErr_Occurred()) SWIG_fail; | |
38308 | } | |
38309 | { | |
38310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38311 | } | |
38312 | return resultobj; | |
38313 | fail: | |
38314 | return NULL; | |
38315 | } | |
38316 | ||
38317 | ||
c32bde28 | 38318 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38319 | PyObject *resultobj; |
38320 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38321 | wxGBSpan *arg2 = 0 ; | |
38322 | bool result; | |
38323 | wxGBSpan temp2 ; | |
38324 | PyObject * obj0 = 0 ; | |
38325 | PyObject * obj1 = 0 ; | |
38326 | char *kwnames[] = { | |
38327 | (char *) "self",(char *) "other", NULL | |
38328 | }; | |
38329 | ||
38330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38333 | { | |
38334 | arg2 = &temp2; | |
38335 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38336 | } | |
38337 | { | |
38338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38339 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
38340 | ||
38341 | wxPyEndAllowThreads(__tstate); | |
38342 | if (PyErr_Occurred()) SWIG_fail; | |
38343 | } | |
38344 | { | |
38345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38346 | } | |
38347 | return resultobj; | |
38348 | fail: | |
38349 | return NULL; | |
38350 | } | |
38351 | ||
38352 | ||
c32bde28 | 38353 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38354 | PyObject *resultobj; |
38355 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38356 | int arg2 = (int) 1 ; | |
38357 | int arg3 = (int) 1 ; | |
38358 | PyObject * obj0 = 0 ; | |
38359 | PyObject * obj1 = 0 ; | |
38360 | PyObject * obj2 = 0 ; | |
38361 | char *kwnames[] = { | |
38362 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
38363 | }; | |
38364 | ||
38365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38368 | if (obj1) { | |
c32bde28 | 38369 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38370 | if (PyErr_Occurred()) SWIG_fail; |
38371 | } | |
38372 | if (obj2) { | |
c32bde28 | 38373 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38374 | if (PyErr_Occurred()) SWIG_fail; |
38375 | } | |
38376 | { | |
38377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38378 | wxGBSpan_Set(arg1,arg2,arg3); | |
38379 | ||
38380 | wxPyEndAllowThreads(__tstate); | |
38381 | if (PyErr_Occurred()) SWIG_fail; | |
38382 | } | |
38383 | Py_INCREF(Py_None); resultobj = Py_None; | |
38384 | return resultobj; | |
38385 | fail: | |
38386 | return NULL; | |
38387 | } | |
38388 | ||
38389 | ||
c32bde28 | 38390 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38391 | PyObject *resultobj; |
38392 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38393 | PyObject *result; | |
38394 | PyObject * obj0 = 0 ; | |
38395 | char *kwnames[] = { | |
38396 | (char *) "self", NULL | |
38397 | }; | |
38398 | ||
38399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
38400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38402 | { | |
38403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38404 | result = (PyObject *)wxGBSpan_Get(arg1); | |
38405 | ||
38406 | wxPyEndAllowThreads(__tstate); | |
38407 | if (PyErr_Occurred()) SWIG_fail; | |
38408 | } | |
38409 | resultobj = result; | |
38410 | return resultobj; | |
38411 | fail: | |
38412 | return NULL; | |
38413 | } | |
38414 | ||
38415 | ||
c32bde28 | 38416 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38417 | PyObject *obj; |
38418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38419 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
38420 | Py_INCREF(obj); | |
38421 | return Py_BuildValue((char *)""); | |
38422 | } | |
c32bde28 | 38423 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
38424 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
38425 | return 1; | |
38426 | } | |
38427 | ||
38428 | ||
38429 | static PyObject *_wrap_DefaultSpan_get() { | |
38430 | PyObject *pyobj; | |
38431 | ||
38432 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
38433 | return pyobj; | |
38434 | } | |
38435 | ||
38436 | ||
c32bde28 | 38437 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38438 | PyObject *resultobj; |
38439 | wxGBSizerItem *result; | |
38440 | char *kwnames[] = { | |
38441 | NULL | |
38442 | }; | |
38443 | ||
38444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
38445 | { | |
38446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38447 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
38448 | ||
38449 | wxPyEndAllowThreads(__tstate); | |
38450 | if (PyErr_Occurred()) SWIG_fail; | |
38451 | } | |
38452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38453 | return resultobj; | |
38454 | fail: | |
38455 | return NULL; | |
38456 | } | |
38457 | ||
38458 | ||
c32bde28 | 38459 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38460 | PyObject *resultobj; |
38461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38462 | wxGBPosition *arg2 = 0 ; | |
38463 | wxGBSpan *arg3 = 0 ; | |
38464 | int arg4 ; | |
38465 | int arg5 ; | |
248ed943 | 38466 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38467 | wxGBSizerItem *result; |
38468 | wxGBPosition temp2 ; | |
38469 | wxGBSpan temp3 ; | |
38470 | PyObject * obj0 = 0 ; | |
38471 | PyObject * obj1 = 0 ; | |
38472 | PyObject * obj2 = 0 ; | |
38473 | PyObject * obj3 = 0 ; | |
38474 | PyObject * obj4 = 0 ; | |
38475 | PyObject * obj5 = 0 ; | |
38476 | char *kwnames[] = { | |
38477 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38478 | }; | |
38479 | ||
248ed943 | 38480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
38482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38483 | { | |
38484 | arg2 = &temp2; | |
38485 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38486 | } | |
38487 | { | |
38488 | arg3 = &temp3; | |
38489 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38490 | } | |
c32bde28 | 38491 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38492 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38493 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38494 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38495 | if (obj5) { |
38496 | arg6 = obj5; | |
38497 | } | |
d55e5bfc RD |
38498 | { |
38499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38500 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38501 | |
38502 | wxPyEndAllowThreads(__tstate); | |
38503 | if (PyErr_Occurred()) SWIG_fail; | |
38504 | } | |
38505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38506 | return resultobj; | |
38507 | fail: | |
38508 | return NULL; | |
38509 | } | |
38510 | ||
38511 | ||
c32bde28 | 38512 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38513 | PyObject *resultobj; |
38514 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38515 | wxGBPosition *arg2 = 0 ; | |
38516 | wxGBSpan *arg3 = 0 ; | |
38517 | int arg4 ; | |
38518 | int arg5 ; | |
248ed943 | 38519 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38520 | wxGBSizerItem *result; |
38521 | wxGBPosition temp2 ; | |
38522 | wxGBSpan temp3 ; | |
38523 | PyObject * obj0 = 0 ; | |
38524 | PyObject * obj1 = 0 ; | |
38525 | PyObject * obj2 = 0 ; | |
38526 | PyObject * obj3 = 0 ; | |
38527 | PyObject * obj4 = 0 ; | |
38528 | PyObject * obj5 = 0 ; | |
38529 | char *kwnames[] = { | |
38530 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38531 | }; | |
38532 | ||
248ed943 | 38533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
38535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38536 | { | |
38537 | arg2 = &temp2; | |
38538 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38539 | } | |
38540 | { | |
38541 | arg3 = &temp3; | |
38542 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38543 | } | |
c32bde28 | 38544 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38545 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38546 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38547 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38548 | if (obj5) { |
38549 | arg6 = obj5; | |
38550 | } | |
d55e5bfc RD |
38551 | { |
38552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38553 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38554 | |
38555 | wxPyEndAllowThreads(__tstate); | |
38556 | if (PyErr_Occurred()) SWIG_fail; | |
38557 | } | |
38558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38559 | return resultobj; | |
38560 | fail: | |
38561 | return NULL; | |
38562 | } | |
38563 | ||
38564 | ||
c32bde28 | 38565 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38566 | PyObject *resultobj; |
38567 | int arg1 ; | |
38568 | int arg2 ; | |
38569 | wxGBPosition *arg3 = 0 ; | |
38570 | wxGBSpan *arg4 = 0 ; | |
38571 | int arg5 ; | |
38572 | int arg6 ; | |
248ed943 | 38573 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
38574 | wxGBSizerItem *result; |
38575 | wxGBPosition temp3 ; | |
38576 | wxGBSpan temp4 ; | |
38577 | PyObject * obj0 = 0 ; | |
38578 | PyObject * obj1 = 0 ; | |
38579 | PyObject * obj2 = 0 ; | |
38580 | PyObject * obj3 = 0 ; | |
38581 | PyObject * obj4 = 0 ; | |
38582 | PyObject * obj5 = 0 ; | |
38583 | PyObject * obj6 = 0 ; | |
38584 | char *kwnames[] = { | |
38585 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38586 | }; | |
38587 | ||
248ed943 | 38588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c32bde28 | 38589 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 38590 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38591 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38592 | if (PyErr_Occurred()) SWIG_fail; |
38593 | { | |
38594 | arg3 = &temp3; | |
38595 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38596 | } | |
38597 | { | |
38598 | arg4 = &temp4; | |
38599 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38600 | } | |
c32bde28 | 38601 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38602 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 38603 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 38604 | if (PyErr_Occurred()) SWIG_fail; |
248ed943 RD |
38605 | if (obj6) { |
38606 | arg7 = obj6; | |
38607 | } | |
d55e5bfc RD |
38608 | { |
38609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38610 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38611 | |
38612 | wxPyEndAllowThreads(__tstate); | |
38613 | if (PyErr_Occurred()) SWIG_fail; | |
38614 | } | |
38615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38616 | return resultobj; | |
38617 | fail: | |
38618 | return NULL; | |
38619 | } | |
38620 | ||
38621 | ||
c32bde28 | 38622 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38623 | PyObject *resultobj; |
38624 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38625 | wxGBPosition result; | |
38626 | PyObject * obj0 = 0 ; | |
38627 | char *kwnames[] = { | |
38628 | (char *) "self", NULL | |
38629 | }; | |
38630 | ||
38631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
38632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38634 | { | |
38635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38636 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38637 | ||
38638 | wxPyEndAllowThreads(__tstate); | |
38639 | if (PyErr_Occurred()) SWIG_fail; | |
38640 | } | |
38641 | { | |
38642 | wxGBPosition * resultptr; | |
38643 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38645 | } | |
38646 | return resultobj; | |
38647 | fail: | |
38648 | return NULL; | |
38649 | } | |
38650 | ||
38651 | ||
c32bde28 | 38652 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38653 | PyObject *resultobj; |
38654 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38655 | wxGBSpan result; | |
38656 | PyObject * obj0 = 0 ; | |
38657 | char *kwnames[] = { | |
38658 | (char *) "self", NULL | |
38659 | }; | |
38660 | ||
38661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38664 | { | |
38665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38666 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38667 | ||
38668 | wxPyEndAllowThreads(__tstate); | |
38669 | if (PyErr_Occurred()) SWIG_fail; | |
38670 | } | |
38671 | { | |
38672 | wxGBSpan * resultptr; | |
38673 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38675 | } | |
38676 | return resultobj; | |
38677 | fail: | |
38678 | return NULL; | |
38679 | } | |
38680 | ||
38681 | ||
c32bde28 | 38682 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38683 | PyObject *resultobj; |
38684 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38685 | wxGBPosition *arg2 = 0 ; | |
38686 | bool result; | |
38687 | wxGBPosition temp2 ; | |
38688 | PyObject * obj0 = 0 ; | |
38689 | PyObject * obj1 = 0 ; | |
38690 | char *kwnames[] = { | |
38691 | (char *) "self",(char *) "pos", NULL | |
38692 | }; | |
38693 | ||
38694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38697 | { | |
38698 | arg2 = &temp2; | |
38699 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38700 | } | |
38701 | { | |
38702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38703 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38704 | ||
38705 | wxPyEndAllowThreads(__tstate); | |
38706 | if (PyErr_Occurred()) SWIG_fail; | |
38707 | } | |
38708 | { | |
38709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38710 | } | |
38711 | return resultobj; | |
38712 | fail: | |
38713 | return NULL; | |
38714 | } | |
38715 | ||
38716 | ||
c32bde28 | 38717 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38718 | PyObject *resultobj; |
38719 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38720 | wxGBSpan *arg2 = 0 ; | |
38721 | bool result; | |
38722 | wxGBSpan temp2 ; | |
38723 | PyObject * obj0 = 0 ; | |
38724 | PyObject * obj1 = 0 ; | |
38725 | char *kwnames[] = { | |
38726 | (char *) "self",(char *) "span", NULL | |
38727 | }; | |
38728 | ||
38729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38732 | { | |
38733 | arg2 = &temp2; | |
38734 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38735 | } | |
38736 | { | |
38737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38738 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38739 | ||
38740 | wxPyEndAllowThreads(__tstate); | |
38741 | if (PyErr_Occurred()) SWIG_fail; | |
38742 | } | |
38743 | { | |
38744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38745 | } | |
38746 | return resultobj; | |
38747 | fail: | |
38748 | return NULL; | |
38749 | } | |
38750 | ||
38751 | ||
c32bde28 | 38752 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38753 | PyObject *resultobj; |
38754 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38755 | wxGBSizerItem *arg2 = 0 ; | |
38756 | bool result; | |
38757 | PyObject * obj0 = 0 ; | |
38758 | PyObject * obj1 = 0 ; | |
248ed943 RD |
38759 | char *kwnames[] = { |
38760 | (char *) "self",(char *) "other", NULL | |
38761 | }; | |
d55e5bfc | 38762 | |
248ed943 | 38763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38767 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38768 | SWIG_fail; | |
38769 | if (arg2 == NULL) { | |
38770 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38771 | SWIG_fail; | |
38772 | } | |
38773 | { | |
38774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38775 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38776 | ||
38777 | wxPyEndAllowThreads(__tstate); | |
38778 | if (PyErr_Occurred()) SWIG_fail; | |
38779 | } | |
38780 | { | |
38781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38782 | } | |
38783 | return resultobj; | |
38784 | fail: | |
38785 | return NULL; | |
38786 | } | |
38787 | ||
38788 | ||
c32bde28 | 38789 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38790 | PyObject *resultobj; |
38791 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38792 | wxGBPosition *arg2 = 0 ; | |
38793 | wxGBSpan *arg3 = 0 ; | |
38794 | bool result; | |
38795 | wxGBPosition temp2 ; | |
38796 | wxGBSpan temp3 ; | |
38797 | PyObject * obj0 = 0 ; | |
38798 | PyObject * obj1 = 0 ; | |
38799 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38800 | char *kwnames[] = { |
38801 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38802 | }; | |
d55e5bfc | 38803 | |
248ed943 | 38804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38807 | { | |
38808 | arg2 = &temp2; | |
38809 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38810 | } | |
38811 | { | |
38812 | arg3 = &temp3; | |
38813 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38814 | } | |
38815 | { | |
38816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38817 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38818 | ||
38819 | wxPyEndAllowThreads(__tstate); | |
38820 | if (PyErr_Occurred()) SWIG_fail; | |
38821 | } | |
38822 | { | |
38823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38824 | } | |
38825 | return resultobj; | |
38826 | fail: | |
38827 | return NULL; | |
38828 | } | |
38829 | ||
38830 | ||
c32bde28 | 38831 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38832 | PyObject *resultobj; |
38833 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 38834 | wxGBPosition result; |
d55e5bfc | 38835 | PyObject * obj0 = 0 ; |
d55e5bfc | 38836 | char *kwnames[] = { |
248ed943 | 38837 | (char *) "self", NULL |
d55e5bfc RD |
38838 | }; |
38839 | ||
248ed943 | 38840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38843 | { |
38844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 38845 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38846 | |
38847 | wxPyEndAllowThreads(__tstate); | |
38848 | if (PyErr_Occurred()) SWIG_fail; | |
38849 | } | |
248ed943 RD |
38850 | { |
38851 | wxGBPosition * resultptr; | |
38852 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38853 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38854 | } | |
d55e5bfc RD |
38855 | return resultobj; |
38856 | fail: | |
38857 | return NULL; | |
38858 | } | |
38859 | ||
38860 | ||
c32bde28 | 38861 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38862 | PyObject *resultobj; |
38863 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38864 | wxGridBagSizer *result; | |
38865 | PyObject * obj0 = 0 ; | |
38866 | char *kwnames[] = { | |
38867 | (char *) "self", NULL | |
38868 | }; | |
38869 | ||
38870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38873 | { | |
38874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38875 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38876 | ||
38877 | wxPyEndAllowThreads(__tstate); | |
38878 | if (PyErr_Occurred()) SWIG_fail; | |
38879 | } | |
38880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38881 | return resultobj; | |
38882 | fail: | |
38883 | return NULL; | |
38884 | } | |
38885 | ||
38886 | ||
c32bde28 | 38887 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38888 | PyObject *resultobj; |
38889 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38890 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38891 | PyObject * obj0 = 0 ; | |
38892 | PyObject * obj1 = 0 ; | |
38893 | char *kwnames[] = { | |
38894 | (char *) "self",(char *) "sizer", NULL | |
38895 | }; | |
38896 | ||
38897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38900 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38902 | { | |
38903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38904 | (arg1)->SetGBSizer(arg2); | |
38905 | ||
38906 | wxPyEndAllowThreads(__tstate); | |
38907 | if (PyErr_Occurred()) SWIG_fail; | |
38908 | } | |
38909 | Py_INCREF(Py_None); resultobj = Py_None; | |
38910 | return resultobj; | |
38911 | fail: | |
38912 | return NULL; | |
38913 | } | |
38914 | ||
38915 | ||
c32bde28 | 38916 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38917 | PyObject *obj; |
38918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38919 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38920 | Py_INCREF(obj); | |
38921 | return Py_BuildValue((char *)""); | |
38922 | } | |
c32bde28 | 38923 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38924 | PyObject *resultobj; |
38925 | int arg1 = (int) 0 ; | |
38926 | int arg2 = (int) 0 ; | |
38927 | wxGridBagSizer *result; | |
38928 | PyObject * obj0 = 0 ; | |
38929 | PyObject * obj1 = 0 ; | |
38930 | char *kwnames[] = { | |
38931 | (char *) "vgap",(char *) "hgap", NULL | |
38932 | }; | |
38933 | ||
38934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38935 | if (obj0) { | |
c32bde28 | 38936 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38937 | if (PyErr_Occurred()) SWIG_fail; |
38938 | } | |
38939 | if (obj1) { | |
c32bde28 | 38940 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38941 | if (PyErr_Occurred()) SWIG_fail; |
38942 | } | |
38943 | { | |
38944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38945 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38946 | ||
38947 | wxPyEndAllowThreads(__tstate); | |
38948 | if (PyErr_Occurred()) SWIG_fail; | |
38949 | } | |
38950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38951 | return resultobj; | |
38952 | fail: | |
38953 | return NULL; | |
38954 | } | |
38955 | ||
38956 | ||
c32bde28 | 38957 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38958 | PyObject *resultobj; |
38959 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38960 | PyObject *arg2 = (PyObject *) 0 ; | |
38961 | wxGBPosition *arg3 = 0 ; | |
38962 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38963 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38964 | int arg5 = (int) 0 ; | |
38965 | int arg6 = (int) 0 ; | |
38966 | PyObject *arg7 = (PyObject *) NULL ; | |
c1cb24a4 | 38967 | wxGBSizerItem *result; |
d55e5bfc RD |
38968 | wxGBPosition temp3 ; |
38969 | wxGBSpan temp4 ; | |
38970 | PyObject * obj0 = 0 ; | |
38971 | PyObject * obj1 = 0 ; | |
38972 | PyObject * obj2 = 0 ; | |
38973 | PyObject * obj3 = 0 ; | |
38974 | PyObject * obj4 = 0 ; | |
38975 | PyObject * obj5 = 0 ; | |
38976 | PyObject * obj6 = 0 ; | |
38977 | char *kwnames[] = { | |
38978 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38979 | }; | |
38980 | ||
38981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38984 | arg2 = obj1; | |
38985 | { | |
38986 | arg3 = &temp3; | |
38987 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38988 | } | |
38989 | if (obj3) { | |
38990 | { | |
38991 | arg4 = &temp4; | |
38992 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38993 | } | |
38994 | } | |
38995 | if (obj4) { | |
c32bde28 | 38996 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
38997 | if (PyErr_Occurred()) SWIG_fail; |
38998 | } | |
38999 | if (obj5) { | |
c32bde28 | 39000 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
39001 | if (PyErr_Occurred()) SWIG_fail; |
39002 | } | |
39003 | if (obj6) { | |
39004 | arg7 = obj6; | |
39005 | } | |
39006 | { | |
39007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39008 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
39009 | |
39010 | wxPyEndAllowThreads(__tstate); | |
39011 | if (PyErr_Occurred()) SWIG_fail; | |
39012 | } | |
c1cb24a4 | 39013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
39014 | return resultobj; |
39015 | fail: | |
39016 | return NULL; | |
39017 | } | |
39018 | ||
39019 | ||
c32bde28 | 39020 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39021 | PyObject *resultobj; |
39022 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39023 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
c1cb24a4 | 39024 | wxGBSizerItem *result; |
d55e5bfc RD |
39025 | PyObject * obj0 = 0 ; |
39026 | PyObject * obj1 = 0 ; | |
39027 | char *kwnames[] = { | |
39028 | (char *) "self",(char *) "item", NULL | |
39029 | }; | |
39030 | ||
39031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
39032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39036 | { | |
39037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c1cb24a4 | 39038 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
39039 | |
39040 | wxPyEndAllowThreads(__tstate); | |
39041 | if (PyErr_Occurred()) SWIG_fail; | |
39042 | } | |
c1cb24a4 | 39043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
39044 | return resultobj; |
39045 | fail: | |
39046 | return NULL; | |
39047 | } | |
39048 | ||
39049 | ||
84f85550 RD |
39050 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
39051 | PyObject *resultobj; | |
39052 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39053 | int arg2 ; | |
39054 | int arg3 ; | |
39055 | wxSize result; | |
39056 | PyObject * obj0 = 0 ; | |
39057 | PyObject * obj1 = 0 ; | |
39058 | PyObject * obj2 = 0 ; | |
39059 | char *kwnames[] = { | |
39060 | (char *) "self",(char *) "row",(char *) "col", NULL | |
39061 | }; | |
39062 | ||
39063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39066 | arg2 = (int)SWIG_As_int(obj1); | |
39067 | if (PyErr_Occurred()) SWIG_fail; | |
39068 | arg3 = (int)SWIG_As_int(obj2); | |
39069 | if (PyErr_Occurred()) SWIG_fail; | |
39070 | { | |
39071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39072 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
39073 | ||
39074 | wxPyEndAllowThreads(__tstate); | |
39075 | if (PyErr_Occurred()) SWIG_fail; | |
39076 | } | |
39077 | { | |
39078 | wxSize * resultptr; | |
39079 | resultptr = new wxSize((wxSize &) result); | |
39080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39081 | } | |
39082 | return resultobj; | |
39083 | fail: | |
39084 | return NULL; | |
39085 | } | |
39086 | ||
39087 | ||
c32bde28 | 39088 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39089 | PyObject *resultobj; |
39090 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39091 | wxSize result; | |
39092 | PyObject * obj0 = 0 ; | |
39093 | char *kwnames[] = { | |
39094 | (char *) "self", NULL | |
39095 | }; | |
39096 | ||
39097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
39098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39100 | { | |
39101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39102 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
39103 | ||
39104 | wxPyEndAllowThreads(__tstate); | |
39105 | if (PyErr_Occurred()) SWIG_fail; | |
39106 | } | |
39107 | { | |
39108 | wxSize * resultptr; | |
39109 | resultptr = new wxSize((wxSize &) result); | |
39110 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39111 | } | |
39112 | return resultobj; | |
39113 | fail: | |
39114 | return NULL; | |
39115 | } | |
39116 | ||
39117 | ||
c32bde28 | 39118 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39119 | PyObject *resultobj; |
39120 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39121 | wxSize *arg2 = 0 ; | |
39122 | wxSize temp2 ; | |
39123 | PyObject * obj0 = 0 ; | |
39124 | PyObject * obj1 = 0 ; | |
39125 | char *kwnames[] = { | |
39126 | (char *) "self",(char *) "sz", NULL | |
39127 | }; | |
39128 | ||
39129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
39130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39132 | { | |
39133 | arg2 = &temp2; | |
39134 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
39135 | } | |
39136 | { | |
39137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39138 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
39139 | ||
39140 | wxPyEndAllowThreads(__tstate); | |
39141 | if (PyErr_Occurred()) SWIG_fail; | |
39142 | } | |
39143 | Py_INCREF(Py_None); resultobj = Py_None; | |
39144 | return resultobj; | |
39145 | fail: | |
39146 | return NULL; | |
39147 | } | |
39148 | ||
39149 | ||
c32bde28 | 39150 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39151 | PyObject *resultobj; |
39152 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39154 | wxGBPosition result; | |
39155 | PyObject * obj0 = 0 ; | |
39156 | PyObject * obj1 = 0 ; | |
39157 | ||
39158 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39163 | { | |
39164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39165 | result = (arg1)->GetItemPosition(arg2); | |
39166 | ||
39167 | wxPyEndAllowThreads(__tstate); | |
39168 | if (PyErr_Occurred()) SWIG_fail; | |
39169 | } | |
39170 | { | |
39171 | wxGBPosition * resultptr; | |
39172 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39173 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39174 | } | |
39175 | return resultobj; | |
39176 | fail: | |
39177 | return NULL; | |
39178 | } | |
39179 | ||
39180 | ||
c32bde28 | 39181 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39182 | PyObject *resultobj; |
39183 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39184 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39185 | wxGBPosition result; | |
39186 | PyObject * obj0 = 0 ; | |
39187 | PyObject * obj1 = 0 ; | |
39188 | ||
39189 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39194 | { | |
39195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39196 | result = (arg1)->GetItemPosition(arg2); | |
39197 | ||
39198 | wxPyEndAllowThreads(__tstate); | |
39199 | if (PyErr_Occurred()) SWIG_fail; | |
39200 | } | |
39201 | { | |
39202 | wxGBPosition * resultptr; | |
39203 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39205 | } | |
39206 | return resultobj; | |
39207 | fail: | |
39208 | return NULL; | |
39209 | } | |
39210 | ||
39211 | ||
c32bde28 | 39212 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39213 | PyObject *resultobj; |
39214 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39215 | size_t arg2 ; | |
39216 | wxGBPosition result; | |
39217 | PyObject * obj0 = 0 ; | |
39218 | PyObject * obj1 = 0 ; | |
39219 | ||
39220 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
39221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39223 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39224 | if (PyErr_Occurred()) SWIG_fail; |
39225 | { | |
39226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39227 | result = (arg1)->GetItemPosition(arg2); | |
39228 | ||
39229 | wxPyEndAllowThreads(__tstate); | |
39230 | if (PyErr_Occurred()) SWIG_fail; | |
39231 | } | |
39232 | { | |
39233 | wxGBPosition * resultptr; | |
39234 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
39235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
39236 | } | |
39237 | return resultobj; | |
39238 | fail: | |
39239 | return NULL; | |
39240 | } | |
39241 | ||
39242 | ||
39243 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
39244 | int argc; | |
39245 | PyObject *argv[3]; | |
39246 | int ii; | |
39247 | ||
39248 | argc = PyObject_Length(args); | |
39249 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39250 | argv[ii] = PyTuple_GetItem(args,ii); | |
39251 | } | |
39252 | if (argc == 2) { | |
39253 | int _v; | |
39254 | { | |
39255 | void *ptr; | |
39256 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39257 | _v = 0; | |
39258 | PyErr_Clear(); | |
39259 | } else { | |
39260 | _v = 1; | |
39261 | } | |
39262 | } | |
39263 | if (_v) { | |
39264 | { | |
39265 | void *ptr; | |
39266 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39267 | _v = 0; | |
39268 | PyErr_Clear(); | |
39269 | } else { | |
39270 | _v = 1; | |
39271 | } | |
39272 | } | |
39273 | if (_v) { | |
39274 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
39275 | } | |
39276 | } | |
39277 | } | |
39278 | if (argc == 2) { | |
39279 | int _v; | |
39280 | { | |
39281 | void *ptr; | |
39282 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39283 | _v = 0; | |
39284 | PyErr_Clear(); | |
39285 | } else { | |
39286 | _v = 1; | |
39287 | } | |
39288 | } | |
39289 | if (_v) { | |
39290 | { | |
39291 | void *ptr; | |
39292 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39293 | _v = 0; | |
39294 | PyErr_Clear(); | |
39295 | } else { | |
39296 | _v = 1; | |
39297 | } | |
39298 | } | |
39299 | if (_v) { | |
39300 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
39301 | } | |
39302 | } | |
39303 | } | |
39304 | if (argc == 2) { | |
39305 | int _v; | |
39306 | { | |
39307 | void *ptr; | |
39308 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39309 | _v = 0; | |
39310 | PyErr_Clear(); | |
39311 | } else { | |
39312 | _v = 1; | |
39313 | } | |
39314 | } | |
39315 | if (_v) { | |
c32bde28 | 39316 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39317 | if (_v) { |
39318 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
39319 | } | |
39320 | } | |
39321 | } | |
39322 | ||
39323 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
39324 | return NULL; | |
39325 | } | |
39326 | ||
39327 | ||
c32bde28 | 39328 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39329 | PyObject *resultobj; |
39330 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39331 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39332 | wxGBPosition *arg3 = 0 ; | |
39333 | bool result; | |
39334 | wxGBPosition temp3 ; | |
39335 | PyObject * obj0 = 0 ; | |
39336 | PyObject * obj1 = 0 ; | |
39337 | PyObject * obj2 = 0 ; | |
39338 | ||
39339 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39344 | { | |
39345 | arg3 = &temp3; | |
39346 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39347 | } | |
39348 | { | |
39349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39350 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39351 | ||
39352 | wxPyEndAllowThreads(__tstate); | |
39353 | if (PyErr_Occurred()) SWIG_fail; | |
39354 | } | |
39355 | { | |
39356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39357 | } | |
39358 | return resultobj; | |
39359 | fail: | |
39360 | return NULL; | |
39361 | } | |
39362 | ||
39363 | ||
c32bde28 | 39364 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39365 | PyObject *resultobj; |
39366 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39367 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39368 | wxGBPosition *arg3 = 0 ; | |
39369 | bool result; | |
39370 | wxGBPosition temp3 ; | |
39371 | PyObject * obj0 = 0 ; | |
39372 | PyObject * obj1 = 0 ; | |
39373 | PyObject * obj2 = 0 ; | |
39374 | ||
39375 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39380 | { | |
39381 | arg3 = &temp3; | |
39382 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39383 | } | |
39384 | { | |
39385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39386 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39387 | ||
39388 | wxPyEndAllowThreads(__tstate); | |
39389 | if (PyErr_Occurred()) SWIG_fail; | |
39390 | } | |
39391 | { | |
39392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39393 | } | |
39394 | return resultobj; | |
39395 | fail: | |
39396 | return NULL; | |
39397 | } | |
39398 | ||
39399 | ||
c32bde28 | 39400 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39401 | PyObject *resultobj; |
39402 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39403 | size_t arg2 ; | |
39404 | wxGBPosition *arg3 = 0 ; | |
39405 | bool result; | |
39406 | wxGBPosition temp3 ; | |
39407 | PyObject * obj0 = 0 ; | |
39408 | PyObject * obj1 = 0 ; | |
39409 | PyObject * obj2 = 0 ; | |
39410 | ||
39411 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39414 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39415 | if (PyErr_Occurred()) SWIG_fail; |
39416 | { | |
39417 | arg3 = &temp3; | |
39418 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39419 | } | |
39420 | { | |
39421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39422 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39423 | ||
39424 | wxPyEndAllowThreads(__tstate); | |
39425 | if (PyErr_Occurred()) SWIG_fail; | |
39426 | } | |
39427 | { | |
39428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39429 | } | |
39430 | return resultobj; | |
39431 | fail: | |
39432 | return NULL; | |
39433 | } | |
39434 | ||
39435 | ||
39436 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
39437 | int argc; | |
39438 | PyObject *argv[4]; | |
39439 | int ii; | |
39440 | ||
39441 | argc = PyObject_Length(args); | |
39442 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39443 | argv[ii] = PyTuple_GetItem(args,ii); | |
39444 | } | |
39445 | if (argc == 3) { | |
39446 | int _v; | |
39447 | { | |
39448 | void *ptr; | |
39449 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39450 | _v = 0; | |
39451 | PyErr_Clear(); | |
39452 | } else { | |
39453 | _v = 1; | |
39454 | } | |
39455 | } | |
39456 | if (_v) { | |
39457 | { | |
39458 | void *ptr; | |
39459 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39460 | _v = 0; | |
39461 | PyErr_Clear(); | |
39462 | } else { | |
39463 | _v = 1; | |
39464 | } | |
39465 | } | |
39466 | if (_v) { | |
39467 | { | |
39468 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39469 | } | |
39470 | if (_v) { | |
39471 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
39472 | } | |
39473 | } | |
39474 | } | |
39475 | } | |
39476 | if (argc == 3) { | |
39477 | int _v; | |
39478 | { | |
39479 | void *ptr; | |
39480 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39481 | _v = 0; | |
39482 | PyErr_Clear(); | |
39483 | } else { | |
39484 | _v = 1; | |
39485 | } | |
39486 | } | |
39487 | if (_v) { | |
39488 | { | |
39489 | void *ptr; | |
39490 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39491 | _v = 0; | |
39492 | PyErr_Clear(); | |
39493 | } else { | |
39494 | _v = 1; | |
39495 | } | |
39496 | } | |
39497 | if (_v) { | |
39498 | { | |
39499 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39500 | } | |
39501 | if (_v) { | |
39502 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
39503 | } | |
39504 | } | |
39505 | } | |
39506 | } | |
39507 | if (argc == 3) { | |
39508 | int _v; | |
39509 | { | |
39510 | void *ptr; | |
39511 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39512 | _v = 0; | |
39513 | PyErr_Clear(); | |
39514 | } else { | |
39515 | _v = 1; | |
39516 | } | |
39517 | } | |
39518 | if (_v) { | |
c32bde28 | 39519 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39520 | if (_v) { |
39521 | { | |
39522 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39523 | } | |
39524 | if (_v) { | |
39525 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
39526 | } | |
39527 | } | |
39528 | } | |
39529 | } | |
39530 | ||
39531 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
39532 | return NULL; | |
39533 | } | |
39534 | ||
39535 | ||
c32bde28 | 39536 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39537 | PyObject *resultobj; |
39538 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39539 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39540 | wxGBSpan result; | |
39541 | PyObject * obj0 = 0 ; | |
39542 | PyObject * obj1 = 0 ; | |
39543 | ||
39544 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39549 | { | |
39550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39551 | result = (arg1)->GetItemSpan(arg2); | |
39552 | ||
39553 | wxPyEndAllowThreads(__tstate); | |
39554 | if (PyErr_Occurred()) SWIG_fail; | |
39555 | } | |
39556 | { | |
39557 | wxGBSpan * resultptr; | |
39558 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39559 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39560 | } | |
39561 | return resultobj; | |
39562 | fail: | |
39563 | return NULL; | |
39564 | } | |
39565 | ||
39566 | ||
c32bde28 | 39567 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39568 | PyObject *resultobj; |
39569 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39570 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39571 | wxGBSpan result; | |
39572 | PyObject * obj0 = 0 ; | |
39573 | PyObject * obj1 = 0 ; | |
39574 | ||
39575 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39578 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39580 | { | |
39581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39582 | result = (arg1)->GetItemSpan(arg2); | |
39583 | ||
39584 | wxPyEndAllowThreads(__tstate); | |
39585 | if (PyErr_Occurred()) SWIG_fail; | |
39586 | } | |
39587 | { | |
39588 | wxGBSpan * resultptr; | |
39589 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39591 | } | |
39592 | return resultobj; | |
39593 | fail: | |
39594 | return NULL; | |
39595 | } | |
39596 | ||
39597 | ||
c32bde28 | 39598 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39599 | PyObject *resultobj; |
39600 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39601 | size_t arg2 ; | |
39602 | wxGBSpan result; | |
39603 | PyObject * obj0 = 0 ; | |
39604 | PyObject * obj1 = 0 ; | |
39605 | ||
39606 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39609 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39610 | if (PyErr_Occurred()) SWIG_fail; |
39611 | { | |
39612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39613 | result = (arg1)->GetItemSpan(arg2); | |
39614 | ||
39615 | wxPyEndAllowThreads(__tstate); | |
39616 | if (PyErr_Occurred()) SWIG_fail; | |
39617 | } | |
39618 | { | |
39619 | wxGBSpan * resultptr; | |
39620 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39621 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39622 | } | |
39623 | return resultobj; | |
39624 | fail: | |
39625 | return NULL; | |
39626 | } | |
39627 | ||
39628 | ||
39629 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39630 | int argc; | |
39631 | PyObject *argv[3]; | |
39632 | int ii; | |
39633 | ||
39634 | argc = PyObject_Length(args); | |
39635 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39636 | argv[ii] = PyTuple_GetItem(args,ii); | |
39637 | } | |
39638 | if (argc == 2) { | |
39639 | int _v; | |
39640 | { | |
39641 | void *ptr; | |
39642 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39643 | _v = 0; | |
39644 | PyErr_Clear(); | |
39645 | } else { | |
39646 | _v = 1; | |
39647 | } | |
39648 | } | |
39649 | if (_v) { | |
39650 | { | |
39651 | void *ptr; | |
39652 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39653 | _v = 0; | |
39654 | PyErr_Clear(); | |
39655 | } else { | |
39656 | _v = 1; | |
39657 | } | |
39658 | } | |
39659 | if (_v) { | |
39660 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39661 | } | |
39662 | } | |
39663 | } | |
39664 | if (argc == 2) { | |
39665 | int _v; | |
39666 | { | |
39667 | void *ptr; | |
39668 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39669 | _v = 0; | |
39670 | PyErr_Clear(); | |
39671 | } else { | |
39672 | _v = 1; | |
39673 | } | |
39674 | } | |
39675 | if (_v) { | |
39676 | { | |
39677 | void *ptr; | |
39678 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39679 | _v = 0; | |
39680 | PyErr_Clear(); | |
39681 | } else { | |
39682 | _v = 1; | |
39683 | } | |
39684 | } | |
39685 | if (_v) { | |
39686 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39687 | } | |
39688 | } | |
39689 | } | |
39690 | if (argc == 2) { | |
39691 | int _v; | |
39692 | { | |
39693 | void *ptr; | |
39694 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39695 | _v = 0; | |
39696 | PyErr_Clear(); | |
39697 | } else { | |
39698 | _v = 1; | |
39699 | } | |
39700 | } | |
39701 | if (_v) { | |
c32bde28 | 39702 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39703 | if (_v) { |
39704 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39705 | } | |
39706 | } | |
39707 | } | |
39708 | ||
39709 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39710 | return NULL; | |
39711 | } | |
39712 | ||
39713 | ||
c32bde28 | 39714 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39715 | PyObject *resultobj; |
39716 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39717 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39718 | wxGBSpan *arg3 = 0 ; | |
39719 | bool result; | |
39720 | wxGBSpan temp3 ; | |
39721 | PyObject * obj0 = 0 ; | |
39722 | PyObject * obj1 = 0 ; | |
39723 | PyObject * obj2 = 0 ; | |
39724 | ||
39725 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39730 | { | |
39731 | arg3 = &temp3; | |
39732 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39733 | } | |
39734 | { | |
39735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39736 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39737 | ||
39738 | wxPyEndAllowThreads(__tstate); | |
39739 | if (PyErr_Occurred()) SWIG_fail; | |
39740 | } | |
39741 | { | |
39742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39743 | } | |
39744 | return resultobj; | |
39745 | fail: | |
39746 | return NULL; | |
39747 | } | |
39748 | ||
39749 | ||
c32bde28 | 39750 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39751 | PyObject *resultobj; |
39752 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39753 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39754 | wxGBSpan *arg3 = 0 ; | |
39755 | bool result; | |
39756 | wxGBSpan temp3 ; | |
39757 | PyObject * obj0 = 0 ; | |
39758 | PyObject * obj1 = 0 ; | |
39759 | PyObject * obj2 = 0 ; | |
39760 | ||
39761 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39766 | { | |
39767 | arg3 = &temp3; | |
39768 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39769 | } | |
39770 | { | |
39771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39772 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39773 | ||
39774 | wxPyEndAllowThreads(__tstate); | |
39775 | if (PyErr_Occurred()) SWIG_fail; | |
39776 | } | |
39777 | { | |
39778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39779 | } | |
39780 | return resultobj; | |
39781 | fail: | |
39782 | return NULL; | |
39783 | } | |
39784 | ||
39785 | ||
c32bde28 | 39786 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39787 | PyObject *resultobj; |
39788 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39789 | size_t arg2 ; | |
39790 | wxGBSpan *arg3 = 0 ; | |
39791 | bool result; | |
39792 | wxGBSpan temp3 ; | |
39793 | PyObject * obj0 = 0 ; | |
39794 | PyObject * obj1 = 0 ; | |
39795 | PyObject * obj2 = 0 ; | |
39796 | ||
39797 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 39800 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39801 | if (PyErr_Occurred()) SWIG_fail; |
39802 | { | |
39803 | arg3 = &temp3; | |
39804 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39805 | } | |
39806 | { | |
39807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39808 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39809 | ||
39810 | wxPyEndAllowThreads(__tstate); | |
39811 | if (PyErr_Occurred()) SWIG_fail; | |
39812 | } | |
39813 | { | |
39814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39815 | } | |
39816 | return resultobj; | |
39817 | fail: | |
39818 | return NULL; | |
39819 | } | |
39820 | ||
39821 | ||
39822 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39823 | int argc; | |
39824 | PyObject *argv[4]; | |
39825 | int ii; | |
39826 | ||
39827 | argc = PyObject_Length(args); | |
39828 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39829 | argv[ii] = PyTuple_GetItem(args,ii); | |
39830 | } | |
39831 | if (argc == 3) { | |
39832 | int _v; | |
39833 | { | |
39834 | void *ptr; | |
39835 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39836 | _v = 0; | |
39837 | PyErr_Clear(); | |
39838 | } else { | |
39839 | _v = 1; | |
39840 | } | |
39841 | } | |
39842 | if (_v) { | |
39843 | { | |
39844 | void *ptr; | |
39845 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39846 | _v = 0; | |
39847 | PyErr_Clear(); | |
39848 | } else { | |
39849 | _v = 1; | |
39850 | } | |
39851 | } | |
39852 | if (_v) { | |
39853 | { | |
39854 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39855 | } | |
39856 | if (_v) { | |
39857 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39858 | } | |
39859 | } | |
39860 | } | |
39861 | } | |
39862 | if (argc == 3) { | |
39863 | int _v; | |
39864 | { | |
39865 | void *ptr; | |
39866 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39867 | _v = 0; | |
39868 | PyErr_Clear(); | |
39869 | } else { | |
39870 | _v = 1; | |
39871 | } | |
39872 | } | |
39873 | if (_v) { | |
39874 | { | |
39875 | void *ptr; | |
39876 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39877 | _v = 0; | |
39878 | PyErr_Clear(); | |
39879 | } else { | |
39880 | _v = 1; | |
39881 | } | |
39882 | } | |
39883 | if (_v) { | |
39884 | { | |
39885 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39886 | } | |
39887 | if (_v) { | |
39888 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39889 | } | |
39890 | } | |
39891 | } | |
39892 | } | |
39893 | if (argc == 3) { | |
39894 | int _v; | |
39895 | { | |
39896 | void *ptr; | |
39897 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39898 | _v = 0; | |
39899 | PyErr_Clear(); | |
39900 | } else { | |
39901 | _v = 1; | |
39902 | } | |
39903 | } | |
39904 | if (_v) { | |
c32bde28 | 39905 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39906 | if (_v) { |
39907 | { | |
39908 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39909 | } | |
39910 | if (_v) { | |
39911 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39912 | } | |
39913 | } | |
39914 | } | |
39915 | } | |
39916 | ||
39917 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39918 | return NULL; | |
39919 | } | |
39920 | ||
39921 | ||
c32bde28 | 39922 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39923 | PyObject *resultobj; |
39924 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39925 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39926 | wxGBSizerItem *result; | |
39927 | PyObject * obj0 = 0 ; | |
39928 | PyObject * obj1 = 0 ; | |
39929 | ||
39930 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39935 | { | |
39936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39937 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39938 | ||
39939 | wxPyEndAllowThreads(__tstate); | |
39940 | if (PyErr_Occurred()) SWIG_fail; | |
39941 | } | |
39942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39943 | return resultobj; | |
39944 | fail: | |
39945 | return NULL; | |
39946 | } | |
39947 | ||
39948 | ||
c32bde28 | 39949 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39950 | PyObject *resultobj; |
39951 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39952 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39953 | wxGBSizerItem *result; | |
39954 | PyObject * obj0 = 0 ; | |
39955 | PyObject * obj1 = 0 ; | |
39956 | ||
39957 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39962 | { | |
39963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39964 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39965 | ||
39966 | wxPyEndAllowThreads(__tstate); | |
39967 | if (PyErr_Occurred()) SWIG_fail; | |
39968 | } | |
39969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39970 | return resultobj; | |
39971 | fail: | |
39972 | return NULL; | |
39973 | } | |
39974 | ||
39975 | ||
39976 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39977 | int argc; | |
39978 | PyObject *argv[3]; | |
39979 | int ii; | |
39980 | ||
39981 | argc = PyObject_Length(args); | |
39982 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39983 | argv[ii] = PyTuple_GetItem(args,ii); | |
39984 | } | |
39985 | if (argc == 2) { | |
39986 | int _v; | |
39987 | { | |
39988 | void *ptr; | |
39989 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39990 | _v = 0; | |
39991 | PyErr_Clear(); | |
39992 | } else { | |
39993 | _v = 1; | |
39994 | } | |
39995 | } | |
39996 | if (_v) { | |
39997 | { | |
39998 | void *ptr; | |
39999 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
40000 | _v = 0; | |
40001 | PyErr_Clear(); | |
40002 | } else { | |
40003 | _v = 1; | |
40004 | } | |
40005 | } | |
40006 | if (_v) { | |
40007 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
40008 | } | |
40009 | } | |
40010 | } | |
40011 | if (argc == 2) { | |
40012 | int _v; | |
40013 | { | |
40014 | void *ptr; | |
40015 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
40016 | _v = 0; | |
40017 | PyErr_Clear(); | |
40018 | } else { | |
40019 | _v = 1; | |
40020 | } | |
40021 | } | |
40022 | if (_v) { | |
40023 | { | |
40024 | void *ptr; | |
40025 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
40026 | _v = 0; | |
40027 | PyErr_Clear(); | |
40028 | } else { | |
40029 | _v = 1; | |
40030 | } | |
40031 | } | |
40032 | if (_v) { | |
40033 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
40034 | } | |
40035 | } | |
40036 | } | |
40037 | ||
40038 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
40039 | return NULL; | |
40040 | } | |
40041 | ||
40042 | ||
c32bde28 | 40043 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40044 | PyObject *resultobj; |
40045 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40046 | wxGBPosition *arg2 = 0 ; | |
40047 | wxGBSizerItem *result; | |
40048 | wxGBPosition temp2 ; | |
40049 | PyObject * obj0 = 0 ; | |
40050 | PyObject * obj1 = 0 ; | |
40051 | char *kwnames[] = { | |
40052 | (char *) "self",(char *) "pos", NULL | |
40053 | }; | |
40054 | ||
40055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
40056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40058 | { | |
40059 | arg2 = &temp2; | |
40060 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40061 | } | |
40062 | { | |
40063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40064 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
40065 | ||
40066 | wxPyEndAllowThreads(__tstate); | |
40067 | if (PyErr_Occurred()) SWIG_fail; | |
40068 | } | |
40069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40070 | return resultobj; | |
40071 | fail: | |
40072 | return NULL; | |
40073 | } | |
40074 | ||
40075 | ||
c32bde28 | 40076 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40077 | PyObject *resultobj; |
40078 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40079 | wxPoint *arg2 = 0 ; | |
40080 | wxGBSizerItem *result; | |
40081 | wxPoint temp2 ; | |
40082 | PyObject * obj0 = 0 ; | |
40083 | PyObject * obj1 = 0 ; | |
40084 | char *kwnames[] = { | |
40085 | (char *) "self",(char *) "pt", NULL | |
40086 | }; | |
40087 | ||
40088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
40089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
40090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40091 | { | |
40092 | arg2 = &temp2; | |
40093 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
40094 | } | |
40095 | { | |
40096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40097 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
40098 | ||
40099 | wxPyEndAllowThreads(__tstate); | |
40100 | if (PyErr_Occurred()) SWIG_fail; | |
40101 | } | |
40102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
40103 | return resultobj; | |
40104 | fail: | |
40105 | return NULL; | |
40106 | } | |
40107 | ||
40108 | ||
c32bde28 | 40109 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40110 | PyObject *resultobj; |
40111 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40112 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
40113 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
40114 | bool result; | |
40115 | PyObject * obj0 = 0 ; | |
40116 | PyObject * obj1 = 0 ; | |
40117 | PyObject * obj2 = 0 ; | |
248ed943 RD |
40118 | char *kwnames[] = { |
40119 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
40120 | }; | |
d55e5bfc | 40121 | |
248ed943 | 40122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
40123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
40124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40125 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
40126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40127 | if (obj2) { | |
40128 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
40129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40130 | } | |
40131 | { | |
40132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40133 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
40134 | ||
40135 | wxPyEndAllowThreads(__tstate); | |
40136 | if (PyErr_Occurred()) SWIG_fail; | |
40137 | } | |
40138 | { | |
40139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40140 | } | |
40141 | return resultobj; | |
40142 | fail: | |
40143 | return NULL; | |
40144 | } | |
40145 | ||
40146 | ||
c32bde28 | 40147 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40148 | PyObject *resultobj; |
40149 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
40150 | wxGBPosition *arg2 = 0 ; | |
40151 | wxGBSpan *arg3 = 0 ; | |
40152 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
40153 | bool result; | |
40154 | wxGBPosition temp2 ; | |
40155 | wxGBSpan temp3 ; | |
40156 | PyObject * obj0 = 0 ; | |
40157 | PyObject * obj1 = 0 ; | |
40158 | PyObject * obj2 = 0 ; | |
40159 | PyObject * obj3 = 0 ; | |
248ed943 RD |
40160 | char *kwnames[] = { |
40161 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
40162 | }; | |
d55e5bfc | 40163 | |
248ed943 | 40164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
40165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
40166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40167 | { | |
40168 | arg2 = &temp2; | |
40169 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
40170 | } | |
40171 | { | |
40172 | arg3 = &temp3; | |
40173 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
40174 | } | |
40175 | if (obj3) { | |
40176 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
40177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40178 | } | |
40179 | { | |
40180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40181 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
40182 | ||
40183 | wxPyEndAllowThreads(__tstate); | |
40184 | if (PyErr_Occurred()) SWIG_fail; | |
40185 | } | |
40186 | { | |
40187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40188 | } | |
40189 | return resultobj; | |
40190 | fail: | |
40191 | return NULL; | |
40192 | } | |
40193 | ||
40194 | ||
c32bde28 | 40195 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40196 | PyObject *obj; |
40197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40198 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
40199 | Py_INCREF(obj); | |
40200 | return Py_BuildValue((char *)""); | |
40201 | } | |
c32bde28 | 40202 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40203 | PyObject *resultobj; |
40204 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40205 | int arg2 ; | |
40206 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40207 | int arg4 ; | |
40208 | int arg5 = (int) 0 ; | |
40209 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
40210 | PyObject * obj0 = 0 ; | |
40211 | PyObject * obj1 = 0 ; | |
40212 | PyObject * obj2 = 0 ; | |
40213 | PyObject * obj3 = 0 ; | |
40214 | PyObject * obj4 = 0 ; | |
40215 | PyObject * obj5 = 0 ; | |
40216 | char *kwnames[] = { | |
40217 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
40218 | }; | |
40219 | ||
40220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
40221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40223 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40224 | if (PyErr_Occurred()) SWIG_fail; |
40225 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40227 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40228 | if (PyErr_Occurred()) SWIG_fail; |
40229 | if (obj4) { | |
c32bde28 | 40230 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
40231 | if (PyErr_Occurred()) SWIG_fail; |
40232 | } | |
40233 | if (obj5) { | |
c32bde28 | 40234 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
40235 | if (PyErr_Occurred()) SWIG_fail; |
40236 | } | |
40237 | { | |
40238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40239 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
40240 | ||
40241 | wxPyEndAllowThreads(__tstate); | |
40242 | if (PyErr_Occurred()) SWIG_fail; | |
40243 | } | |
40244 | Py_INCREF(Py_None); resultobj = Py_None; | |
40245 | return resultobj; | |
40246 | fail: | |
40247 | return NULL; | |
40248 | } | |
40249 | ||
40250 | ||
c32bde28 | 40251 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40252 | PyObject *resultobj; |
40253 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40255 | int arg3 = (int) 0 ; | |
40256 | PyObject * obj0 = 0 ; | |
40257 | PyObject * obj1 = 0 ; | |
40258 | PyObject * obj2 = 0 ; | |
40259 | char *kwnames[] = { | |
40260 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40261 | }; | |
40262 | ||
40263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40266 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40268 | if (obj2) { | |
c32bde28 | 40269 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40270 | if (PyErr_Occurred()) SWIG_fail; |
40271 | } | |
40272 | { | |
40273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40274 | (arg1)->LeftOf(arg2,arg3); | |
40275 | ||
40276 | wxPyEndAllowThreads(__tstate); | |
40277 | if (PyErr_Occurred()) SWIG_fail; | |
40278 | } | |
40279 | Py_INCREF(Py_None); resultobj = Py_None; | |
40280 | return resultobj; | |
40281 | fail: | |
40282 | return NULL; | |
40283 | } | |
40284 | ||
40285 | ||
c32bde28 | 40286 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40287 | PyObject *resultobj; |
40288 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40289 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40290 | int arg3 = (int) 0 ; | |
40291 | PyObject * obj0 = 0 ; | |
40292 | PyObject * obj1 = 0 ; | |
40293 | PyObject * obj2 = 0 ; | |
40294 | char *kwnames[] = { | |
40295 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40296 | }; | |
40297 | ||
40298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40303 | if (obj2) { | |
c32bde28 | 40304 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40305 | if (PyErr_Occurred()) SWIG_fail; |
40306 | } | |
40307 | { | |
40308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40309 | (arg1)->RightOf(arg2,arg3); | |
40310 | ||
40311 | wxPyEndAllowThreads(__tstate); | |
40312 | if (PyErr_Occurred()) SWIG_fail; | |
40313 | } | |
40314 | Py_INCREF(Py_None); resultobj = Py_None; | |
40315 | return resultobj; | |
40316 | fail: | |
40317 | return NULL; | |
40318 | } | |
40319 | ||
40320 | ||
c32bde28 | 40321 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40322 | PyObject *resultobj; |
40323 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40325 | int arg3 = (int) 0 ; | |
40326 | PyObject * obj0 = 0 ; | |
40327 | PyObject * obj1 = 0 ; | |
40328 | PyObject * obj2 = 0 ; | |
40329 | char *kwnames[] = { | |
40330 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40331 | }; | |
40332 | ||
40333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40338 | if (obj2) { | |
c32bde28 | 40339 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40340 | if (PyErr_Occurred()) SWIG_fail; |
40341 | } | |
40342 | { | |
40343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40344 | (arg1)->Above(arg2,arg3); | |
40345 | ||
40346 | wxPyEndAllowThreads(__tstate); | |
40347 | if (PyErr_Occurred()) SWIG_fail; | |
40348 | } | |
40349 | Py_INCREF(Py_None); resultobj = Py_None; | |
40350 | return resultobj; | |
40351 | fail: | |
40352 | return NULL; | |
40353 | } | |
40354 | ||
40355 | ||
c32bde28 | 40356 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40357 | PyObject *resultobj; |
40358 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40359 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40360 | int arg3 = (int) 0 ; | |
40361 | PyObject * obj0 = 0 ; | |
40362 | PyObject * obj1 = 0 ; | |
40363 | PyObject * obj2 = 0 ; | |
40364 | char *kwnames[] = { | |
40365 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40366 | }; | |
40367 | ||
40368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40371 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40373 | if (obj2) { | |
c32bde28 | 40374 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40375 | if (PyErr_Occurred()) SWIG_fail; |
40376 | } | |
40377 | { | |
40378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40379 | (arg1)->Below(arg2,arg3); | |
40380 | ||
40381 | wxPyEndAllowThreads(__tstate); | |
40382 | if (PyErr_Occurred()) SWIG_fail; | |
40383 | } | |
40384 | Py_INCREF(Py_None); resultobj = Py_None; | |
40385 | return resultobj; | |
40386 | fail: | |
40387 | return NULL; | |
40388 | } | |
40389 | ||
40390 | ||
c32bde28 | 40391 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40392 | PyObject *resultobj; |
40393 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40394 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40395 | int arg3 ; | |
40396 | int arg4 = (int) 0 ; | |
40397 | PyObject * obj0 = 0 ; | |
40398 | PyObject * obj1 = 0 ; | |
40399 | PyObject * obj2 = 0 ; | |
40400 | PyObject * obj3 = 0 ; | |
40401 | char *kwnames[] = { | |
40402 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
40403 | }; | |
40404 | ||
40405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40408 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40410 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40411 | if (PyErr_Occurred()) SWIG_fail; |
40412 | if (obj3) { | |
c32bde28 | 40413 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40414 | if (PyErr_Occurred()) SWIG_fail; |
40415 | } | |
40416 | { | |
40417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40418 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
40419 | ||
40420 | wxPyEndAllowThreads(__tstate); | |
40421 | if (PyErr_Occurred()) SWIG_fail; | |
40422 | } | |
40423 | Py_INCREF(Py_None); resultobj = Py_None; | |
40424 | return resultobj; | |
40425 | fail: | |
40426 | return NULL; | |
40427 | } | |
40428 | ||
40429 | ||
c32bde28 | 40430 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40431 | PyObject *resultobj; |
40432 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40433 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40434 | int arg3 ; | |
40435 | int arg4 ; | |
40436 | PyObject * obj0 = 0 ; | |
40437 | PyObject * obj1 = 0 ; | |
40438 | PyObject * obj2 = 0 ; | |
40439 | PyObject * obj3 = 0 ; | |
40440 | char *kwnames[] = { | |
40441 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
40442 | }; | |
40443 | ||
40444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40447 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40449 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 40450 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 40451 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40452 | if (PyErr_Occurred()) SWIG_fail; |
40453 | { | |
40454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40455 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
40456 | ||
40457 | wxPyEndAllowThreads(__tstate); | |
40458 | if (PyErr_Occurred()) SWIG_fail; | |
40459 | } | |
40460 | Py_INCREF(Py_None); resultobj = Py_None; | |
40461 | return resultobj; | |
40462 | fail: | |
40463 | return NULL; | |
40464 | } | |
40465 | ||
40466 | ||
c32bde28 | 40467 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40468 | PyObject *resultobj; |
40469 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40470 | int arg2 ; | |
40471 | PyObject * obj0 = 0 ; | |
40472 | PyObject * obj1 = 0 ; | |
40473 | char *kwnames[] = { | |
40474 | (char *) "self",(char *) "val", NULL | |
40475 | }; | |
40476 | ||
40477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
40478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40480 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40481 | if (PyErr_Occurred()) SWIG_fail; |
40482 | { | |
40483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40484 | (arg1)->Absolute(arg2); | |
40485 | ||
40486 | wxPyEndAllowThreads(__tstate); | |
40487 | if (PyErr_Occurred()) SWIG_fail; | |
40488 | } | |
40489 | Py_INCREF(Py_None); resultobj = Py_None; | |
40490 | return resultobj; | |
40491 | fail: | |
40492 | return NULL; | |
40493 | } | |
40494 | ||
40495 | ||
c32bde28 | 40496 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40497 | PyObject *resultobj; |
40498 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40499 | PyObject * obj0 = 0 ; | |
40500 | char *kwnames[] = { | |
40501 | (char *) "self", NULL | |
40502 | }; | |
40503 | ||
40504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
40505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40507 | { | |
40508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40509 | (arg1)->Unconstrained(); | |
40510 | ||
40511 | wxPyEndAllowThreads(__tstate); | |
40512 | if (PyErr_Occurred()) SWIG_fail; | |
40513 | } | |
40514 | Py_INCREF(Py_None); resultobj = Py_None; | |
40515 | return resultobj; | |
40516 | fail: | |
40517 | return NULL; | |
40518 | } | |
40519 | ||
40520 | ||
c32bde28 | 40521 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40522 | PyObject *resultobj; |
40523 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40524 | PyObject * obj0 = 0 ; | |
40525 | char *kwnames[] = { | |
40526 | (char *) "self", NULL | |
40527 | }; | |
40528 | ||
40529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
40530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40532 | { | |
40533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40534 | (arg1)->AsIs(); | |
40535 | ||
40536 | wxPyEndAllowThreads(__tstate); | |
40537 | if (PyErr_Occurred()) SWIG_fail; | |
40538 | } | |
40539 | Py_INCREF(Py_None); resultobj = Py_None; | |
40540 | return resultobj; | |
40541 | fail: | |
40542 | return NULL; | |
40543 | } | |
40544 | ||
40545 | ||
c32bde28 | 40546 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40547 | PyObject *resultobj; |
40548 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40549 | wxWindow *result; | |
40550 | PyObject * obj0 = 0 ; | |
40551 | char *kwnames[] = { | |
40552 | (char *) "self", NULL | |
40553 | }; | |
40554 | ||
40555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
40556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40558 | { | |
40559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40560 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
40561 | ||
40562 | wxPyEndAllowThreads(__tstate); | |
40563 | if (PyErr_Occurred()) SWIG_fail; | |
40564 | } | |
40565 | { | |
412d302d | 40566 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
40567 | } |
40568 | return resultobj; | |
40569 | fail: | |
40570 | return NULL; | |
40571 | } | |
40572 | ||
40573 | ||
c32bde28 | 40574 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40575 | PyObject *resultobj; |
40576 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40577 | int result; | |
40578 | PyObject * obj0 = 0 ; | |
40579 | char *kwnames[] = { | |
40580 | (char *) "self", NULL | |
40581 | }; | |
40582 | ||
40583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
40584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40586 | { | |
40587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40588 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
40589 | ||
40590 | wxPyEndAllowThreads(__tstate); | |
40591 | if (PyErr_Occurred()) SWIG_fail; | |
40592 | } | |
c32bde28 | 40593 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40594 | return resultobj; |
40595 | fail: | |
40596 | return NULL; | |
40597 | } | |
40598 | ||
40599 | ||
c32bde28 | 40600 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40601 | PyObject *resultobj; |
40602 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40603 | int arg2 ; | |
40604 | PyObject * obj0 = 0 ; | |
40605 | PyObject * obj1 = 0 ; | |
40606 | char *kwnames[] = { | |
40607 | (char *) "self",(char *) "which", NULL | |
40608 | }; | |
40609 | ||
40610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40613 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40614 | if (PyErr_Occurred()) SWIG_fail; |
40615 | { | |
40616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40617 | (arg1)->SetEdge((wxEdge )arg2); | |
40618 | ||
40619 | wxPyEndAllowThreads(__tstate); | |
40620 | if (PyErr_Occurred()) SWIG_fail; | |
40621 | } | |
40622 | Py_INCREF(Py_None); resultobj = Py_None; | |
40623 | return resultobj; | |
40624 | fail: | |
40625 | return NULL; | |
40626 | } | |
40627 | ||
40628 | ||
c32bde28 | 40629 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40630 | PyObject *resultobj; |
40631 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40632 | int arg2 ; | |
40633 | PyObject * obj0 = 0 ; | |
40634 | PyObject * obj1 = 0 ; | |
40635 | char *kwnames[] = { | |
40636 | (char *) "self",(char *) "v", NULL | |
40637 | }; | |
40638 | ||
40639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40642 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40643 | if (PyErr_Occurred()) SWIG_fail; |
40644 | { | |
40645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40646 | (arg1)->SetValue(arg2); | |
40647 | ||
40648 | wxPyEndAllowThreads(__tstate); | |
40649 | if (PyErr_Occurred()) SWIG_fail; | |
40650 | } | |
40651 | Py_INCREF(Py_None); resultobj = Py_None; | |
40652 | return resultobj; | |
40653 | fail: | |
40654 | return NULL; | |
40655 | } | |
40656 | ||
40657 | ||
c32bde28 | 40658 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40659 | PyObject *resultobj; |
40660 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40661 | int result; | |
40662 | PyObject * obj0 = 0 ; | |
40663 | char *kwnames[] = { | |
40664 | (char *) "self", NULL | |
40665 | }; | |
40666 | ||
40667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40670 | { | |
40671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40672 | result = (int)(arg1)->GetMargin(); | |
40673 | ||
40674 | wxPyEndAllowThreads(__tstate); | |
40675 | if (PyErr_Occurred()) SWIG_fail; | |
40676 | } | |
c32bde28 | 40677 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40678 | return resultobj; |
40679 | fail: | |
40680 | return NULL; | |
40681 | } | |
40682 | ||
40683 | ||
c32bde28 | 40684 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40685 | PyObject *resultobj; |
40686 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40687 | int arg2 ; | |
40688 | PyObject * obj0 = 0 ; | |
40689 | PyObject * obj1 = 0 ; | |
40690 | char *kwnames[] = { | |
40691 | (char *) "self",(char *) "m", NULL | |
40692 | }; | |
40693 | ||
40694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40697 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40698 | if (PyErr_Occurred()) SWIG_fail; |
40699 | { | |
40700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40701 | (arg1)->SetMargin(arg2); | |
40702 | ||
40703 | wxPyEndAllowThreads(__tstate); | |
40704 | if (PyErr_Occurred()) SWIG_fail; | |
40705 | } | |
40706 | Py_INCREF(Py_None); resultobj = Py_None; | |
40707 | return resultobj; | |
40708 | fail: | |
40709 | return NULL; | |
40710 | } | |
40711 | ||
40712 | ||
c32bde28 | 40713 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40714 | PyObject *resultobj; |
40715 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40716 | int result; | |
40717 | PyObject * obj0 = 0 ; | |
40718 | char *kwnames[] = { | |
40719 | (char *) "self", NULL | |
40720 | }; | |
40721 | ||
40722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40725 | { | |
40726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40727 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40728 | ||
40729 | wxPyEndAllowThreads(__tstate); | |
40730 | if (PyErr_Occurred()) SWIG_fail; | |
40731 | } | |
c32bde28 | 40732 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40733 | return resultobj; |
40734 | fail: | |
40735 | return NULL; | |
40736 | } | |
40737 | ||
40738 | ||
c32bde28 | 40739 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40740 | PyObject *resultobj; |
40741 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40742 | int result; | |
40743 | PyObject * obj0 = 0 ; | |
40744 | char *kwnames[] = { | |
40745 | (char *) "self", NULL | |
40746 | }; | |
40747 | ||
40748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40751 | { | |
40752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40753 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40754 | ||
40755 | wxPyEndAllowThreads(__tstate); | |
40756 | if (PyErr_Occurred()) SWIG_fail; | |
40757 | } | |
c32bde28 | 40758 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40759 | return resultobj; |
40760 | fail: | |
40761 | return NULL; | |
40762 | } | |
40763 | ||
40764 | ||
c32bde28 | 40765 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40766 | PyObject *resultobj; |
40767 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40768 | int result; | |
40769 | PyObject * obj0 = 0 ; | |
40770 | char *kwnames[] = { | |
40771 | (char *) "self", NULL | |
40772 | }; | |
40773 | ||
40774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40777 | { | |
40778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40779 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40780 | ||
40781 | wxPyEndAllowThreads(__tstate); | |
40782 | if (PyErr_Occurred()) SWIG_fail; | |
40783 | } | |
c32bde28 | 40784 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40785 | return resultobj; |
40786 | fail: | |
40787 | return NULL; | |
40788 | } | |
40789 | ||
40790 | ||
c32bde28 | 40791 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40792 | PyObject *resultobj; |
40793 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40794 | bool result; | |
40795 | PyObject * obj0 = 0 ; | |
40796 | char *kwnames[] = { | |
40797 | (char *) "self", NULL | |
40798 | }; | |
40799 | ||
40800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40803 | { | |
40804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40805 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40806 | ||
40807 | wxPyEndAllowThreads(__tstate); | |
40808 | if (PyErr_Occurred()) SWIG_fail; | |
40809 | } | |
40810 | { | |
40811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40812 | } | |
40813 | return resultobj; | |
40814 | fail: | |
40815 | return NULL; | |
40816 | } | |
40817 | ||
40818 | ||
c32bde28 | 40819 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40820 | PyObject *resultobj; |
40821 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40822 | bool arg2 ; | |
40823 | PyObject * obj0 = 0 ; | |
40824 | PyObject * obj1 = 0 ; | |
40825 | char *kwnames[] = { | |
40826 | (char *) "self",(char *) "d", NULL | |
40827 | }; | |
40828 | ||
40829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40832 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
40833 | if (PyErr_Occurred()) SWIG_fail; |
40834 | { | |
40835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40836 | (arg1)->SetDone(arg2); | |
40837 | ||
40838 | wxPyEndAllowThreads(__tstate); | |
40839 | if (PyErr_Occurred()) SWIG_fail; | |
40840 | } | |
40841 | Py_INCREF(Py_None); resultobj = Py_None; | |
40842 | return resultobj; | |
40843 | fail: | |
40844 | return NULL; | |
40845 | } | |
40846 | ||
40847 | ||
c32bde28 | 40848 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40849 | PyObject *resultobj; |
40850 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40851 | int result; | |
40852 | PyObject * obj0 = 0 ; | |
40853 | char *kwnames[] = { | |
40854 | (char *) "self", NULL | |
40855 | }; | |
40856 | ||
40857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40860 | { | |
40861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40862 | result = (int)(arg1)->GetRelationship(); | |
40863 | ||
40864 | wxPyEndAllowThreads(__tstate); | |
40865 | if (PyErr_Occurred()) SWIG_fail; | |
40866 | } | |
c32bde28 | 40867 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40868 | return resultobj; |
40869 | fail: | |
40870 | return NULL; | |
40871 | } | |
40872 | ||
40873 | ||
c32bde28 | 40874 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40875 | PyObject *resultobj; |
40876 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40877 | int arg2 ; | |
40878 | PyObject * obj0 = 0 ; | |
40879 | PyObject * obj1 = 0 ; | |
40880 | char *kwnames[] = { | |
40881 | (char *) "self",(char *) "r", NULL | |
40882 | }; | |
40883 | ||
40884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40887 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40888 | if (PyErr_Occurred()) SWIG_fail; |
40889 | { | |
40890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40891 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40892 | ||
40893 | wxPyEndAllowThreads(__tstate); | |
40894 | if (PyErr_Occurred()) SWIG_fail; | |
40895 | } | |
40896 | Py_INCREF(Py_None); resultobj = Py_None; | |
40897 | return resultobj; | |
40898 | fail: | |
40899 | return NULL; | |
40900 | } | |
40901 | ||
40902 | ||
c32bde28 | 40903 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40904 | PyObject *resultobj; |
40905 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40906 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40907 | bool result; | |
40908 | PyObject * obj0 = 0 ; | |
40909 | PyObject * obj1 = 0 ; | |
40910 | char *kwnames[] = { | |
40911 | (char *) "self",(char *) "otherW", NULL | |
40912 | }; | |
40913 | ||
40914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40919 | { | |
40920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40921 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40922 | ||
40923 | wxPyEndAllowThreads(__tstate); | |
40924 | if (PyErr_Occurred()) SWIG_fail; | |
40925 | } | |
40926 | { | |
40927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40928 | } | |
40929 | return resultobj; | |
40930 | fail: | |
40931 | return NULL; | |
40932 | } | |
40933 | ||
40934 | ||
c32bde28 | 40935 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40936 | PyObject *resultobj; |
40937 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40938 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40939 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40940 | bool result; | |
40941 | PyObject * obj0 = 0 ; | |
40942 | PyObject * obj1 = 0 ; | |
40943 | PyObject * obj2 = 0 ; | |
40944 | char *kwnames[] = { | |
40945 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40946 | }; | |
40947 | ||
40948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40953 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40955 | { | |
40956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40957 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40958 | ||
40959 | wxPyEndAllowThreads(__tstate); | |
40960 | if (PyErr_Occurred()) SWIG_fail; | |
40961 | } | |
40962 | { | |
40963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40964 | } | |
40965 | return resultobj; | |
40966 | fail: | |
40967 | return NULL; | |
40968 | } | |
40969 | ||
40970 | ||
c32bde28 | 40971 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40972 | PyObject *resultobj; |
40973 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40974 | int arg2 ; | |
40975 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40976 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40977 | int result; | |
40978 | PyObject * obj0 = 0 ; | |
40979 | PyObject * obj1 = 0 ; | |
40980 | PyObject * obj2 = 0 ; | |
40981 | PyObject * obj3 = 0 ; | |
40982 | char *kwnames[] = { | |
40983 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40984 | }; | |
40985 | ||
40986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 40989 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40990 | if (PyErr_Occurred()) SWIG_fail; |
40991 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40993 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40995 | { | |
40996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40997 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40998 | ||
40999 | wxPyEndAllowThreads(__tstate); | |
41000 | if (PyErr_Occurred()) SWIG_fail; | |
41001 | } | |
c32bde28 | 41002 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
41003 | return resultobj; |
41004 | fail: | |
41005 | return NULL; | |
41006 | } | |
41007 | ||
41008 | ||
c32bde28 | 41009 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41010 | PyObject *obj; |
41011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41012 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
41013 | Py_INCREF(obj); | |
41014 | return Py_BuildValue((char *)""); | |
41015 | } | |
c32bde28 | 41016 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41017 | PyObject *resultobj; |
41018 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41019 | wxIndividualLayoutConstraint *result; | |
41020 | PyObject * obj0 = 0 ; | |
41021 | char *kwnames[] = { | |
41022 | (char *) "self", NULL | |
41023 | }; | |
41024 | ||
41025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
41026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41028 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
41029 | ||
41030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41031 | return resultobj; | |
41032 | fail: | |
41033 | return NULL; | |
41034 | } | |
41035 | ||
41036 | ||
c32bde28 | 41037 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41038 | PyObject *resultobj; |
41039 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41040 | wxIndividualLayoutConstraint *result; | |
41041 | PyObject * obj0 = 0 ; | |
41042 | char *kwnames[] = { | |
41043 | (char *) "self", NULL | |
41044 | }; | |
41045 | ||
41046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
41047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41049 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
41050 | ||
41051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41052 | return resultobj; | |
41053 | fail: | |
41054 | return NULL; | |
41055 | } | |
41056 | ||
41057 | ||
c32bde28 | 41058 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41059 | PyObject *resultobj; |
41060 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41061 | wxIndividualLayoutConstraint *result; | |
41062 | PyObject * obj0 = 0 ; | |
41063 | char *kwnames[] = { | |
41064 | (char *) "self", NULL | |
41065 | }; | |
41066 | ||
41067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
41068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41070 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
41071 | ||
41072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41073 | return resultobj; | |
41074 | fail: | |
41075 | return NULL; | |
41076 | } | |
41077 | ||
41078 | ||
c32bde28 | 41079 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41080 | PyObject *resultobj; |
41081 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41082 | wxIndividualLayoutConstraint *result; | |
41083 | PyObject * obj0 = 0 ; | |
41084 | char *kwnames[] = { | |
41085 | (char *) "self", NULL | |
41086 | }; | |
41087 | ||
41088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
41089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41091 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
41092 | ||
41093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41094 | return resultobj; | |
41095 | fail: | |
41096 | return NULL; | |
41097 | } | |
41098 | ||
41099 | ||
c32bde28 | 41100 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41101 | PyObject *resultobj; |
41102 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41103 | wxIndividualLayoutConstraint *result; | |
41104 | PyObject * obj0 = 0 ; | |
41105 | char *kwnames[] = { | |
41106 | (char *) "self", NULL | |
41107 | }; | |
41108 | ||
41109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
41110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41112 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
41113 | ||
41114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41115 | return resultobj; | |
41116 | fail: | |
41117 | return NULL; | |
41118 | } | |
41119 | ||
41120 | ||
c32bde28 | 41121 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41122 | PyObject *resultobj; |
41123 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41124 | wxIndividualLayoutConstraint *result; | |
41125 | PyObject * obj0 = 0 ; | |
41126 | char *kwnames[] = { | |
41127 | (char *) "self", NULL | |
41128 | }; | |
41129 | ||
41130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
41131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41133 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
41134 | ||
41135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41136 | return resultobj; | |
41137 | fail: | |
41138 | return NULL; | |
41139 | } | |
41140 | ||
41141 | ||
c32bde28 | 41142 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41143 | PyObject *resultobj; |
41144 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41145 | wxIndividualLayoutConstraint *result; | |
41146 | PyObject * obj0 = 0 ; | |
41147 | char *kwnames[] = { | |
41148 | (char *) "self", NULL | |
41149 | }; | |
41150 | ||
41151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
41152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41154 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
41155 | ||
41156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41157 | return resultobj; | |
41158 | fail: | |
41159 | return NULL; | |
41160 | } | |
41161 | ||
41162 | ||
c32bde28 | 41163 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41164 | PyObject *resultobj; |
41165 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41166 | wxIndividualLayoutConstraint *result; | |
41167 | PyObject * obj0 = 0 ; | |
41168 | char *kwnames[] = { | |
41169 | (char *) "self", NULL | |
41170 | }; | |
41171 | ||
41172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
41173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41175 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
41176 | ||
41177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
41178 | return resultobj; | |
41179 | fail: | |
41180 | return NULL; | |
41181 | } | |
41182 | ||
41183 | ||
c32bde28 | 41184 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41185 | PyObject *resultobj; |
41186 | wxLayoutConstraints *result; | |
41187 | char *kwnames[] = { | |
41188 | NULL | |
41189 | }; | |
41190 | ||
41191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
41192 | { | |
41193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41194 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
41195 | ||
41196 | wxPyEndAllowThreads(__tstate); | |
41197 | if (PyErr_Occurred()) SWIG_fail; | |
41198 | } | |
41199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
41200 | return resultobj; | |
41201 | fail: | |
41202 | return NULL; | |
41203 | } | |
41204 | ||
41205 | ||
c32bde28 | 41206 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41207 | PyObject *resultobj; |
41208 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
41210 | int *arg3 = (int *) 0 ; | |
41211 | bool result; | |
41212 | int temp3 ; | |
c32bde28 | 41213 | int res3 = 0 ; |
d55e5bfc RD |
41214 | PyObject * obj0 = 0 ; |
41215 | PyObject * obj1 = 0 ; | |
41216 | char *kwnames[] = { | |
41217 | (char *) "self",(char *) "win", NULL | |
41218 | }; | |
41219 | ||
c32bde28 | 41220 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
41221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
41222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
41225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41226 | { | |
41227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41228 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
41229 | ||
41230 | wxPyEndAllowThreads(__tstate); | |
41231 | if (PyErr_Occurred()) SWIG_fail; | |
41232 | } | |
41233 | { | |
41234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41235 | } | |
c32bde28 RD |
41236 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
41237 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
41238 | return resultobj; |
41239 | fail: | |
41240 | return NULL; | |
41241 | } | |
41242 | ||
41243 | ||
c32bde28 | 41244 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
41245 | PyObject *resultobj; |
41246 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
41247 | bool result; | |
41248 | PyObject * obj0 = 0 ; | |
41249 | char *kwnames[] = { | |
41250 | (char *) "self", NULL | |
41251 | }; | |
41252 | ||
41253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
41254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
41255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41256 | { | |
41257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41258 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
41259 | ||
41260 | wxPyEndAllowThreads(__tstate); | |
41261 | if (PyErr_Occurred()) SWIG_fail; | |
41262 | } | |
41263 | { | |
41264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41265 | } | |
41266 | return resultobj; | |
41267 | fail: | |
41268 | return NULL; | |
41269 | } | |
41270 | ||
41271 | ||
c32bde28 | 41272 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41273 | PyObject *obj; |
41274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41275 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
41276 | Py_INCREF(obj); | |
41277 | return Py_BuildValue((char *)""); | |
41278 | } | |
41279 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
41280 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
41281 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
41282 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41283 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41284 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
41285 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41286 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41287 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41288 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41289 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41290 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41291 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41292 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41293 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41294 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41295 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41296 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41297 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41298 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41299 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41300 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41301 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41302 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41303 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41304 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41305 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
41306 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41307 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41308 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41309 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41310 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41311 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41312 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41313 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41314 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41315 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41316 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41317 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41318 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
41319 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41320 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41321 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41322 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41323 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41324 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41325 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41326 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41327 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41328 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41329 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41330 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41331 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41332 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41333 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
41334 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41335 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41336 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 41337 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41338 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, |
41339 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41340 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41341 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41342 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41343 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41344 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41345 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41346 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41347 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41350 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41355 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41356 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41357 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41363 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41367 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41371 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41373 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41376 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41377 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41379 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41384 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
41386 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41391 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41393 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41396 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41399 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41401 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41402 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41403 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41404 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41405 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41407 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41408 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41409 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41411 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41413 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
41414 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41415 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41417 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41419 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41420 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41421 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41423 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41424 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41425 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41427 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41430 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
41432 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
41434 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41437 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41439 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
41442 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41443 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41445 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41449 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41451 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41452 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41454 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41455 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41457 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41458 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41460 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41463 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 | 41465 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
ae8162c8 | 41466 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c32bde28 RD |
41467 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
41468 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
41471 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41475 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
41477 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41478 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41479 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41480 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41481 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41482 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41483 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41486 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
41487 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41488 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41489 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41490 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41492 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
41497 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41498 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41499 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41500 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
41501 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41502 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41505 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41508 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41509 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41514 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41516 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41521 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41534 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41537 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41540 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41541 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41546 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41551 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41553 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
41573 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
41575 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
41577 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
41579 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
41581 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
41583 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
41585 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
41587 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
41589 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41590 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
41591 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
41593 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
41595 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41596 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
41597 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41598 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41600 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41603 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41608 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41610 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41611 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41620 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41622 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41629 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41632 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41635 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41637 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41642 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41647 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41650 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41652 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41654 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41656 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41657 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41658 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41660 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41662 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41664 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41678 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41685 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41702 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41707 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41710 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41713 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41714 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41719 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41723 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41727 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41731 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41734 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41743 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41753 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41770 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41775 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41780 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41783 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41784 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41785 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41790 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41792 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41794 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41797 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41801 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41804 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41807 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41809 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41814 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41816 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41817 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41819 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41822 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41826 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41829 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41831 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41833 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41835 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41837 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41852 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41854 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41857 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41859 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41863 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41864 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41867 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41868 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41871 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41872 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41873 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41874 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41875 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41876 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41877 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41879 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41880 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41881 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41882 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41883 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41886 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41888 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41889 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41891 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41893 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41896 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41898 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41902 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41903 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41906 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41907 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41908 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41909 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41915 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 41916 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
41917 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41918 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41919 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41921 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41924 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41926 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41927 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41928 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41929 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41930 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41931 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41932 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41933 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41934 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41935 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41936 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41937 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41938 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41939 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41940 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41941 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41942 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41943 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41944 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41945 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41946 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41947 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
41948 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41949 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41950 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41951 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41952 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41953 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41954 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41955 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
ae8162c8 RD |
41956 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41957 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41958 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41959 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41960 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41961 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41962 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41963 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41964 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41965 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c32bde28 RD |
41966 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
41967 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41968 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41969 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41970 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41971 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41972 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
41973 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41974 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41975 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41976 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
41977 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41978 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41979 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41980 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41981 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41982 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41983 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41984 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41985 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41986 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
41987 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41988 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41989 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41990 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41991 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41992 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41993 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41994 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41995 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41996 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41997 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41998 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41999 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42000 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42001 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42002 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42003 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42004 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42005 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42006 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42007 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42008 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42009 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42010 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42011 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42012 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42013 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42014 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42015 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42016 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42017 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42018 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42019 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42020 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42021 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42022 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42023 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42024 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42025 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42026 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42027 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42028 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42029 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42030 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42031 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42032 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42033 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42034 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42035 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42036 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42037 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42038 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42039 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42040 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42041 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42042 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42043 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42044 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42045 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42046 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42047 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42048 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42049 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42050 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42051 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42052 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42053 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42054 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42055 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42056 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42057 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42058 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42059 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42060 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42061 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42062 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42063 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42064 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42065 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42066 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42067 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42068 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42069 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42070 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42071 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42072 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42073 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42074 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42075 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42076 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42077 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42078 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42079 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42080 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42081 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42082 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42083 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42084 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42085 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42086 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42087 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42088 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42089 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42090 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42091 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42092 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42093 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42094 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42095 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42096 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42097 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42098 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42099 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42100 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42101 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42102 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42103 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42104 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42105 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42106 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42107 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42108 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42109 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42110 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42111 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42112 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42113 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42114 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42115 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42116 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42117 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42118 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42119 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42120 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42121 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42122 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42123 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42124 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42125 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42126 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42127 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42128 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42129 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42130 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42131 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42132 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42133 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42134 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42135 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42136 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42137 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42138 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42139 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42140 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42141 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42142 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42143 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42144 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42145 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42146 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42147 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42148 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42149 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42150 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42151 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42152 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42153 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42154 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42155 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
42156 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42157 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42158 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42159 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 RD |
42160 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
42161 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 RD |
42162 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL }, |
42163 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42164 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42165 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42166 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42167 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42168 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42169 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42170 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42171 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42172 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42173 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42174 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42175 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42176 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42177 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42178 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42179 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42180 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42181 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42182 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42183 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42184 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42185 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42186 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42187 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42188 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42189 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42190 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42191 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42192 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42193 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42194 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42195 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42196 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42197 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
42198 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42199 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42200 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42201 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42202 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42203 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42204 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42205 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42206 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42207 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42208 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42209 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42210 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42211 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
42212 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42213 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42214 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
42215 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42216 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42217 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42218 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42219 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42220 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42221 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42222 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42223 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42224 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42225 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42226 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42227 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42228 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42229 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42230 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42231 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42232 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42233 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42234 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42235 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42236 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42237 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42238 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42239 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42240 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42241 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42242 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42243 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42244 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42245 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42246 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42247 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42248 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42249 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42250 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42251 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42252 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42253 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42254 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42255 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42256 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42257 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42258 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42259 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42260 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42261 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42262 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42263 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42264 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42265 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42266 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42267 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42268 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42269 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
42270 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42271 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42272 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42273 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42274 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42275 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42276 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42277 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42278 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42279 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42280 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42281 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42282 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42283 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42284 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42285 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42286 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42287 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42288 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42289 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42290 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42291 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42292 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42293 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42294 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42295 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42296 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
42297 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42298 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42299 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42300 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42301 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42302 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42303 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42304 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42305 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42306 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42307 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42308 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42309 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42310 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42311 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42312 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42313 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42314 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42315 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42316 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42317 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42318 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42319 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42320 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42321 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42322 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42323 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42324 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42325 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42326 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42327 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42328 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42329 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42330 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42331 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42332 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42333 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42334 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42335 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42336 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42337 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42338 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42339 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42340 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
42341 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42342 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42343 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42344 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42345 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42346 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42347 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42348 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
42349 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42350 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42351 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42352 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42353 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42354 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42355 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42356 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42357 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42358 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42359 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42360 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42361 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42362 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42363 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42364 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42365 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
42366 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
42367 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42368 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42369 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42370 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42371 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42372 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42373 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42374 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42375 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42376 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42377 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42378 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42379 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42380 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42381 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42382 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 42383 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42384 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
42385 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42386 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42387 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42388 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42389 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42390 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42391 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42392 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42393 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42394 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42395 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42396 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42397 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42398 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42399 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42400 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42401 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42402 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42403 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
42404 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42405 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42406 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42407 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42408 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42409 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c1cb24a4 | 42410 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42411 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42412 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42413 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42414 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42415 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42416 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42417 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42418 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42419 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42420 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42421 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42422 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42423 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42424 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42425 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42426 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42427 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42428 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42429 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42430 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42431 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42432 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42433 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
42434 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42435 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42436 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
42437 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42438 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42439 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42440 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
42441 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42442 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42443 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
42444 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42445 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42446 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42447 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42448 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42449 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42450 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42451 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42452 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42453 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
42454 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42455 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42456 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42457 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42458 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42459 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42460 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42461 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42462 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42463 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42464 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42465 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
42466 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42467 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42468 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42469 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42470 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42471 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42472 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42473 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42474 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42475 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
42476 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42477 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42478 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42479 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42480 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42481 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42482 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42483 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42484 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42485 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
42486 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42487 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42488 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42489 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42490 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42491 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42492 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42493 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42494 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42495 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42496 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42497 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42498 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42499 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
42500 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42501 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42502 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 42503 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
42504 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42505 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42506 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
42507 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
42508 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
42509 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
42510 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
42511 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42512 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42513 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42514 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42515 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
42516 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42517 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42518 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42519 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42520 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42521 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42522 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42523 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42524 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42525 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42526 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42527 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42528 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42529 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42530 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42531 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42532 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42533 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42534 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42535 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42536 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42537 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42538 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42539 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42540 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42541 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42542 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
42543 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42544 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42545 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42546 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42547 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42548 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42549 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42550 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42551 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42552 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42553 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42554 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
42555 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
42556 | }; |
42557 | ||
42558 | ||
42559 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
42560 | ||
42561 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
42562 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
42563 | } | |
42564 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
42565 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
42566 | } | |
42567 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
42568 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42569 | } | |
42570 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
42571 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42572 | } | |
42573 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
42574 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
42575 | } | |
42576 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
42577 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42578 | } | |
42579 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
42580 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
42581 | } | |
42582 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
42583 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42584 | } | |
42585 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
42586 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42587 | } | |
42588 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
42589 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
42590 | } | |
42591 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
42592 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
42593 | } | |
42594 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
42595 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
42596 | } | |
42597 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
42598 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
42599 | } | |
42600 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
42601 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
42602 | } | |
42603 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
42604 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
42605 | } | |
42606 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
42607 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
42608 | } | |
42609 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
42610 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
42611 | } | |
42612 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
42613 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42614 | } | |
42615 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
42616 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
42617 | } | |
42618 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
42619 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42620 | } | |
42621 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
42622 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42623 | } | |
42624 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
42625 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
42626 | } | |
42627 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42628 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42629 | } | |
42630 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42631 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42632 | } | |
42633 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42634 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42635 | } | |
42636 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42637 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42638 | } | |
42639 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42640 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42641 | } | |
42642 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42643 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42644 | } | |
42645 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42646 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42647 | } | |
42648 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42649 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42650 | } | |
42651 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42652 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42653 | } | |
42654 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42655 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42656 | } | |
42657 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42658 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42659 | } | |
42660 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42661 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42662 | } | |
42663 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42664 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42665 | } | |
42666 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42667 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42668 | } | |
42669 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42670 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42671 | } | |
42672 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42673 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42674 | } | |
42675 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42676 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42677 | } | |
42678 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42679 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42680 | } | |
42681 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42682 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42683 | } | |
42684 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42685 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42686 | } | |
42687 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42688 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42689 | } | |
42690 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42691 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42692 | } | |
42693 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42694 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42695 | } | |
42696 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42697 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42698 | } | |
42699 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42700 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42701 | } | |
42702 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42703 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42704 | } | |
42705 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42706 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42707 | } | |
42708 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42709 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42710 | } | |
42711 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42712 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42713 | } | |
42714 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42715 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42716 | } | |
42717 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42718 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42719 | } | |
42720 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42721 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42722 | } | |
42723 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42724 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42725 | } | |
42726 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42727 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42728 | } | |
42729 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42730 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42731 | } | |
42732 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42733 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42734 | } | |
42735 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42736 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42737 | } | |
42738 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42739 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42740 | } | |
42741 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42742 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42743 | } | |
42744 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42745 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42746 | } | |
42747 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42748 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42749 | } | |
42750 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42751 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42752 | } | |
42753 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42754 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42755 | } | |
42756 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42757 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42758 | } | |
42759 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42760 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42761 | } | |
42762 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42763 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42764 | } | |
42765 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42766 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42767 | } | |
42768 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42769 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42770 | } | |
42771 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42772 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42773 | } | |
42774 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42775 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42776 | } | |
42777 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42778 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42779 | } | |
42780 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42781 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42782 | } | |
42783 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42784 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42785 | } | |
42786 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42787 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42788 | } | |
42789 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42790 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42791 | } | |
42792 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42793 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42794 | } | |
42795 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42796 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42797 | } | |
42798 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42799 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42800 | } | |
42801 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42802 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42803 | } | |
42804 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42805 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42806 | } | |
42807 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42808 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42809 | } | |
42810 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42811 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42812 | } | |
42813 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42814 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42815 | } | |
42816 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42817 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42818 | } | |
42819 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42820 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42821 | } | |
42822 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42823 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42824 | } | |
42825 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42826 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42827 | } | |
42828 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42829 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42830 | } | |
42831 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42832 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42833 | } | |
42834 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42835 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42836 | } | |
42837 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42838 | return (void *)((wxObject *) ((wxImage *) x)); | |
42839 | } | |
42840 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42842 | } | |
42843 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42844 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42845 | } | |
42846 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42847 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42848 | } | |
42849 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42850 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42851 | } | |
42852 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42854 | } | |
42855 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42856 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42857 | } | |
42858 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42859 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42860 | } | |
42861 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42862 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42863 | } | |
42864 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42865 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42866 | } | |
42867 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42868 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42869 | } | |
42870 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42871 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42872 | } | |
42873 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42874 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42875 | } | |
42876 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42877 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42878 | } | |
42879 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42880 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42881 | } | |
42882 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42883 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42884 | } | |
42885 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42886 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42887 | } | |
42888 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42889 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42890 | } | |
42891 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42892 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42893 | } | |
42894 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42895 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42896 | } | |
42897 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42898 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42899 | } | |
42900 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42901 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42902 | } | |
42903 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42904 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42905 | } | |
42906 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42907 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42908 | } | |
42909 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42910 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42911 | } | |
42912 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42913 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42914 | } | |
42915 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42916 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42917 | } | |
42918 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42919 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42920 | } | |
42921 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42922 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42923 | } | |
42924 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42925 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42926 | } | |
42927 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42928 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42929 | } | |
42930 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42931 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42932 | } | |
42933 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42934 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42935 | } | |
42936 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42937 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42938 | } | |
42939 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42940 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42941 | } | |
42942 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42943 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42944 | } | |
42945 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42946 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42947 | } | |
42948 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42949 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42950 | } | |
42951 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42952 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42953 | } | |
42954 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42955 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42956 | } | |
42957 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42958 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42959 | } | |
42960 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42961 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42962 | } | |
42963 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42964 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42965 | } | |
42966 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42967 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42968 | } | |
42969 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42970 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42971 | } | |
42972 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42973 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42974 | } | |
42975 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42976 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42977 | } | |
42978 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42979 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42980 | } | |
42981 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42982 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42983 | } | |
42984 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42985 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42986 | } | |
42987 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42988 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42989 | } | |
42990 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42991 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42992 | } | |
42993 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42994 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42995 | } | |
42996 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42997 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42998 | } | |
42999 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
43000 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
43001 | } | |
43002 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
43003 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
43004 | } | |
43005 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
43006 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
43007 | } | |
43008 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
43009 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
43010 | } | |
43011 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
43012 | return (void *)((wxWindow *) ((wxControl *) x)); | |
43013 | } | |
43014 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
43015 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
43016 | } | |
43017 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
43018 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
43019 | } | |
43020 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
43021 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
43022 | } | |
43023 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
43024 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
43025 | } | |
43026 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
43027 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
43028 | } | |
43029 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
43030 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
43031 | } | |
43032 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
43033 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
43034 | } | |
43035 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
43036 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
43037 | } | |
43038 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
43039 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
43040 | } | |
43041 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
43042 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
43043 | } | |
43044 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
43045 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
43046 | } | |
43047 | 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}}; | |
43048 | 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}}; | |
43049 | 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}}; | |
43050 | 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}}; | |
43051 | 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 | 43052 | 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 |
43053 | 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}}; |
43054 | 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}}; | |
43055 | 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}}; | |
43056 | 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}}; | |
43057 | 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}}; | |
43058 | 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}}; | |
43059 | 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}}; | |
43060 | 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}}; | |
43061 | 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}}; | |
43062 | 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}}; | |
43063 | 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}}; | |
43064 | 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}}; | |
43065 | 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}}; | |
43066 | 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}}; | |
43067 | 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}}; | |
43068 | 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}}; | |
43069 | 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}}; | |
43070 | 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}}; | |
43071 | 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}}; | |
43072 | 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}}; | |
43073 | 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}}; | |
43074 | 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}}; | |
43075 | 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}}; | |
43076 | 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}}; | |
43077 | 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}}; | |
43078 | 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}}; | |
43079 | 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}}; | |
43080 | 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}}; | |
43081 | 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}}; | |
43082 | 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}}; | |
43083 | 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}}; | |
43084 | 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}}; | |
43085 | 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}}; | |
43086 | 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}}; | |
43087 | 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}}; | |
43088 | 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}}; | |
43089 | 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}}; | |
43090 | 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}}; | |
43091 | 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 |
43092 | 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}}; |
43093 | 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}}; | |
43094 | 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}}; | |
43095 | 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 | 43096 | 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 |
43097 | 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}}; |
43098 | 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}}; | |
43099 | 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}}; | |
43100 | 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}}; | |
43101 | 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}}; | |
43102 | 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}}; | |
43103 | 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}}; | |
43104 | 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}}; | |
43105 | 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}}; | |
43106 | 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}}; | |
43107 | 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}}; | |
43108 | 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}}; | |
43109 | 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}}; | |
43110 | 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}}; | |
43111 | 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}}; | |
43112 | 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}}; | |
43113 | 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}}; | |
43114 | 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}}; | |
43115 | 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}}; | |
43116 | 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}}; | |
43117 | 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}}; | |
43118 | 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}}; | |
43119 | 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}}; | |
43120 | 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}}; | |
43121 | 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}}; | |
43122 | 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}}; | |
43123 | 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}}; | |
43124 | 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}}; | |
43125 | 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}}; | |
43126 | 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}}; | |
43127 | 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}}; | |
43128 | 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}}; | |
43129 | 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}}; | |
43130 | 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}}; | |
43131 | 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}}; | |
43132 | 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}}; | |
43133 | 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}}; | |
43134 | 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}}; | |
43135 | 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}}; | |
43136 | 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}}; | |
43137 | 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}}; | |
43138 | 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}}; | |
43139 | 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}}; | |
43140 | 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}}; | |
43141 | 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}}; | |
43142 | 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}}; | |
43143 | 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}}; | |
43144 | 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}}; | |
43145 | 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}}; | |
43146 | 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}}; | |
43147 | 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}}; | |
43148 | 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}}; | |
43149 | 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}}; | |
43150 | 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}}; | |
43151 | 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}}; | |
43152 | 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}}; | |
43153 | 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}}; | |
43154 | 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}}; | |
43155 | 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 | 43156 | 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 |
43157 | 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}}; |
43158 | 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}}; | |
43159 | 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}}; | |
43160 | 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}}; | |
43161 | 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}}; | |
43162 | 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}}; | |
43163 | 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}}; | |
43164 | ||
43165 | static swig_type_info *swig_types_initial[] = { | |
43166 | _swigt__p_wxLayoutConstraints, | |
43167 | _swigt__p_wxRealPoint, | |
43168 | _swigt__p_wxSizerItem, | |
43169 | _swigt__p_wxGBSizerItem, | |
43170 | _swigt__p_wxScrollEvent, | |
ae8162c8 | 43171 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
43172 | _swigt__p_wxIndividualLayoutConstraint, |
43173 | _swigt__p_wxSizer, | |
43174 | _swigt__p_wxBoxSizer, | |
43175 | _swigt__p_wxStaticBoxSizer, | |
43176 | _swigt__p_wxGridBagSizer, | |
43177 | _swigt__p_wxAcceleratorEntry, | |
43178 | _swigt__p_wxUpdateUIEvent, | |
43179 | _swigt__p_wxMenu, | |
43180 | _swigt__p_wxEvent, | |
43181 | _swigt__p_wxGridSizer, | |
43182 | _swigt__p_wxFlexGridSizer, | |
43183 | _swigt__p_wxInitDialogEvent, | |
43184 | _swigt__p_wxItemContainer, | |
43185 | _swigt__p_wxNcPaintEvent, | |
43186 | _swigt__p_wxPaintEvent, | |
43187 | _swigt__p_wxSysColourChangedEvent, | |
43188 | _swigt__p_wxMouseCaptureChangedEvent, | |
43189 | _swigt__p_wxDisplayChangedEvent, | |
43190 | _swigt__p_wxPaletteChangedEvent, | |
43191 | _swigt__p_wxControl, | |
43192 | _swigt__p_wxFont, | |
43193 | _swigt__p_wxMenuBarBase, | |
43194 | _swigt__p_wxSetCursorEvent, | |
43195 | _swigt__p_wxFSFile, | |
43196 | _swigt__p_wxCaret, | |
43197 | _swigt__p_wxRegion, | |
43198 | _swigt__p_wxPoint2D, | |
43199 | _swigt__p_int, | |
43200 | _swigt__p_wxSize, | |
43201 | _swigt__p_wxDC, | |
43202 | _swigt__p_wxPySizer, | |
43203 | _swigt__p_wxVisualAttributes, | |
43204 | _swigt__p_wxNotifyEvent, | |
43205 | _swigt__p_wxPyEvent, | |
43206 | _swigt__p_wxPropagationDisabler, | |
43207 | _swigt__p_wxAppTraits, | |
43208 | _swigt__p_wxArrayString, | |
43209 | _swigt__p_wxShowEvent, | |
43210 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
43211 | _swigt__p_wxIconizeEvent, |
43212 | _swigt__p_wxActivateEvent, | |
43213 | _swigt__p_wxMoveEvent, | |
43214 | _swigt__p_wxSizeEvent, | |
c0de73ae | 43215 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
43216 | _swigt__p_wxQueryNewPaletteEvent, |
43217 | _swigt__p_wxWindowCreateEvent, | |
43218 | _swigt__p_wxIdleEvent, | |
43219 | _swigt__p_wxMenuItem, | |
43220 | _swigt__p_wxStaticBox, | |
43221 | _swigt__p_long, | |
43222 | _swigt__p_wxTIFFHandler, | |
43223 | _swigt__p_wxXPMHandler, | |
43224 | _swigt__p_wxPNMHandler, | |
43225 | _swigt__p_wxJPEGHandler, | |
43226 | _swigt__p_wxPCXHandler, | |
43227 | _swigt__p_wxGIFHandler, | |
43228 | _swigt__p_wxPNGHandler, | |
43229 | _swigt__p_wxANIHandler, | |
43230 | _swigt__p_wxMemoryFSHandler, | |
43231 | _swigt__p_wxEvtHandler, | |
43232 | _swigt__p_wxCURHandler, | |
43233 | _swigt__p_wxICOHandler, | |
43234 | _swigt__p_wxBMPHandler, | |
43235 | _swigt__p_wxImageHandler, | |
43236 | _swigt__p_wxFileSystemHandler, | |
43237 | _swigt__p_wxPyFileSystemHandler, | |
43238 | _swigt__p_wxInternetFSHandler, | |
43239 | _swigt__p_wxZipFSHandler, | |
43240 | _swigt__p_wxRect, | |
43241 | _swigt__p_wxGBSpan, | |
43242 | _swigt__p_wxPropagateOnce, | |
43243 | _swigt__p_wxAcceleratorTable, | |
43244 | _swigt__p_char, | |
43245 | _swigt__p_wxGBPosition, | |
43246 | _swigt__p_wxImage, | |
43247 | _swigt__p_wxFrame, | |
43248 | _swigt__p_wxScrollWinEvent, | |
43249 | _swigt__p_wxImageHistogram, | |
43250 | _swigt__p_byte, | |
43251 | _swigt__p_wxPoint, | |
43252 | _swigt__p_wxCursor, | |
43253 | _swigt__p_wxObject, | |
43254 | _swigt__p_wxPyInputStream, | |
43255 | _swigt__p_wxOutputStream, | |
43256 | _swigt__p_wxInputStream, | |
43257 | _swigt__p_wxDateTime, | |
43258 | _swigt__p_wxKeyEvent, | |
43259 | _swigt__p_wxNavigationKeyEvent, | |
43260 | _swigt__p_wxWindowDestroyEvent, | |
43261 | _swigt__p_wxWindow, | |
43262 | _swigt__p_wxMenuBar, | |
43263 | _swigt__p_wxFileSystem, | |
43264 | _swigt__p_wxBitmap, | |
43265 | _swigt__p_wxMenuEvent, | |
43266 | _swigt__p_wxContextMenuEvent, | |
43267 | _swigt__p_unsigned_char, | |
43268 | _swigt__p_wxCloseEvent, | |
43269 | _swigt__p_wxEraseEvent, | |
43270 | _swigt__p_wxMouseEvent, | |
43271 | _swigt__p_wxPyApp, | |
43272 | _swigt__p_wxCommandEvent, | |
43273 | _swigt__p_wxPyCommandEvent, | |
43274 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 43275 | _swigt__p_wxQuantize, |
d55e5bfc RD |
43276 | _swigt__p_wxChildFocusEvent, |
43277 | _swigt__p_wxFocusEvent, | |
43278 | _swigt__p_wxDropFilesEvent, | |
43279 | _swigt__p_wxControlWithItems, | |
43280 | _swigt__p_wxColour, | |
43281 | _swigt__p_wxValidator, | |
43282 | _swigt__p_wxPyValidator, | |
43283 | 0 | |
43284 | }; | |
43285 | ||
43286 | ||
43287 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43288 | ||
43289 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 43290 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
43291 | |
43292 | #ifdef __cplusplus | |
43293 | } | |
43294 | #endif | |
43295 | ||
43296 | #ifdef __cplusplus | |
43297 | extern "C" | |
43298 | #endif | |
43299 | SWIGEXPORT(void) SWIG_init(void) { | |
43300 | static PyObject *SWIG_globals = 0; | |
43301 | static int typeinit = 0; | |
43302 | PyObject *m, *d; | |
43303 | int i; | |
43304 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
43305 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43306 | d = PyModule_GetDict(m); | |
43307 | ||
43308 | if (!typeinit) { | |
43309 | for (i = 0; swig_types_initial[i]; i++) { | |
43310 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
43311 | } | |
43312 | typeinit = 1; | |
43313 | } | |
43314 | SWIG_InstallConstants(d,swig_const_table); | |
43315 | ||
43316 | ||
43317 | #ifndef wxPyUSE_EXPORT | |
43318 | // Make our API structure a CObject so other modules can import it | |
43319 | // from this module. | |
43320 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
43321 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
43322 | Py_XDECREF(cobj); | |
43323 | #endif | |
43324 | ||
c32bde28 RD |
43325 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
43326 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
43327 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
43328 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
43329 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
43330 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
43331 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
43332 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
43333 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
43334 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
43335 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
43336 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
43337 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
43338 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
43339 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
43340 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
43341 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
43342 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
43343 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
43344 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
43345 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
43346 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
43347 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
43348 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
43349 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
43350 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
43351 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
43352 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
43353 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
43354 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
43355 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
43356 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
43357 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
43358 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
43359 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
43360 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
43361 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
43362 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
43363 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
43364 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
43365 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
43366 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
43367 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
43368 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
43369 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
43370 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
43371 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
43372 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
43373 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
43374 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
43375 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
43376 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
43377 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
43378 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
43379 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
43380 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
43381 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
43382 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
43383 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
43384 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
43385 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
43386 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
43387 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
43388 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
43389 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
43390 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
43391 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
43392 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
43393 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
43394 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
43395 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
43396 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
43397 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
43398 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
43399 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
43400 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
43401 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
43402 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
43403 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
43404 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
43405 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
43406 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
43407 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
43408 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
43409 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
43410 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
43411 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
43412 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
43413 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
43414 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
43415 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
43416 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
43417 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
43418 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
43419 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
43420 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
43421 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
43422 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
43423 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
43424 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
43425 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
43426 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
43427 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
43428 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
43429 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
43430 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
43431 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
43432 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
43433 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
43434 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
43435 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
43436 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
43437 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
43438 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
43439 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
43440 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
43441 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
43442 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
43443 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
43444 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
43445 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
43446 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
43447 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
43448 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
43449 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
43450 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
43451 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
43452 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
43453 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
43454 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
43455 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
43456 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
43457 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
43458 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
43459 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
43460 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
43461 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
43462 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
43463 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
43464 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
43465 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
43466 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
43467 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
43468 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
43469 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
43470 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
43471 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
43472 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
43473 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
43474 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
43475 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
43476 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
43477 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
43478 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
43479 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
43480 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
43481 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
43482 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
43483 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
43484 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
43485 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
43486 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
43487 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
43488 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
43489 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
43490 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
43491 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
43492 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
43493 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
43494 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
43495 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
43496 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
43497 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
43498 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
43499 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
43500 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
43501 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
43502 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
43503 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
43504 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
43505 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
43506 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
43507 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
43508 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
43509 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
43510 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
43511 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
43512 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
43513 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
43514 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
43515 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
43516 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
43517 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
43518 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
43519 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
43520 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
43521 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
43522 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
43523 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
43524 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
43525 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
43526 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
43527 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
43528 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
43529 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
43530 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
43531 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
43532 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
43533 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
43534 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
43535 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
43536 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
43537 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
43538 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
43539 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
43540 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
43541 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
43542 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
43543 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
43544 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
43545 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
43546 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
43547 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
43548 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
43549 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
43550 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
43551 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
43552 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
43553 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
43554 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
43555 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
43556 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
43557 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
43558 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
43559 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
43560 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
43561 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
43562 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
43563 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
43564 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
43565 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
43566 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
43567 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
43568 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
43569 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
43570 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
43571 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
43572 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
43573 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
43574 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
43575 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
43576 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
43577 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
43578 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
43579 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
43580 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
43581 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
43582 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
43583 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
43584 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
43585 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
43586 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
43587 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
43588 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
43589 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
43590 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
43591 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
43592 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
43593 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
43594 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
43595 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
43596 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
43597 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
43598 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
43599 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
43600 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
43601 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
43602 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
43603 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
43604 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
43605 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
43606 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
43607 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
43608 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
43609 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
43610 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
43611 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
43612 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
43613 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
43614 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
43615 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
43616 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
43617 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
43618 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
43619 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
43620 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
43621 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
43622 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
43623 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
43624 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
43625 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
43626 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
43627 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43628 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43629 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43630 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43631 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43632 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43633 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43634 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43635 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43636 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43637 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43638 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43639 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43640 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43641 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43642 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43643 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43644 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43645 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43646 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43647 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43648 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43649 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43650 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43651 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43652 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43653 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43654 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43655 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43656 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43657 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43658 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43659 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43660 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43661 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43662 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43663 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43664 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43665 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43666 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43667 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43668 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43669 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43670 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43671 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43672 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43673 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43674 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43675 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43676 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43677 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43678 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43679 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43680 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43681 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43682 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43683 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43684 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43685 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43686 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43687 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43688 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43689 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43690 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43691 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43692 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43693 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43694 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43695 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43696 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43697 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43698 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43699 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43700 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43701 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43702 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43703 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43704 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43705 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43706 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43707 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43708 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43709 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43710 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43711 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43712 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43713 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43714 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43715 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43716 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43717 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43718 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43719 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43720 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43721 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43722 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43723 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43724 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43725 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43726 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43727 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43728 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43729 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43730 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43731 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43732 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43733 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43734 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43735 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43736 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43737 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43738 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43739 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43740 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43741 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43742 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43743 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43744 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43745 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43746 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43747 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43748 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43749 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43750 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43751 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43752 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43753 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43754 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43755 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43756 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43757 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43758 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43759 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43760 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43761 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43762 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43763 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43764 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43765 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43766 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43767 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43768 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43769 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43770 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43771 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43772 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43773 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43774 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43775 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43776 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43777 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43778 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43779 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43780 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43781 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43782 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43783 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43784 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43785 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43786 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43787 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43788 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43789 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43790 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43791 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43792 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43793 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43794 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43795 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43796 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43797 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43798 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43799 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43800 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43801 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43802 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43803 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43804 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43805 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43806 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43807 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43808 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43809 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43810 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43811 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43812 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43813 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43814 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43815 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43816 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43817 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43818 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43819 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43820 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43821 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43822 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43823 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43824 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43825 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43826 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43827 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43828 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43829 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43830 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43831 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43832 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43833 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43834 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43835 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43836 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43837 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43838 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43839 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43840 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43841 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43842 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43843 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43844 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43845 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43846 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43847 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43848 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43849 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43850 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43851 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43852 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43853 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43854 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43855 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43856 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43857 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43858 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43859 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43860 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43861 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43862 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43863 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43864 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43865 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
43866 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
43867 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c32bde28 RD |
43868 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43869 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43870 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43871 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43872 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43873 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43874 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43875 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43876 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43877 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43878 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43879 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43880 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43881 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43882 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43883 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43884 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43885 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43886 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43887 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43888 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43889 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43890 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43891 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43892 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43893 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43894 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43895 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43896 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43897 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43898 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43899 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43900 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43901 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43902 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43903 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43904 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43905 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43906 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43907 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43908 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43909 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43910 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43911 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43912 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43913 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43914 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43915 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43916 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43917 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43918 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
43919 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43920 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c32bde28 RD |
43921 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43922 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43923 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
43924 | |
43925 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43926 | ||
43927 | ||
43928 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43929 | ||
43930 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43931 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43932 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43933 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43934 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43935 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c32bde28 RD |
43936 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
43937 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
43938 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
43939 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
43940 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
43941 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
43942 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
43943 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
43944 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
43945 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
43946 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
43947 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
43948 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
43949 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
43950 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
43951 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
43952 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43953 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43954 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43955 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43956 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43957 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43958 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43959 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43960 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43961 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43962 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43963 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43964 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43965 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43966 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43967 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43968 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43969 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43970 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43971 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43972 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43973 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43974 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43975 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43976 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43977 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43978 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43979 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43980 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43981 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43982 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43983 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43984 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43985 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43986 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43987 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43988 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43989 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43990 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43991 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43992 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43993 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43994 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43995 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43996 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43997 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43998 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43999 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
44000 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
44001 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
44002 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
44003 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
44004 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
44005 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
44006 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
44007 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
44008 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
44009 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
44010 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
44011 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
44012 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
44013 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
44014 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
44015 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
44016 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
44017 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
44018 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
44019 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
44020 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
44021 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
44022 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
44023 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
44024 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
44025 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
44026 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
44027 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
44028 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
44029 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
44030 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
44031 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
44032 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
44033 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
44034 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
44035 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
44036 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
44037 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
44038 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
44039 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
44040 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
44041 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
44042 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
44043 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
44044 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
44045 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
44046 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
44047 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
44048 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
44049 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
44050 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
44051 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
44052 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
44053 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
44054 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
44055 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
44056 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
44057 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
44058 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
44059 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
44060 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
44061 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
44062 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
44063 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
44064 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c32bde28 RD |
44065 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
44066 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
44067 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
44068 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
44069 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
44070 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
44071 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
44072 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
44073 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
44074 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
44075 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
44076 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
44077 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
44078 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
44079 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
44080 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
44081 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
44082 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
44083 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
44084 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c32bde28 RD |
44085 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
44086 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
44087 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
44088 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
44089 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
44090 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
44091 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c32bde28 RD |
44092 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
44093 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
44094 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 44095 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c32bde28 RD |
44096 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
44097 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
44098 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
44099 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
44100 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
44101 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
44102 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
44103 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
44104 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
44105 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
44106 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
44107 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
44108 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
44109 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
44110 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
44111 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
44112 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
44113 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
44114 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
44115 | |
44116 | // Initialize threading, some globals and such | |
44117 | __wxPyPreStart(d); | |
44118 | ||
44119 | ||
44120 | // Although these are defined in __version__ they need to be here too so | |
44121 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
44122 | // versions match. | |
44123 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
44124 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
44125 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
44126 | ||
44127 | } | |
44128 |